:root {
	--wihs-line: rgba(255, 255, 255, 0.42);
	--wihs-line-soft: rgba(255, 255, 255, 0.2);
	--wihs-shadow: 0 18px 45px rgba(0, 20, 54, 0.24);
	--wihs-panel: rgba(3, 44, 84, 0.68);
	--wihs-panel-strong: rgba(1, 29, 56, 0.92);
}

html { scroll-behavior: smooth; }

body {
	min-height: 100vh;
	background: var(--wp--preset--color--wihs-blue);
}

.wp-site-blocks { overflow: clip; }

/* WordPress's global block gap is useful inside content, but not between the
 * full-width site shell and its major color bands. */
.wp-site-blocks > .wp-block-template-part + main,
.wp-site-blocks > main + .wp-block-template-part {
	margin-block-start: 0;
}

.wihs-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--wihs-line-soft);
	box-shadow: 0 8px 24px rgba(0, 20, 54, 0.18);
}

.wihs-wordmark a,
.wihs-wordmark {
	color: #fff !important;
	text-decoration: none;
}

.wihs-header-actions { white-space: nowrap; }

.wihs-section {
	padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.wihs-section--deep {
	background: var(--wp--preset--color--wihs-blue-deep);
	border-block: 1px solid var(--wihs-line-soft);
}

.wihs-section--navy { background: var(--wp--preset--color--wihs-navy); }

/*
 * Homepage bands are sequenced by CSS so rearranging sections in the editor
 * does not leave two matching colors together. Remove only the gap between
 * these top-level bands; the normal WordPress block gap remains everywhere
 * inside them.
 */
body.home main.wp-block-group > .wihs-section + .wihs-section {
	margin-block-start: 0;
}

body.home main.wp-block-group > .wihs-section:not(.wihs-hero) {
	background: var(--wp--preset--color--wihs-blue);
	border-block: 0;
}

body.home main.wp-block-group > :nth-child(even of .wihs-section) {
	background: var(--wp--preset--color--wihs-blue-deep);
}

.wihs-section-title {
	margin-bottom: clamp(1.75rem, 4vw, 3rem);
	text-align: center;
}

.wihs-hero {
	position: relative;
	min-height: 42rem;
	padding-block: clamp(3rem, 5vw, 5rem) 0;
	overflow: hidden;
	background:
		radial-gradient(circle at 73% 32%, rgba(20, 149, 239, 0.5), transparent 27rem),
		linear-gradient(115deg, #064f9d 0%, #0874d1 52%, #075ead 100%);
}

.wihs-hero::before {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(1, 29, 56, 0.18), transparent 48%, rgba(1, 29, 56, 0.08));
	content: "";
	pointer-events: none;
}

.wihs-hero::after {
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: var(--wihs-line-soft);
	content: "";
}

.wihs-hero-grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 0.78fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
	min-height: 39rem;
}

.wihs-hero-copy {
	max-width: 39rem;
	padding-bottom: clamp(3rem, 6vw, 5rem);
	transform: translateY(-2rem);
}

.wihs-hero-copy h1 {
	max-width: 11.5ch;
	margin-bottom: 1.25rem;
	font-size: clamp(2.8rem, 5vw, 4.7rem) !important;
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 0.98;
	text-wrap: balance;
}

.wihs-hero-copy > p {
	max-width: 34rem;
	margin-top: 0;
	color: var(--wp--preset--color--mist);
	font-size: clamp(1rem, 1.45vw, 1.2rem) !important;
	line-height: 1.55;
}

.wihs-lighthouse-wrap {
	align-self: end;
	min-height: 38rem;
	display: flex;
	align-items: end;
	justify-content: center;
	margin-bottom: 0;
}

.wihs-lighthouse-wrap img {
	max-height: 40rem;
	width: auto;
	filter: drop-shadow(0 24px 32px rgba(0, 22, 52, 0.45));
}

.wihs-intro-player {
	max-width: 34rem;
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

.wihs-intro-player .wihs-on-air {
	padding: 1rem 1.2rem;
	background: linear-gradient(135deg, rgba(1, 29, 56, 0.98), rgba(3, 44, 84, 0.94));
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 22px 48px rgba(0, 18, 48, 0.3);
}

.wihs-intro-player .wihs-on-air__title {
	font-family: var(--wp--preset--font-family--wihs-serif);
	font-weight: 500;
}

.wihs-intro-player .wihs-on-air__play span:first-child {
	color: var(--wp--preset--color--wihs-navy-dark);
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 0 0.28rem rgba(255, 255, 255, 0.12);
}

.wihs-editorial-feature,
.wihs-editorial-summary,
.wihs-editorial-list {
	border: 1px solid var(--wihs-line);
	background: rgba(3, 44, 84, 0.28);
}

.wihs-editorial-feature {
	margin-bottom: 2rem;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	box-shadow: var(--wihs-shadow);
}

.wihs-editorial-feature + .wihs-editorial-feature { margin-top: 2rem; }

.wihs-editorial-feature .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto !important;
	object-fit: contain !important;
}

.wihs-editorial-feature .wp-block-post-featured-image {
	max-width: 760px;
	height: clamp(190px, 30vw, 280px);
	margin-inline: auto;
	overflow: hidden;
	background: var(--wp--preset--color--wihs-navy);
	display: grid;
	place-items: center;
}

.wihs-editorial-feature .wp-block-post-content {
	font-size: 1.05rem;
}

.wihs-editorial-summary-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.35rem);
}

.wihs-editorial-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto auto minmax(0, 1fr);
	gap: 0.45rem 0.8rem;
	height: 100%;
	padding: 1.15rem;
	overflow: hidden;
	background: linear-gradient(160deg, var(--wihs-panel), rgba(3, 44, 84, 0.9));
	border-radius: 0.25rem;
	box-shadow: 0 16px 34px rgba(0, 20, 54, 0.18);
}

.wihs-editorial-summary .wp-block-post-featured-image {
	grid-column: 1 / -1;
	height: clamp(150px, 15vw, 190px);
	margin: -1.15rem -1.15rem 0.45rem;
	overflow: hidden;
	background: var(--wp--preset--color--wihs-navy);
	display: grid;
	place-items: center;
}

.wihs-editorial-summary .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto !important;
	object-fit: contain !important;
}

.wihs-editorial-summary .wihs-post-meta {
	grid-column: 1;
	align-self: center;
	margin: 0;
}

.wihs-editorial-summary .wp-block-post-date {
	grid-column: 2;
	align-self: center;
	margin: 0;
	font-size: 0.76rem !important;
	white-space: nowrap;
}

.wihs-editorial-summary .wp-block-post-title,
.wihs-editorial-summary .wp-block-post-excerpt {
	grid-column: 1 / -1;
}

.wihs-editorial-summary .wp-block-post-title {
	margin: 0.1rem 0 0;
	font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
	line-height: 1.08;
}

.wihs-editorial-summary .wp-block-post-excerpt,
.wihs-editorial-summary .wp-block-post-excerpt p {
	margin-block: 0;
}

.wihs-editorial-summary .wp-block-post-excerpt__more-text {
	margin-top: 0.75rem;
	font-weight: 750;
}

.wihs-editorial-list { margin-top: 1.5rem; }

/* Offset query tiers should disappear cleanly when there are not enough posts. */
.wihs-editorial-summary-grid:empty,
.wihs-editorial-list:empty {
	display: none;
}

.wp-block-separator:has(+ .wihs-editorial-summary-grid:empty) {
	display: none;
}

.wihs-editorial-list {
	overflow: hidden;
	border-radius: 0.25rem;
}

.wihs-editorial-list .wp-block-post {
	display: grid;
	grid-template-columns: minmax(7rem, 0.25fr) minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: 0.85rem 1rem;
	border-top: 1px solid var(--wihs-line-soft);
}

.wihs-editorial-list .wp-block-post:first-child { border-top: 0; }
.wihs-editorial-list .wp-block-post-title { margin: 0; }

.wihs-editorial-list .wp-block-post-date {
	color: var(--wp--preset--color--wihs-gold);
	font-size: 0.78rem;
	font-weight: 750;
	text-transform: uppercase;
}

.wihs-post-meta {
	color: var(--wp--preset--color--wihs-gold);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* The two live-data previews share a visual language but retain their natural heights. */
body.home main.wp-block-group > .wihs-section:last-child .wp-block-columns {
	align-items: flex-start;
	gap: clamp(1rem, 2vw, 1.35rem);
}

body.home main.wp-block-group > .wihs-section:last-child .wp-block-column {
	min-width: 0;
}

body.home main.wp-block-group > .wihs-section:last-child .wp-block-column > h2 {
	margin: 0;
	padding: 0.7rem 1rem;
	font-family: var(--wp--preset--font-family--wihs-sans);
	font-size: 1rem !important;
	font-weight: 750;
	letter-spacing: 0.01em;
	background: var(--wihs-panel-strong);
	border: 1px solid var(--wihs-line);
	border-bottom: 0;
	border-radius: 0.25rem 0.25rem 0 0;
}

body.home main.wp-block-group > .wihs-section:last-child .wihs-schedule,
body.home main.wp-block-group > .wihs-section:last-child .wihs-recent {
	margin-block-start: 0;
	background: var(--wihs-panel);
	border-radius: 0 0 0.25rem 0.25rem;
}

body.home main.wp-block-group > .wihs-section:last-child .wihs-schedule__list li,
body.home main.wp-block-group > .wihs-section:last-child .wihs-recent__list li {
	min-height: 3.25rem;
}

@media (min-width: 783px) {
	body.home main.wp-block-group > .wihs-section:last-child .wihs-schedule__list li,
	body.home main.wp-block-group > .wihs-section:last-child .wihs-recent__list li {
		box-sizing: border-box;
		align-items: center;
	}
}

body.home main.wp-block-group > .wihs-section:last-child .wihs-radio-more {
	border-top: 1px solid var(--wihs-line-soft);
	text-decoration: none;
}

.wihs-content-surface {
	padding: clamp(1.25rem, 4vw, 3rem);
	border: 1px solid var(--wihs-line-soft);
	background: rgba(3, 44, 84, 0.35);
}

.wihs-site-footer {
	padding-bottom: 6rem !important;
	border-top: 1px solid var(--wihs-line-soft);
}

.wihs-site-footer .wp-block-columns { gap: clamp(2rem, 5vw, 5rem); }
.wihs-site-footer h3 { margin-bottom: 1rem; }
.wihs-site-footer p { margin-block: 0.55rem; }
.wihs-site-footer a { color: #fff; }
.wihs-footer-links ul { margin: 0; padding: 0; list-style: none; }
.wihs-footer-links li { margin-bottom: 0.8rem; }
.wihs-footer-links li a { font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.wihs-footer-links li small { display: block; max-width: 24rem; margin-top: 0.15rem; color: var(--wp--preset--color--mist); line-height: 1.35; }
.wihs-footer-contact a,
.wihs-footer-legal a,
.wihs-text-give a { text-underline-offset: 0.18em; }
.wihs-footer-social { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.wihs-footer-social a { font-weight: 750; }
.wihs-footer-apps { display: grid; gap: 0.35rem; margin-top: 1.25rem !important; }
.wihs-footer-apps span { color: var(--wp--preset--color--mist); font-weight: 700; }
.wihs-footer-apps a { width: fit-content; font-weight: 750; text-underline-offset: 0.18em; }
.wihs-text-give { margin-top: 1rem !important; }
.wihs-text-give strong { color: #fff; }
.wihs-footer-legal { margin-top: clamp(2rem, 5vw, 4rem) !important; }

@media (max-width: 900px) {
	.wihs-hero { padding-top: 3.5rem; }
	.wihs-hero-grid { grid-template-columns: 1fr; min-height: 0; }
	.wihs-hero-copy { max-width: 42rem; padding-bottom: 0; transform: none; }
	.wihs-hero-copy h1 { max-width: 13ch; }
	.wihs-lighthouse-wrap { min-height: 24rem; }
	.wihs-lighthouse-wrap img { max-height: 28rem; }
	.wihs-editorial-summary-grid .wp-block-post-template { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	.wihs-section { padding-block: clamp(2.5rem, 10vw, 4rem); }
	.wihs-hero { padding-bottom: 0; }
	.wihs-hero-copy h1 { font-size: clamp(2.55rem, 12vw, 3.8rem) !important; }
	.wihs-lighthouse-wrap { margin-inline: -1rem; }
	.wihs-lighthouse-wrap img { width: min(100%, 30rem); height: auto; }
	.wihs-editorial-summary { min-height: 0; }
	.wihs-editorial-list .wp-block-post { grid-template-columns: 1fr auto; }
	.wihs-editorial-list .wp-block-post-date { grid-column: 1 / -1; }
	.wihs-site-header .wp-block-navigation__responsive-container-open {
		display: inline-flex;
		min-width: 2.75rem;
		min-height: 2.75rem;
		align-items: center;
		justify-content: center;
		margin: -0.625rem;
	}
}

@media (max-width: 520px) {
	.wihs-intro-player .wihs-on-air { align-items: flex-start; }
	.wihs-editorial-summary { grid-template-columns: 1fr; }
	.wihs-editorial-summary .wp-block-post-date { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
