/* WIOH Radio – component styles. Colours and type come from theme.json presets. */

:root {
	--wioh-navy: var(--wp--preset--color--navy, #13213f);
	--wioh-navy-deep: var(--wp--preset--color--navy-deep, #0b1630);
	--wioh-signal: var(--wp--preset--color--signal, #2f86d0);
	--wioh-gold: var(--wp--preset--color--gold, #e9b949);
	--wioh-surface: var(--wp--preset--color--surface, #fff);
	--wioh-line: var(--wp--preset--color--line, #dde3ee);
	--wioh-muted: var(--wp--preset--color--muted, #56627a);
	--wioh-on-dark: var(--wp--preset--color--on-dark, #c9d5ec);
	--wioh-onair: #e5484d;
	--wioh-card-dark: #0a1429;
	--wioh-mono: var(--wp--preset--font-family--mono);
	--wioh-display: var(--wp--preset--font-family--display);
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { text-wrap: balance; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wioh-main { margin-block: 0; }
.wioh-main > * { margin-block: 0; }
:focus-visible { outline: 3px solid var(--wioh-gold); outline-offset: 2px; }

.wioh-eyebrow {
	font-family: var(--wioh-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wioh-signal);
	margin-bottom: 0.4rem;
}

/* Outline buttons: navy on light, white on dark bands */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wioh-navy);
	border: 2px solid currentColor;
	padding: calc(0.85rem - 2px) calc(1.4rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wioh-navy); color: #fff; border-color: var(--wioh-navy); }

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }

.wioh-header {
	background: var(--wioh-navy-deep);
	color: #fff;
	border-bottom: 1px solid #ffffff14;
	padding-block: 10px;
}
.wioh-header__inner { gap: 16px; }
.wioh-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.wioh-brand__badge { width: 57px; height: 60px; flex: none; }
.wioh-brand__text { display: flex; flex-direction: column; }
.wioh-brand__name { font: 800 1.55rem/1 var(--wioh-display); letter-spacing: 0.02em; }
.wioh-brand__sub { font: 500 0.8rem/1.3 var(--wioh-display); letter-spacing: 0.08em; text-transform: uppercase; color: #b9c7e2; margin-top: 3px; }
.wioh-header__nav { gap: 12px; }
.wioh-header .wp-block-navigation { color: #dbe4f5; }
.wioh-header .wp-block-navigation a { color: inherit; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.wioh-header .wp-block-navigation a:hover { background: #ffffff14; color: #fff; }
.wioh-header .wp-block-navigation .current-menu-item > a,
.wioh-header .wp-block-navigation a[aria-current="page"] { color: var(--wioh-gold); }
.wioh-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wioh-navy-deep); color: #fff; }
.wioh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.6rem; }
.wioh-header__cta .wp-block-button__link { background: var(--wioh-signal); color: #fff; padding: 0.7rem 1.1rem; font-size: 1rem; }
.wioh-header__cta .wp-block-button__link:hover { background: #3b95e0; }
@media (max-width: 600px) {
	.wioh-header .wioh-header__inner { flex-wrap: nowrap; }
	.wioh-brand__badge { width: 46px; height: 48px; }
	.wioh-brand__name { font-size: 1.3rem; }
	.wioh-brand__sub { font-size: 0.7rem; }
	.wioh-header .wioh-header__cta { display: none; }
	.wioh-header .wp-block-navigation__responsive-container-open { color: #fff; }
}

/* ---------- Hero ---------- */
.wioh-hero {
	background: radial-gradient(1000px 420px at 85% -10%, #1f4a8a 0%, transparent 60%), var(--wioh-navy);
	color: #fff;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem;
	overflow: hidden;
}
.wioh-hero__cols { gap: clamp(2rem, 4vw, 3.5rem); }
.wioh-hero__title { font-size: var(--wp--preset--font-size--xx-large); margin: 0.6rem 0 0; }
.wioh-hero__title em { font-style: normal; color: var(--wioh-gold); }
.wioh-hero__lede { color: var(--wioh-on-dark); font-size: 1.15rem; max-width: 34em; margin-block: 1.1rem 1.6rem; }
.wioh-onair { color: var(--wioh-gold); display: flex; align-items: center; gap: 10px; }
.wioh-onair::before, .wioh-dot {
	content: "";
	display: inline-block;
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--wioh-onair);
	animation: wioh-pulse 1.8s infinite;
	flex: none;
}
@keyframes wioh-pulse {
	0% { box-shadow: 0 0 0 0 #e5484d88; }
	70% { box-shadow: 0 0 0 10px #e5484d00; }
	100% { box-shadow: 0 0 0 0 #e5484d00; }
}
.wioh-hero .is-style-outline > .wp-block-button__link { color: #fff; border-color: #ffffff55; }
.wioh-hero .is-style-outline > .wp-block-button__link:hover { background: transparent; border-color: #fff; color: #fff; }

.wioh-freq {
	position: relative;
	background: var(--wioh-card-dark);
	border: 1px solid #ffffff1a;
	border-radius: 18px;
	padding: 24px 22px 22px;
}
.wioh-freq p { margin: 0; }
.wioh-freq__badge { position: absolute; top: 16px; right: 18px; width: clamp(80px, 24%, 116px); height: auto; }
.wioh-freq__label { color: #8fa2c6; }
.wioh-freq__num { font: 800 clamp(4.2rem, 10vw, 6.8rem)/0.85 var(--wioh-display); color: #fff; display: flex; align-items: flex-start; gap: 8px; margin-top: 8px !important; }
.wioh-freq__num small { font-size: 0.28em; color: var(--wioh-signal); margin-top: 0.35em; letter-spacing: 0.1em; }
.wioh-freq__meta { font: 400 0.8rem/1.5 var(--wioh-mono); color: #8fa2c6; margin-top: 10px !important; }
.wioh-freq__player { margin-top: 18px; border-radius: 12px; overflow: hidden; background: #000; }
.wioh-freq__player iframe { display: block; width: 100%; height: 316px; border: 0; }

.wioh-dial { position: relative; height: 56px; margin-top: 2.2rem; border-top: 1px solid #ffffff22; max-width: 1120px; margin-inline: auto; }
.wioh-dial__ticks {
	position: absolute; inset: 0 0 24px;
	background:
		repeating-linear-gradient(to right, #ffffff55 0 1px, transparent 1px calc(100% / 20)),
		repeating-linear-gradient(to right, #ffffff20 0 1px, transparent 1px calc(100% / 100));
	-webkit-mask: linear-gradient(to bottom, #000 0 60%, transparent 100%);
	mask: linear-gradient(to bottom, #000 0 60%, transparent 100%);
}
.wioh-dial__labels { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; font: 400 0.7rem/18px var(--wioh-mono); color: #8fa2c6; }
.wioh-dial__labels span { position: absolute; transform: translateX(-50%); }
.wioh-dial__labels span:first-child { transform: none; }
.wioh-dial__labels span:last-child { transform: translateX(-100%); }
.wioh-dial__needle { position: absolute; top: -6px; bottom: 18px; left: 39.5%; width: 2px; background: var(--wioh-onair); box-shadow: 0 0 12px var(--wioh-onair); }
.wioh-dial__needle::after { content: "95.9"; position: absolute; top: -2px; left: 8px; font: 500 0.7rem/1 var(--wioh-mono); color: #fff; }

/* ---------- Light sections ---------- */
.wioh-section { padding-block: var(--wp--preset--spacing--60); }
.wioh-section > h2 { margin-top: 0; margin-bottom: 2rem; }
.wioh-card,
.wioh-panel {
	background: var(--wioh-surface);
	border: 1px solid var(--wioh-line);
	border-radius: 14px;
	padding: 24px;
	min-width: 0;
}
.wioh-card > *, .wioh-panel > * { margin-block: 0; }
.wioh-card > * + *, .wioh-panel > * + * { margin-top: 0.7rem; }
.wioh-card h3 { font-size: 1.45rem; letter-spacing: 0.02em; }
.wioh-card p { color: var(--wioh-muted); }
.wioh-card__icon { width: 30px; height: 30px; color: var(--wioh-signal); display: block; }
.wioh-features { gap: 20px; }
@media (min-width: 782px) and (max-width: 1000px) {
	.wioh-features { flex-wrap: wrap !important; }
	.wioh-features > .wp-block-column { flex-basis: calc(50% - 10px) !important; }
}

/* Story */
.wioh-story { background: var(--wioh-surface); border-block: 1px solid var(--wioh-line); }
.wioh-story__cols { gap: clamp(2rem, 5vw, 3.5rem); }
.wioh-story__title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; margin-top: 0.3rem; }
.wioh-accent { color: var(--wioh-signal); }
.wioh-pull { font: 700 1.9rem/1.1 var(--wioh-display); text-transform: uppercase; border-left: 4px solid var(--wioh-gold); padding-left: 16px; margin-block: 1.6rem; }
.wioh-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--wioh-line); border: 1px solid var(--wioh-line); border-radius: 14px; overflow: hidden; }
.wioh-stat { background: var(--wioh-surface); padding: 20px; }
.wioh-stat b { display: block; font: 800 2.5rem/1 var(--wioh-display); font-variant-numeric: tabular-nums; }
.wioh-stat span { color: var(--wioh-muted); font-size: 0.92rem; }
.wioh-story__text p { color: var(--wioh-muted); max-width: 36em; margin-block: 0 0.9rem; }
.wioh-story__text strong { color: var(--wp--preset--color--contrast); }
.wioh-story__text .wioh-lede { font-size: 1.2rem; color: var(--wp--preset--color--contrast); }

/* Recently played + apps */
.wioh-played { gap: 24px; }
.wioh-played__list { display: flex; justify-content: center; background: #0d0d0d; border-color: #0d0d0d; padding: 0; overflow: hidden; }
.wioh-played__list iframe { display: block; width: 100%; max-width: 420px; height: 614px; border: 0; }
.wioh-apps h3 { font-size: 1.6rem; }
.wioh-ways { list-style: none; counter-reset: way; padding: 0; display: grid; gap: 14px; }
.wioh-ways li { counter-increment: way; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.wioh-ways li::before {
	content: counter(way);
	grid-row: span 2;
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--wioh-navy); color: var(--wioh-gold);
	font: 700 1.1rem/1 var(--wioh-display);
}
.wioh-ways b { font-family: var(--wioh-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.03em; }
.wioh-ways span { color: var(--wioh-muted); font-size: 0.95rem; }
.wioh-store-buttons { margin-top: 1.2rem !important; }

/* Support */
.wioh-support { background: var(--wioh-navy); color: #fff; padding-block: var(--wp--preset--spacing--60); }
.wioh-support .wioh-eyebrow { color: var(--wioh-gold); }
.wioh-support h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; margin-top: 0.3rem; }
.wioh-support p { color: var(--wioh-on-dark); max-width: 34em; }
.wioh-support__card { background: var(--wioh-card-dark); border: 1px solid #ffffff1a; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.wioh-donate { margin: 0; }
.wioh-support__card .wp-element-button { display: block; width: 100%; text-align: center; border: 0; cursor: pointer; text-decoration: none; }
.wioh-support__card .wioh-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #ffffff40; }
.wioh-support__card .wioh-btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; background: transparent; }
.wioh-support__card small { color: #8fa2c6; font-size: 0.85rem; }

/* Coverage / contact */
.wioh-visit { gap: 24px; }
.wioh-visit .wioh-card { padding: 28px; }
.wioh-visit h3 { font-size: 1.8rem; }
.wioh-map {
	position: relative;
	height: 150px;
	border-radius: 10px;
	background:
		radial-gradient(circle at 50% 52%, #2f86d059 0 28%, #2f86d024 28% 46%, transparent 46%),
		repeating-linear-gradient(0deg, var(--wioh-line) 0 1px, transparent 1px 24px),
		repeating-linear-gradient(90deg, var(--wioh-line) 0 1px, transparent 1px 24px);
}
.wioh-map span { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font: 500 0.75rem var(--wioh-mono); background: var(--wioh-surface); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--wioh-line); }
.wioh-arrow a { font-weight: 600; text-decoration: none; }
.wioh-arrow a:hover { text-decoration: underline; }

/* ---------- Inner pages ---------- */
.wioh-titleband {
	background: radial-gradient(800px 300px at 90% -20%, #1f4a8a 0%, transparent 60%), var(--wioh-navy);
	color: #fff;
	padding-block: clamp(2.2rem, 5vw, 3.5rem);
}
.wioh-titleband .wioh-eyebrow { color: var(--wioh-gold); }
.wioh-titleband h1 { margin-top: 0.3rem; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.wioh-page-body { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.wioh-page-body .wp-block-image img { border-radius: 12px; }

/* ---------- Footer ---------- */
.wioh-footer { background: var(--wioh-navy-deep); color: #9aabcb; font-size: 0.9rem; padding-block: 2.2rem 7rem; }
.wioh-footer a { color: #dbe4f5; }
.wioh-footer__sign { display: flex; align-items: center; gap: 12px; }
.wioh-footer__sign img { width: 34px; height: 34px; flex: none; }
.wioh-footer__links { margin: 0; }

/* ---------- Live player bar ---------- */
.wioh-player {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	background: #0a1429f2;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-top: 1px solid #ffffff1f;
	color: #fff;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wioh-player__inner {
	max-width: 1120px; margin: 0 auto;
	display: flex; align-items: center; gap: 14px;
	padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
}
.wioh-player__play {
	width: 46px; height: 46px; border-radius: 50%; flex: none;
	background: var(--wioh-gold); color: var(--wioh-navy-deep);
	display: grid; place-items: center;
	transition: transform 0.15s;
}
.wioh-player__play:hover { transform: scale(1.06); }
.wioh-player__play svg { width: 16px; height: 18px; margin-left: 3px; }
.wioh-player__icon { width: 40px; height: 40px; flex: none; }
.wioh-player__text { min-width: 0; flex: 1; line-height: 1.3; }
.wioh-player__live { display: flex; align-items: center; gap: 8px; font: 500 0.68rem/1 var(--wioh-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--wioh-onair); margin-bottom: 4px; }
.wioh-player__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wioh-player__title span { color: #9aabcb; font-weight: 400; }
.wioh-player__app { color: #c9d5ec; font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.wioh-player__app:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) {
	.wioh-player__app, .wioh-player__icon { display: none; }
}

/* In the Site Editor, keep the bar in normal flow so it doesn't cover blocks being edited */
.editor-styles-wrapper .wioh-player { position: relative; }
.editor-styles-wrapper header.wp-block-template-part { position: relative; top: 0; }

@media (prefers-reduced-motion: reduce) {
	.wioh-onair::before, .wioh-dot { animation: none; }
}
