/* ==================================================================
   Airplay Live — /overview  (standalone system overview for radio pros)
   Loads on top of tokens.css + fd_system.css; uses --fd-* / --ap-* tokens
   so it themes in both dark and light. Namespace: .ov-*
   Character: a calm, credible expert page — charts and data lead, not a
   pitch deck. No instrument-panel devices, no animated readouts.
   ================================================================== */

html.fd .ov-page { background: var(--fd-page); font-size: 16px; }

.ov-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- minimal top strip (brand + theme toggle) ------------------- */
.ov-top {
  display: flex; align-items: center; gap: 12px;
  height: 58px;
  border-bottom: 1px solid var(--fd-hair);
}
.ov-top__brand { display: inline-flex; align-items: center; }
.ov-top__logo { height: 19px; width: auto; display: block; }
/* sibling-page nav group: brand | Overview  Graphs  Controls */
.ov-top__pages {
  display: inline-flex; align-items: center; gap: 16px;
  margin-left: 12px; padding-left: 14px;
  border-left: 1px solid var(--fd-hair);
}
/* current page: same size as the links, non-clickable, slightly stronger ink */
.ov-top__word {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--fd-ink-2);
}
/* sibling-page links in the top strip */
.ov-top__nav {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fd-ink-3);
  text-decoration: none;
  transition: color .15s;
}
.ov-top__nav:hover { color: var(--fd-ink); }
/* Speech is a separate chapter from the three music pages, so it sits behind a
   rule rather than in the same run of links. */
.ov-top__navsep {
  display: inline-block; width: 1px; height: 12px;
  background: var(--fd-hair);
}
/* Speech is a beta chapter; the pill rides with the nav link so the state is
   visible from every page, not only from inside Speech itself. */
.ov-top__speech { display: inline-flex; align-items: center; gap: 7px; }
.ov-top__beta {
  padding: 2px 6px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fd-accent) 45%, transparent);
  background: color-mix(in srgb, var(--fd-accent) 12%, transparent);
  color: var(--fd-accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 8.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1.3;
}
.ov-top__spacer { flex: 1 1 auto; }
/* reference-station metadata: anchors the "on this station" figures + the
   "Dance UK" chart captions. Faint label, station name stronger. */
.ov-top__station {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fd-ink-3);
  white-space: nowrap;
}
.ov-top__station b { font-weight: 600; color: var(--fd-ink); }
.ov-theme-btn {
  appearance: none; background: transparent;
  border: 1px solid var(--fd-hair); border-radius: 6px;
  color: var(--fd-ink-2); cursor: pointer;
  width: 32px; height: 32px; display: inline-flex;
  align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.ov-theme-btn:hover { border-color: var(--fd-accent); color: var(--fd-ink); }
.ov-top a:focus-visible,
.ov-theme-btn:focus-visible,
.ov-link:focus-visible {
  outline: 2px solid var(--fd-accent);
  outline-offset: 3px;
}
.ov-theme-btn svg { width: 16px; height: 16px; }
.ov-theme-btn .ov-ico-sun { display: none; }
html.fd.light .ov-theme-btn .ov-ico-sun { display: block; }
html.fd.light .ov-theme-btn .ov-ico-moon { display: none; }

/* ---- hero ------------------------------------------------------- */
.ov-hero { padding: 40px 0 34px; }
.ov-hero__head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin: 0 0 30px;
}
.ov-hero__title {
  font-size: 30px; font-weight: 600; line-height: 1.1;
  letter-spacing: .03em; text-transform: uppercase; color: var(--fd-ink);
  margin: 0;
}
.ov-hero__title-muted { color: var(--fd-ink-3); }
/* tagline stacked under the title, uppercase, smaller, gray */
.ov-hero__tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fd-ink-3);
  line-height: 1.55; margin: 0;
}

/* ---- research-data readout band (hero) -------------------------- */
/* A narrow strip directly under the tagline carrying the three headline
   dataset figures. Hairline top+bottom set it apart from the prose as a
   distinct "readout"; IBM Plex Mono tabular numerals read as an instrument
   readout: figures in primary ink, labels quiet, no accent (amber = POP). */
.ov-figures {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 5px 16px;
  margin: 0 0 30px;
  padding: 13px 0;
  border-top: 1px solid var(--fd-hair);
  border-bottom: 1px solid var(--fd-hair);
}
.ov-figures__item {
  display: inline-flex; align-items: baseline; gap: 7px;
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.ov-figures__num {
  font-size: 15px; font-weight: 600; color: var(--fd-ink);
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.ov-figures__lbl {
  font-size: 10.5px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fd-ink-3);
}
.ov-figures__sep {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--fd-ink-3); opacity: .55;
}

/* ---- sections --------------------------------------------------- */
.ov-section {
  padding: 38px 0;
  border-top: 1px solid var(--fd-hair);
}
.ov-h2 {
  font-size: 18px; font-weight: 600; line-height: 1.3;
  letter-spacing: .03em; color: var(--fd-ink);
  text-transform: uppercase;
  margin: 0 0 20px;
}

.ov-h3 {
  font-size: 14px; font-weight: 600; line-height: 1.3;
  color: var(--fd-ink);
  margin: 24px 0 8px;
}

.ov-footnote {
  font-size: 12px; color: var(--fd-ink-2);
  margin-top: 4px;
}
.its-fn-mark {
  font-size: .75em; vertical-align: super; line-height: 0;
}

.ov-talk-heading {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px;
}
.ov-talk-heading .ov-h2 { margin: 0; }
/* Ghost chip: reads as a deliberate metadata tag next to the heading,
   instead of text that looks like it drifted to the right edge. */
.ov-talk-heading__station {
  margin-left: auto; text-align: right;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; line-height: 1.5; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ap-text-tertiary);
  padding: 4px 12px; border: 1px solid var(--fd-hair); border-radius: 999px;
  background: var(--fd-panel);
}
.ov-talk-heading__station b { font-weight: 600; color: var(--ap-text-primary); }

/* ---- body prose ------------------------------------------------- */
.ov-p {
  font-size: 15.5px; line-height: 1.66; color: var(--fd-ink);
  margin: 0 0 15px; max-width: 68ch;
}
.ov-p:last-child { margin-bottom: 0; }
.ov-p strong { font-weight: 600; }
/* Scope-limitation sentence in a paragraph group: same size as the body
   text around it (still fully readable), just visually secondary. */
.ov-p--muted { color: var(--fd-ink-2); }
/* The paragraph that states what the reader should actually do with the
   score: a touch heavier than plain body, without a full heading. */
.ov-p--lead { font-weight: 500; }
/* Compact operational spec line (e.g. "Setup requires..."), not a full
   body paragraph and not boxed - this is a fact to scan, not an argument. */
.ov-p--op {
  font-size: 13.5px; line-height: 1.6; color: var(--fd-ink-2);
  margin: 0; max-width: 68ch;
}
.ov-p--op .ov-p__op-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  color: var(--fd-ink-3); margin-right: 8px;
}

/* quiet sub-line under a paragraph — same font as the graph note
   (.ov-graph__note): 13px secondary gray, pulled up to hug the line above. */
.ov-subnote {
  font-size: 13px; line-height: 1.6; color: var(--fd-ink-2);
  margin: -6px 0 0; max-width: 68ch;
}

/* footnote marker: the asterisk after a paragraph and the one that opens
   the matching sub-line. Quiet, never bold, never a link. */
.ov-fnref {
  color: var(--fd-ink-2);
  font-weight: 400;
}
sup.ov-fnref { margin-left: 1px; }
span.ov-fnref { margin-right: 4px; }

/* metric definitions box — copied layout from graphs/index.php's .gr-defs */
.gr-defs { margin: 16px 0 0; padding: 16px 18px; display: grid; gap: 8px;
  background: var(--fd-panel-2); border: 1px solid var(--fd-hair); border-radius: 10px; }
.gr-defs__h { font-family:"IBM Plex Mono",ui-monospace,monospace; font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fd-ink-3); margin: 0 0 2px; }
.gr-defs p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--fd-ink-2); }

/* ---- The Sample (big-number KPI box + light evidence link) ------ */
.ov-sample {
  margin: 22px 0 0;
  background: var(--fd-panel);
  border: 1px solid var(--fd-hair);
  border-radius: var(--fd-radius);
  padding: 26px 28px 20px;
}
.ov-sample__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ov-sample__stat {
  display: flex; flex-direction: column; gap: 6px;
}
.ov-sample__num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 40px; font-weight: 600; line-height: 1;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  color: var(--fd-ink);
}
.ov-sample__lbl {
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fd-ink-2);
}
/* Right-aligned under the grid, not left (2026-09-19): sitting at the card's
   left edge, it read as attached to the first stat rather than as the
   card's own closing link. */
.ov-sample__evidence {
  display: block; margin-top: 20px; text-align: right;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fd-accent); text-decoration: none;
}
.ov-sample__evidence:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .ov-sample__grid { grid-template-columns: 1fr; gap: 16px; }
  .ov-sample__num { font-size: 34px; }
}

/* ---- quiet callout (the brief's FACT / NOTE boxes) -------------- */
.ov-callout {
  margin: 20px 0;
  background: var(--fd-panel-2);
  border: 1px solid var(--fd-hair);
  border-left: 2px solid var(--fd-hair-strong);
  border-radius: 6px;
  padding: 15px 18px;
}
.ov-callout p {
  font-size: 15px; line-height: 1.6; color: var(--fd-ink); margin: 0;
}
.ov-callout p + p { margin-top: 9px; }

/* ---- graph ------------------------------------------------------ */
.ov-graph { margin: 26px 0 4px; }
/* A figure's own bottom margin is tiny (it expects .ov-graph__note/__cap
   to trail it inside the figure). When body prose follows the figure
   directly, give it real breathing room instead of inheriting that 4px. */
.ov-graph + .ov-p { margin-top: 22px; }
/* chart eyebrow: the small dashed gray mono label — kept ONLY as a
   graph title (per brief it fails as a section heading). */
.ov-graph__title {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fd-ink-3);
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 12px;
}
.ov-graph__title::before {
  content: ""; width: 26px; height: 2px; flex: 0 0 auto;
  background: var(--fd-hair-strong); border-radius: 1px;
}
.ov-graph__frame {
  background: var(--fd-panel);
  border: 1px solid var(--fd-hair);
  border-radius: 10px;
  padding: 18px 20px 14px;
}
.ov-graph__frame svg { display: block; width: 100%; height: auto; }
/* interpretive caption: hugs the chart, reads as the figure's explanation;
   the mono source line (.ov-graph__cap) sits below it, smaller and fainter. */
.ov-graph__note {
  font-size: 13px; line-height: 1.6; color: var(--fd-ink-2);
  margin: 12px 0 0;
}
/* Source/method line: several of these run long enough to wrap onto 2-3
   lines (e.g. Controls' ballad test, Signal's sampling notes) - the original
   10px + wide uppercase tracking read as unusually heavy once wrapped, since
   uppercase+tracking cost is designed for a single short tag, not a wrapped
   paragraph. Slightly larger, tighter tracking, real line-height. */
.ov-graph__cap {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: .06em; line-height: 1.5;
  text-transform: uppercase; color: var(--fd-ink-3);
  margin: 9px 0 0;
}

/* Quiet disclaimer/footnote copy: sentence case (not uppercased, unlike
   .ov-graph__cap), small and gray enough to read as an aside next to body
   text. The site-wide small-print class: use for disclaimers, footnotes and
   source attributions on any page loading this stylesheet (overview,
   controls). Talk pages mirror this at 9px via their own .sp-caption. */
.ov-fineprint {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; line-height: 1.5; letter-spacing: .02em;
  color: var(--fd-ink-3);
}

/* ---- model basis + dataset line --------------------------------- */
.ov-basis {
  font-size: 14px; line-height: 1.6; color: var(--fd-ink-2);
  margin: 22px 0 6px;
}
.ov-updated {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--fd-ink-2); letter-spacing: .02em;
  margin: 0;
}
/* model-training basis line under the accuracy chart: same quiet mono as the
   dataset stamp, but a natural sentence (not uppercased). Answers "built on
   enough data" — the all-station observation total, not the Dance UK counts. */
.ov-trained {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; line-height: 1.5; color: var(--fd-ink-2);
  letter-spacing: .02em; margin: 22px 0 5px;
}

/* ---- live demo line --------------------------------------------- */
.ov-demo {
  font-size: 15.5px; line-height: 1.6; color: var(--fd-ink); margin: 6px 0 0;
}
.ov-demo strong { font-weight: 600; }
.ov-link { color: var(--fd-accent); text-decoration: none; }
.ov-link:hover { text-decoration: underline; }
.ov-p--right { text-align: right; margin-top: -9px; }

/* Controls button on this page reads lighter than other blues nearby;
   mix it a touch darker while staying tied to --fd-accent. */
.ov-section .fd-btn--primary {
  background: color-mix(in srgb, var(--fd-accent) 70%, black);
  border-color: color-mix(in srgb, var(--fd-accent) 70%, black);
  opacity: 1;
}
.ov-section .fd-btn--primary:hover {
  filter: brightness(1.06);
  background: color-mix(in srgb, var(--fd-accent) 70%, black);
  opacity: 1;
}

/* ---- additional analysis & tools (collapsible, quiet/small) ------ */
.ov-more__summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fd-ink-2);
}
.ov-more__summary::-webkit-details-marker { display: none; }
.ov-more__summary::before {
  content: "+"; font-size: 13px; line-height: 1; color: var(--fd-ink-3);
  flex: 0 0 auto; transition: transform .15s ease;
}
.ov-more[open] .ov-more__summary::before { content: "\2212"; }
.ov-more__box {
  margin: 12px 0 0; max-width: 64ch;
  padding: 18px 20px;
  border: 1px solid var(--fd-hair);
  border-radius: var(--fd-radius);
  background: var(--fd-panel);
}
.ov-more__box-title {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fd-ink-3);
  margin: 0 0 12px;
}
.ov-more__list {
  margin: 0; padding: 0 0 0 18px;
}
.ov-more__list .ov-p {
  font-size: 13px; line-height: 1.55; margin: 0 0 8px;
}
.ov-more__list .ov-p:last-child { margin-bottom: 0; }
.ov-more .ov-basis { font-size: 12.5px; margin: 16px 0 0; }
.ov-more__box .ov-basis { margin: 16px 0 0; }

/* ---- in-body divider (lighter than a full .ov-section break) ---- */
.ov-rule { border: none; border-top: 1px solid var(--fd-hair); margin: 28px 0; }

/* ---- footer ----------------------------------------------------- */
.ov-footer {
  border-top: 1px solid var(--fd-hair);
  padding: 26px 0 52px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.ov-footer__brand {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .18em;
  /* Fixed dark chip + white text, not theme tokens: a wordmark badge, not
     body copy, so it stays legible on the lighter page background too. */
  color: #fff; background: #12151d;
  padding: 4px 10px; border-radius: 3px;
  text-decoration: none; display: inline-block;
  transition: opacity .15s ease;
}
.ov-footer__brand:hover { opacity: .82; }
/* right-hand footer group: page cross-links + back to top. The three pages
   are only cross-linked in the top strip, which is out of sight (and out of
   the modal header) once the reader reaches the bottom. */
.ov-footer__nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.ov-footer__link,
.ov-footer__top {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fd-ink-3); text-decoration: none;
  transition: color .15s ease;
}
.ov-footer__link:hover,
.ov-footer__top:hover { color: var(--fd-ink); }
.ov-footer__link[aria-current="page"] { color: var(--fd-ink-2); cursor: default; }

/* ---- dimmed section (Beyond music: heading + prose in secondary gray) --
   --fd-ink-2 is the secondary text step (fd_system.css); it reads as a
   quiet, de-emphasised closing section without inventing a new shade. */
.ov-section--muted .ov-h2,
.ov-section--muted .ov-p { color: var(--fd-ink-2); }
/* Beyond Music heading mirrors the hero tagline: IBM Plex Mono, same size,
   weight and tracking (it stays uppercase; the muted color is kept). */
.ov-section--muted .ov-h2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
}

/* ---- POP Score definition link (end of Beyond music) ------------ */
.ov-endlink-wrap { margin: 20px 0 0; }
.ov-endlink {
  font-size: 12.5px; color: var(--fd-ink-2); text-decoration: none;
  border-bottom: 1px solid var(--fd-hair-strong);
  padding-bottom: 1px; transition: color .15s, border-color .15s;
  cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit;
}
.ov-endlink:hover { color: var(--fd-ink); border-color: var(--fd-accent); }

/* ---- modals (POP guide iframe + short Beyond-music text) --------- */
.ov-modal[hidden] { display: none; }
.ov-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.ov-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 12, .72);
}
html.fd.light .ov-modal__backdrop { background: rgba(30, 41, 59, .42); }
.ov-modal__panel {
  position: relative;
  width: min(1000px, 100%);
  height: min(86vh, 900px);
  background: var(--fd-panel);
  border: 1px solid var(--fd-hair-strong);
  border-radius: 12px;
  box-shadow: var(--fd-shadow-pop);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ov-modal__panel--text {
  width: min(520px, 100%);
  height: auto;
  max-height: 86vh;
}
.ov-modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--fd-panel-2); border: 1px solid var(--fd-hair);
  color: var(--fd-ink-2); font-size: 14px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.ov-modal__close:hover { color: var(--fd-ink); border-color: var(--fd-accent); }
.ov-modal__frame {
  flex: 1 1 auto; width: 100%; border: 0; display: block;
  background: var(--fd-page);
}
.ov-modal__body { padding: 30px 28px 28px; overflow-y: auto; }
.ov-modal__title {
  font-size: 16px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--fd-ink); margin: 0 0 16px;
}
.ov-modal__body p {
  font-size: 15px; line-height: 1.62; color: var(--fd-ink); margin: 0 0 11px;
}
.ov-modal__body p:last-child { margin-bottom: 0; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 560px) {
  .ov-talk-heading__station { font-size: 10.5px; letter-spacing: .1em; }
  .ov-wrap { padding: 0 18px; }
  .ov-hero { padding: 40px 0 4px; }
  .ov-section { padding: 30px 0; }
  .ov-hero__head { gap: 12px; margin-bottom: 24px; }
  .ov-hero__title { font-size: 24px; }
  /* The top strip is a single flex row on the desktop; on a phone the nav run
     is wider than the viewport and used to push the strip into a sideways
     scroll. It wraps to its own second row instead: brand, station and the
     theme button keep row one, the links get the full width below. Wrapping,
     not scrolling: a link that has to be scrolled to is a link nobody uses. */
  .ov-top { flex-wrap: wrap; height: auto; padding: 9px 0; row-gap: 8px; }
  .ov-top__pages {
    order: 3; flex: 1 0 100%;
    flex-wrap: wrap; row-gap: 6px; gap: 13px;
    margin-left: 0; padding-left: 0; border-left: 0;
  }
  .ov-top__nav { font-size: 10.5px; letter-spacing: .1em; }
  .ov-top__word { display: none; }
  .ov-top__station { font-size: 10.5px; letter-spacing: .1em; }
  .ov-top__station-lbl { display: none; }
  .ov-figures { gap: 6px 20px; padding: 12px 0; margin-bottom: 24px; }
  .ov-figures__sep { display: none; }
}
