/* WBA header menu refinement — 2026-08-20.
 * Preserve the existing staging header design and only change menu hierarchy.
 */

/* Keep the entire WordPress header template-part above page-specific hero layers. */
body .wp-site-blocks > header,
.wba-sticky-header-shell,
.wba-site-header {
	position: relative;
	z-index: 2147482000;
}

.wba-desktop-menu {
	align-items: center !important;
	position: relative;
	z-index: 2147482001;
}

.wba-desktop-about {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 72px;
	margin: 0;
	z-index: 2147482002;
}

.wba-desktop-about > summary {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	list-style: none;
	cursor: pointer;
	color: #fff;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.wba-desktop-about > summary::-webkit-details-marker {
	display: none;
}

.wba-desktop-about > summary::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .16s ease;
}

.wba-desktop-about[open] > summary::after {
	margin-top: 3px;
	transform: rotate(225deg);
}

.wba-desktop-about > summary:hover,
.wba-desktop-about > summary:focus-visible {
	color: var(--wba-blue);
}

.wba-desktop-about__menu {
	position: absolute;
	top: calc(100% - 7px);
	left: 50%;
	z-index: 2147482003;
	width: 190px;
	padding: 7px;
	background: #fff;
	border: 1px solid #dde3ea;
	box-shadow: 0 12px 32px rgba(23, 34, 49, .12);
	transform: translateX(-50%);
}

.wba-desktop-about__menu a {
	display: block;
	padding: 10px 11px;
	color: #172231 !important;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .84rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.wba-desktop-about__menu a:hover,
.wba-desktop-about__menu a:focus-visible {
	background: #eef4f8;
	color: #081c34 !important;
}

.wba-header-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.wba-header-search a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: #fff;
	text-decoration: none;
}

.wba-header-search a:hover,
.wba-header-search a:focus-visible {
	color: var(--wba-blue);
}

.wba-header-search svg {
	display: block;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
}

.wba-database-cta,
.wba-database-cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	background: #fff;
	border: 1px solid #fff;
	color: #081c34 !important;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.wba-database-cta:hover,
.wba-database-cta:focus-visible {
	background: #38b6ff;
	border-color: #38b6ff;
	color: #081c34 !important;
}

/* Mobile About base state. Exact geometry is normalized in the mobile breakpoint below. */
.wba-mobile-about {
	margin: 0;
}

.wba-mobile-about > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
	cursor: pointer;
	color: #fff;
}

.wba-mobile-about > summary::-webkit-details-marker {
	display: none;
}

.wba-mobile-about > summary::after {
	content: "+";
	font-weight: 400;
	line-height: 1;
}

.wba-mobile-about[open] > summary::after {
	content: "−";
}

.wba-mobile-about__links {
	display: grid;
}

.wba-mobile-database-cta,
.wba-mobile-database-cta:visited {
	margin-top: 14px;
	justify-content: center;
	background: #fff;
	color: #081c34 !important;
	font-weight: 700;
}

@media (max-width: 979px) {
	.wba-desktop-about,
	.wba-header-search,
	.wba-database-cta {
		display: none !important;
	}

	/* One geometry contract for every primary mobile navigation row. */
	.wba-mobile-menu {
		width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	.wba-mobile-menu > .wba-mobile-menu__link,
	.wba-mobile-menu > .wba-mobile-about {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box !important;
		border: 0 !important;
		border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
	}

	.wba-mobile-menu > .wba-mobile-menu__link,
	.wba-mobile-about > summary {
		display: flex !important;
		align-items: center !important;
		min-height: clamp(52px, 8.6dvh, 72px) !important;
		height: clamp(52px, 8.6dvh, 72px) !important;
		padding: 0 !important;
		margin: 0 !important;
		box-sizing: border-box !important;
		font-family: "DM Sans", Arial, sans-serif !important;
		font-size: 1.34rem !important;
		font-weight: 700 !important;
		line-height: 1.15 !important;
		letter-spacing: -.02em !important;
		color: #fff !important;
		text-decoration: none !important;
	}

	.wba-mobile-menu > a.wba-mobile-menu__link {
		justify-content: flex-start !important;
	}

	.wba-mobile-menu > button.wba-mobile-menu__link,
	.wba-mobile-about > summary {
		width: 100% !important;
		justify-content: space-between !important;
		background: transparent !important;
		border-left: 0 !important;
		border-right: 0 !important;
		border-top: 0 !important;
		text-align: left !important;
	}

	.wba-mobile-about > summary::after {
		font-size: 1.45rem !important;
		font-weight: 400 !important;
		line-height: 1 !important;
		margin-left: 18px !important;
		flex: 0 0 auto !important;
	}

	/* About children are intentionally secondary and never draw their own dividers. */
	.wba-mobile-about__links {
		width: 100% !important;
		padding: 4px 0 12px 18px !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}

	.wba-mobile-about__links .wba-mobile-menu__link {
		display: flex !important;
		align-items: center !important;
		width: 100% !important;
		min-height: 46px !important;
		height: 46px !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		box-sizing: border-box !important;
		font-family: "DM Sans", Arial, sans-serif !important;
		font-size: .98rem !important;
		font-weight: 600 !important;
		line-height: 1.2 !important;
		letter-spacing: 0 !important;
		color: rgba(255, 255, 255, .76) !important;
	}

	/* Search icon and About plus/minus share the same right-hand visual axis. */
	.wba-mobile-search-trigger::after {
		margin-left: auto !important;
		flex: 0 0 auto !important;
	}

	/* CTA stays separate from the four-row navigation rhythm. */
	.wba-mobile-menu > .wba-mobile-database-cta {
		height: auto !important;
		min-height: 50px !important;
		margin-top: 16px !important;
		padding: 0 18px !important;
		justify-content: center !important;
		border-bottom: 0 !important;
		font-size: .98rem !important;
		letter-spacing: 0 !important;
	}
}
