/* The client's event page (client eyes: docs/BLUEPRINT.md B17). Light paper, the client's colour in the hero
   (look.css: --brand, --accent, --mark - contrast-checked by the generator), our own copy of two open fonts.
   The look follows QPTGFX (lib/look.mjs PAGE_LOOKS): look.css sets the tokens below per on-air preset - the heading
   face, corners, rules, the paper's tone, how Now/Next and the countdown move. The defaults here = the neutral look.
   Universal design: AA contrast or better, visible focus, keyboard everywhere, text that scales, reduced motion. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-sans-3.woff2) format("woff2"); }

:root {
  --brand: #163a5c; --accent: #d9c6a3; --mark: #163a5c;
  --paper: #f6f4ef; --sheet: #ffffff; --ink: #17212b; --mute: #4f5b67; --rule: #dedbd3; --wash: #eef1f5;
  --on-brand: #ffffff; --on-brand-mute: color-mix(in srgb, var(--on-brand) 84%, transparent);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --head: var(--serif); --head-weight: 400; --h3-weight: 400; --head-scale: 1; --h3-face: var(--head); --em-style: italic;
  --radius: 6px; --radius-sm: 4px; --rule-w: 1px; --rule-style: solid; --bar: none; --hero-rule: rgba(255, 255, 255, .28);
  --motion-dur: 700ms; --motion-ease: cubic-bezier(.2, .7, .2, 1); --motion-shift: 0px;
  --line: var(--rule-w) var(--rule-style) var(--rule);
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --focus: #ffbf47;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
@media (min-width: 1700px) { html { font-size: 118.75%; } }           /* a TV / big screen: everything a little larger */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); margin: 0; text-wrap: balance; font-variant-numeric: lining-nums; }
h3 { font-family: var(--h3-face); font-weight: var(--h3-weight); }
p { margin: 0; }
a { color: var(--mark); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--sheet); color: var(--ink); padding: .5rem 1rem; z-index: 10; border-radius: 4px; }
.skip:focus { top: 1rem; }
main:focus { outline: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
@media (min-width: 1700px) { .wrap { max-width: 1440px; } }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mute); }

/* top */
.top { background: var(--sheet); border-bottom: var(--line); }
.topin { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand .client { font-family: var(--head); font-weight: var(--h3-weight); font-size: 1.2rem; }
.brand .logo { display: block; height: 2.75rem; width: auto; max-width: 14rem; }
.top nav { display: flex; gap: 1.5rem; font-size: .92rem; font-weight: 500; }
.top nav a { color: var(--mute); text-decoration: none; padding: .25rem 0; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* hero (before, between, ended, after) */
.hero { background: var(--brand); color: var(--on-brand); }
.heroin { padding: 3.5rem 2rem 3rem; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: end; }
.heroin.one { grid-template-columns: minmax(0, 1fr); }
.hero .eyebrow { color: var(--on-brand-mute); }
.hero .eyebrow::before { content: ""; display: var(--bar); width: 2.5rem; height: 3px; background: var(--accent); margin-bottom: .9rem; border-radius: 1px; }
.heroin > div:first-child { container-type: inline-size; }
.hero h1 { font-size: min(calc(clamp(2.3rem, 5.2vw, 3.9rem) * var(--head-scale)), var(--title-fit, 100vw)); line-height: 1.05; letter-spacing: -.015em; margin-top: .75rem; }
.hero h1 em { font-style: var(--em-style); color: var(--accent); }
.hero h1 { overflow-wrap: break-word; }                 /* one long word (Bompengekonferansen) never pushes the page sideways */
.hero .sub { color: var(--on-brand-mute); margin-top: 1rem; font-size: 1.12rem; max-width: 40ch; }
.acts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid currentColor; border-radius: var(--radius-sm); padding: .55rem 1.1rem;
  font: 600 .92rem/1.2 var(--sans); text-decoration: none; color: inherit; background: transparent; cursor: pointer; min-height: 2.75rem; }
.btn:hover { background: rgba(255, 255, 255, .1); }
.btn.solid { background: var(--mark); color: #fff; border-color: var(--mark); }
.btn.big { font-size: 1.05rem; padding: .8rem 1.5rem; }
.count { border-left: 1px solid var(--hero-rule); padding-left: 1.75rem; }
.count .n { display: flex; gap: 1.4rem; }
.count b { display: block; font-family: var(--head); font-weight: var(--h3-weight); font-size: calc(clamp(2.4rem, 4.5vw, 3.5rem) * var(--head-scale)); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.count .n span { font-size: .8rem; color: var(--on-brand-mute); letter-spacing: .08em; text-transform: uppercase; }
.count .when { margin-top: .9rem; color: var(--on-brand-mute); font-size: .95rem; max-width: 34ch; }

/* live */
.live { padding-top: 1.75rem; }
.livein { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 1.75rem; align-items: start; }
.player { aspect-ratio: 16 / 9; background: #0c141c; border-radius: var(--radius); overflow: hidden; position: relative; color: #fff; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.still, .gate { display: grid; place-items: center; text-align: center; }
.gate { position: absolute; inset: 0; background: linear-gradient(160deg, var(--brand) 0%, #0c141c 80%); gap: .75rem; align-content: center; }
.gate p { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.play { display: inline-flex; align-items: center; gap: .75rem; font: 600 1.1rem/1 var(--sans); color: var(--ink); background: #fff;
  border: 0; border-radius: 999px; padding: .9rem 1.6rem .9rem 1.2rem; cursor: pointer; min-height: 3rem; }
.play:hover { background: var(--wash); }
.tri { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.player.still { background: linear-gradient(160deg, var(--brand) 0%, #0c141c 80%); }
/* the office swapped the player: a calm cover over the box while it changes, then it fades away (page.mjs swapPlayer) */
.stage { position: relative; }
.swapnote { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 1.5rem;
  background: linear-gradient(160deg, var(--brand) 0%, #0c141c 80%); color: #fff; border-radius: var(--radius); text-align: center;
  opacity: 0; transition: opacity .4s var(--motion-ease); pointer-events: none; z-index: 2; }
.swapnote.on { opacity: 1; }
.swapnote p { font: 400 1.15rem/1.4 var(--sans); letter-spacing: .01em; color: rgba(255, 255, 255, .92); }
.stillbox { display: grid; gap: .9rem; justify-items: center; padding: 1.5rem; }
.stillbox .eyebrow { color: rgba(255, 255, 255, .8); }
.stillbox h3 { font-size: 1.6rem; }
.stillbox .btn.solid { background: #fff; color: var(--ink); border-color: #fff; }
.under { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .7rem; color: var(--mute); font-size: .92rem; }
.watch { font-weight: 600; }
.meta { color: var(--mute); font-size: .92rem; margin-top: .4rem; }
.nowbox { background: var(--sheet); border: var(--line); border-radius: var(--radius); overflow: hidden; }
.nowbox .k { padding: 1rem 1.25rem; border-top: var(--line); }
.nowbox .k.cur { border-top: 0; background: var(--wash); box-shadow: inset 4px 0 0 var(--mark); }
.nowbox .k.cur .eyebrow { color: var(--mark); }
.nowbox h3 { font-size: calc(1.28rem * var(--h3-scale, 1)); line-height: 1.25; margin-top: .3rem; }
.nowbox .who { color: var(--mute); font-size: .92rem; margin-top: .3rem; }
.nowbox .planned { padding: .7rem 1.25rem; border-top: var(--line); color: var(--mute); font-size: .85rem; }
.side .acts .btn { color: var(--mark); }
.msg { margin-top: 1.25rem; padding: .8rem 1rem; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--mark); border-radius: var(--radius-sm); }

/* programme */
.sec { margin-top: 2.5rem; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 1.25rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.head h2 { font-size: calc(2rem * var(--head-scale)); line-height: 1.1; }
.head p { color: var(--mute); max-width: 52ch; }
.days { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; background: var(--sheet); }
.days[hidden] { display: none; }
.days button { font: 600 .9rem/1.2 var(--sans); border: 0; background: transparent; color: var(--mute); padding: .6rem 1rem; cursor: pointer; min-height: 2.75rem; }
.days button + button { border-left: 1px solid var(--rule); }
.days button[aria-pressed="true"] { background: var(--mark); color: #fff; }
.day + .day { margin-top: 2rem; }
.dayhead { font-size: 1.15rem; margin: 0 0 .6rem; }
.dayhead span { color: var(--mute); font-family: var(--sans); font-size: .95rem; }
.prog { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1.1rem; padding: .9rem 1.25rem; border-top: var(--line); align-items: baseline; }
.row:first-child { border-top: 0; }
.row .t { font-weight: 600; color: var(--mark); font-variant-numeric: tabular-nums; display: grid; }
.row .t .chap { font-weight: 400; color: var(--mute); font-size: .82rem; }
.row h3 { font-size: calc(1.13rem * var(--h3-scale, 1)); line-height: 1.3; }
.row .who { color: var(--mute); font-size: .92rem; margin-top: .15rem; }
.row.brk { background: var(--paper); }
.row.brk h3 { font-size: calc(1rem * var(--h3-scale, 1)); font-style: var(--em-style); color: var(--mute); }
.row.brk .t { color: var(--mute); font-weight: 500; }
.row .tag { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mark); white-space: nowrap; }
.row.now { background: var(--wash); box-shadow: inset 4px 0 0 var(--mark); }
.row.done h3, .row.done .t { color: var(--mute); }
.medias { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .45rem; font-size: .92rem; align-items: baseline; }
.media { font-weight: 600; }
.media span { font-weight: 400; color: var(--mute); }
.soon { color: var(--mute); font-style: italic; }
.credit { color: var(--mute); font-size: .85rem; }

/* after */
.splash .heroin { align-items: center; }
.facts { max-width: 40rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--hero-rule); }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dd { margin: 0; font-family: var(--head); font-weight: var(--h3-weight); font-size: calc(1.9rem * var(--head-scale)); font-variant-numeric: lining-nums; line-height: 1.1; }
.facts dt { color: var(--on-brand-mute); font-size: .85rem; }
.reel { display: flex; align-items: center; justify-content: center; gap: .9rem; aspect-ratio: 16 / 9; border-radius: var(--radius); color: #fff; text-decoration: none;
  background: linear-gradient(200deg, rgba(255, 255, 255, .16) 0%, rgba(0, 0, 0, .35) 80%); font-weight: 600; font-size: 1.1rem; border: 1px solid rgba(255, 255, 255, .3); }
.recs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.nexty { margin-top: 2.5rem; }

/* foot */
.foot { margin-top: 3.5rem; border-top: var(--line); background: var(--sheet); }
.footin { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; padding-top: 1.3rem; padding-bottom: 1.3rem; color: var(--mute); font-size: .85rem; }

/* phone */
@media (max-width: 760px) {
  .wrap { padding: 0 1rem; }
  .heroin { grid-template-columns: minmax(0, 1fr); padding: 2.25rem 1rem 2rem; gap: 1.5rem; }
  .hero h1 { font-size: min(calc(2.3rem * var(--head-scale)), var(--title-fit, 100vw)); }
  .count { border-left: 0; border-top: 1px solid var(--hero-rule); padding: 1.25rem 0 0; }
  .livein { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .live { padding-top: 0; }
  .live .wrap { padding: 0; }
  .live .player, .live .swapnote { border-radius: 0; }
  .live .meta, .live .under, .live .side { padding: 0 1rem; }
  .row { grid-template-columns: 3.4rem minmax(0, 1fr); padding: .8rem 1rem; gap: .75rem; }
  .row .tag { grid-column: 2; }
  .top nav { gap: 1rem; }
  .head h2 { font-size: calc(1.6rem * var(--head-scale)); }
  .facts dd { font-size: calc(1.3rem * var(--head-scale)); }
}
/* motion (the preset's: calm fade, crisp lift, typed steps) - only what changed moves, never the page */
@keyframes look-in { from { opacity: 0; transform: translateY(var(--motion-shift)); } }
.nowbox .k, .count .chg b { animation: look-in var(--motion-dur) var(--motion-ease) both; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .top nav, #hero .acts, .player, #labpanel { display: none; } .hero { background: none; color: var(--ink); } }
