/**
 * Unified site header — SINGLE SOURCE for FSE and public routes.
 *
 * Markup is rendered by `Enel_Health_Core_Site_Header::render()`.
 * Don't add header rules in public.css or theme-bridge.css; put them here.
 */

.eh-header {
	position: sticky;
	top: 0;
	z-index: 30;
	margin: 0;
	background: rgba(255, 255, 255, 0.88);
	color: #0a1f1e;
	border-bottom: 1px solid rgba(208, 213, 221, 0.75);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.admin-bar .eh-header {
	top: 32px;
}

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

.eh-header__inner {
	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	min-height: 76px;
}

.eh-brand {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	max-width: min(100%, 22rem);
}

.eh-site-logo {
	display: flex;
	flex-shrink: 0;
	text-decoration: none;
}

.eh-site-logo img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 0.9rem;
	object-fit: cover;
}

.eh-brand__text {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.eh-site-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.eh-site-title a {
	color: #0a1f1e;
	text-decoration: none;
}

.eh-site-title a:hover {
	color: #0e6b5c;
}

.eh-site-tagline {
	margin: 0;
	font-size: 0.8125rem;
	color: #5c6b69;
	font-weight: 400;
	line-height: 1.35;
}

.eh-header__nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem 1.25rem;
	flex: 1 1 auto;
	min-width: 0;
}

.eh-navigation {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.eh-navigation::-webkit-scrollbar {
	display: none;
}

.eh-navigation__list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0.25rem 1.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.eh-navigation__item {
	margin: 0;
}

.eh-navigation__link {
	display: inline-block;
	padding: 0.4rem 0.35rem;
	color: #0a1f1e;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 650;
	letter-spacing: -0.005em;
	white-space: nowrap;
	border-bottom: none;
}

.eh-navigation__link:hover,
.eh-navigation__link:focus-visible {
	color: #0a1f1e;
	text-decoration: none;
}

.eh-navigation__link[aria-current="page"] {
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: #0a1f1e;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.32rem;
}

.eh-header__cta {
	display: flex;
	flex-shrink: 0;
	align-items: center;
}

/* --- Safety overrides: when the FSE template's own wp:navigation slips through --- */
.eh-header .eh-navigation a,
.eh-header .eh-navigation .wp-block-navigation-item__content {
	color: #0a1f1e;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 650;
	letter-spacing: -0.005em;
}

.eh-header .eh-navigation a[aria-current="page"],
.eh-header .eh-navigation .current-menu-item > .wp-block-navigation-item__content {
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: #0a1f1e;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.32rem;
}
