/* The masthead stays in reach while the discovery links scroll with the page. */
/* Page templates can set fluid body type. Navigation uses the same base everywhere. */
.bh-masthead, .bh-discovery, .bh-nav-drawer {
	font-family: var(--bh-studio-body);
	font-size: 1rem;
	line-height: 1.65;
}
body.bh-theme .bh-masthead {
	background: #11111d;
	color: #f7f7f4;
	border-bottom: 0;
}
body.bh-theme .bh-masthead .bh-header-inner {
	width: 100%;
	max-width: 100rem;
	margin: auto;
	padding: .85rem clamp(1rem, 3.75vw, 4rem);
	min-height: 5.75rem;
	gap: clamp(.5rem, 1.6vw, 1.75rem);
}
.bh-masthead .bh-header-brand { margin: 0; }
.bh-masthead .bh-brand__image { width: clamp(5rem, 9vw, 8.5rem); height: auto; }
.bh-masthead-search {
	display: flex;
	flex: 1;
	min-width: 0;
	align-items: center;
	margin: 0;
	background: white;
	border: 1px solid #d5d7de;
	border-radius: .5rem;
	color: #11111d;
}
.bh-masthead-search input[type="search"] {
	background: transparent;
	color: #11111d;
	border: 0;
	box-shadow: none;
	border-radius: .5rem;
	min-width: 0;
	width: 100%;
	height: 2.75rem;
	padding: 0 .85rem;
	font: inherit;
	font-size: 1rem;
}
.bh-masthead-search input::placeholder { color: #535765; opacity: 1; }
.bh-masthead-search button, .bh-masthead-cart {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	padding: 0;
	color: inherit;
	cursor: pointer;
}
.bh-masthead-search:focus-within { outline: 3px solid #92b4ff; outline-offset: 2px; }
.bh-masthead .bh-masthead-search button:focus-visible { outline-color: #2563eb; outline-offset: -4px; }
.bh-masthead .bh-masthead-cart { color: white; }
body.bh-theme .bh-masthead .bh-header-cta { display: inline-flex; gap: .55rem; border-radius: .55rem; white-space: nowrap; }
.bh-masthead .bh-header-cta:hover { transform: none; }
@media (min-width: 1024px) {
	.bh-masthead .bh-header-cta { min-height: 3.375rem; padding-inline: 1.375rem; }
}
.bh-masthead .bh-header-cta svg { width: 1.4rem; height: 1.4rem; }
.bh-discovery { background: #fff; color: #11111d; font-family: var(--bh-studio-body); }
.bh-discovery nav { display: flex; align-items: center; justify-content: center; }
.bh-discovery a { color: inherit; text-decoration: none; }
.bh-discovery nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.bh-discovery nav a:is(:hover, [aria-current]) { color: #1949b9; text-decoration: underline; text-underline-offset: .22em; }
.bh-discovery a:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }
.bh-discovery-sections { gap: clamp(1.5rem, 5vw, 6rem); padding: .22rem 1rem; border-bottom: 1px solid #dadbe1; }
.bh-discovery-sections a { font: 750 clamp(1rem, 1.5vw, 1.45rem)/1.1 var(--bh-studio-heading); text-transform: uppercase; }
.bh-discovery-shortcuts { background: #faf9f7; padding: 0 max(1rem, calc((100% - 84rem)/2)); }
.bh-discovery-shortcuts a { position: relative; flex: 1; gap: .55rem; white-space: nowrap; font-weight: 700; }
.bh-discovery-shortcuts a + a::before { content: ""; position: absolute; left: 0; height: 55%; border-left: 1px solid #d4d5db; }
.bh-discovery-shortcuts svg { width: 1.25rem; height: 1.25rem; flex: none; }
.bh-discovery-app { padding: .62rem 1rem; display: grid; justify-items: center; gap: .13rem; background: #2563eb; color: white; text-align: center; }
.bh-discovery-app strong { font-size: clamp(1rem, 1.65vw, 1.45rem); line-height: 1.15; }
.bh-discovery-app-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
.bh-discovery-app a { display: inline-flex; align-items: center; min-height: 32px; padding-inline: .35rem; font-size: .94rem; font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }
#behind-bighead, #gives-back { scroll-margin-top: calc(var(--bh-header-height, 6rem) + 8px); }
@media (max-width: 760px) {
	body.bh-theme .bh-masthead .bh-header-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto auto;
		gap: .3rem .45rem;
		padding: .4rem .8rem .6rem;
		min-height: auto;
	}
	.bh-masthead .bh-header-brand { grid-area: 1 / 1; }
	.bh-masthead .bh-brand__image { width: 5rem; }
	.bh-masthead :is(.bh-explore-fallback,.bh-explore) { grid-area: 1 / 2; }
	.bh-masthead-search { grid-area: 2 / 1 / 3 / -1; }
	body.bh-theme .bh-masthead .bh-header-cta { grid-area: 1 / 3; min-height: 44px; width: 44px; padding: 0; justify-content: center; }
	.bh-masthead .bh-header-cta span { display: none; }
	.bh-masthead-cart { grid-area: 1 / 4; }
	.bh-discovery-sections { justify-content: space-evenly; gap: .7rem; padding: 0 .6rem; }
	.bh-discovery-sections a { font-size: clamp(.78rem, 3.3vw, 1rem); }
	.bh-discovery .bh-discovery-shortcuts { display: grid; grid-template-columns: 1fr 1fr; padding: 0 .3rem; }
	.bh-discovery-shortcuts a { font-size: .87rem; gap: .3rem; }
	.bh-discovery-shortcuts a:nth-child(odd)::before { display: none; }
}
.bh-masthead-cart .bh-icon, .bh-masthead-search .bh-icon { width: 1.55rem; height: 1.55rem; }
@media (min-width: 761px) and (max-width: 1024px) {
	body.bh-theme .bh-masthead .bh-header-cta { padding: 0; width: 44px; min-height: 44px; justify-content: center; }
	.bh-masthead .bh-header-cta span { display: none; }
}
