/* vk6.net: the hub theme, from the vk6.net logo (navy, teal, gold), with an audio-app player.
   Light, calm pages with colour-coded card headers. Red is kept for "live" only.
   Fonts from Google Fonts: Inter Tight (headlines) and Inter (text). No serif fonts. */

/* Palette from the vk6.net logo: navy ink, teal for actions and links, gold highlight. Red stays for "on air now" only.
   Light by default; dark follows the device, and the header switch (data-mode on <html>) overrides either way. */
:root {
  --ink: #0d1b33;
  --ink-2: #33425a;
  --muted: #5e6b80;
  --paper: #ffffff;        /* panels, header */
  --bg: #f2f5f8;           /* page background */
  --tint: #e3f3f7;         /* pale teal */
  --wash: #f4f6f9;         /* quiet background for side panels and bands */
  --line: #dfe5ec;
  --navy: #011d43;
  --accent: #0b7890;       /* teal, deep enough for white text */
  --accent-hover: #08627a;
  --on-accent: #fff;       /* text and icons on accent fills */
  --gold: #e7ae4a;
  --coral: #d4573b;
  --green: #2f7d4a;
  --red: #cf0a0a;          /* live / on air only */
  --yellow: #ffd60a;
  --night: #011d43;        /* footer */
  --night-2: #0b2a5a;
  --link: #0b7890;
  --radius: 10px;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --ink: #eef2f6; --ink-2: #c9d3de; --muted: #97a4b5; --paper: #121a26; --bg: #0b111a; --tint: #10283a;
    --wash: #162131; --line: #253246; --navy: #24406b; --accent: #2fc0de; --accent-hover: #5fd2ea; --on-accent: #06202b;
    --link: #7fd6ea; --night: #070c14; --night-2: #121a26; color-scheme: dark;
  }
}
:root[data-mode="dark"] {
  --ink: #eef2f6; --ink-2: #c9d3de; --muted: #97a4b5; --paper: #121a26; --bg: #0b111a; --tint: #10283a;
  --wash: #162131; --line: #253246; --navy: #24406b; --accent: #2fc0de; --accent-hover: #5fd2ea; --on-accent: #06202b;
  --link: #7fd6ea; --night: #070c14; --night-2: #121a26; color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink); background: var(--bg); font-optical-sizing: auto; }
img, svg, iframe { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 0.45em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p, ul, ol, dl { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--wash); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 4px; word-break: break-all; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }
.small { font-size: 0.88rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* Preview notice */
.preview-bar { background: var(--wash); color: var(--ink-2); border-bottom: 1px solid var(--line); text-align: center; font-size: 0.8rem; padding: 6px 12px; }
.preview-bar::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 2px rgb(255 214 10 / 35%); }
.preview-bar a { color: inherit; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 42px; width: auto; flex-shrink: 0; }
.logo-dark { display: none; }
:root[data-mode="dark"] .logo-light { display: none; } :root[data-mode="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .logo-light { display: none; } :root:not([data-mode="light"]) .logo-dark { display: block; } }
.brand-text { display: grid; line-height: 1.3; padding-left: 12px; border-left: 1px solid var(--line); font-size: 0.74rem; color: var(--muted); }
.brand-text span:first-child { color: var(--ink-2); font-weight: 600; }

.menu-toggle { display: none; margin-left: auto; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; font: 600 0.95rem var(--sans); }
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.nav-top, .nav-group > summary { display: block; white-space: nowrap; padding: 8px 11px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.94rem; cursor: pointer; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); opacity: 0.6; }
.nav-top:hover, .nav-group > summary:hover, .nav-group[open] > summary { color: var(--ink); background: var(--wash); }
.nav-top.current, .nav-group > summary.current { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-group ul { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgb(0 0 0 / 10%); }
.nav-group ul a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.nav-group ul a:hover, .nav-group ul a[aria-current] { background: var(--wash); color: var(--link); }
.nav-cta { display: block; margin-left: 10px; padding: 8px 14px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.nav-cta:hover { background: var(--accent-hover); }
.nav-cta { color: var(--on-accent); white-space: nowrap; }
/* Light/dark switch, inline at the end of the menu */
.mode-switch { display: flex; gap: 2px; margin-left: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; }
.mode-switch span { width: 24px; height: 24px; border-radius: 50%; display: block; position: relative; }
.mode-switch .sun { background: var(--tint); }
.mode-switch .sun::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgb(231 174 74 / 30%); }
.mode-switch .moon::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; box-shadow: inset -4px -3px 0 0 var(--muted); }
:root[data-mode="dark"] .mode-switch .sun { background: none; } :root[data-mode="dark"] .mode-switch .moon { background: var(--tint); } :root[data-mode="dark"] .mode-switch .moon::after { box-shadow: inset -4px -3px 0 0 var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .mode-switch .sun { background: none; } :root:not([data-mode="light"]) .mode-switch .moon { background: var(--tint); } :root:not([data-mode="light"]) .mode-switch .moon::after { box-shadow: inset -4px -3px 0 0 var(--gold); } }
.mode-switch:hover { border-color: var(--ink-2); }

@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgb(0 0 0 / 8%); max-height: calc(100vh - 72px); overflow: auto; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 18px 18px; }
  .nav-top.current, .nav-group > summary.current { box-shadow: none; color: var(--link); }
  .nav-group ul { position: static; box-shadow: none; border: 0; padding: 0 0 6px 12px; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .brand { min-width: 0; gap: 10px; }
  .brand-logo { height: 34px; }
  .brand-text span { display: none; }
  .menu-toggle { flex-shrink: 0; }
}

/* Buttons */
.button { display: inline-block; padding: 11px 20px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 0.97rem; text-decoration: none; border: 1px solid var(--accent); line-height: 1.2; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.ghost, .button.ghost-light { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover, .button.ghost-light:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Kickers and section titles */
.kicker, .eyebrow { font: 600 0.8rem/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8em; }
.eyebrow a, .kicker a { color: inherit; }
.section-title { font-size: 1.35rem; padding-top: 14px; border-top: 2px solid var(--ink); margin-bottom: 18px; }
.section { padding-block: 28px; }

/* Home: one two-column page */
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 5vw, 64px); padding-block: clamp(36px, 5vw, 64px) 24px; align-items: start; }
.home-layout h1 { max-width: 16ch; }
.home-layout .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 28px; }
.home-side { display: grid; gap: 16px; }
.lead-notes { margin-top: 26px; }
.lead-notes .notes { font-size: 1.04rem; }
.more { font-weight: 600; }
.more a { text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 920px) { .home-layout { grid-template-columns: 1fr; } }

/* Page heads */
.page-head { background: var(--paper); padding: clamp(32px, 5vw, 56px) 0 clamp(22px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 0.3em; }
.page-head .lede, .page-head .lede p { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 0; }
.page-head .lede p + p { margin-top: 0.6em; }
.page-body { display: grid; gap: 40px; padding-top: 36px; padding-bottom: 64px; }
.page-body.has-aside { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.page-aside { display: grid; gap: 18px; position: sticky; top: 92px; }
@media (max-width: 900px) { .page-body.has-aside { grid-template-columns: 1fr; } .page-aside { position: static; } }

/* Long-form text */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.5em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 0 0 1.3em; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); font-size: 1.08rem; color: var(--ink-2); }
.prose blockquote p { margin: 0; }

/* Cards: quiet panels, no shadows */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 1px 2px rgb(16 24 40 / 4%); }
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 1.2rem; }
.card h2 a { color: inherit; text-decoration: none; }
.card-links { font-size: 0.94rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.notice { background: var(--wash); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); color: var(--ink-2); margin-right: 6px; }
.tag-red { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Card headers: a colour bar per kind of card (home, side panels) */
.card > h2:first-child { margin: -20px -22px 14px; padding: 12px 22px; background: var(--bar, var(--navy)); color: #fff; font-size: 1.1rem; border-radius: var(--radius) var(--radius) 0 0; }
.card > h2:first-child a { color: inherit; }
.card[aria-labelledby="cb-heading"] { --bar: var(--accent); }
.card[aria-labelledby="support-heading"] { --bar: var(--coral); }
.card[aria-labelledby="sub-heading"] { --bar: var(--navy); }
.card.deadlines { --bar: var(--green); }
:root[data-mode="dark"] .card[aria-labelledby="cb-heading"] > h2:first-child { color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .card[aria-labelledby="cb-heading"] > h2:first-child { color: var(--on-accent); } }
.card.on-air { border-top: 5px solid var(--red); }

/* Next broadcast */
.on-air .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.on-air h2 { font-size: 1.3rem; margin-bottom: 0.2em; }
.on-air .muted { font-size: 0.93rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex-shrink: 0; }
.on-air.is-live .live-dot { background: var(--red); animation: pulse 1.6s infinite; }
.on-air.is-live .eyebrow { color: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(207 10 10 / 50%); } 70% { box-shadow: 0 0 0 9px rgb(207 10 10 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(207 10 10 / 0%); } }
.freqs { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.freqs li { display: grid; grid-template-columns: 7.2em auto 1fr; align-items: baseline; column-gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.freqs strong { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.freqs span { font-weight: 600; font-size: 0.9rem; }
.freqs small { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 420px) { .freqs li { grid-template-columns: auto 1fr; } .freqs small { grid-column: 1 / -1; } }

/* Player: a light panel with the audio-app controls */
.player-panel { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 6px 20px rgb(16 24 40 / 5%); scroll-margin-top: 96px; }
.pp-art { width: 120px; aspect-ratio: 1; border-radius: 10px; background: var(--tint); display: grid; place-items: center; }
.pp-art img { width: 84%; height: auto; }
.pp-kicker { font: 600 0.76rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.pp-title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 14px; color: var(--ink); }
.pp-title a { color: inherit; text-decoration: none; }
.pp-title a:hover { text-decoration: underline; }
.player-panel audio { width: 100%; margin-bottom: 8px; }
.pp-controls { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.pp-controls button { font: 600 0.82rem var(--sans); color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.pp-skip, .pp-speed { height: 36px; min-width: 46px; padding: 0 10px; }
.pp-skip:hover, .pp-speed:hover { border-color: var(--ink-2); color: var(--ink); }
.pp-play { width: 52px; height: 52px; background: var(--accent) !important; border-color: var(--accent) !important; display: grid; place-items: center; }
.pp-play:hover { background: var(--accent-hover) !important; }
.pp-icon { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--on-accent); margin-left: 4px; }
.is-playing .pp-icon { width: 14px; height: 18px; border: 0; margin: 0; background: linear-gradient(90deg, var(--on-accent) 0 5px, transparent 5px 9px, var(--on-accent) 9px 14px); }
.pp-track { min-width: 0; }
.pp-track input[type=range] { width: 100%; height: 4px; margin: 10px 0 6px; appearance: none; background: linear-gradient(90deg, var(--accent) var(--pos, 0%), var(--line) var(--pos, 0%)); border-radius: 999px; cursor: pointer; }
.pp-track input[type=range]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--accent); }
.pp-track input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); }
.pp-times { display: flex; justify-content: space-between; font: 500 0.76rem var(--mono); color: var(--muted); }
.pp-links { margin: 12px 0 0; font-size: 0.86rem; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pp-links a { color: var(--link); }
@media (max-width: 620px) {
  .player-panel { grid-template-columns: 1fr; gap: 14px; }
  .pp-art { display: none; }
  .pp-controls { grid-template-columns: auto auto auto 1fr; }
  .pp-track { grid-column: 1 / -1; grid-row: 2; }
  .pp-speed { justify-self: end; }
}

/* Episode notes */
.notes { padding-left: 1.1em; }
.notes li { margin-bottom: 0.4em; }
.notes li::marker { color: var(--accent); }
.notes .t { font: 500 0.82rem var(--mono); color: var(--muted); margin-right: 4px; }
.notes button.t { background: none; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--link); cursor: pointer; }
.notes button.t:hover { border-color: var(--link); }
.notes li.seekable { cursor: pointer; }
.notes li.seekable:hover { color: var(--link); }
.notes li.seekable:hover button.t { border-color: var(--link); }
.notes li.current, .notes li.cued { color: var(--link); }
.notes li.current > button.t, .notes li.cued > button.t { border-color: var(--link); background: color-mix(in srgb, var(--link) 12%, transparent); }
.notes button.share { background: none; border: 0; padding: 2px 4px; margin-left: 2px; color: var(--muted); cursor: pointer; vertical-align: -2px; opacity: 0.55; border-radius: 4px; }
.notes li:hover > button.share, .notes button.share:focus-visible { opacity: 1; }
.notes button.share:hover { color: var(--link); }
.notes button.share.copied { opacity: 1; color: var(--link); }
.notes button.share.copied::after { content: " Link copied"; font: 500 0.78rem var(--mono); }
.pp-cue { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--link); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.pp-cue:hover { filter: brightness(1.1); }

/* Tiles: an editorial index, not boxes */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 32px; }
.tiles a { display: grid; gap: 2px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tiles strong { font-family: var(--display); font-size: 1.18rem; font-weight: 600; }
.tiles span { color: var(--muted); font-size: 0.92rem; }
.tiles a:hover strong { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.thanks .prose { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }

/* Posts */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list a { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-list time { font-size: 0.82rem; color: var(--muted); }
.post-list strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.post-list span { color: var(--ink-2); }
.post-list a:hover strong { color: var(--link); }

/* Listen */
.listen-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 48px); padding-top: 36px; align-items: start; }
@media (max-width: 900px) { .listen-grid { grid-template-columns: 1fr; } }
.sub-buttons { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sub-buttons .button { padding: 9px 14px; font-size: 0.9rem; }
.archive { padding-block: 44px 72px; }
.archive-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; border-top: 2px solid var(--ink); padding-top: 14px; }
.archive-head h2 { font-size: 1.35rem; margin: 0; }
.archive-tools { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 460px; justify-content: flex-end; }
.archive-tools input, .archive-tools select { font: inherit; font-size: 0.95rem; padding: 9px 13px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.archive-tools input { flex: 1 1 260px; max-width: 420px; }
.year { border-bottom: 1px solid var(--line); }
.year > summary { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.year > summary::-webkit-details-marker { display: none; }
.year > summary::before { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; align-self: center; margin-right: 4px; }
.year[open] > summary::before { transform: rotate(45deg); }
.year-label { font: 700 1.3rem var(--display); }
.year-count { color: var(--muted); font-size: 0.9rem; }
.archive-foot { margin-top: 18px; }
.no-results { padding: 18px 0; color: var(--ink-2); }
.episode-list { list-style: none; padding: 0; margin: 0 0 8px; }
.episode-list > li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.episode-list h3 { font-size: 1.02rem; margin: 0; }
.ep-topics { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode-list h3 a { color: inherit; text-decoration: none; }
.episode-list h3 a:hover { color: var(--link); text-decoration: underline; }
.episode-list .notes { font-size: 0.94rem; margin-bottom: 0.3em; }
.play { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--accent); font-size: 0.85rem; cursor: pointer; }
.play:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pager { display: flex; justify-content: space-between; margin-top: 28px; font-weight: 600; }
.transcript { margin-top: 20px; }

/* Schedule */
.schedule-group { margin: 34px 0; }
.schedule-group h2 { font-size: 1.35rem; }
.schedule-group h2 .time { font-family: var(--mono); font-size: 1.05rem; color: var(--accent); margin-left: 6px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); color: var(--ink-2); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.freq { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.wrap > .card-links { margin-top: 28px; }

/* Map */
.map { height: min(70vh, 620px); border-radius: var(--radius); border: 1px solid var(--line); margin: 28px 0; z-index: 0; }
.pin span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 40%); }
.leaflet-popup-content ul { padding-left: 1.1em; margin: 6px 0 0; }
.place-list { columns: 2 320px; padding-left: 1.1em; }
.place-list > li { break-inside: avoid; margin-bottom: 0.6em; }
.place-list ul { font-size: 0.9rem; color: var(--muted); }

/* Clubs */
.club-grid { list-style: none; padding: 32px 0 64px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.club-grid h2 { font-size: 1.2rem; }

/* Deadlines */
.deadlines dl { margin: 0 0 12px; display: grid; gap: 8px; }
.deadlines dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.deadlines dt { color: var(--muted); }
.deadlines dd { margin: 0; font-weight: 600; text-align: right; }

/* Forms */
.form-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.form-embed iframe { display: block; width: 100%; height: 900px; border: 0; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 32px; max-width: 900px; }
.gallery-item { margin: 0; }
.gallery-item.wide { grid-column: 1 / -1; }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--line); }
.gallery-item.wide img { aspect-ratio: 16 / 8; }
.gallery figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.gallery-credit { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); margin: 0; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery-item:not(.wide):last-of-type { grid-column: 1 / -1; } }

/* Support page */
.tiers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 20px 0 12px; }
.tier { display: flex; flex-direction: column; background: var(--paper); }
.tier h3 { font-size: 1.4rem; margin-bottom: 2px; }
.tier .amount { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.tier ul { padding-left: 1.1em; flex: 1; }
.tier.featured { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.supporters-list { margin-top: 8px; }
.supporter-names { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sponsor-tiles { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sponsor-tiles li { display: grid; gap: 6px; }
.sponsor-tile { display: grid; place-items: center; aspect-ratio: 16 / 7; padding: 18px 24px; border-radius: var(--radius); background: #011d43; color: #fff; text-decoration: none; transition: transform .15s; }
.sponsor-tile:hover { transform: translateY(-2px); }
.sponsor-tile img { max-width: 100%; max-height: 64px; width: auto; height: auto; }

/* Footer: compact */
.footer-brand img + img { margin-left: -4px; }
.site-footer { background: var(--night); color: #a9a8a3; margin-top: 40px; font-size: 0.82rem; }
.footer-inner { display: grid; gap: 10px; padding-block: 20px 18px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand strong { color: #fff; font-weight: 600; font-size: 0.88rem; }
.footer-brand a { margin-left: auto; }
.footer-links { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid #2a2a2f; display: flex; flex-wrap: wrap; gap: 4px 15px; }
.site-footer a { color: #e2e1dd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-copy { margin: 0; font-size: 0.76rem; color: #85847f; }
.footer-copy a { color: #a9a8a3; }
@media (max-width: 640px) { .footer-brand span { flex-basis: 100%; } .footer-brand a { margin-left: 0; } }

.this-week { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.pre { white-space: pre-line; }

/* Where's Steve? (partials/wheres-steve.njk, js/steve.js) */
.steve-float { position: fixed; left: 0; top: 0; z-index: 60; will-change: transform; }
.steve-float.still { left: auto; top: auto; right: 16px; bottom: 16px; transform: none !important; }
.sf-badge { display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: #011d43; color: #fff; font: 800 1.05rem var(--display); cursor: pointer; box-shadow: 0 8px 22px rgb(0 0 0 / 25%); }
.sf-badge:hover { background: #0b2a5a; }
.sf-face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 3px #f05a28; }
.sf-card { position: absolute; bottom: calc(100% + 10px); left: 0; width: 270px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-top: 5px solid #f05a28; border-radius: 12px; padding: 14px 16px; box-shadow: 0 16px 40px rgb(0 0 0 / 22%); }
.steve-float.flip .sf-card { left: auto; right: 0; }
.sf-k { font: 600 0.72rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); }
.sf-where { margin: 6px 0 10px; display: grid; padding-right: 18px; }
.sf-where b { font: 800 1.15rem/1.2 var(--display); }
.sf-where span { color: var(--muted); font-size: 0.88rem; }
.sf-logo { display: inline-block; background: #011d43; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.sf-logo img { display: block; height: 30px; width: auto; }
.sf-thanks { margin: 0; font-size: 0.88rem; color: var(--ink-2); }
.sf-close { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px; }
.sf-close:hover { color: var(--ink); }

:root[data-mode="dark"] .sf-badge { box-shadow: 0 0 0 2px #2fc0de, 0 8px 22px rgb(0 0 0 / 40%); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .sf-badge { box-shadow: 0 0 0 2px #2fc0de, 0 8px 22px rgb(0 0 0 / 40%); } }

/* Portable: POTA pages */
.pota-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.95fr); gap: 18px; padding-top: 32px; align-items: start; }
.pota-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pota-panel h2 small { font: 500 0.74rem var(--sans); opacity: .85; margin-left: 6px; }
.pota-panel h3 { font-size: 1rem; margin-top: 1.2em; }
.pota-challenge, .pota-grid + .pota-panel { margin-top: 18px; }
.pota-source { margin: 18px 0 56px; }
.feed { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; font-size: 0.92rem; }
.feed li { display: grid; grid-template-columns: 6.6em 1fr; gap: 8px; }
.feed .when { white-space: nowrap; }
.feed .when { font: 600 0.76rem var(--mono); color: var(--accent); padding-top: 3px; }
.feed .sub { display: block; color: var(--muted); font-size: 0.82rem; }
.feed .late { color: var(--coral); font-weight: 600; }
.ref { font: 600 0.8rem var(--mono); color: var(--accent); }
.table-scroll.plain { border: 0; background: none; border-radius: 0; }
table.lb { font-size: 0.88rem; }
table.lb td, table.lb th { padding: 7px 6px; }
table.lb th { letter-spacing: 0.02em; }
table.lb th { background: none; }
table.lb .r { text-align: right; font-variant-numeric: tabular-nums; }
table.lb td.rank { color: var(--muted); width: 1.8em; }
table.lb tbody tr:first-child td { font-weight: 700; }
.stat-row { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 18px; }
.stat-row div { display: grid; }
.stat-row b { font: 800 1.9rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat-row span { color: var(--muted); font-size: 0.86rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.bar { width: 100%; max-width: 30px; background: var(--accent); border-radius: 3px 3px 0 0; }
.bar-val { font-size: 0.68rem; color: var(--muted); }
.bar-lbl { font: 500 0.72rem var(--mono); color: var(--muted); margin-bottom: -22px; }
@media (max-width: 960px) { .pota-grid, .pota-grid.two { grid-template-columns: 1fr; } }

@media (max-width: 1120px) { .mode-switch { margin: 10px 0 0; align-self: flex-start; } }

/* Hub front page */
.hub-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(32px, 5vw, 56px) 8px; align-items: center; }
.hub-intro h1 { max-width: 17ch; }
.hub-intro .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }
.hub-search { display: flex; max-width: 520px; margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: 0 1px 2px rgb(16 24 40 / 5%); }
.hub-search input { flex: 1; min-width: 0; border: 0; padding: 13px 14px; font: inherit; font-size: 0.97rem; background: none; color: var(--ink); }
.hub-search input:focus { outline: none; }
.hub-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.hub-search button { border: 0; background: var(--navy); color: #fff; font: 600 0.95rem var(--sans); padding: 0 20px; cursor: pointer; }
.hub-player .player-panel { grid-template-columns: 96px minmax(0, 1fr); }
.hub-player .pp-art { width: 96px; }
.hub-next { margin: 10px 4px 0; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-block: 28px 56px; align-items: stretch; }
.tile { display: flex; flex-direction: column; }
.tile > h2:first-child small { font: 500 0.74rem var(--sans); opacity: .85; margin-left: 6px; }
.tile .feed { font-size: 0.9rem; gap: 9px; }
.tile .feed li { grid-template-columns: 4.6em 1fr; }
.tile .feed .when { font-size: 0.74rem; }
.tile .segs li { grid-template-columns: 3.4em 1fr; }
.tile .segs a.when { text-decoration: none; }
.tile .segs a.when:hover { text-decoration: underline; }
.tile-more { margin-top: auto; padding-top: 10px; font-size: 0.9rem; font-weight: 600; }
.tile-more a { text-decoration: none; }
.tile-more a:hover { text-decoration: underline; }
.tile-gold > h2:first-child { color: #2b1d00 !important; }
.mini-stats { display: flex; gap: 22px; margin: 4px 0 6px; }
.mini-stats div { display: grid; }
.mini-stats b { font: 800 1.4rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.mini-stats span { color: var(--muted); font-size: 0.78rem; }
@media (max-width: 1020px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .hub-hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }

.tile .feed .when br + * { display: none; }
:root[data-mode="dark"] .tile-teal > h2:first-child { color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .tile-teal > h2:first-child { color: var(--on-accent); } }
@media (max-width: 1320px) { .brand-text { display: none; } }

/* What's on and nets pages */
.events-page { display: grid; gap: 18px; padding-block: 32px 56px; }
.events-page > * { max-width: 900px; width: 100%; }
.week > h2:first-child small { font: 500 0.78rem var(--sans); opacity: .85; margin-left: 6px; }
.week > h2.on-gold { color: #2b1d00; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.ev-when { display: grid; font: 500 0.82rem var(--mono); color: var(--muted); }
.ev-when b { color: var(--accent); font-weight: 700; }
.ev-title { display: block; font-weight: 600; }
.ev-where { display: block; color: var(--muted); font-size: 0.88rem; }
.tag-club { background: var(--tint); border-color: transparent; color: var(--accent); }
.tag-contest { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: transparent; color: #8a5a00; }
:root[data-mode="dark"] .tag-contest { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .tag-contest { color: var(--gold); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font: 600 0.88rem var(--sans); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 560px) { .event { grid-template-columns: 5.5em minmax(0, 1fr); } .event .tag { display: none; } }

.pota-note { margin: 22px 0 56px; padding: 12px 16px; border-left: 4px solid var(--green); background: var(--paper); border-radius: 0 8px 8px 0; color: var(--ink-2); }
