/*
 * Header logo on phones and tablets (below 1200px, where the menu becomes the slide-in drawer).
 * The logo comes from siteSettings in Contentful and can be any shape. Its width is set in the
 * markup, so a taller logo (the stacked one, about 3:2) came out 79px high in a 60px bar and
 * spilled below it. Sizing by height instead makes any logo, wide or stacked, sit inside the bar.
 * The max-width keeps a very wide logo clear of the menu and contact buttons either side.
 * Keyed to the width rather than the .rd-navbar-fixed class, which only arrives once the navbar
 * script has run - so there's no flash of the oversized logo while the page loads.
 */
@media (max-width: 1199.98px) {
	.rd-navbar .navbar-logo img {
		width: auto;
		height: 48px;
		max-width: 50vw;
		object-fit: contain;
	}

	/* The template pins the logo 16px from the top, which suited the old 28px-high logo. Centre the
	   48px one in the 60px bar instead. */
	/* "body" because the template's navbar CSS loads after this file with the same specificity. */
	body .rd-navbar-fixed .navbar-logo { top: 6px; }
}
