/*
 * Valley 104.9 FM: site styles. Mobile first; wider layouts in min-width
 * media queries. Colors come from the logo (deep blue, green, orange).
 * Text colors are chosen to meet WCAG 2.1 AA contrast; the brighter brand
 * green (#2f8a3c) is used only for decoration, never behind small text.
 */
:root {
  --blue: #14539a;
  --navy: #0f3a6b;
  --green: #2b8038;
  --green-bright: #2f8a3c;
  --gold: #f0a529;
  --gold-soft: #fbe3ac;
  --red: #d6372f;
  --cream: #fff6e2;
  --sky: #e8f1fb;
  --ink: #1d2733;
  --muted: #566474;
  --line: #d5dde6;
  --white: #fff;
  --focus: #0b0f14;
  --radius: 6px;
  --wrap: 1120px;
  --player-h: 0px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (min-width: 960px) { html { scroll-padding-top: 220px; } }
body {
  margin: 0;
  font: 1rem/1.55 var(--font);
  color: var(--ink);
  background: var(--white);
  padding-bottom: var(--player-h);
}
img, svg { max-width: 100%; }
/* The hidden attribute must always win over component display rules. */
[hidden] { display: none !important; }
img { height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
p { margin: 0 0 .9rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .player :focus-visible, .onair :focus-visible, .story-cta :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px var(--focus);
}
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }
.small { font-size: .9rem; color: var(--muted); }
.lead { font-size: 1.15rem; }
.todo-mark { background: #fff3bf; color: #5c4400; border: 1px dashed #b38600; padding: 0 .3em; border-radius: 3px; font-weight: 600; font-size: .92em; }
.section-title { color: var(--blue); text-transform: uppercase; letter-spacing: .02em; font-size: 1.6rem; margin: 0 0 .75rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.2rem; border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  cursor: pointer; line-height: 1.2; text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-small { min-height: 40px; padding: .4rem .8rem; font-size: .85rem; }
.btn-large { font-size: 1.15rem; padding: .9rem 1.6rem; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .6; cursor: not-allowed; }
.btn-text { background: none; border: 0; padding: .4rem .2rem; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; }
button[data-listen][data-playing] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; min-width: 0; }
.logo-img { width: 76px; height: 76px; }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.brand-name { font-size: 1.1rem; font-weight: 800; color: var(--blue); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.brand-name { white-space: nowrap; }
@media (max-width: 480px) { .brand-name { white-space: normal; font-size: .95rem; } }
.brand-tagline span { display: block; }
.brand-tagline .tl-2 { text-transform: none; letter-spacing: .02em; font-weight: 600; }
.brand-tagline { display: none; font-size: .68rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .1em; }
.header-listen { padding: .55rem .8rem; }
.header-listen .listen-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; min-width: 44px; padding: .4rem .6rem;
  border: 1px solid #8794a3; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.menu-toggle { justify-content: center; min-width: 6.4rem; }
.menu-label { font-size: .85rem; }
.menu-toggle svg { flex: none; }
.header-listen[data-connecting] svg { animation: vfm-spin 1s linear infinite; }
@keyframes vfm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .header-listen[data-connecting] svg { animation: none; opacity: .6; } }
.site-nav ul { list-style: none; margin: 0 auto; padding-top: 4px; padding-bottom: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.site-nav a { display: block; padding: .6rem 0; font-weight: 700; font-size: .95rem; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); border-color: var(--blue); }
.site-nav[data-collapsed] { display: none; }
@media (scripting: none) {
  .menu-toggle { display: none; }
  .site-nav[data-collapsed] { display: block; }
}

@media (min-width: 400px) {
  .brand-tagline { display: block; }
}
@media (min-width: 560px) {
  .header-listen .listen-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (min-width: 960px) {
  .logo-img { width: 120px; height: 120px; }
  .brand-name { font-size: 1.9rem; }
  .brand-tagline { font-size: .78rem; }
  .menu-toggle { display: none; }
  .site-nav[data-collapsed] { display: block; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; padding-bottom: 0; }
  .site-nav a { font-size: .88rem; padding: .5rem 0 .55rem; }
  .header-listen { padding: .7rem 1.2rem; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-img.is-active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* neutral dark scrim: enough that white text keeps 4.5:1 over bright photos */
  background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .52) 60%, rgba(0, 0, 0, .3));
}
.hero-copy p { text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 24px; padding-top: 32px; padding-bottom: 72px; }
.hero h1 { font-size: 2rem; margin: 0 0 .75rem; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.hero-copy p { font-size: 1.05rem; max-width: 34rem; }
.hero-pause {
  position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(15, 58, 107, .8); color: #fff; display: grid; place-items: center; cursor: pointer;
}
@media (min-width: 900px) {
  /* Keep >= .8 opacity under the text column so any photo keeps white text above 4.5:1. */
  .hero::after { background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .15) 75%, rgba(0, 0, 0, 0)); }
  .hero-grid { grid-template-columns: 1.2fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .hero h1 { font-size: 2.9rem; }
}

/* ---------------------------------------------------------------- on air card */
.onair { background: rgba(15, 58, 107, .96); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); padding: 18px; }
.onair .onair-label { margin: 0 0 12px; color: var(--gold); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid var(--gold); padding-bottom: 8px; }
.onair-row { display: flex; gap: 14px; align-items: flex-start; }
.onair-art { position: relative; flex: none; width: 88px; height: 88px; border-radius: 4px; overflow: hidden; background: #2b3541; }
.onair-art img { width: 100%; height: 100%; object-fit: cover; }
.live-badge { position: absolute; left: 0; bottom: 0; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 6px; text-transform: uppercase; }
.onair-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 .25rem; line-height: 1.2; }
.onair-title a { color: #fff; }
.onair-meta { margin: 0; opacity: .95; font-size: .95rem; }
.onair-listen { margin-top: 14px; border-color: #fff; }
.onair-next { margin: .75rem 0 0; font-size: .92rem; min-height: 1.4em; }
.onair-more { margin: .25rem 0 0; text-align: center; }
.onair-more a, .onair-next a { color: #fff; }

/* ---------------------------------------------------------------- fundraiser */
.fund { background: var(--cream); border-bottom: 1px solid #f0dfb5; }
.fund-inner { display: grid; gap: 6px 18px; padding-top: 12px; padding-bottom: 12px; align-items: center; }
.fund-title { font-size: 1rem; margin: 0; color: var(--navy); }
.fund-amount { margin: 0; font-size: .92rem; }
.fund-track { height: 12px; background: #fff; border: 1px solid #c9b07a; border-radius: 999px; overflow: hidden; }
.fund-fill { display: block; height: 100%; min-width: 0; background: linear-gradient(90deg, var(--gold), #e08a00); border-radius: 999px; }
.fund-link { font-weight: 700; white-space: nowrap; }
.fund-full .fund-inner { padding-top: 20px; padding-bottom: 20px; }
.fund-full .fund-title { font-size: 1.3rem; }
.fund-full .fund-track { height: 18px; }
.fund-summary { margin: 0; }
.fund-updated { color: var(--muted); font-size: .9rem; }
@media (min-width: 760px) {
  .fund-slim .fund-inner { grid-template-columns: auto 1fr auto; }
}

/* ---------------------------------------------------------------- pillars */
.pillars-band { background: #fbfbfb; border-bottom: 1px solid var(--line); }
.pillars { list-style: none; margin: 0 auto; padding-top: 20px; padding-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; text-align: center; }
.pillar a { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; color: var(--ink); text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.pillar a:hover .pillar-title { text-decoration: underline; }
.pillar-icon { width: 34px; height: 34px; color: var(--blue); }
.pillar:nth-child(2) .pillar-icon { color: var(--green); }
.pillar:nth-child(3) .pillar-icon { color: #9a5a00; }
.pillar:nth-child(4) .pillar-icon { color: var(--red); }
.pillar p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .pillar { padding: 0 18px; border-right: 1px solid var(--line); }
  .pillar:last-child { border-right: 0; }
}

/* ---------------------------------------------------------------- what's on */
.whats-on { background: var(--sky); padding: 28px 0; }
.whats-grid { display: grid; gap: 20px; }
.whats-intro .section-title { font-size: 1.9rem; }
.days { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.day-card { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); overflow: hidden; scroll-snap-align: start; font-size: .9rem; display: flex; flex-direction: column; }
.day-name { margin: 0; background: var(--blue); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px; text-align: center; }
.day-card:nth-child(even) .day-name { background: var(--green); }
.day-card.is-today .day-name { background: var(--navy); }
.day-shows { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; }
.day-shows a { font-weight: 700; display: block; }
.day-time { display: block; color: var(--muted); font-size: .85rem; }
.day-shows .is-onair a::after { content: " · On air"; color: var(--red); font-weight: 800; }
.day-empty { color: var(--muted); }
.day-more { padding: 0 10px 10px; font-size: .85rem; }
@media (min-width: 900px) {
  .whats-grid { grid-template-columns: 230px 1fr; align-items: center; }
  .days { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
}

/* ---------------------------------------------------------------- stories */
.stories { padding: 30px 0; }
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.story-card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 4px; background: #c9d6e2; }
.story-cat { margin: .5rem 0 .1rem; color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; }
.story-title { font-size: 1rem; margin: 0 0 .25rem; }
.story-card p:last-child { color: var(--muted); font-size: .9rem; margin: 0; }
.story-grid .story-cta { grid-column: 1 / -1; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.story-main { min-width: 0; }
.story-carousel { list-style: none; margin: 0; padding: 0 0 .75rem; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.story-carousel .story-card { flex: 0 0 min(72%, 15rem); scroll-snap-align: start; }
.story-carousel:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.story-cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px; text-align: center; }
.story-cta h3 { margin: 0 0 .4rem; text-transform: uppercase; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .story-grid-wide { grid-template-columns: repeat(3, 1fr); }
  .story-grid .story-cta { grid-column: auto; align-self: start; }
  .story-layout { grid-template-columns: minmax(0, 1fr) 15rem; gap: 24px; align-items: start; }
  .story-carousel .story-card { flex-basis: 14.5rem; }
}

/* ---------------------------------------------------------------- support band */
.support-band { background: linear-gradient(var(--cream), var(--gold-soft)); padding: 32px 0; }
.support-grid { display: grid; gap: 24px; }
.support-col { text-align: center; }
.support-col h3 { margin: .4rem 0; text-transform: uppercase; font-size: 1.05rem; }
.support-icon { width: 36px; height: 36px; color: var(--red); }
.support-col:nth-child(3) .support-icon { color: var(--green); }
.support-col:nth-child(4) .support-icon { color: var(--blue); }
@media (min-width: 900px) {
  .support-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; align-items: center; }
  .support-col { border-left: 1px solid rgba(0, 0, 0, .12); padding: 0 12px; }
}

/* ---------------------------------------------------------------- sponsor strip */
.sponsors { background: #fff; border-top: 1px solid var(--line); padding: 20px 0 24px; }
.sponsors-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sponsors h2 { font-size: 1.1rem; margin: 0; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }
.strip { display: flex; overflow: hidden; margin-top: 12px; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.strip-track { list-style: none; margin: 0; padding: 0; display: flex; flex: none; align-items: center; gap: 40px; padding-right: 40px; animation: strip-scroll 40s linear infinite; }
.strip-item img { height: 56px; width: auto; }
.strip-item a { display: block; }
.strip-name { display: inline-block; font-weight: 700; color: var(--navy); font-size: 1.05rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); white-space: nowrap; }
.strip:hover .strip-track, .strip:focus-within .strip-track, .sponsors.is-paused .strip-track { animation-play-state: paused; }
@keyframes strip-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .strip { mask-image: none; }
  .strip-track { animation: none; flex-wrap: wrap; flex: 1; padding-right: 0; gap: 16px 32px; }
  .strip-clone, .strip-toggle { display: none; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #fff; padding: 28px 0 16px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer-name { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; margin-bottom: .4rem; }
.footer-heading { color: var(--gold); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .6rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links { columns: 2; }
.footer-links li { margin: 0 0 .3rem; }
.footer-links a { display: inline-block; padding: .25rem 0; }
.footer-contact li { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .6rem; }
.footer-contact .icon { margin-top: .2rem; }
.site-footer .todo-mark { background: #fff3bf; }
.social { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.social-link:hover { filter: brightness(1.12); transform: translateY(-2px); }
.social-facebook { background: #1877f2; }
.social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-linkedin { background: #0a66c2; }
.social-mail { background: #0078d4; }
.social-link .icon { width: 22px; height: 22px; }
.social-link.is-todo { opacity: .55; outline: 1px dashed #fff3bf; }
.newsletter label { display: block; margin-bottom: .4rem; }
.newsletter-row { display: flex; }
.newsletter-row input { flex: 1; min-width: 0; min-height: 44px; padding: .5rem .7rem; border: 2px solid #fff; border-radius: var(--radius) 0 0 var(--radius); font: inherit; }
.newsletter-row .btn { border-radius: 0 var(--radius) var(--radius) 0; border-color: #fff; }
.newsletter-status { font-size: .9rem; margin: .4rem 0 0; min-height: 1.2em; }
.legal { margin-top: 20px; font-size: .85rem; opacity: .9; text-align: center; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1fr .9fr 1.3fr 1.2fr; } }

/* ---------------------------------------------------------------- persistent player */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy); color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .25); border-top: 3px solid var(--gold);
}
.player[hidden] { display: none; }
.player-inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.player-toggle {
  flex: none; width: 48px; height: 48px; border-radius: var(--radius); border: 0; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; position: relative;
}
.player-toggle .icon { width: 26px; height: 26px; }
.player-toggle .icon-stop, .player[data-state="playing"] .player-toggle .icon-play, .player[data-state="connecting"] .player-toggle .icon-play { display: none; }
.player[data-state="playing"] .player-toggle .icon-stop { display: block; }
.player-spinner { display: none; position: absolute; inset: 8px; border: 3px solid rgba(29, 39, 51, .25); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; }
.player[data-state="connecting"] .player-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-info { flex: 1; min-width: 0; }
.player-info p { margin: 0; }
.player-station { font-weight: 800; }
.live-pill { display: inline-block; background: var(--red); color: #fff; font-size: .68rem; padding: 1px 6px; border-radius: 3px; text-transform: uppercase; vertical-align: .15em; margin-left: .25rem; }
.player-now { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-status { margin: 0; font-size: .88rem; flex-basis: 100%; order: 5; }
/* Keep the status region rendered (screen readers ignore live regions that appear from display:none); collapse it when empty. */
.player-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.player-retry { order: 4; }
.player-volume { display: none; }
.player-volume input { width: 110px; accent-color: var(--gold); }
@media (scripting: none) { .player { display: none; } }
@media (min-width: 900px) {
  .player:not([data-active]) { display: none; }
  .player-volume { display: block; }
  .player-status { flex-basis: auto; order: 0; }
}

/* ---------------------------------------------------------------- gentle fundraiser prompt */
.fund-prompt {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(var(--player-h) + 12px);
  background: #fff; color: var(--ink); border-radius: var(--radius); border-top: 4px solid var(--gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25); padding: 16px 48px 12px 16px; max-width: 380px;
}
.fund-prompt[hidden] { display: none; }
.fund-prompt h2 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--navy); }
.fund-prompt p { font-size: .92rem; }
.fund-prompt .fund-track { margin: 0 0 .7rem; }
.fund-prompt-actions { display: flex; align-items: center; gap: 12px; margin: 0; }
.fund-prompt-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
@media (min-width: 600px) { .fund-prompt { left: auto; right: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .fund-prompt:not([hidden]) { animation: slide-up .35s ease-out; }
}
@keyframes slide-up { from { transform: translateY(16px); opacity: 0; } }

/* ---------------------------------------------------------------- inner pages */
.page-head { background: var(--sky); padding: 24px 0 18px; border-bottom: 1px solid var(--line); }
.page-head h1 { color: var(--navy); font-size: 2rem; margin: 0 0 .5rem; }
.page-head p { margin-bottom: .5rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-body { padding-top: 24px; padding-bottom: 40px; }
.page-body h2 { color: var(--navy); }
.prose { max-width: 42rem; }
.breadcrumb ol { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.breadcrumb a[aria-current] { color: var(--ink); text-decoration: none; }
.link-list li { margin-bottom: .5rem; }
@media (min-width: 900px) { .page-head h1 { font-size: 2.5rem; } }

/* shows list */
.search-box { max-width: 36rem; margin-bottom: 20px; }
.search-box label { display: block; font-weight: 700; margin-bottom: .35rem; }
.search-row { display: flex; align-items: center; gap: 8px; border: 2px solid #687789; border-radius: var(--radius); padding: 0 10px; background: #fff; }
.search-row:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-row input { flex: 1; min-width: 0; border: 0; min-height: 46px; font: inherit; background: transparent; }
.search-row input:focus { outline: none; }
.search-status { color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }
.show-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.show-card { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.show-card img { width: 84px; height: 84px; border-radius: 4px; flex: none; }
.show-card-body { min-width: 0; }
.show-title { font-size: 1.15rem; margin: 0 0 .2rem; }
.show-host { color: var(--muted); margin: 0 0 .4rem; font-weight: 600; }
.show-airs { font-size: .9rem; color: var(--ink); }
.show-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.badge-onair { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: .75rem; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; }
.badge-onair[hidden] { display: none; }
.show-card.is-onair { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
@media (min-width: 760px) {
  .show-list { grid-template-columns: 1fr 1fr; }
  .show-card img { width: 120px; height: 120px; }
}
.show-detail { display: grid; gap: 24px; }
.show-detail > * { min-width: 0; overflow-wrap: anywhere; }
.show-detail-media img { width: 100%; max-width: 320px; border-radius: var(--radius); }
.airs-list { padding-left: 1.2rem; }
.tz { color: var(--muted); font-size: .9em; }
@media (min-width: 760px) { .show-detail { grid-template-columns: 320px 1fr; } }

/* schedule */
.week { display: grid; gap: 14px; }
.sched-day { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sched-day h2 { margin: 0; padding: 8px 12px; background: var(--blue); color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; }
.sched-day:nth-child(even) h2 { background: var(--green); }
.sched-day.is-today { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.sched-day.is-today h2 { background: var(--navy); }
.today-pill { background: var(--gold); color: var(--ink); font-size: .75rem; padding: 1px 8px; border-radius: 999px; }
.today-pill[hidden] { display: none; }
.sched-list { list-style: none; margin: 0; padding: 0; }
.sched-item { padding: 10px 12px; border-top: 1px solid var(--line); }
.sched-item:first-child { border-top: 0; }
.sched-item p { margin: 0; }
.sched-time { font-size: .85rem; color: var(--muted); font-weight: 600; }
.sched-show { font-weight: 700; }
.sched-host { font-size: .88rem; color: var(--muted); }
.sched-item.is-onair { background: #fdecea; box-shadow: inset 4px 0 0 var(--red); }
.sched-empty { padding: 10px 12px; margin: 0; color: var(--muted); }
.overnight { font-weight: 400; }
.sched-foot { margin-top: 20px; color: var(--muted); }
@media (min-width: 1000px) {
  .week { grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: start; }
  .sched-day h2 { font-size: .85rem; padding: 8px; }
  .sched-item { padding: 8px; }
}

/* live */
.live-grid { display: grid; gap: 28px; }
.live-help ul { padding-left: 1.2rem; }
@media (min-width: 900px) { .live-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* community + events */
.community-events, .community-live { margin-top: 36px; }
.event-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.event { border-left: 4px solid var(--gold); background: #fffdf7; padding: 12px 14px; border-radius: 0 var(--radius) var(--radius) 0; }
.event-date { margin: 0 0 .2rem; font-weight: 700; color: var(--navy); }
.event-time { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.event-title { margin: 0 0 .3rem; font-size: 1.15rem; }
.event-loc { color: var(--muted); font-size: .92rem; margin-bottom: .3rem; }
.past-events { margin: 20px 0; }
.past-events summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.past-events .event { opacity: .85; border-left-color: var(--line); }
.story { max-width: 46rem; }
.story-img { width: 100%; border-radius: var(--radius); margin-bottom: 1rem; }

/* about */
.about { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.about-body { min-width: 0; }
.toc { background: var(--sky); border-radius: var(--radius); padding: 14px 16px; align-self: start; }
.toc-title { font-weight: 800; margin-bottom: .4rem; }
.toc ul { margin: 0; padding-left: 1.1rem; }
.toc li { margin: .2rem 0; }
.about-body section { margin-bottom: 28px; }
.team-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.person { margin: 0; }
.person-open { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; width: 100%; height: 100%; padding: 20px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; color: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
button.person-open:hover, button.person-open:focus-visible { border-color: var(--blue); box-shadow: 0 6px 18px rgba(15, 58, 107, .16); transform: translateY(-2px); }
.person-open.is-static { cursor: default; }
.person-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
.person-initials { display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 2rem; letter-spacing: .02em; }
.person-head { display: flex; flex-direction: column; gap: 2px; }
.person-name { font-weight: 800; font-size: 1.1rem; margin: 0; color: var(--blue); display: block; }
.person-role { color: var(--green); font-weight: 700; margin: 0; font-size: .92rem; display: block; }
.person-more { margin-top: 6px; font-size: .85rem; font-weight: 700; color: var(--blue); text-decoration: underline; }
.person-bio { margin: .6rem 0 0; line-height: 1.6; }
.person-dialog { width: min(92vw, 40rem); max-height: 88vh; border: 0; border-radius: 10px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--ink); }
.person-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.person-dialog-inner { display: grid; grid-template-columns: 1fr; gap: 16px; justify-items: center; text-align: center; margin-bottom: 18px; }
.person-dialog .person-photo { width: 120px; height: 120px; }
.person-dialog form { text-align: center; margin: 0; }
@media (min-width: 640px) { .person-dialog-inner { grid-template-columns: 120px 1fr; justify-items: start; text-align: left; gap: 22px; } .person-dialog form { text-align: right; } }
@media (scripting: none) {
  .person-open { cursor: default; }
  .person-more { display: none; }
  .person-dialog { display: block; position: static; width: auto; box-shadow: none; padding: 8px 0 0; }
  .person-dialog form, .person-dialog .person-photo, .person-dialog .person-name, .person-dialog .person-role { display: none; }
  .person { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .about { grid-template-columns: 220px minmax(0, 1fr); } .toc { position: sticky; top: 223px; } }

/* support + contact */

.support-section { padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.support-section:last-child { border-bottom: 0; }
.section-icon { width: 1.1em; height: 1.1em; color: var(--red); }
.nonprofit { border-left: 3px solid var(--line); padding-left: 10px; }
.contact-page { display: grid; gap: 32px; }
.contact-details .footer-contact a { color: var(--blue); }
.contact-page .form-section { border-top: 1px solid var(--line); padding-top: 24px; }

/* forms */
.form { max-width: 36rem; display: grid; gap: 14px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .3rem; }
.req { font-weight: 400; color: var(--muted); font-size: .9em; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; min-height: 46px; padding: .55rem .7rem; border: 2px solid #687789; border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-hint { margin: 0 0 .3rem; font-size: .9rem; color: var(--muted); }
.field-error { margin: .3rem 0 0; color: var(--red); font-weight: 700; font-size: .92rem; }
.field-error::before { content: "⚠ "; }
.field-choices { border: 0; padding: 0; margin: 0; }
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.choices li { display: flex; align-items: center; gap: .5rem; min-height: 40px; }
.choices input { width: 22px; height: 22px; accent-color: var(--blue); }
.choices label { font-weight: 400; margin: 0; }
.form-errors { border: 2px solid var(--red); border-radius: var(--radius); padding: 10px 14px; background: #fdecea; }
.form-errors h3, .form-errors p { margin: 0 0 .3rem; font-size: 1rem; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.is-error { color: var(--red); }
.form-success { border: 2px solid var(--green); background: #eef7ef; border-radius: var(--radius); padding: 14px 16px; }
.form-success p { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button[type="submit"] { justify-self: start; }

/* ---------------------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-img { transition: none; }
}

/* Community photo gallery */
.community-gallery { margin-top: 40px; }
.gallery-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery-grid a { display: block; }
.gallery-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: 6px; background: #e8eef7; }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.footer-logo { display: block; width: 140px; height: 140px; border-radius: 50%; margin: 0 0 12px; background: #fff; }
.sponsors-static .strip { mask-image: none; justify-content: center; }
.sponsors-static .strip-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 20px 64px; padding-right: 0; }
.sponsors-static .strip-item img { height: 96px; }
.sponsors-static .sponsors-head { justify-content: center; text-align: center; }
@media (min-width: 960px) { .logo-img { width: 140px; height: 140px; } }
.onair-now { margin: 6px 0 0; font-size: .9rem; font-weight: 700; color: var(--gold); }

/* ------------------------------------------------------------------ community alert banner */
.alert-bar { display: flex; align-items: stretch; gap: .75rem; background: #a8231c; color: #fff; font-weight: 700; position: relative; z-index: 40; }
.alert-label { margin: 0; padding: .55rem .9rem; background: var(--gold); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; display: flex; align-items: center; flex: none; }
.alert-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.alert-track { display: flex; width: max-content; animation: alert-scroll var(--alert-secs, 30s) linear infinite; }
.alert-list { display: flex; flex: none; margin: 0; padding: 0 0 0 0; list-style: none; }
.alert-list li { white-space: nowrap; padding: .55rem 0; }
.alert-list li::after { content: "\2022"; margin: 0 1.75rem; opacity: .7; }
.alert-list a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.alert-list a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.alert-pause { flex: none; margin: .3rem .6rem .3rem 0; padding: 0 .9rem; min-height: 44px; border: 1px solid #fff; border-radius: var(--radius); background: transparent; color: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.alert-pause:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.alert-pause[hidden] { display: none; }
.alert-bar:hover .alert-track, .alert-bar:focus-within .alert-track, .alert-bar.is-paused .alert-track { animation-play-state: paused; }
@keyframes alert-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* People who ask for less motion get the message as plain, wrapping text. */
@media (prefers-reduced-motion: reduce) {
  .alert-track { animation: none; width: auto; }
  .alert-viewport { overflow: visible; }
  .alert-list { flex-wrap: wrap; padding: .35rem 0; }
  .alert-list li { white-space: normal; padding: .2rem 0; }
  .alert-list[aria-hidden="true"], .alert-pause { display: none; }
}
@media print { .alert-bar { display: none; } }

/* ------------------------------------------------------------------ community photo grid (About) */
.photo-grid { list-style: none; margin: 1rem 0 .5rem; padding: 0 0 .75rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; overscroll-behavior-x: contain; scrollbar-width: thin; }
.photo-grid li { flex: 0 0 min(84%, 19rem); scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.photo-grid .photo-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid .photo-cap { padding: .6rem .75rem .8rem; font-size: .9rem; line-height: 1.35; color: var(--ink); }
.photo-grid:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gallery { position: relative; margin: 0 0 2rem; }
.gallery-btn { position: absolute; top: calc(50% - 1.5rem); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--blue); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.gallery-btn:hover { background: var(--blue); color: #fff; }
.gallery-btn[hidden] { display: none; }
.gallery-prev { left: -10px; } .gallery-next { right: -10px; }
.gallery-count { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
@media (min-width: 960px) { .photo-grid li { flex-basis: 20rem; } }
@media (prefers-reduced-motion: reduce) { .photo-grid { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ valley weather (Community) */
.valley-weather { margin: 2rem 0; }
.wx-list { list-style: none; margin: 1rem 0 .5rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); }
.wx-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.wx-name { font-weight: 800; color: var(--blue); text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.wx-temp { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.wx-short { font-size: .95rem; }
.wx-wind { font-size: .85rem; color: #4a5766; }

/* City updates (Community page) */
.city-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.city-feed ul { list-style: none; margin: 0; padding: 0; }
.city-feed li { padding: .75rem 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.city-feed time { display: block; font-size: .875rem; opacity: .75; }
.city-feed p { margin: .35rem 0 0; }
.person-dialog .person-bio { text-align: left; }
html:has(.person-dialog[open]) { overflow: hidden; }
.nw { white-space: nowrap; }
@media (max-width: 399px) { .brand-tagline { display: block; } .brand-tagline .tl-2 { display: none; } }
@media (min-width: 900px) { .support-grid { align-items: stretch; } .support-col { display: flex; flex-direction: column; align-items: center; } .support-col .btn { margin-top: auto; } }

/* Supporters + social bar above the logo row */
.header-extras { background: #f4f7fa; border-bottom: 1px solid var(--line); }
.header-extras-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 24px; padding-block: 6px; }
.hx-sponsors { display: flex; align-items: center; gap: 10px; min-width: 0; justify-self: start; }
.hx-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #555); white-space: nowrap; }
.hx-sponsors ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hx-sponsors img { height: 32px; width: auto; display: block; }
.header-extras .social { margin: 0; justify-content: center; }
@media (max-width: 759px) {
  .header-extras-in { grid-template-columns: 1fr; justify-items: center; }
  .hx-sponsors { justify-self: center; flex-wrap: wrap; justify-content: center; }
  .hx-sponsors img { height: 26px; }
  .hx-spacer { display: none; }
}
/* Header row: brand and Listen live centered together on wide screens; NW Eclectic a bit larger */
.brand-tagline .tl-1 { font-size: 1.12em; letter-spacing: .08em; }
@media (min-width: 960px) {
  .header-top { justify-content: center; gap: 28px; }
  .logo { margin-right: 0; }
  .brand-tagline .tl-1 { font-size: 1.3em; }
}
.hx-sponsors img { height: 44px; }
.header-extras .social-link { width: 36px; height: 36px; }
.header-extras .social-link svg { width: 18px; height: 18px; }
@media (max-width: 759px) { .hx-sponsors img { height: 36px; } }

/* Bolder logo: larger at every size. The header scrolls away (not sticky) so the bigger logo never covers the page. */
.site-header { position: relative; }
html { scroll-padding-top: 16px; }
@media (min-width: 960px) { html { scroll-padding-top: 16px; } .toc { top: 16px; } }
.logo-img { width: 80px; height: 80px; }
@media (min-width: 560px) { .logo-img { width: 104px; height: 104px; } }
@media (min-width: 960px) { .logo-img { width: 150px; height: 150px; } }
/* Logo shifted to the left: logo, name and Listen live start at the left edge on wide screens */
@media (min-width: 960px) { .header-top { justify-content: flex-start; gap: 32px; } }
@media (min-width: 960px) { .logo-img { margin-left: -6px; } }

/* Social icons sit directly above Listen live, centered over it (wide screens); in the top bar on small screens */
.header-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.header-cta .social { display: none; margin: 0; justify-content: center; }
.header-cta .social-link { width: 36px; height: 36px; }
.header-cta .social-link svg { width: 18px; height: 18px; }
@media (min-width: 960px) {
  .header-cta .social { display: flex; }
  .hx-social { display: none; }
  .header-extras-in { grid-template-columns: 1fr; }
  .header-top { justify-content: flex-start; gap: 0; }
  .logo { margin-right: auto; gap: 28px; }
  .logo-img { width: 190px; height: 190px; margin-left: -6px; }
}

/* Logo file is now cropped tight to the artwork (not square), so size it by height */
.logo-img { width: auto; height: 72px; margin-left: 0; }
@media (min-width: 560px) { .logo-img { width: auto; height: 100px; } }
@media (min-width: 960px) { .logo-img { width: auto; height: 190px; margin-left: 0; } }
.footer-logo { width: auto; height: 140px; border-radius: 10px; padding: 6px; }

/* Fill the header on wide screens: bigger logo and name, tighter spacing */
@media (min-width: 960px) {
  .header-top { padding-top: 6px; padding-bottom: 0; }
  .logo { gap: 20px; }
  .logo-img { height: 220px; }
  .brand-name { font-size: 3.4rem; }
  .brand-tagline .tl-1 { font-size: 1.9rem; }
  .brand-tagline .tl-2 { font-size: 1.05rem; }
  .brand-tagline { margin-top: 4px; }
  .header-cta .social-link { width: 44px; height: 44px; }
  .header-cta .social-link svg { width: 22px; height: 22px; }
  .header-listen { font-size: 1.15rem; padding: .9rem 1.8rem; }
  .site-nav ul { padding-top: 0; }
  .site-nav a { padding-top: .35rem; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .logo-img { height: 170px; }
  .brand-name { font-size: 2.3rem; }
  .brand-tagline .tl-1 { font-size: 1.4rem; }
  .brand-tagline .tl-2 { font-size: .85rem; }
  .header-top { gap: 12px; }
}

/* Supporters bar: more prominent */
.header-extras { background: #eef3f8; border-bottom: 2px solid var(--blue); }
.header-extras-in { padding-block: 10px; }
.hx-label { font-size: .95rem; color: var(--blue); letter-spacing: .1em; }
.hx-sponsors { gap: 18px; }
.hx-sponsors ul { gap: 28px; }
.hx-sponsors img { height: 56px; }
@media (min-width: 960px) {
  .header-extras-in { grid-template-columns: 1fr; justify-items: center; }
  .hx-sponsors { justify-self: center; }
  .hx-sponsors img { height: 72px; }
  .hx-label { font-size: 1.1rem; }
}
@media (max-width: 759px) { .hx-sponsors img { height: 48px; } .hx-label { font-size: .85rem; } }

/* Supporters now live only in the strip at the bottom; 4Culture larger there */
.header-extras { background: #fff; border-bottom: 0; }
.header-extras-in { padding-block: 8px; }
@media (min-width: 960px) { .header-extras { display: none; } }
.hx-social { display: block; }
.sponsors-static .strip-4culture img { height: 160px; }
@media (max-width: 599px) { .sponsors-static .strip-4culture img { height: 110px; } }

/* Supporters live only in the strip at the bottom, made prominent; 4Culture largest */
.header-extras { background: #fff; border-bottom: 0; }
.header-extras-in { padding-block: 8px; }
@media (min-width: 960px) { .header-extras { display: none; } }
.hx-social { display: block; }
.sponsors { padding-block: 2.5rem; }
.sponsors-head h2 { font-size: 1.6rem; }
.sponsors-static .strip-item img { height: 120px; }
.sponsors-static .strip-4culture img { height: 190px; }
@media (max-width: 599px) { .sponsors-static .strip-item img { height: 90px; } .sponsors-static .strip-4culture img { height: 130px; } .sponsors-head h2 { font-size: 1.3rem; } }
/* Logo: bigger, no extra room above or below */
@media (min-width: 960px) { .header-top { padding-top: 0; } .logo-img { height: 250px; } }
@media (min-width: 960px) and (max-width: 1199px) { .logo-img { height: 190px; } }

/* Nav links start under "Valley 104.9 FM" (the name), not under the logo, on wide screens */
@media (min-width: 960px) {
  :root { --logo-h: 250px; }
  .site-nav ul { padding-left: calc(16px + var(--logo-h) * 0.902 + 20px); }
}
@media (min-width: 960px) and (max-width: 1199px) { :root { --logo-h: 190px; } }
/* Nav starts at the logo's right edge (just left of "Valley"); its natural width ends under Listen live */
@media (min-width: 960px) { .site-nav ul { padding-left: calc(16px + var(--logo-h) * 0.902); } }
@media (min-width: 960px) { .header-top { padding-top: 10px; } }
@media (min-width: 960px) { .header-top { padding-top: 18px; } }

/* Wide screens: name and green lines sit a little further right of the logo */
@media (min-width: 960px) { .brand { margin-left: 36px; } }
/* Phones: name on one line, smaller social icons */
@media (max-width: 959px) {
  .header-extras .social { gap: 6px; }
  .header-extras .social-link { width: 30px; height: 30px; }
  .header-extras .social-link svg { width: 15px; height: 15px; }
  .header-extras-in { padding-block: 5px; }
}
@media (max-width: 559px) {
  .header-top { gap: 6px; }
  .logo { gap: 6px; }
  .logo-img { height: 62px; }
  .brand-name { white-space: nowrap; font-size: clamp(.74rem, 3.6vw, .92rem); letter-spacing: 0; }
  .brand-tagline .tl-1 { font-size: .72rem; }
  .header-listen { padding: .5rem .65rem; }
  .menu-toggle { min-width: 0; padding: .4rem .5rem; }
  .menu-label { font-size: .8rem; }
}
@media (max-width: 559px) { .brand-tagline .tl-1 { white-space: nowrap; } }
/* Phones and tablets: social icons smaller and to the right of the top bar */
@media (max-width: 959px) {
  .header-extras .social { justify-content: flex-end; gap: 5px; }
  .header-extras .social-link { width: 26px; height: 26px; }
  .header-extras .social-link svg { width: 13px; height: 13px; }
}
/* Social icons are not shown at the top on phones/tablets (they stay in the footer; on wide screens they sit above Listen live) */
.header-extras { display: none !important; }
/* Phones: bigger logo (the top bar is gone so there is room); Menu shows just its icon on narrow screens */
@media (max-width: 559px) { .logo-img { height: 88px; } }
@media (max-width: 420px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { min-width: 44px; padding: .4rem; }
}
@media (max-width: 359px) { .logo-img { height: 72px; } }

/* Recordings (archive) */
.view-tabs { display: flex; gap: 0; margin: 0 0 1.25rem; border: 1px solid var(--blue); border-radius: var(--radius); overflow: hidden; width: fit-content; max-width: 100%; }
.view-tab { padding: .6rem 1.1rem; font-weight: 700; text-decoration: none; color: var(--blue); background: #fff; }
.view-tab[aria-current="page"] { background: var(--blue); color: #fff; }
.episode-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 14px; }
.episode { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.episode-show { margin: 0 0 .1rem; font-size: 1.1rem; }
.episode-date { margin: 0 0 .6rem; color: var(--muted); font-size: .92rem; }
.episode-audio { width: 100%; display: block; }
.episode-empty { padding: 1rem; background: #f4f7fa; border-radius: var(--radius); }
.show-archive { margin: 2rem 0 1.5rem; scroll-margin-top: 16px; }
.show-archive h2 { margin-bottom: .25rem; }
@media (min-width: 760px) { .episode-list { grid-template-columns: 1fr 1fr; } }

/* Sticky menu bar: the big header scrolls away, the menu (with Listen live) stays at the top */
.site-header { border-bottom: 0; }
.site-nav { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.admin-bar .site-nav { top: 32px; }
.nav-listen-item { display: none; }
@media (min-width: 960px) {
  .site-nav ul { align-items: center; }
  .site-nav.is-stuck .nav-listen-item { display: block; margin-left: auto; }
  .nav-listen { padding: .45rem 1.1rem; }
  html { scroll-padding-top: 64px; }
  .toc { top: 72px; }
}
.site-nav a.nav-listen { display: inline-flex; align-items: center; gap: .4rem; color: #fff; border-bottom: 0; padding: .45rem 1.1rem; font-size: .88rem; }
.site-nav a.nav-listen:hover { color: #fff; }
@media (min-width: 960px) {
  .site-nav ul { flex-wrap: nowrap; transition: padding-left .15s ease; }
  .site-nav.is-stuck ul { padding-left: 16px; }
}

/* Editable pages: sections use the full width; plain text stays a comfortable reading width */
.editable-page .prose { max-width: none; }
.editable-page .prose > p, .editable-page .prose > h1, .editable-page .prose > h2, .editable-page .prose > h3, .editable-page .prose > ul, .editable-page .prose > ol, .editable-page .prose > blockquote { max-width: 46rem; }
.editable-page .prose > h2, .editable-page .prose > h3 { margin-top: 1.6rem; }
.editable-page .prose img, .editable-page .wp-block-image img { max-width: 100%; height: auto; border-radius: 4px; }
.editable-page .wp-block-image { margin: 1rem 0; }
.editable-page .wp-block-columns { display: grid; gap: 1.5rem; margin: 1rem 0; }
@media (min-width: 760px) { .editable-page .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.editable-page .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.editable-page .wp-block-button__link { display: inline-block; padding: .7rem 1.2rem; background: var(--blue); color: #fff; border-radius: var(--radius); font-weight: 700; text-decoration: none; }

/* Review fixes: keep content clear of the fixed player bar; larger tap targets; spacing */
body { padding-bottom: var(--player-h, 0px); }
@media (min-width: 960px) { .site-nav a { padding-block: .75rem .8rem; } }
.footer-links a, .footer-contact a { display: inline-block; padding-block: .5rem; }
.day-more, .sched-show a, .whats-on .day-shows a { display: inline-block; padding-block: .45rem; }
.show-actions { margin-bottom: 1rem; }

/* About: the station in photos (dated timeline) */
.history-grid { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.history-item figure { margin: 0; }
.history-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; background: #c9d6e2; }
.history-item figcaption { margin-top: .4rem; font-size: .9rem; line-height: 1.35; color: var(--ink); }
.history-date { display: block; font-weight: 700; color: var(--blue); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

/* Supporters: wide wordmarks keep a sensible width; footer credit */
.sponsors-static .strip-item img { max-width: min(300px, 78vw); object-fit: contain; }
.sponsors-static .strip-compass img { height: auto; width: 240px; }
.sponsors-static .strip-cedarcrest-football img { height: 130px; }
.site-credit { margin: .2rem auto 1rem; text-align: center; color: #dbe6f3; font-size: .85rem; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.credit-badge { display: inline-flex; align-items: center; background: #fff; border-radius: 6px; padding: 4px 10px; }
.credit-badge img { height: 24px; width: auto; display: block; }
/* Supporters strip: the logo row wraps inside the page (4 logos were wider than a phone) */
.sponsors-static .strip { display: block; }
.sponsors-static .strip-track { flex: 1 1 100%; min-width: 0; width: auto; max-width: 100%; }
