/* Meta Bar — strip that sits above the primary header */

:root {
	--meta-bar-height: 38px;
}

.meta-bar {
	background-color: #03405C;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100; /* above #masthead (z-index: 99) */
}

.meta-bar__inner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: var(--meta-bar-height);
}

/* Nav list */
.meta-bar__menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.meta-bar__menu li {
	margin: 0;
	padding: 0;
}

.meta-bar__menu li a {
	display: block;
	padding: 0 12px;
	font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #ffffff;
	text-decoration: none;
	line-height: var(--meta-bar-height);
	letter-spacing: 0;
	transition: all 0.6s;
}

@media (max-width: 1199px) {
	.meta-bar__menu li a {
		font-size: 14px;
	}
}

.sticky-header .meta-bar__menu li a {
	font-size: 14px;
}

.meta-bar__menu li a:hover {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}


/* Front page: push hero text down to clear the meta bar */
#title-corner {
	top: calc(110px + var(--meta-bar-height));
}

@media (max-width: 991px) {
	#title-corner {
		top: calc(110px + var(--meta-bar-height));
	}
}

@media (max-width: 767px) {
	#title-corner {
		top: calc(100px + var(--meta-bar-height));
	}
}

/* Inner page banners: push title-wrap down to clear the meta bar */
.banner-wrapper .title-wrap {
	padding-top: calc(170px + var(--meta-bar-height));
}

@media (max-width: 767px) {
	.banner-wrapper .title-wrap {
		padding-top: calc(120px + var(--meta-bar-height));
	}
}

/* Push #masthead down by the meta bar height */
#masthead {
	top: var(--meta-bar-height);
}

/* Logged-in: WP admin bar is 32px on desktop, so meta bar sits below it */
.logged-in .meta-bar {
	top: 32px;
}
.logged-in #masthead {
	top: calc(32px + var(--meta-bar-height));
}

/* WP admin bar is 46px on tablet/mobile — hide it and reset positions */
@media only screen and (max-width: 782px) {
	#wpadminbar {
		display: none !important;
	}
	html {
		margin-top: 0 !important;
	}
	.logged-in .meta-bar {
		top: 0;
	}
	.logged-in #masthead {
		top: var(--meta-bar-height);
	}
}

/* Search toggle button in meta bar */
.meta-bar__search-btn {
	background: none;
	border: none;
	color: #ffffff;
	cursor: pointer;
	padding: 0 14px;
	height: var(--meta-bar-height);
	display: flex;
	align-items: center;
	opacity: 0.8;
	transition: opacity 0.3s;
	flex-shrink: 0;
	margin-left: 2px;
}

.meta-bar__search-btn:hover,
.meta-bar__search-btn[aria-expanded="true"] {
	opacity: 1;
}

.meta-bar__search-btn svg {
	display: block;
}

/* White header: push content down to clear both bars */
#masthead.white-header + * {
	margin-top: calc(100px + var(--meta-bar-height));
}
@media (max-width: 991px) {
	#masthead.white-header + * {
		margin-top: calc(94px + var(--meta-bar-height));
	}
}

/* Mobile: compact bar, smaller text */
@media (max-width: 767px) {
	:root {
		--meta-bar-height: 30px;
	}

	.meta-bar__menu li a {
		font-size: 12px;
		padding: 0 12px;
	}

	#masthead.white-header + * {
		margin-top: calc(90px + var(--meta-bar-height));
	}
}
