/**
 * Larkinized EA Hub — Sitewide shell (header, footer, mobile nav, search)
 */

/* ─── Reset theme bleed-through (Twenty Twenty-Three, block themes) ─── */
.leah-shell-active .wp-site-blocks > header:not(.leah-site-header),
.leah-shell-active .wp-site-blocks > footer:not(.leah-site-footer),
.leah-shell-active footer.wp-block-template-part,
.leah-shell-active .site-header:not(.leah-site-header),
.leah-shell-active .site-footer:not(.leah-site-footer),
.leah-shell-active #masthead,
.leah-shell-active #colophon {
	display: none !important;
}

.leah-shell-active {
	background: var(--leah-gray-50, #fafbfc);
	min-height: 100vh;
}

.leah-shell-active .leah-site-content {
	min-width: 0;
	width: 100%;
}

.leah-shell-active .leah-main {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
}

.leah-shell-active .leah-main-full,
.leah-shell-full-width .leah-main-full {
	max-width: none;
}

.leah-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--leah-gold, #c5a572);
	color: var(--leah-navy, #071526);
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
}

.leah-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ─── Header ─── */
.leah-site-header {
	position: sticky;
	top: 0;
	z-index: 9000;
	background: rgba(7, 21, 38, 0.97);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	box-shadow: 0 4px 24px rgba(7, 21, 38, 0.12);
}

.leah-site-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.65rem 1.25rem;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.25rem;
}

.leah-site-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.leah-site-logo__image {
	display: block;
	height: 44px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

.leah-site-footer .leah-site-logo__image {
	height: 36px;
	filter: brightness(0) invert(1);
}

.leah-site-logo__mark {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 1.1rem;
	background: linear-gradient(135deg, var(--leah-gold, #c5a572), var(--leah-teal-light, #00a3c4));
	color: var(--leah-navy, #071526);
	flex-shrink: 0;
}

.leah-site-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}

.leah-site-logo__text strong {
	font-size: 1.02rem;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.leah-site-logo__text small {
	font-size: 0.68rem;
	opacity: 0.72;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

/* Primary navigation */
.leah-site-nav {
	display: none;
	justify-content: center;
	min-width: 0;
}

.leah-site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.leah-site-nav__link {
	display: block;
	color: rgba(255, 255, 255, 0.84);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	padding: 0.45rem 0.7rem;
	border-radius: 8px;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.leah-site-nav__link:hover,
.leah-site-nav__link.is-active,
.leah-site-nav .current-menu-item > a,
.leah-site-nav .current-menu-ancestor > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.leah-site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: flex-end;
}

.leah-search-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.92);
	cursor: pointer;
	font: inherit;
	font-size: 0.88rem;
	transition: background 0.15s, border-color 0.15s;
}

.leah-search-trigger:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.28);
}

.leah-search-trigger__icon {
	display: grid;
	place-items: center;
	opacity: 0.9;
}

.leah-search-trigger__label {
	display: none;
}

.leah-search-trigger__kbd {
	display: none;
	font-size: 0.68rem;
	padding: 0.12rem 0.38rem;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-family: inherit;
	line-height: 1.4;
}

.leah-header-cta {
	padding: 0.55rem 1rem !important;
	font-size: 0.85rem !important;
	white-space: nowrap;
}

.leah-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	padding: 0;
}

.leah-nav-toggle__bars,
.leah-nav-toggle__bars::before,
.leah-nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: #fff;
	border-radius: 1px;
	position: relative;
}

.leah-nav-toggle__bars::before,
.leah-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.leah-nav-toggle__bars::before {
	top: -6px;
}

.leah-nav-toggle__bars::after {
	top: 6px;
}

/* ─── Mobile navigation drawer ─── */
.leah-mobile-nav[hidden] {
	display: none !important;
}

.leah-mobile-nav.is-open {
	display: block;
}

.leah-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 9800;
}

.leah-mobile-nav__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 21, 38, 0.55);
	backdrop-filter: blur(3px);
}

.leah-mobile-nav__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(360px, 92vw);
	height: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: -12px 0 40px rgba(7, 21, 38, 0.18);
}

.leah-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--leah-gray-200, #e4e9ef);
}

.leah-mobile-nav__head .leah-site-logo {
	color: var(--leah-navy-mid, #0c2340);
}

.leah-mobile-nav__close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: var(--leah-gray-100, #f3f5f8);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.leah-mobile-nav__body {
	flex: 1;
	overflow: auto;
	padding: 1rem 1.25rem 1.5rem;
}

.leah-mobile-nav__section + .leah-mobile-nav__section {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--leah-gray-200, #e4e9ef);
}

.leah-mobile-nav__section h2 {
	margin: 0 0 0.65rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--leah-slate-light, #8b95a5);
}

.leah-mobile-nav__section ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.leah-mobile-nav__section a {
	display: block;
	padding: 0.55rem 0;
	text-decoration: none;
	color: var(--leah-navy-mid, #0c2340);
	font-weight: 600;
	font-size: 0.95rem;
}

.leah-mobile-nav__section a.is-active,
.leah-mobile-nav__section a:hover {
	color: var(--leah-teal, #00758f);
}

.leah-mobile-nav__foot {
	padding: 1rem 1.25rem 1.25rem;
	border-top: 1px solid var(--leah-gray-200, #e4e9ef);
}

.leah-btn-block {
	display: block;
	width: 100%;
	text-align: center;
}

body.leah-nav-open {
	overflow: hidden;
}

/* ─── Footer (full-width, below content) ─── */
.leah-site-footer {
	background: var(--leah-navy, #071526);
	color: rgba(255, 255, 255, 0.88);
	margin-top: auto;
	padding: 3.5rem 0 2rem;
	clear: both;
	width: 100%;
}

.leah-site-footer__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.leah-site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 2rem 1.5rem;
}

.leah-site-footer__brand p {
	margin: 1rem 0 0;
	max-width: 340px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.92rem;
	line-height: 1.65;
}

.leah-site-footer__col h3 {
	margin: 0 0 0.85rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--leah-gold, #c5a572);
}

.leah-site-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.leah-site-footer__col a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	font-size: 0.92rem;
	line-height: 2;
	transition: color 0.15s;
}

.leah-site-footer__col a:hover {
	color: #fff;
}

.leah-site-footer__meta {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.58);
}

.leah-site-footer__meta p {
	margin: 0;
}

.leah-site-footer__meta-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.leah-site-footer__meta-links a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.leah-site-footer__meta-links a:hover {
	color: #fff;
}

/* ─── Search palette ─── */
.leah-search-palette {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: none;
}

.leah-search-palette.is-open {
	display: block;
}

.leah-search-open {
	overflow: hidden;
}

.leah-search-palette__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 21, 38, 0.55);
	backdrop-filter: blur(4px);
}

.leah-search-palette__panel {
	position: relative;
	max-width: 720px;
	margin: 8vh auto 0;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(7, 21, 38, 0.25);
	overflow: hidden;
	border: 1px solid var(--leah-gray-200, #e4e9ef);
}

.leah-search-palette__input-wrap {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--leah-gray-200, #e4e9ef);
}

.leah-search-palette__icon {
	font-size: 1.25rem;
	color: var(--leah-slate-light, #8b95a5);
}

.leah-search-palette__input {
	flex: 1;
	border: 0;
	font: inherit;
	font-size: 1.05rem;
	outline: none;
	background: transparent;
	color: var(--leah-navy-mid, #0c2340);
}

.leah-search-palette__close {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: var(--leah-gray-100, #f3f5f8);
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
}

.leah-search-palette__filters,
.leah-search-page__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid var(--leah-gray-200, #e4e9ef);
}

.leah-search-filter {
	border: 1px solid var(--leah-gray-200, #e4e9ef);
	background: #fff;
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	font-size: 0.82rem;
	cursor: pointer;
	color: var(--leah-slate, #5a6578);
}

.leah-search-filter.is-active {
	background: var(--leah-navy-mid, #0c2340);
	border-color: var(--leah-navy-mid, #0c2340);
	color: #fff;
}

.leah-search-palette__results {
	max-height: 50vh;
	overflow: auto;
	padding: 0.5rem;
}

.leah-search-palette__footer {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1.25rem;
	font-size: 0.78rem;
	color: var(--leah-slate-light, #8b95a5);
	border-top: 1px solid var(--leah-gray-200, #e4e9ef);
}

.leah-search-palette__footer a {
	color: var(--leah-teal, #00758f);
	text-decoration: none;
	font-weight: 600;
}

.leah-search-hit {
	display: block;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
}

.leah-search-hit:hover,
.leah-search-hit.is-active {
	background: var(--leah-gray-100, #f3f5f8);
}

.leah-search-hit__type {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--leah-teal, #00758f);
	margin-bottom: 0.25rem;
}

.leah-search-hit__title {
	display: block;
	font-weight: 600;
	color: var(--leah-navy-mid, #0c2340);
	line-height: 1.35;
}

.leah-search-hit__title mark {
	background: rgba(197, 165, 114, 0.35);
	color: inherit;
	padding: 0 0.1em;
	border-radius: 2px;
}

.leah-search-hit__excerpt {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.88rem;
	color: var(--leah-slate, #5a6578);
	line-height: 1.45;
}

.leah-search-meta,
.leah-search-empty,
.leah-search-hint,
.leah-search-loading {
	padding: 1rem 1.25rem;
	margin: 0;
	color: var(--leah-slate, #5a6578);
	font-size: 0.92rem;
}

.leah-search-page__hero {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 3px solid var(--leah-gold, #c5a572);
}

.leah-search-page__form {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.leah-search-page__form input[type="search"] {
	flex: 1;
	padding: 0.85rem 1rem;
	border: 1px solid var(--leah-gray-300, #cbd5e0);
	border-radius: 10px;
	font: inherit;
	font-size: 1rem;
}

.leah-search-page__results .leah-search-hits {
	display: grid;
	gap: 0.35rem;
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
	.leah-nav-toggle {
		display: none;
	}
}

@media (min-width: 1024px) {
	.leah-site-nav {
		display: flex;
	}

	.leah-search-trigger__label,
	.leah-search-trigger__kbd {
		display: inline;
	}
}

@media (max-width: 1023px) {
	.leah-site-header__inner {
		grid-template-columns: auto 1fr auto;
	}

	.leah-header-cta {
		display: none;
	}
}

@media (max-width: 767px) {
	.leah-site-logo__text {
		display: none;
	}

	.leah-site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.leah-site-footer__brand {
		grid-column: 1 / -1;
	}

	.leah-search-page__form {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.leah-site-footer__grid {
		grid-template-columns: 1fr;
	}
}
