@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bedstead"; src: url("fonts/bedstead.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

html, body { height: 100%; overflow: hidden; }
.antenna { position: relative; margin: 0; background: var(--bg-0); }

/* The reference screen is 1920 x 1080; --fit (set by app.js) scales it to the window. */
.antenna .screen {
  position: absolute;
  left: calc(50% - var(--rz-w) / 2);
  top: calc(50% - var(--rz-h) / 2);
  zoom: 1;
  transform: scale(var(--fit, 1));
  transform-origin: 50% 50%;
}

.view { position: absolute; inset: 0; visibility: hidden; }
.view.is-on { visibility: visible; }
.screen-fill { position: absolute; inset: 0; }
.il__row--solo { grid-template-columns: minmax(0, 1fr); }
.is-hidden { display: none !important; }
/* Visually hidden, kept for readers and robots (the antenna title). */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.player iframe { display: block; width: 100%; height: 100%; border: 0; }
.mentions a { color: inherit; }
.mentions a:focus-visible, .btn:focus-visible { outline: var(--rz-focus) solid var(--acc); outline-offset: 4px; }

/* Column lists: always visible, even when the band rests (.air--rest fades only the sheet's blocks). */
.rail__lists { display: grid; align-content: start; gap: var(--sp-tv-2); flex: 1 1 0; min-height: 0; overflow: hidden; }
.rail__list { display: grid; gap: 2px; padding-top: 10px; border-top: var(--stroke) solid var(--line); min-width: 0; }
.rail__list--played { color: var(--tx-mu); }
.rline { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; line-height: 1.15; min-width: 0; }
.rline__t { font-family: var(--font-data); font-variant-numeric: tabular-nums; color: var(--tx-mu); }
.rline__a { font-family: var(--font-display); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* One line per clip (time, artist): the column is too narrow for the title, and two lines per clip
   would cut the Played list (columnNext + columnPlayed lines must fit in the column at 1920 x 1080). */
.rline__n { display: none; }
.rail__list--played .rline__a { font-weight: 500; }

/* Footer: Now / Next on the first row, the link row below. */
.band { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.band__mini-n { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx-mu); }
.band__links { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-top: 6px; font-family: var(--font-data); font-size: var(--fs-tv-meta); }
.band__link { color: var(--tx-mu); text-decoration: none; padding: 2px 4px; }
.band__link:hover { color: var(--tx); }
.band__link:focus-visible { outline: var(--rz-focus) solid var(--acc); outline-offset: 2px; background: var(--tx); color: var(--bg-0); }
.screen--land .band__links { display: none; }

/* Brand name on the playing screen: .air--rest fades the whole rail block, but the name stays; only the channel fades. */
/* Logo: the K2 header line takes the place of the name line of the column (its zoom follows the font size of the line). */
.rail__name .hd, .js-logo .hd { width: max-content; }
.rail__slogan { display: block; margin-top: 6px; font-family: var(--font-data); font-size: var(--fs-col-min); line-height: 1.2; color: var(--tx-mu); }
.rail__slogan:empty { display: none; }
.rail__micro { display: block; margin-top: 4px; font-family: var(--font-data); font-size: var(--fs-col-min); line-height: 1.2; color: var(--tx-mu); text-transform: uppercase; letter-spacing: .04em; }
.rail__micro:empty { display: none; }
.rail__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-chan, 28px); line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.air--rest .rail__block { opacity: 1; }
.air--rest .rail__block .chan { opacity: 0; transition: opacity var(--dur-band) var(--ease-air); }
.rail__block .chan { transition: opacity var(--dur-band) var(--ease-air); }

/* Composition changes: the player is off screen while the composition tears down and builds up
   (nothing plays then; the next clip is only cued), so its frame is hidden, not just faded. */
.lay--out .player iframe, .lay--in .player iframe { visibility: hidden; }

/* Cut interlude: the K1 main logo (x1.2 = 300 px high), centred above the bars (top 450 px) of the 1920 x 1080 reference
   screen. The kit's `.pk:has(> .vn)` rule sets justify-self: start, which put the logo against the left edge. */
.il .il__pass { left: 0; right: 0; top: 120px; display: grid; justify-items: center; }
.il__pass .mlogo { justify-self: center; }

/* Ident interlude: the K1 main logo, centred in its band (x2 = about 500 px high on the reference screen). */
.il__logo { top: 215px; }
.il__logo .mlogo { justify-self: center; }

/* Arrival screen: the K1 logo fills the mire box (fitted by the code); the call and its hint stay under it. */
.stage .mlogo, .mire__disc .mlogo, .tune__mire .mlogo { justify-self: center; align-self: center; }
.tune__mire { display: grid; place-items: center; }

/* Calm (reduced motion asked, flag set by the code): the logo stays lit, no flicker. */
.lay-calm .mlogo *, .lay-calm .hd *, .lay-calm .mlogo, .lay-calm .hd { animation: none; }

/* Arrival screen: the name line, when the call does not carry it. */
.tune__name { font-size: clamp(24px, calc(8 * var(--ch)), 120px); text-transform: uppercase; }

/* Card QR: dark modules on a light plate (scanners need the contrast, whatever the theme). */
.qr.qr--code { background: #fff; border: 0; padding: 0; }
.qr__svg { display: block; width: 100%; height: 100%; }
.qr__plate { fill: #fff; }
.qr__ink { fill: #000; }

/* Phone in portrait: the antenna is tiny, so a link to /now sits above it. */
.portrait-note { position: absolute; left: 16px; right: 16px; top: 12px; z-index: 2; text-align: center; font-family: var(--font-data); font-size: 16px; color: var(--tx); border: 2px solid var(--tx); padding: 10px 12px; text-decoration: none; }
.portrait-note:focus-visible { outline: var(--rz-focus) solid var(--acc); outline-offset: 2px; }

.muted-hint {
  position: relative; display: block; justify-self: start; margin: .2em 0; padding: .45em .8em;
  border: 2px solid var(--acc); border-radius: .5em; color: var(--acc);
  font-family: var(--font-data); font-size: calc(var(--fs-col-min) * 1.25); font-weight: 700; line-height: 1.2;
  letter-spacing: .08em; text-transform: uppercase;
  text-shadow: 0 0 .4em var(--acc); box-shadow: 0 0 .6em var(--acc), inset 0 0 .5em var(--acc);
  animation: hint-flicker 7s steps(1, end) infinite;
}
/* The glow breathes on a pseudo-element (opacity only, television rule). */
.muted-hint::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 1.4em .2em var(--acc); opacity: .2; animation: hint-breathe 1.6s ease-in-out infinite alternate;
}
@keyframes hint-breathe { to { opacity: .9; } }
@keyframes hint-flicker { 0%, 91%, 93.5%, 100% { opacity: 1; } 92% { opacity: .35; } 93% { opacity: .8; } 93.2% { opacity: .3; } }
.lay-calm .muted-hint, .lay-calm .muted-hint::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .muted-hint, .muted-hint::after { animation: none; } }

/* Brand phrases (docs/antenne.md, "Phrases"): the foot line of the antenna, the Card line, the lines of the test card and of the off-air screen. */
.foot__phrase { margin: 0; padding-top: 4px; font-family: var(--font-data); font-size: var(--fs-tv-meta); color: var(--tx-mu); }
.foot__phrase:empty { display: none; }
.il__phrase { position: absolute; left: var(--rz-safe-x); right: var(--rz-safe-x); top: calc(var(--rz-safe-y) + 140px); margin: 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.1; color: var(--tx-mu); text-wrap: balance; animation: il-fade-in var(--dur-il-in) ease-out calc(var(--dur-il-in) * .5) both, il-fade-out var(--dur-il-out) ease-in calc(var(--il-dur) - var(--dur-il-out)) both; }
.mire__phrase, .stage__phrase { margin: 0; }
.stage__phrase { text-align: center; }

/* ------------------------------------------------------------------ interlude skins (docs/interludes.md) */

:root {
  --tt-k: #000; --tt-r: #f00; --tt-g: #0f0; --tt-y: #ff0; --tt-b: #00f; --tt-m: #f0f; --tt-c: #0ff; --tt-w: #fff;
  --tt-roll-dur: 900ms;
}

/* Card on the hour: the voice phrase as a subtitle (same place as the Card line, which it replaces). */
.il__voice { position: absolute; left: var(--rz-safe-x); right: var(--rz-safe-x); top: calc(var(--rz-safe-y) + 120px); margin: 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.1; color: var(--tx); text-wrap: balance; animation: il-fade-in var(--dur-il-in) ease-out var(--voice-delay, 0ms) both, il-fade-out var(--dur-il-out) ease-in calc(var(--il-dur) - var(--dur-il-out)) both; }

/* Notice skin: a notice board in full screen, readable at 3 m. */
.nt__top { position: absolute; top: var(--rz-safe-y); left: var(--rz-safe-x); right: var(--rz-safe-x); display: flex; justify-content: space-between; align-items: baseline; animation: il-fade-in var(--dur-il-in) ease-out both, il-fade-out var(--dur-il-out) ease-in calc(var(--il-dur) - var(--dur-il-out)) both; }
.nt__brand { font-family: var(--font-display); font-weight: 700; font-size: 40px; text-transform: uppercase; letter-spacing: .04em; }
.nt__time { font-family: var(--font-data); font-weight: 500; font-size: 40px; font-variant-numeric: tabular-nums; color: var(--tx-mu); }
.nt__sheet { position: absolute; left: 192px; right: 192px; top: 170px; bottom: 270px; box-sizing: border-box; display: grid; align-content: center; gap: 20px; padding: 40px 72px; background: var(--bg-1); border: 6px solid var(--tx); border-top: 28px solid var(--acc); animation: il-fade-in var(--dur-il-in) ease-out calc(var(--dur-il-in) * .5) both, il-fade-out var(--dur-il-out) ease-in calc(var(--il-dur) - var(--dur-il-out)) both; }
.nt__head { font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.nt__from { font-family: var(--font-data); font-size: 32px; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-mu); }
.nt__text { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 96px; line-height: 1.05; text-wrap: balance; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }

/* Teletext skin: 40 columns, 8 colours, a monospaced face (Bedstead, else the data face). */
.il--teletext { background: var(--tt-k); }
.il--teletext .grid-bg { display: none; }
.tt { --tt-fs: min(calc((var(--rz-w) - 2 * var(--rz-safe-x)) / (var(--tt-cols) * .6)), calc((var(--rz-h) - 2 * var(--rz-safe-y)) / var(--tt-rows))); position: absolute; inset: var(--rz-safe-y) var(--rz-safe-x); display: grid; align-content: center; justify-content: center; font-family: Bedstead, var(--font-data); font-size: var(--tt-fs); line-height: 1; color: var(--tt-w); animation: il-fade-out var(--dur-il-out) ease-in calc(var(--il-dur) - var(--dur-il-out)) both; }
.tt__row { display: flex; width: calc(var(--tt-cols) * 1ch); height: 1em; overflow: hidden; }
.tt__run { flex: none; white-space: pre; }
.tt__counter { display: inline-block; height: 1em; width: 4ch; overflow: hidden; }
.tt__roll { display: flex; flex-direction: column; transform: translateY(calc(-1em * (var(--tt-roll) - 1))); animation: tt-roll var(--tt-roll-dur) steps(var(--tt-steps), end) both; }
.tt__num { display: block; height: 1em; }
.tt__body { animation: tt-body-in 160ms linear var(--tt-roll-dur) both; }
@keyframes tt-roll { from { transform: translateY(0); } }
@keyframes tt-body-in { from { opacity: 0; } }
.tt-fg-k { color: var(--tt-k); } .tt-fg-r { color: var(--tt-r); } .tt-fg-g { color: var(--tt-g); } .tt-fg-y { color: var(--tt-y); }
.tt-fg-b { color: var(--tt-b); } .tt-fg-m { color: var(--tt-m); } .tt-fg-c { color: var(--tt-c); } .tt-fg-w { color: var(--tt-w); }
.tt-bg-k { background: var(--tt-k); } .tt-bg-r { background: var(--tt-r); } .tt-bg-g { background: var(--tt-g); } .tt-bg-y { background: var(--tt-y); }
.tt-bg-b { background: var(--tt-b); } .tt-bg-m { background: var(--tt-m); } .tt-bg-c { background: var(--tt-c); } .tt-bg-w { background: var(--tt-w); }

/* Calm (prefers-reduced-motion, set on the screen by the code): the skins appear at once. The sheet's own
   reduced-motion rule already cancels every animation; this one also covers the flag set by the code. */
.lay-calm .tt, .lay-calm .tt__roll, .lay-calm .tt__body, .lay-calm .nt__top, .lay-calm .nt__sheet, .lay-calm .il__voice { animation: none; }

/* Cinema: the name block lives on the single title line under the player (--cine-line). It must stay inside
   that line, never over the player nor the lists: one row (logo, channel), no slogan or micro line. */
.lay--cinema .rail__block { display: flex; align-items: center; gap: var(--g); max-height: var(--cine-line); overflow: hidden; }
.lay--cinema .rail__slogan, .lay--cinema .rail__micro { display: none; }

/* The column's sign slot stays empty (the compositions keep its grid cell); the main logo (K1) sits on the name
   line, fitted to the column by the code (fitLogo); the one-line compositions (cinema) show K2 instead. */
.sign.sign--blank { visibility: hidden; }
/* Cinema too carries the K1 of the loading screen (2026-10-19), much reduced in its band: --cinema-logo-zoom (about
   60 px high) at most, lowered by the code to the height of the band (--cinema-logo-fit, fitCinemaLogo). It wins
   over the zoom fitLogo sets inline, which measures a column the band does not have. */
.lay--cinema { --cinema-logo-zoom: .25; }
.lay--cinema .rail__name .rail__k1 { zoom: var(--cinema-logo-fit, var(--cinema-logo-zoom)) !important; flex: none; align-self: center; }

/* Column lists stacked in the column (every composition but split, ledger and cinema, which set their own rows): the
   sheet's floors (caption + 3 and + 5 lines) leave out the list's top stroke, so a column at its floor showed one line
   less in each list (2 and 4 at 1920 x 1080 in classic) above a strip of empty room. The stroke and a pixel of
   rounding are added. */
.lay:not(.lay--split):not(.lay--ledger):not(.lay--cinema) .rail__lists { grid-template-rows: minmax(calc(var(--col-cap) + 3 * var(--col-lh) + var(--stroke) + 1px), .36fr) minmax(calc(var(--col-cap) + 5 * var(--col-lh) + var(--stroke) + 1px), .64fr); }

/* The sheet lets the lists overflow (overflow: visible, for the light running round the column, inset -4px): in a short
   column (960 x 540) the Played lines then ran under the NEXT block. Clipped, with room left for that light. */
.lay .rail__lists { overflow: hidden; overflow: clip; overflow-clip-margin: 6px; }

/* Column lists: a line takes the height of its grid row. The sheet gives .rline a fixed height, so the lines past
   the fitted count (placed in the zero-height implicit rows) overflowed onto the last visible line. */
.lay .rail__list > .rline { height: auto; min-height: 0; }

/* ------------------------------------------------------------------ sticky footer (2026-10-18) */
/* The foot stays visible at the bottom of the window. The screen is a size container covering the window
   (a containing block for fixed boxes), and the grid keeps its footer row, so nothing sits under the foot. */
.lay .foot {
  position: fixed; left: var(--sx); right: var(--sx); bottom: 0; z-index: 3;
  box-sizing: border-box; min-height: var(--foot-h); padding-bottom: calc(var(--sy) * .25);
  background: var(--bg-0);
}
.lay--cinema .foot { left: calc(50% - var(--pw, 100%) / 2); right: auto; width: var(--pw); }
@container screen (min-aspect-ratio: 2/1) {
  .lay--cinema .foot { left: var(--sx); right: var(--sx); width: auto; }
}

/* ------------------------------------------------------------------ Now playing (2026-10-18) */
/* Title and artist of the clip on air: bigger and in full contrast in every composition. The sheet's
   --fs-artist and --fs-title stay as they are (they size the next clip, the clock and the channel). */
.lay {
  --fs-now-a: clamp(22px, calc(5.6 * var(--ch)), 96px);
  --fs-now-t: clamp(16px, calc(3.7 * var(--ch)), 64px);
  --now-glow: 0 0 .55em color-mix(in srgb, var(--acc) 38%, transparent);
  --band-h: calc(var(--fs-now-a) * 1.2 + var(--fs-now-t) * 1.3 + var(--rg) * 1.4);
}
.lay .band__col--title .artist { font-size: var(--fs-now-a); font-weight: 800; color: var(--tx); text-shadow: var(--now-glow); }
.lay .band__col--title .title { font-size: var(--fs-now-t); font-weight: 500; color: var(--tx); }
.lay .band__mini-a { font-weight: 800; }

/* cinema: one line; artist and title side by side at the title size. */
.lay--cinema .air { --cine-line: calc(var(--fs-now-t) * 1.4); }
.lay--cinema .band__col--title .artist, .lay--cinema .band__col--title .title { font-size: var(--fs-now-t); line-height: 1.25; }
.lay--cinema .band__col--title .artist { flex: 0 1 auto; max-width: 60%; }
.lay--cinema .band__col--title .title { flex: 1 1 0; min-width: 0; }

/* split: the title grows with the artist; two lines at most. */
.lay--split .band__col--title .title { font-size: max(var(--fs-now-t), calc(var(--fs-split) * .55)); line-height: 1.15; }

/* poster: the title under the artist, larger. */
.lay--poster .air { --fs-poster-t: calc(6.4 * var(--ch)); }
.lay--poster .band__col--title .title { font-weight: 600; }

/* ledger: a larger artist within the right-hand space. */
.lay--ledger .band__col--title .artist { font-size: min(calc(8 * var(--ch)), calc((var(--W) - var(--pw)) / var(--fit-n, 12) / .6)); }
.lay--ledger .band__col--title .title { line-height: 1.15; }

/* ------------------------------------------------------------------ right column: one axis, one vertical rhythm (2026-10-18) */
/* Defect fixed here, present before the animated-dressing sheet (same capture with the previous sheet): in the
   stacked column compositions the sound hint overlapped the artist and the title overlapped "NEXT", because the
   column content (clock, K1 logo, channel, slogan, micro line, hint, title, next) outgrew the player's height.
   The sheet's .rail > .clock also sat in its own grid column, so the clock had a different axis from the logo.

   NEW TOKENS (prefix --rail-, on .lay, same values in the six compositions):
   --rail-s1 --rail-s2 --rail-s3   vertical spacing scale of the column: small, medium, large (fractions of --rg).
                                   channel after logo: s2; slogan and micro line: s1; hint after text: s2; clock to logo: s3.
   --rail-hint-h                   room reserved for the sound hint (two lines), kept when the hint is hidden, so that
                                   the hint never pushes nor covers the title.
   --rail-axis                     axis of the whole column: start (left edge of the column, default) or end (right edge,
                                   set by the poster composition, whose column sits left of the player and is right-aligned).
                                   --rail-flex and --rail-text carry the same choice for flex items and text.
   --rail-clock-em                 width of the clock string "hh:mm:ss" in em (JetBrains Mono: five characters at .6em and
                                   the seconds at .45em, plus a margin): the clock's font size is the logo's width divided by it.
   --ledger-player                 share of the width taken by the player in the ledger composition (default .64: a taller
                                   column, so that the stacked column fits next to it).
   --fs-next-t                     size of the next clip's line (NEXT), clearly under the clip on air (--fs-now-a, --fs-now-t).
   --rail-logo-axis                position of the logo (and of the clock under it, same width) in the column: center in every
                                   composition, whatever --rail-axis says for the text lines (one rule, one place).
   Axis chosen for the text lines: the left edge, because the K1 logo, the channel name, the slogan and the hint are already flush on it in four
   compositions of six; only the clock was apart. */
.lay {
  --rail-s1: calc(var(--rg) * .4);
  --rail-s2: calc(var(--rg) * .8);
  --rail-s3: calc(var(--rg) * 1.4);
  --rail-hint-h: calc(var(--fs-col-min) * 1.25 * 3.9 + 4px);
  --rail-axis: start; --rail-flex: flex-start; --rail-text: left;
  --rail-logo-axis: center;
  --rail-clock-em: 3.9;
  --fs-next-t: calc(var(--fs-now-t) * .62);
}
.lay--poster { --rail-axis: end; --rail-flex: flex-end; --rail-text: right; }

.lay:is(.lay--classic, .lay--left, .lay--ledger, .lay--poster, .lay--split) .sign.sign--blank { display: none; }
/* Clock under the K1 logo, same width (2026-10-18). The clock now lives in the name line (.rail__name), after the logo:
   the line is a one-track grid whose track is as wide as the logo only (the clock element has size containment, so it adds
   nothing to the width) and whose position is --rail-logo-axis (centred). The digits are sized from that width (cqi). Cinema keeps
   its one-line band: there the name line dissolves (display: contents) and the clock follows the K2 header. */
.lay:not(.lay--cinema) .rail__name { display: grid; grid-template-columns: max-content; justify-content: var(--rail-logo-axis); width: 100%; row-gap: var(--rail-s3); }
.lay:not(.lay--cinema) .rail__clock { container-type: inline-size; width: 100%; letter-spacing: 0; text-transform: none; }
.rail__clock .clock__in { display: block; white-space: nowrap; letter-spacing: 0; line-height: 1; font-size: calc(100cqi / var(--rail-clock-em)); position: relative; padding-bottom: .32em; }
/* Seconds marks under the digits (the sheet's, which targeted .rail > .clock). */
.rail__clock .clock__in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .12em; background-image: repeating-linear-gradient(90deg, var(--tx-mu) 0 2px, transparent 2px calc(100% / 12)); opacity: .55; }
.rail__clock .clock__in::before { content: ""; position: absolute; left: 0; bottom: 0; width: calc(100% / 60); height: .2em; background: var(--acc); box-shadow: 0 0 6px var(--acc); animation: mz-sec 60s steps(60) calc(-1 * var(--mz-sec)) infinite; }
.lay--cinema .rail__name { display: contents; }
.lay--cinema .rail__clock { order: 9; width: auto; flex: none; margin-left: auto; }
@container screen (max-aspect-ratio: 1/1) { .lay--cinema .rail__clock { order: 5; } .lay--cinema .rail__block > .muted-hint { display: none; } }
.lay--cinema .rail__clock .clock__in { font-size: var(--fs-title); }
/* The column block starts at the first row of the column (the clock's cell is gone: no empty row above it). */
.lay:is(.lay--classic, .lay--ledger, .lay--poster, .lay--split) .rail__block { grid-row: sign-start / chan-end; }
.lay--left .rail__block { grid-row: clock-start / chan-end; }
.lay:is(.lay--classic, .lay--ledger, .lay--split) .rail__block { grid-column: sign-start / clock-end; }
.lay:is(.lay--classic, .lay--left, .lay--ledger, .lay--poster) .rail__block {
  display: flex; flex-direction: column; align-items: var(--rail-flex); text-align: var(--rail-text);
  justify-self: var(--rail-axis); width: 100%; gap: 0; align-self: start;
}
.lay:is(.lay--classic, .lay--left, .lay--ledger, .lay--poster, .lay--split) .rail__block { padding-top: 0; }
.lay:not(.lay--cinema) .rail__block > .chan { margin-top: var(--rail-s2); }
.lay:not(.lay--cinema) .rail__slogan { margin-top: var(--rail-s1); }
.lay:not(.lay--cinema) .rail__micro { margin-top: var(--rail-s1); }
.lay:not(.lay--cinema) .rail__block > .muted-hint { margin: var(--rail-s2) 0 0; min-height: var(--rail-hint-h); box-sizing: border-box; display: flex; align-items: center; max-width: 100%; }
/* Hidden hint: the room stays, nothing shows. */
.lay:not(.lay--cinema) .rail__block > .muted-hint.is-hidden { visibility: hidden; display: flex; }
.lay .rail__block > .muted-hint.is-hidden::after { display: none; }

/* Now playing and Next: two firm levels for the clip on air (artist, title), and a clearly smaller line for NEXT. */
.lay .band__col--next .title { font-size: var(--fs-next-t); font-weight: 500; line-height: 1.2; }
.lay--split .band__col--next .title, .lay--left .band__col--next .title { font-size: var(--fs-next-t); }
.lay .band__col--next .cap { font-size: var(--fs-cap); }

/* Split: the logo block starts at the left edge of the title below it (the sheet's blank sign cell shifted it). */

/* Stacked right-hand column (ledger): the title cell takes the room left and never covers its neighbours. */
.lay--ledger { --ledger-player: .64; --rail-hint-h: calc(var(--fs-col-min) * 1.25 * 2.1 + 4px); }
.lay--ledger .air { --pw: min(calc(var(--W) * var(--ledger-player)), calc((var(--H) - var(--ledger-min) - var(--foot-h) - 2 * var(--rg)) * 16 / 9)); grid-template-rows: auto auto minmax(0, 1fr) auto var(--ledger-h) var(--foot-h); }
.lay--ledger .band__col--title { align-self: start; min-height: 0; overflow: hidden; }
.lay--ledger .band__col--title .artist { font-size: min(calc(6.4 * var(--ch)), calc((var(--W) - var(--pw)) / var(--fit-n, 12) / .6)); }
.lay--ledger .band__col--title .title { font-size: calc(var(--fs-now-t) * .9); }

/* Cinema: one line; the artist never spills over the title (the sheet's artist is overflow: visible). */
.lay--cinema .band__col--title .artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lay--cinema .rail__block > .muted-hint { font-size: calc(var(--fs-col-min) * .9); padding: .2em .6em; white-space: nowrap; margin: 0; }

/* ------------------------------------------------------------------ animated dressing, lot 2 (docs/habillage-anime.md) */
/* The layers (.mz-bg, .mz-deco) are inserted by decor.ts as siblings of the views, before them: painted under the
   player, never over it. The margin decor sizes itself on --sx and --sy of the fluid screen: it only exists on .lay. */
.screen:not(.lay) > .mz-deco { display: none; }

/* Nothing of the dressing under the column's text (2026-10-18). The background layers (.mz-bg) and the margin decor (.mz-deco)
   are painted under the screen's content, but their shapes (colour bars of the test card, discs, rain, lights...) drift
   anywhere and made the clock, the logo, the channel, the phrase and NEXT hard to read. The column therefore gets a veil:
   one or two pseudo-elements of .rail, placed in the grid on the areas of the column (never on the player), painted with
   --rail-veil, a strong tint of the page background. The veil lies above the layers and below the text, whatever the
   variant (v1 to v4, v6 to v8) and the composition.
   NEW TOKEN  --rail-veil   colour of the veil under the column (default: the page background at 94 %, so that the decor
                            only shows as a ghost; set it to the background itself to hide the decor there altogether). */
.lay { --rail-veil: color-mix(in oklch, var(--bg-0) 94%, transparent); }
.lay .rail::before, .lay .rail::after { background: var(--rail-veil); pointer-events: none; }
.lay .band__col--next { background: var(--rail-veil); }
.lay--classic .rail::before { content: ""; grid-row: sign-start / lists-end; grid-column: sign-start / clock-end; }
.lay--ledger .rail::before { content: ""; grid-row: sign-start / next-end; grid-column: sign-start / clock-end; }
.lay--ledger .rail::after { content: ""; grid-row: lists-start / lists-end; grid-column: lists-start / lists-end; }
.lay--split .rail::before { content: ""; grid-row: sign-start / title-end; grid-column: sign-start / clock-end; }
.lay--split .rail::after { content: ""; grid-row: next-start / lists-end; grid-column: next-start / lists-end; }
.lay--poster .rail::before { content: ""; grid-row: sign-start / next-end; grid-column: sign-start / sign-end; }
.lay--poster .rail::after { content: ""; grid-row: lists-start / lists-end; grid-column: lists-start / lists-end; }
.lay--left .rail::before { content: ""; grid-row: clock-start / lists-end; grid-column: clock-start / clock-end; }
.lay--cinema .rail::before { content: ""; grid-row: sign-start / lists-end; grid-column: 1 / -1; }
@container screen (min-aspect-ratio: 2/1) {
  .lay--cinema .rail::before { grid-row: sign-start / sign-end; grid-column: sign-start / clock-end; }
  .lay--cinema .rail::after { content: ""; grid-row: lists-start / lists-end; grid-column: lists-start / lists-end; }
}
/* Split: the column block now spans the logo's and the clock's columns, so the hint fits on one line: little room reserved. */
.lay--split { --rail-hint-h: calc(var(--fs-col-min) * 1.25 * 1.6 + 4px); --rail-s2: calc(var(--rg) * .3); }
/* ------------------------------------------------------------------ front desk bell (docs/interludes.md) */
/* Rule of three marks under the clock: 1, 2, 3 lit at the quarters, empty on the hour. Opacity and colour only. */
.clock__rule { display: flex; gap: .3em; margin: .3em 0 .3em; }
.clock__mark { flex: 0 0 auto; width: 1.6em; height: .14em; background: var(--tx-mu, currentColor); opacity: .28; }
.clock__mark.is-lit { background: var(--acc); opacity: 1; }
.desk-line.is-hidden { display: none; }
/* The viewer's switch for the bell: last item of the footer link row, in its look, a little dimmer; never over the player. */
.bell-switch { margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; opacity: .6; }
.bell-switch:hover, .bell-switch:focus-visible { opacity: 1; outline: var(--rz-focus, 2px) solid var(--acc); outline-offset: 4px; }
/* Arrival screen: the call keeps its natural size between the two sets of chevrons (the sheet's chevrons are 100 % wide alone). */
.mz-call .mz-chev { width: auto; flex: 0 0 auto; }
.mz-call .tune__call { flex: 0 0 auto; white-space: nowrap; }

/* Neon (docs/pochettes.md): the grid of classic (the screen carries .lay--neon and .lay--classic) and a tube of light around the player,
   for a clip dressed because its picture is a still cover. The frame lies outside the player's box (outline and outer shadow only,
   nothing inset, nothing in front), the player is neither moved nor resized, and the width of the outline stays under the gaps of the
   grid so that it never touches the text next to it. Tokens: the brand accent; width, gap and glow are the three lines below.
   Since 2026-11-06 (Gr3g's go) every composition carries the tube and rounded corners (--m404-rayon-lecteur, overflow hidden
   so that the frame clips the corners too); the dressed clip keeps its own mark with a wider glow (--neon-glow 40px). */
/* The gap shrinks with the grid's gutter (--rg, 8px at the smallest) so that the tube never crosses into the next block. */
.lay { --neon: var(--acc); --neon-w: 3px; --neon-gap: min(6px, calc(var(--rg) - var(--neon-w) - 1px)); --neon-glow: 26px; --m404-rayon-lecteur: 14px; }
.lay--neon { --neon-glow: 40px; }
.lay .player {
  border-radius: var(--m404-rayon-lecteur);
  overflow: hidden;
  outline: var(--neon-w) solid var(--neon);
  outline-offset: var(--neon-gap);
  box-shadow: 0 0 var(--neon-glow) calc(var(--neon-gap) + var(--neon-w)) color-mix(in oklch, var(--neon) 38%, transparent);
}
/* Torn down with the composition: no frame while the player is off screen. */
.lay--out .player, .lay--in .player { outline-color: transparent; box-shadow: none; }

/* Reception panel (lexique m404, docs/antenne.md): the presentation of the channel. Closed by default; open, it takes the place of the
   column (the counter) of the composition pinned for it, so it never covers the player. The text is sized on the real width of the panel. */
.screen {
  --m404-papier: var(--bg-0);
  --m404-encre: var(--tx);
  --m404-estompe: var(--tx-mu);
  --m404-accent: var(--acc);
  --m404-filet: color-mix(in srgb, var(--tx) 28%, transparent);
  --m404-marge: var(--sp-tv-2);
  --m404-corps-bandeau: var(--fs-tv-meta);
  --m404-temps-sonnette: var(--dur-band);
  --m404-courbe-ascenseur: var(--ease-air);
}
.m404-reception {
  position: absolute; z-index: 30; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; container-type: inline-size;
  inset: 0 auto auto 0; width: 0; height: 0; padding: 0;
  background: var(--m404-papier); color: var(--m404-encre); font-family: var(--font-data);
}
/* Closed: kept in the page (the text is there for everybody), drawn nowhere, out of the tab order. */
.m404-reception[data-etat="ferme"] { content-visibility: hidden; }
.m404-reception[data-etat="ouvert"] {
  inset: 0; width: auto; height: auto; padding: calc(var(--m404-marge) * .8); border: 1px solid var(--m404-filet);
  animation: m404-ouverture var(--m404-temps-sonnette) var(--m404-courbe-ascenseur) both;
}
@keyframes m404-ouverture { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .m404-reception[data-etat="ouvert"] { animation: none; } }
/* The place of the panel in each composition: the area of its column (the same lines as the veil of the column, .rail::before). */
.lay--classic .m404-reception[data-etat="ouvert"], .lay--neon .m404-reception[data-etat="ouvert"] { grid-row: sign-start / lists-end; grid-column: sign-start / clock-end; }
.lay--split .m404-reception[data-etat="ouvert"] { grid-row: sign-start / lists-end; grid-column: sign-start / clock-end; }
.lay--left .m404-reception[data-etat="ouvert"] { grid-row: clock-start / lists-end; grid-column: clock-start / clock-end; }
.lay--ledger .m404-reception[data-etat="ouvert"] { grid-row: sign-start / next-end; grid-column: sign-start / clock-end; }
.lay--poster .m404-reception[data-etat="ouvert"] { grid-row: sign-start / lists-end; grid-column: sign-start / sign-end; }
.lay--cinema .m404-reception[data-etat="ouvert"] { grid-row: sign-start / lists-end; grid-column: 1 / -1; }
/* Sized on the panel: about 48 signs to the line whatever its width (the font of the text is monospaced, 0.6 em a sign). A container unit
   counts from the nearest container above the element, so the size is applied to the children of the panel, not to the panel. */
.m404-reception { --m404-corps-panneau: clamp(11px, calc(100cqw / 30), 30px); }
.m404-reception-tete, .m404-reception-corps { font-size: var(--m404-corps-panneau); line-height: 1.5; }
.m404-reception-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4em 1em; min-width: 0; padding-bottom: .6em; border-bottom: 1px solid var(--m404-filet); }
.m404-reception-titre { margin: 0; min-width: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.2em; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.m404-reception-corps { flex: 1 1 0; min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto; overflow-wrap: anywhere; }
.m404-reception-corps p { margin: .8em 0 0; }
.m404-reception-corps a { color: var(--m404-accent); }
.m404-reception-fermer, .m404-reception-ouvrir { margin: 0; border: 0; background: transparent; color: var(--m404-estompe); font: inherit; cursor: pointer; padding: 2px 4px; }
.m404-reception-ouvrir { font-family: var(--font-data); font-size: var(--fs-tv-meta); }
.m404-reception-fermer:hover, .m404-reception-ouvrir:hover { color: var(--m404-encre); }
.m404-reception-fermer:focus-visible, .m404-reception-ouvrir:focus-visible, .m404-reception-corps a:focus-visible { outline: var(--rz-focus) solid var(--m404-accent); outline-offset: 2px; background: var(--m404-encre); color: var(--m404-papier); }
.m404-reception-corps:focus-visible { outline: var(--rz-focus) solid var(--m404-accent); outline-offset: -2px; }
