/* ==================================================================
   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); }
.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-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;
}
/* 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: .7;
}

/* ---- sections --------------------------------------------------- */
.ov-section {
  padding: 46px 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;
}

/* ---- 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; }

/* 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;
}

/* ---- 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; }
/* 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;
}
.ov-graph__cap {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fd-ink-3);
  margin: 9px 0 0;
}

/* ---- 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-3); 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-3);
  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; }

/* ---- footer ----------------------------------------------------- */
.ov-footer {
  border-top: 1px solid var(--fd-hair);
  padding: 26px 0 52px;
}
.ov-footer__brand {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .18em; color: var(--fd-ink-3);
}

/* ---- 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-wrap { padding: 0 18px; }
  .ov-hero { padding: 40px 0 4px; }
  .ov-section { padding: 38px 0; }
  .ov-hero__head { gap: 12px; margin-bottom: 24px; }
  .ov-hero__title { font-size: 24px; }
  .ov-top__word { display: none; }
  .ov-top__station-lbl { display: none; }
  .ov-figures { gap: 6px 20px; padding: 12px 0; margin-bottom: 24px; }
  .ov-figures__sep { display: none; }
}
