/* Remove the browser gutter so the site header and Hero can span the viewport. */
body {
	margin: 0;
}

/* Share the overlap distance without fixing the header's actual height. */
.bo-header,
.bo-header + .bo-hero {
	--bo-header-space: 6rem;
}

.bo-header {
	--bo-header-link-color: var(--bo-dark);
	--bo-header-active-color: var(--bo-primary);
	--bo-header-admin-offset: 0px;
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: var(--bo-header-space);
	padding: 1.5rem 0;
	border: 0;
	background: var(--bo-white);
	box-shadow: none;
	transition: min-height 250ms ease, padding 250ms ease,
		background-color 250ms ease, box-shadow 250ms ease;
}

.bo-header--over-hero {
	--bo-header-link-color: var(--bo-white);
	--bo-header-active-color: var(--bo-white);
	background: transparent;
}

.bo-header--scrolled,
.bo-header--menu-open {
	--bo-header-link-color: var(--bo-dark);
	--bo-header-active-color: var(--bo-primary);
	background: var(--bo-white);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bo-header.bo-header--scrolled {
	position: fixed;
	top: var(--bo-header-admin-offset);
	inset-inline: 0;
	min-height: 4.5rem;
	padding: 0.5rem 0;
}

.bo-header__spacer[hidden] {
	display: none;
}

.bo-header > .bo-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	box-sizing: border-box;
	width: calc(100% - clamp(2rem, 8vw, 8rem));
	padding-inline: 1rem;
}

.bo-header__brand {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
}

.bo-header__logo-link {
	display: inline-flex;
	max-width: 100%;
	vertical-align: middle;
}

.bo-header__logo {
	--bo-header-logo-height: 7.5rem;
	display: block;
	width: auto;
	max-width: min(48rem, 100%);
	height: var(--bo-header-logo-height);
	max-height: var(--bo-header-logo-height);
	object-fit: contain;
	transition: height 250ms ease, max-height 250ms ease;
}

.bo-header--scrolled .bo-header__logo {
	height: calc(var(--bo-header-logo-height) * 0.6);
	max-height: calc(var(--bo-header-logo-height) * 0.6);
}

.bo-header__nav {
	width: 100%;
	min-width: 0;
}

.bo-header__nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem clamp(1rem, 2vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bo-header__nav li {
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.bo-header__nav a,
.bo-header__pending {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0.5rem 0;
	color: var(--bo-header-link-color);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	text-underline-offset: 0.4em;
	overflow-wrap: anywhere;
	transition: color 250ms ease;
}

.bo-header__pending {
	cursor: default;
}

.bo-header__nav a:hover,
.bo-header__nav .current-menu-item > a,
.bo-header__nav .current_page_item > a,
.bo-header__nav a[aria-current="page"] {
	color: var(--bo-header-active-color);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.bo-header a:focus-visible,
.bo-header__toggle:focus-visible {
	outline: 3px solid var(--bo-primary);
	outline-offset: 4px;
	color: var(--bo-dark);
	background: var(--bo-white);
}

.bo-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	margin-inline-start: auto;
	padding: 10px;
	border: 0;
	border-radius: var(--bo-radius);
	color: var(--bo-header-link-color);
	background: transparent;
	cursor: pointer;
	transition: color 250ms ease;
}

.bo-header__toggle[hidden] {
	display: none;
}

.bo-header__toggle-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.bo-header__toggle-icon {
	display: grid;
	width: 24px;
	gap: 5px;
}

.bo-header__toggle-icon span {
	display: block;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
}

/* Let the photograph extend beneath the header while keeping copy in flow. */
.bo-header + .bo-hero {
	margin-block-start: calc(-1 * var(--bo-header-space));
	padding-block-start: var(--bo-header-space);
}

/* Contrast for white navigation while the transparent header overlays a Hero. */
.bo-header + .bo-hero::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	height: calc(var(--bo-header-space) + 3rem);
	background: linear-gradient(
		180deg,
		rgba(31, 41, 55, 0.7) 0%,
		rgba(31, 41, 55, 0.7) 65%,
		rgba(31, 41, 55, 0) 100%
	);
	pointer-events: none;
}

@media (min-width: 768px) {
	.bo-header,
	.bo-header + .bo-hero {
		--bo-header-space: 7rem;
	}

	.bo-header > .bo-container {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 1.5rem;
		padding-inline: 1.5rem;
	}

	.bo-header__brand {
		max-width: 24rem;
	}

	.bo-header__logo {
		--bo-header-logo-height: 9rem;
	}

	.bo-header__nav {
		flex: 1 1 28rem;
		width: auto;
	}

	.bo-header__nav ul {
		justify-content: flex-end;
	}
}

@media (max-width: 767px) {
	.bo-header--ready {
		padding: 1rem 0;
	}

	.bo-header--ready > .bo-container {
		flex-direction: row;
		align-items: center;
	}

	.bo-header--ready .bo-header__nav {
		--bo-header-link-color: var(--bo-dark);
		--bo-header-active-color: var(--bo-primary);
		position: absolute;
		inset: 100% 0 auto;
		box-sizing: border-box;
		width: 100%;
		max-height: calc(100vh - var(--bo-header-height, 6rem) - var(--bo-header-admin-offset));
		max-height: calc(100dvh - var(--bo-header-height, 6rem) - var(--bo-header-admin-offset));
		padding: 1rem calc(clamp(2rem, 8vw, 8rem) / 2 + 1rem);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-0.5rem);
		background: var(--bo-white);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
		pointer-events: none;
		transition: opacity 250ms ease, transform 250ms ease, visibility 0s;
	}

	.bo-header--ready .bo-header__nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.25rem;
	}

	.bo-header--ready .bo-header__nav a,
	.bo-header--ready .bo-header__pending {
		display: flex;
		padding: 0.75rem 0;
	}

	.bo-header--menu-open .bo-header__nav {
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bo-header,
	.bo-header__logo,
	.bo-header__nav,
	.bo-header--ready .bo-header__nav,
	.bo-header__nav a,
	.bo-header__toggle {
		transition: none;
	}
}

@media (min-width: 1024px) {
	.bo-header,
	.bo-header + .bo-hero {
		--bo-header-space: 6.5rem;
	}

	.bo-header > .bo-container {
		flex-wrap: nowrap;
		gap: 2rem;
		padding-inline: 2rem;
	}

	.bo-header__logo {
		--bo-header-logo-height: 10.5rem;
	}
}
