/* StationClerk: broadcast-studio look. Deep ink navy panels, an amber dial
   glow as the secondary accent, the red on-air lamp used only in the mark.
   Barlow Semi Condensed for headings (console labeling), Barlow for text,
   Martian Mono for call signs, frequencies and dates in tables.
   Colors are tokens; dark mode via prefers-color-scheme. All text pairs meet
   WCAG 2.2 AA (checked: see CLAUDE.md "Accessibility"). */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/martian-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --ink: #0e1b33;          /* console navy: header, hero, buttons */
  --ink-2: #16264a;
  --amber: #f2b33d;        /* dial glow, on dark only */
  --lamp: #c8102e;         /* on-air lamp: logo mark only */
  --bg: #eef1f5;
  --surface: #ffffff;
  --text: #0e1b33;
  --muted: #4a5568;
  --line: #cfd6e1;
  --line-soft: #e2e7ee;
  --link: #0e3a7a;
  --focus: #0e3a7a;
  --amber-text: #8a5a00;   /* amber that reads on light surfaces */
  --ok: #1d6b3a; --ok-bg: #e6f3ea;
  --late: #8a4b00; --late-bg: #fbf0dd;
  --missing: #a3122a; --missing-bg: #fbe8eb;
  --look: #3b4a9a; --look-bg: #e9ecfb;
  --on-ink: #e8edf5; --on-ink-muted: #b8c3d6;
  --radius: 6px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1222;
    --surface: #121d33;
    --text: #e8edf5;
    --muted: #a7b3c6;
    --line: #2a3a5a;
    --line-soft: #1d2a45;
    --link: #8ec5ff;
    --focus: #f2b33d;
    --amber-text: #f2b33d;
    --ok: #7ed69b; --ok-bg: #12301f;
    --late: #f5b25a; --late-bg: #33240c;
    --missing: #ff8597; --missing-bg: #3a1520;
    --look: #a9b6ff; --look-bg: #1c2350;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: 0.005em; margin: 1.6em 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem); margin: 0.2em 0 0.3em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, dl { margin: 0 0 1em; }
li + li { margin-top: 0.3em; }
strong { font-weight: 600; }
code, .mono, .cs { font-family: var(--mono); font-weight: 500; font-size: 0.9em; letter-spacing: 0.01em; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 40em) { .wrap { padding: 0 28px; } }
.prose > * { max-width: 46rem; }
.prose > .wide-block, .prose > .table-wrap, .prose > .audit, .prose > .offer, .prose > .cards, .prose > .tool { max-width: none; }
.wide > * { max-width: none; }
main > .wrap { padding-top: 2rem; padding-bottom: 4rem; }

.skip-link { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; outline-color: var(--ink); }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--ink); color: var(--on-ink); border-bottom: 1px solid #22345c; }
.site-header :focus-visible, .page-hero :focus-visible, .home-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 44px; }
.brand .lamp { width: 30px; height: 30px; flex: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav li + li { margin: 0; }
.site-nav a { display: inline-block; color: var(--on-ink); text-decoration: none; padding: 10px 10px; border-radius: 4px; font-weight: 600; font-size: 0.98rem; }
.site-nav a:hover { background: #1a2b52; }
.site-nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--amber); }
.site-nav .nav-account { border: 1px solid #3a4f7d; }

/* ---------------------------------------------------------------- page hero */
.page-hero { background: var(--ink); color: var(--on-ink); padding: 2rem 0 0; position: relative; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lede { font-size: 1.2rem; color: var(--on-ink); max-width: 40rem; }
.page-hero a { color: #a9d1ff; }
.page-hero .checked { color: var(--on-ink-muted); font-size: 0.95rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 0.6rem; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.95rem; }
.crumbs li + li { margin: 0; }
.crumbs li + li::before { content: '/'; color: var(--on-ink-muted); margin-right: 8px; }
.crumbs a { color: var(--on-ink-muted); }
.crumbs a[aria-current] { color: var(--on-ink); text-decoration: none; }
/* Frequency scale under each page hero: the dial's tick marks as a divider. */
.scale { height: 22px; margin-top: 1.8rem; border-top: 1px solid #2a3d66;
  background:
    repeating-linear-gradient(90deg, rgba(242, 179, 61, 0.75) 0 1px, transparent 1px 100px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(184, 195, 214, 0.45) 0 1px, transparent 1px 20px) 0 0 / 100% 8px no-repeat; }

/* ---------------------------------------------------------------- home hero */
.home-hero { background: radial-gradient(120% 90% at 70% 0%, #1b2f5c 0%, var(--ink) 60%); color: var(--on-ink); padding: 2.4rem 0 0; overflow: hidden; }
.home-hero h1 { color: #fff; font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.2rem); max-width: 17ch; margin-bottom: 0.35em; }
.home-hero .lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 38rem; color: var(--on-ink); }
.home-hero a { color: #a9d1ff; }
.hero-grid { display: grid; gap: 1.5rem; }
@media (min-width: 60em) { .hero-grid { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 3rem; } }
.hero-panel { background: #12244a; border: 1px solid #2a3d66; border-radius: 10px; padding: 20px; box-shadow: 0 0 0 4px rgba(242, 179, 61, 0.08); }
.hero-panel .search label { color: #fff; }
.hero-panel .hint { color: var(--on-ink-muted); }
.hero-facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 6px; color: var(--on-ink-muted); font-size: 0.98rem; }
.hero-facts li + li { margin: 0; }
.hero-facts strong { color: var(--amber); font-weight: 600; }

/* The tuning dial: ticks, numbers, amber needle that sweeps once. */
.dial { position: relative; margin-top: 2.2rem; padding: 12px 24px 22px; border-top: 1px solid #2a3d66; background: linear-gradient(180deg, rgba(242, 179, 61, 0.07), rgba(242, 179, 61, 0)); }
.dial-track { position: relative; height: 70px; }
.dial-scale { display: block; width: 100%; height: 36px; overflow: visible; }
.dial-ticks line { stroke: #8fa0bd; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.dial-ticks line.major { stroke: #c9d3e3; stroke-width: 1.8; }
.dial-numbers { position: relative; height: 26px; margin-top: 6px; }
.dial-num { position: absolute; top: 0; transform: translateX(-50%); color: var(--amber); font: 500 0.82rem/1 var(--mono); }
@media (max-width: 34em) { .dial-num.minor { display: none; } }
.dial-num[data-x='0.000'] { left: 0.000%; }
.dial-num[data-x='10.000'] { left: 10.000%; }
.dial-num[data-x='20.000'] { left: 20.000%; }
.dial-num[data-x='30.000'] { left: 30.000%; }
.dial-num[data-x='40.000'] { left: 40.000%; }
.dial-num[data-x='50.000'] { left: 50.000%; }
.dial-num[data-x='60.000'] { left: 60.000%; }
.dial-num[data-x='70.000'] { left: 70.000%; }
.dial-num[data-x='80.000'] { left: 80.000%; }
.dial-num[data-x='90.000'] { left: 90.000%; }
.dial-num[data-x='100.000'] { left: 100.000%; }
.needle { position: absolute; top: -6px; height: 48px; left: 65.5%; width: 2px; margin-left: -1px; background: var(--amber); box-shadow: 0 0 10px 2px rgba(242, 179, 61, 0.55); animation: tune 1.6s cubic-bezier(.2, .7, .2, 1) 0.2s both; }
.dial-unit { position: absolute; right: 24px; bottom: 4px; font-family: var(--mono); font-size: 0.72rem; color: var(--on-ink-muted); }
@keyframes tune { from { left: 2%; } 70% { left: 68%; } to { left: 65.5%; } }

/* ---------------------------------------------------------------- buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); border: 2px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: #ffc85f; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-quiet { background: transparent; color: var(--link); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--link); }
.btn-danger { background: transparent; color: var(--missing); border-color: currentColor; }
@media (prefers-color-scheme: dark) { .btn-dark { background: #1f3361; border-color: #3a4f7d; } }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.6; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer; min-height: 24px; }

label, .label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type='text'], input[type='email'], input[type='search'], input[type='date'], input[type='time'], input[type='number'], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid #6b778a; border-radius: var(--radius);
}
textarea { min-height: 6.5rem; resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
input[aria-invalid='true'] { border-color: var(--missing); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0 6px; }
.hint { color: var(--muted); font-size: 0.95rem; margin: 6px 0 0; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 12px; }
@media (min-width: 40em) { .field-row { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }
.check-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; min-height: 24px; }
.check-label input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
@media (prefers-color-scheme: dark) { .check-label input { accent-color: var(--amber); } }

.search .search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search input { flex: 1 1 12rem; font-family: var(--mono); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.06em; }
.search input::placeholder { text-transform: none; letter-spacing: 0; }
.search-big input { min-height: 54px; font-size: 1.35rem; }
.search-big .btn { min-height: 54px; padding: 12px 22px; font-size: 1.05rem; }
.form-status { min-height: 1.6em; margin: 8px 0 0; }
.error-text { color: var(--missing); font-weight: 600; }

/* ---------------------------------------------------------------- content */
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--ink); border-radius: var(--radius); padding: 14px 18px; margin: 1.4rem 0; }
@media (prefers-color-scheme: dark) { .callout { border-left-color: var(--amber); } }
.callout > :last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--late); }
.note { color: var(--muted); }
.fine { display: block; color: var(--muted); font-size: 0.9rem; }
.sources { font-size: 0.97rem; }
.sources li { overflow-wrap: anywhere; }
.updated, .checked { color: var(--muted); font-size: 0.95rem; }

.cards { display: grid; gap: 16px; padding: 0; list-style: none; margin: 1.4rem 0 2rem; }
@media (min-width: 46em) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards > li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.cards h3 { margin-top: 0; }
.cards p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.2rem; margin: 0 0 1.2rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--amber); font: 600 1rem/2.2rem var(--mono); text-align: center; }
@media (prefers-color-scheme: dark) { .steps > li::before { background: #1f3361; } }

.qa { border-top: 1px solid var(--line); padding: 0.4rem 0 0.2rem; }
.qa h3 { margin: 0.8rem 0 0.3rem; font-size: 1.18rem; }

.split { display: grid; gap: 2rem; }
@media (min-width: 56em) { .split { grid-template-columns: 1fr 1fr; } }

.offer { display: grid; gap: 12px 32px; align-items: center; background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 24px; margin: 2.5rem 0; border: 1px solid #2a3d66; }
.offer h2 { margin-top: 0; color: #fff; }
.offer a:not(.btn) { color: #a9d1ff; }
.offer .price { color: var(--on-ink); }
.offer .price strong { color: var(--amber); }
.offer :focus-visible { outline-color: var(--amber); }
@media (min-width: 52em) { .offer { grid-template-columns: 1fr auto; padding: 28px 32px; } }
.offer-cta { margin: 0; }

.plans { display: grid; gap: 16px; margin: 1.5rem 0; }
@media (min-width: 46em) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.plan h3 { margin-top: 0; }
.plan .amount { font: 700 2.4rem/1 var(--display); margin: 0.2rem 0 0.4rem; }
.plan .amount span { font: 400 1rem var(--font); color: var(--muted); }
.plan-featured { border: 2px solid var(--ink); }
@media (prefers-color-scheme: dark) { .plan-featured { border-color: var(--amber); } }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap:focus-visible { outline: 3px solid var(--focus); }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
caption { text-align: left; font-weight: 600; padding: 12px 14px 8px; caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
thead th { background: var(--bg); font-family: var(--display); font-weight: 700; font-size: 1rem; border-top: 1px solid var(--line); border-bottom: 2px solid var(--line); white-space: nowrap; }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; }
.dates-table td, .dates-table tbody th { font-family: var(--mono); font-weight: 500; font-size: 0.86rem; white-space: nowrap; }
.dates-table td.text { font-family: var(--font); font-size: 0.95rem; white-space: normal; }

/* ---------------------------------------------------------------- audit */
.audit { margin: 1rem 0 2rem; }
.station-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 1rem; }
@media (prefers-color-scheme: dark) { .station-head { border-bottom-color: var(--line); } }
.station-head h2, .station-head h3 { margin: 0; }
.station-head .cs { font-size: 1.5em; letter-spacing: 0.04em; }
.station-sub { display: block; font-family: var(--font); font-weight: 400; font-size: 1.05rem; color: var(--muted); margin-top: 4px; }
.profile-link { margin: 0; }
.facts { display: grid; gap: 0; margin: 0 0 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { display: grid; gap: 2px 16px; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.facts > div:first-child { border-top: 0; }
@media (min-width: 40em) { .facts > div { grid-template-columns: 14rem 1fr; } }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.meter-row { display: grid; gap: 16px 28px; align-items: center; margin: 1.4rem 0; }
@media (min-width: 40em) { .meter-row { grid-template-columns: 240px 1fr; } }
.vu { width: 240px; height: auto; display: block; }
.vu-face { fill: #f6e9c8; stroke: var(--ink); stroke-width: 3; }
.vu-track { stroke: #9a8a66; stroke-width: 3; }
.vu-fill { stroke: #1d6b3a; stroke-width: 6; stroke-linecap: round; }
.vu-ticks line { stroke: #2f3a4d; stroke-width: 1.4; }
.vu-ticks line.major { stroke-width: 2.4; }
.vu-label { font: 500 11px var(--mono); fill: #4a4130; text-anchor: start; letter-spacing: 0.12em; }
.vu-count { text-anchor: end; letter-spacing: 0; }
.vu-needle { stroke: #0e1b33; stroke-width: 2.4; stroke-linecap: round; }
.vu-pivot { fill: #0e1b33; }
.meter-summary { font: 700 1.6rem/1.2 var(--display); margin-bottom: 0.4rem; }
.tally { list-style: none; padding: 0; margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tally li + li { margin: 0; }
.next-due { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--amber-text); border-radius: var(--radius); padding: 12px 18px; margin: 1.2rem 0 1.6rem; }
.next-due h3, .next-due h4 { margin: 0 0 0.3rem; }
.next-due p:last-child { margin-bottom: 0; }
.quarters th[scope='row'] { white-space: nowrap; font-family: var(--mono); font-weight: 500; font-size: 0.86rem; }
.quarters td:nth-child(2) { white-space: nowrap; font-family: var(--mono); font-size: 0.86rem; }
.due-note { display: block; white-space: normal; font-family: var(--font); font-size: 0.85rem; color: var(--muted); max-width: 16rem; margin-top: 4px; }
.status { display: inline-flex; align-items: flex-start; gap: 6px; padding: 3px 9px 3px 6px; border-radius: 4px; font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.status svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.status-on-time { color: var(--ok); background: var(--ok-bg); }
.status-on-time svg circle { fill: currentColor; stroke: none; } .status-on-time svg path { stroke: var(--ok-bg); }
.status-late { color: var(--late); background: var(--late-bg); }
.status-late svg circle { fill: none; }
.status-not-found { color: var(--missing); background: var(--missing-bg); }
.status-needs-look { color: var(--look); background: var(--look-bg); }
.status-needs-look svg > path:first-child { fill: none; }
.evidence { list-style: none; padding: 0; margin: 0; }
.evidence li + li { margin-top: 8px; }
.evidence a { overflow-wrap: anywhere; }
.uploaded, .match-note { display: block; font-size: 0.88rem; color: var(--muted); }
.none { color: var(--muted); }
.unplaced { margin: 1rem 0; }
details > summary { cursor: pointer; font-weight: 600; min-height: 24px; }
details[open] > summary { margin-bottom: 0.6rem; }
.results { list-style: none; padding: 0; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.results li { margin: 0; border-top: 1px solid var(--line-soft); }
.results li:first-child { border-top: 0; }
.results a { display: grid; gap: 2px 12px; padding: 12px 16px; text-decoration: none; color: var(--text); }
@media (min-width: 40em) { .results a { grid-template-columns: 9rem 1fr; } }
.results a:hover { background: var(--bg); }
.results .cs { color: var(--link); font-size: 1.05rem; text-decoration: underline; }
.results .meta { color: var(--muted); }

/* ---------------------------------------------------------------- desk */
.desk-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.station-cards { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 52em) { .station-cards { grid-template-columns: 1fr 1fr; } }
.station-cards > li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.station-cards h3 { margin: 0 0 0.2rem; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 1.2rem 0; }
.tool > h2:first-child, .tool > h3:first-child { margin-top: 0; }
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; background: var(--bg); }
.item-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: baseline; }
.item-head h3, .item-head h4 { margin: 0; }
.checks { list-style: none; padding: 0; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 0.5em; border-radius: 50%; background: var(--ok); }
.checks li.todo::before { background: transparent; border: 2px solid var(--late); }
.save-state { color: var(--muted); font-size: 0.95rem; min-height: 1.5em; }
.headlines { list-style: none; padding: 0; }
.headlines li { padding: 8px 0; border-top: 1px solid var(--line-soft); margin: 0; }
.headlines .meta { display: block; font-size: 0.88rem; color: var(--muted); }
.ai-label { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--look); background: var(--look-bg); border-radius: 4px; padding: 2px 8px; margin: 4px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 1rem; border-bottom: 1px solid var(--line); }
.tabs li { margin: 0; }
.tabs a { display: inline-block; padding: 10px 14px; text-decoration: none; font-weight: 600; border-radius: 4px 4px 0 0; }
.tabs a[aria-current='page'] { background: var(--surface); border: 1px solid var(--line); border-bottom-color: var(--surface); margin-bottom: -1px; color: var(--text); }
.airings { font-size: 0.95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- printable documents */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.doc-lead { font: 600 1.25rem var(--display); color: var(--muted); }
.doc-note, .doc-small { color: var(--muted); font-size: 0.95rem; }
.doc-facts { max-width: 46rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 2.6rem 0 2rem; font-size: 0.97rem; }
.site-footer a { color: #cfe4ff; }
.footer-grid { display: grid; gap: 1.6rem; }
@media (min-width: 56em) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.6rem; }
.footer-links li { margin: 0 0 6px; break-inside: avoid; }
.footer-links a { display: inline-block; padding: 2px 0; }
.footer-legal p { color: var(--on-ink-muted); }
.site-footer .brand { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .needle { animation: none; }
}
@media (forced-colors: active) {
  .status, .btn, .facts, .table-wrap { border: 1px solid CanvasText; }
  .needle { background: CanvasText; }
}
@media print {
  .site-header, .site-footer, .skip-link, .no-print, .scale, .page-hero .crumbs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { background: #fff; color: #000; padding: 0; }
  .page-hero h1 { color: #000; }
  .doc { border: 0; padding: 0; }
  .table-wrap { overflow: visible; border: 0; }
  a { color: #000; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
}

/* Fillable template: print only the generated list. */
@media print {
  body.printing-template main > *:not(.wrap), body.printing-template .wrap > *:not(#t-output) { display: none !important; }
  body.printing-template #t-output { display: block !important; }
}
.program { background: var(--surface); }
