/* Shared Backcountry Fever header ----------------------------------------- */

#masthead .bcf-preview-logo {
	display: block;
	width: 360px;
	max-width: 100%;
	aspect-ratio: 4.5 / 1;
	overflow: hidden;
	line-height: 0;
}

#masthead .bcf-preview-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

#masthead {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	margin-bottom: 24px;
}

/* Keep the header below the fixed WordPress toolbar. */
.admin-bar #masthead {
	top: 32px;
}

/* Leave room for the header when following in-page links. */
html {
	scroll-padding-top: 110px;
}

html:has(body.admin-bar) {
	scroll-padding-top: 142px;
}

@media (max-width: 782px) {
	.admin-bar #masthead {
		top: 46px;
	}

	html:has(body.admin-bar) {
		scroll-padding-top: 156px;
	}
}

/* On phones the toolbar scrolls away instead of remaining fixed. */
@media (max-width: 600px) {
	.admin-bar #masthead {
		top: 0;
	}

	html:has(body.admin-bar) {
		scroll-padding-top: 110px;
	}
}

#masthead .bcf-preview-logo:focus-visible {
	outline: 2px solid #111;
	outline-offset: 3px;
}

/* Mark the current page and its top-level section, including the mobile menu. */
:is(#masthead, #smobile-menu) .pmenu li:is(.current-menu-item, .current_page_item) > a,
:is(#masthead, #smobile-menu) .pmenu > li:is(.current-menu-ancestor, .current-menu-parent, .current_page_ancestor, .current_page_parent) > a,
:is(#masthead, #smobile-menu) .pmenu a[aria-current="page"] {
	text-decoration-line: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
	text-decoration-skip-ink: auto;
}

@media (min-width: 1024px) {
	#masthead .top-nav-wrapper > .content-wrap {
		display: flex;
		align-items: center;
		gap: 20px;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	#masthead .logo-container {
		float: none;
		flex: 0 1 360px;
		max-width: 32%;
	}

	#masthead .center-main-menu {
		float: none;
		flex: 1;
		min-width: 0;
		max-width: none;
	}
}

@media (min-width: 1024px) and (max-width: 1200px) {
	#masthead .main-navigation ul li a {
		font-size: 14px;
		padding-right: .5rem;
		padding-left: .5rem;
	}
}

@media (max-width: 1023px) {
	#masthead .super-menu-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	#masthead .super-menu-inner .bcf-preview-logo {
		width: 300px;
		max-width: calc(100% - 46px);
	}

	#masthead .super-menu-inner .menu-toggle {
		flex: 0 0 30px;
	}
}

