/* SpiteTV site. One file: page, six guide themes, TV states, print.
   Every screen measure inside the TV is in container query units of the
   screen (cqw). The module changes only attributes and the custom
   properties listed in docs/dom-contract.md. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.ae27ac78e0.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 62% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 84%;
  descent-override: 20%;
}

:root {
  --ink: #170D55; --band: #4A44C6; --deep: #0D0A2A; --rule: #5A55B0;
  --cream: #F3ECD2; --lilac: #D4D0F7; --spite: #F2C230; --outline: #2B2622;
  --bar: #8C86FF; --now: #E04838; --soft: #1E1368;
  /* Page chrome (DESIGN 18) */
  --hdr-h: 56px; --container: 1200px; --gutter: 28px; --read: calc(58ch + 32px);
  /* The drawn set and the plain pages (not app tokens) */
  --cab: #1D1B26; --cab-2: #121018; --cab-edge: #34313F; --stand: #15131C; --stand-2: #0C0B11;
  --led: #5FE07A; --led-off: #3A2A20; --off: #050507; --off-line: #E8E8F0; --static: #7F7F7F;
  --nosig: #6E6E6E; --nosig-msg: #0E1A2E; --paper-rule: #B9B09A; --paper-ink: #4A4238;
  --col: 560px; /* reading column with its 16 px gutters: 68 characters a line at most */
  --f-site: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --f-sys: system-ui, -apple-system, "Segoe UI", Roboto, "Archivo", sans-serif;
  --f-round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Archivo", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-width: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--ink);
  color: var(--cream); font: 500 17px/1.55 var(--f-site); font-stretch: 100%;
}
a { color: var(--spite); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--spite); outline-offset: 2px; box-shadow: 0 0 0 2px var(--deep); }
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--f-site); font-weight: 800; font-stretch: 70%; text-transform: uppercase;
  color: var(--spite); text-shadow: 1px 1px 0 var(--deep); line-height: .95; letter-spacing: .01em;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--spite); color: var(--outline); padding: 8px 16px; font-weight: 700; }
.skip:focus { top: 8px; }

/* Header and footer */
.logo { display: block; line-height: 0; border-radius: 8px; }
.logo img { width: 160px; filter: drop-shadow(1px 0 0 rgb(0 210 255 / .4)) drop-shadow(-1px 0 0 rgb(255 50 100 / .4)); }
.site-nav ul, .site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
main { display: block; flex: 1 0 auto; }
main:focus { outline: none; }

/* The television: a generic flat set */
.tv { width: var(--tv-w); max-width: 100%; margin: 0 auto; position: relative; container: tv / inline-size; }
.tv-cab { position: relative; background: linear-gradient(var(--cab), var(--cab-2)); border-radius: 14px; padding: 1.2% 1.2% 2.4%;
  box-shadow: inset 0 1px 0 var(--cab-edge), 0 24px 40px rgb(0 0 0 / .45), 0 10px 0 -4px var(--deep); }
.tv-cab:focus-within { box-shadow: 0 0 0 3px var(--deep), 0 0 0 6px var(--spite), 0 24px 40px rgb(0 0 0 / .45); }
.tv-led { position: absolute; right: 2.4%; bottom: .9%; width: 6px; height: 6px; border-radius: 50%; background: var(--led); box-shadow: 0 0 6px var(--led); }
.tv-stand { width: 24%; height: 12px; margin: 0 auto; background: linear-gradient(var(--stand), var(--stand-2)); border-radius: 0 0 8px 8px; }

.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container: screen / inline-size; background: #000; isolation: isolate; }
#tv-screen:focus-visible { outline: none; box-shadow: none; } /* the cabinet ring shows focus */
.screen::after { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgb(0 0 0 / var(--scan)) 2px 4px),
    radial-gradient(ellipse at center, transparent var(--vig-from), rgb(0 0 0 / var(--vig)) 100%); }

/* Theme tokens. Sizes are app points on a 1920 x 1080 canvas, in cqw.
   --rows is what the app shows at 1080 and the default text size
   (GuideScreen.rowCap and its safe-area plan): rows keep the theme's row
   height and the info pane takes the rest. */
.tv {
  --now-min: 47;
  --g-drama: #7B2D8E; --g-comedy: #1C6E35; --g-action: #A3261E; --g-family: #7A4E00;
  --g-documentary: #1F5C7A; --g-sci-fi: #4B3FA8; --g-horror: #5C1A2E; --g-other: #4A4F5C; --g-break: #4A4F5C;
  --bg: #0E4A7C; --bg2: var(--bg); --cell: #173F78; --alt: #1B4684; --tbar: #122C5E; --tbar-text: #fff;
  --text: #fff; --sub: #A8C8E8; --focus: #F0A81C; --focus-text: #0E1A2E; --now: #E04838; --now-case: transparent;
  --chan-bg: #12305F; --chan-num: #A8C8E8; --chan-text: #A8C8E8; --pv-frame: rgb(255 255 255 / .3);
  --radius: 0; --gap: .1cqw; --bev-l: #58759E; --bev-d: #0A1C36; --bw: max(1px, .1cqw);
  --rows: 9; --mins: 90; --ch-w: 16.1cqw; --head-h: 14.4cqw; --foot-h: 0cqw; --bar-h: 2.8cqw;
  --fs: 1.55cqw; --f-guide: var(--f-site); --f-head: var(--f-site); --head-stretch: 70%; --caps: uppercase;
  --shadow: .06cqw .06cqw 0 #061428; --scan: .22; --vig: .12; --vig-from: 80%; --fdur: 0s; --fease: linear;
  --mode: glyph;
  --areas: "info clock pv" "grid grid grid" "grid grid grid"; --cols: 1fr auto auto;
}
.tv[data-theme="motel"] {
  --bg: #2F55B5; --cell: #1D58A0; --alt: #1D58A0; --tbar: #C8D6EC; --tbar-text: #101820; --sub: #fff;
  --focus: #E6CC3A; --focus-text: #1A1400; --now: #000; --now-case: #fff; --chan-bg: #1C2E5A; --chan-num: #fff; --chan-text: #fff;
  --bev-l: #5C86BA; --bev-d: #0D2848; --shadow: .06cqw .06cqw 0 #000; --pv-frame: #000; --scan: .22; --vig: .15;
  --g-drama: #1D58A0; --g-comedy: #1C58A1; --g-action: #1C589F; --g-family: #2258A1;
  --g-documentary: #1A58A3; --g-sci-fi: #1B58A4; --g-horror: #1F589F; --g-other: #1A57A4;
}
.tv[data-theme="motel"] :is([data-kind="film"], .p.film) { --gf: #71497C; }
.tv[data-theme="satellite"] {
  --bg: #001E5A; --cell: #1E4FA3; --alt: #17408A; --tbar: #0A2C70; --sub: #C9D7F2; --focus: #FFE14D; --focus-text: #0A1A40;
  --now: #FF5A3C; --chan-bg: #001E5A; --chan-num: #FFE14D; --chan-text: #fff; --radius: .31cqw; --gap: .21cqw; --bw: 0px;
  --rows: 7; --mins: 120; --ch-w: 15.6cqw; --head-h: 16.5cqw; --fs: 1.6cqw; --f-guide: var(--f-sys); --f-head: var(--f-sys);
  --head-stretch: 100%; --caps: none; --shadow: none; --scan: .10; --vig: .15; --fdur: .12s; --fease: steps(3, end); --mode: chip;
  --areas: "info clock pv" "grid grid grid" "grid grid grid"; --cols: 1fr auto auto;
}
.tv[data-theme="cable-box"] {
  --bg: #0A1464; --cell: #2A3FA8; --alt: #23379A; --tbar: #16237E; --tbar-text: #F2D21B; --text: #EFEFEF; --sub: #D8DEFF;
  --focus: #F2D21B; --focus-text: #000; --now: #FF4040; --chan-bg: #0A1464; --chan-num: #F2D21B; --chan-text: #EFEFEF;
  --bev-l: #6A7FE0; --bev-d: #050A3A; --rows: 8; --ch-w: 13.5cqw; --head-h: 17.2cqw; --fs: 1.5cqw;
  --f-guide: var(--f-sys); --head-stretch: 75%; --shadow: none; --scan: .14; --vig: .15; --mode: fill;
  --areas: "pv info clock" "grid grid grid" "grid grid grid"; --cols: auto 1fr auto;
  --g-drama: #4A3A8A; --g-comedy: #2A5F34; --g-action: #7A2A24; --g-family: #7A4F14;
  --g-documentary: #1F5F6F; --g-sci-fi: #3B3F8F; --g-horror: #5E2A48; --g-other: #3A3F58; --g-break: #3D414A;
}
.tv[data-theme="y2k"] {
  --bg: #0B3B3B; --bg2: #145A4A; --cell: #0E4040; --alt: #125050; --tbar: #0A3030; --tbar-text: #F2F0E0; --text: #F2F0E0;
  --sub: #BFD8D0; --focus: #E8D36A; --focus-text: #1A1A10; --now: #FF6B5A; --chan-bg: #0B3B3B; --chan-num: #E8D36A; --chan-text: #F2F0E0;
  --radius: .73cqw; --gap: .31cqw; --bw: 0px; --rows: 8; --mins: 120; --ch-w: 16.7cqw; --head-h: 0cqw; --foot-h: 12.2cqw;
  --fs: 1.6cqw; --f-guide: var(--f-round); --f-head: var(--f-round); --head-stretch: 100%; --caps: none; --shadow: none;
  --scan: .06; --vig: .15; --fdur: .18s; --fease: ease; --mode: chip;
  --areas: ". . ." "grid grid grid" "info clock pv"; --cols: 1fr auto auto;
}
.tv[data-theme="modern"] {
  --bg: #0B0B0D; --cell: #202026; --alt: #18181D; --tbar: #0B0B0D; --sub: #B8B8C0; --focus: #F2F2F2; --focus-text: #0B0B0D;
  --now: #FF453A; --chan-bg: #0B0B0D; --chan-num: #fff; --chan-text: #fff; --radius: .625cqw; --gap: .42cqw; --bw: 0px;
  --rows: 6; --ch-w: 17.7cqw; --head-h: 16.8cqw; --bar-h: 3.2cqw; --fs: 1.9cqw; --f-guide: var(--f-sys); --f-head: var(--f-sys);
  --head-stretch: 100%; --caps: none; --shadow: none; --scan: 0; --vig: 0; --fdur: .2s; --fease: ease; --mode: chip;
  --areas: "info clock pv" "grid grid grid" "grid grid grid"; --cols: 1fr auto auto;
}

/* Genre fill for any element with a g-* class */
.g-drama { --gf: var(--g-drama); } .g-comedy { --gf: var(--g-comedy); } .g-action { --gf: var(--g-action); }
.g-family { --gf: var(--g-family); } .g-documentary { --gf: var(--g-documentary); } .g-sci-fi { --gf: var(--g-sci-fi); }
.g-horror { --gf: var(--g-horror); } .g-other { --gf: var(--g-other); } .g-break { --gf: var(--g-break); }

/* The guide */
.guide {
  --padx: 1.6cqw; --pady: 3.125cqw; /* the app's 60 pt safe area, top and bottom */
  --grid-h: calc(56.25cqw - 2 * var(--pady) - var(--head-h) - var(--foot-h));
  --row-h: calc((var(--grid-h) - var(--bar-h)) / var(--rows));
  --min-w: calc((100cqw - 2 * var(--padx) - var(--ch-w)) / var(--mins));
  position: absolute; inset: 0; padding: var(--pady) var(--padx);
  display: grid; grid-template-areas: var(--areas); grid-template-columns: var(--cols);
  grid-template-rows: var(--head-h) var(--grid-h) var(--foot-h); column-gap: 1.6cqw;
  background: linear-gradient(160deg, var(--bg), var(--bg2)); color: var(--text);
  font: 500 max(11px, var(--fs))/1.2 var(--f-guide); text-shadow: var(--shadow);
}
.g-preview {
  grid-area: pv; align-self: center; height: calc(var(--head-h) - 1.2cqw); aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto auto 1fr; justify-items: center; text-align: center; row-gap: .2cqw;
  background: var(--gf); border: .15cqw solid var(--pv-frame);
  border-radius: var(--radius); color: #fff; font-family: var(--f-head); font-weight: 800; text-transform: var(--caps);
}
.g-preview::after { content: ""; position: absolute; inset: -20% 0; background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .06) 0 .3cqw, transparent .3cqw .9cqw); }
/* The preview's rolling lines move only with scripts on, where the
   set's Motion switch (html[data-motion="off"]) and reduced motion stop
   them; with scripts off there is no control, so they stay still. */
@media (scripting: enabled) { .g-preview::after { animation: pan 9s linear infinite; } }
@keyframes pan { to { transform: translateY(18%); } }
/* The label sits in its own row, so it never overlaps the channel line. */
.g-pv-label { grid-row: 1; justify-self: start; padding: .3cqw .6cqw 0; font-size: max(11px, .9cqw); font-weight: 600; letter-spacing: .08em; line-height: 1; }
.g-pv-ch { grid-row: 3; font-size: max(11px, 1.3cqw); }
.g-pv-title { grid-row: 4; font-size: max(11px, 1.7cqw); font-stretch: var(--head-stretch); padding: 0 1cqw;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* Y2K's preview is the shortest: the label and the title only. */
/* Y2K: the info pane is under the grid, with the preview at its right end. */
.tv[data-theme="y2k"] .g-preview { height: calc(var(--foot-h) - 2cqw); margin-top: .8cqw; }
.g-info { grid-area: info; min-width: 0; align-self: center; position: relative; z-index: 9; }
.g-info p { margin: 0; }
.g-info-ch { color: var(--sub); font-weight: 700; text-transform: var(--caps); font-size: max(11px, 1.3cqw); }
.g-info-title { font: 800 max(13px, 2.6cqw)/1.05 var(--f-head); font-stretch: var(--head-stretch); text-transform: var(--caps); margin: .2cqw 0 !important; }
.g-info-meta { color: var(--sub); font-size: max(11px, 1.35cqw); }
.g-tag { border: 1px solid currentColor; border-radius: .3cqw; padding: 0 .4cqw; margin-left: .4cqw; }
.g-info-sum { color: var(--sub); font-size: max(11px, 1.35cqw); max-width: 60ch; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.g-clock { grid-area: clock; margin: 0; align-self: start; font: 800 max(11px, 1.9cqw)/1 var(--f-head); font-stretch: var(--head-stretch); }
.tv[data-theme="y2k"] .g-clock { align-self: center; }
.tv[data-theme="y2k"] .g-info { display: grid; grid-template-columns: auto 1fr; column-gap: 1.6cqw; align-content: center;
  background: rgb(15 46 46 / .85); border-radius: var(--radius); padding: .6cqw 1.2cqw; margin-top: .8cqw; height: calc(100% - .8cqw); }
.tv[data-theme="y2k"] .g-info-meta { grid-area: 1 / 2; }
.tv[data-theme="y2k"] .g-info-sum { grid-area: 2 / 2; -webkit-line-clamp: 1; align-self: start; }
.tv[data-theme="y2k"] .g-info-ch { grid-area: 1 / 1; }
.tv[data-theme="y2k"] .g-info-title { grid-area: 2 / 1; }

.g-scroll { grid-area: grid; overflow: hidden; position: relative; }
.g-inner { position: relative; width: max-content; }
.g-grid { table-layout: fixed; border-collapse: separate; border-spacing: 0; width: calc(var(--ch-w) + 180 * var(--min-w)); }
.g-chcol { width: var(--ch-w); }
.g-mincol { width: var(--min-w); }
.g-bar th { position: sticky; top: 0; z-index: 4; height: var(--bar-h); padding: 0 .6cqw; background: var(--tbar); color: var(--tbar-text);
  text-align: left; font: 700 max(11px, 1.35cqw)/1 var(--f-head); font-stretch: var(--head-stretch); text-transform: var(--caps); white-space: nowrap; text-shadow: none; }
.g-bar th + th { border-left: max(1px, .08cqw) solid rgb(255 255 255 / .25); }
.tv[data-theme="motel"] .g-bar th + th { border-left-color: rgb(0 0 0 / .3); }
.g-bar .g-day { left: 0; z-index: 5; }
.g-row { height: var(--row-h); }
.g-ch { position: sticky; left: 0; z-index: 3; background: var(--chan-bg); color: var(--chan-text); text-align: left; padding: 0 .6cqw;
  font-weight: 800; font-family: var(--f-head); font-stretch: var(--head-stretch); text-transform: var(--caps); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: var(--gap) solid var(--chan-bg); }
.g-num { color: var(--chan-num); display: inline-block; min-width: 1.6em; }
/* Themes with tall rows let a long channel name take two lines. */
.tv:is([data-theme="cable-box"], [data-theme="satellite"], [data-theme="modern"], [data-theme="y2k"]) .g-ch { white-space: normal; line-height: 1.05; }
.tv[data-theme="cable-box"] .g-ch { font-stretch: 62%; }
.g-row[data-fav] .g-num::after { content: "\2605"; margin-left: .2em; color: var(--focus); font-size: .8em; vertical-align: .1em; }
/* Touch: a browser intersects touch-action down the tree, so every rule
   here keeps pinch-zoom or the grid could not zoom. A channel takes its
   vertical swipes itself. With the module the grid takes one-finger drags
   itself (rows, then the page at its ends); two fingers still zoom. */
.guide { touch-action: pan-y pinch-zoom; }
.tv[data-state="channel"] .screen { touch-action: pinch-zoom; }
.tv:is([data-state="guide"], [data-state="attract"]) #tv-grid[role="grid"] { touch-action: pinch-zoom; }
.p {
  --cellfill: var(--cell);
  background: var(--cellfill) padding-box; color: var(--text); border: var(--gap) solid transparent; border-radius: var(--radius);
  padding: 0 .7cqw; white-space: nowrap; overflow: clip; text-overflow: ellipsis;
  box-shadow: inset var(--bw) var(--bw) 0 var(--bev-l), inset calc(-1 * var(--bw)) calc(-1 * var(--bw)) 0 var(--bev-d);
  transition: background-color var(--fdur) var(--fease), color var(--fdur) var(--fease);
}
.g-row:nth-child(even) .p { --cellfill: var(--alt); }
.tv[data-theme="cable-box"] .p, .tv[data-theme="motel"] .p, .tv .p.g-break { --cellfill: var(--gf); }
/* A break is 3 or 4 minutes wide: too narrow for a readable word. The cell
   is a striped bar; its name stays in aria-label, the word "Break" stays in
   the markup for print, and the info panel shows "Break" on focus. */
.brk { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tv .p.g-break { text-overflow: clip; padding: 0;
  background: repeating-linear-gradient(135deg, rgb(255 255 255 / .7) 0 .3cqw, transparent .3cqw .8cqw) padding-box, var(--cellfill) padding-box; }
.tv .g-grid td.p.g-break[tabindex="0"] {
  background: repeating-linear-gradient(135deg, rgb(0 0 0 / .3) 0 .3cqw, transparent .3cqw .8cqw) padding-box, var(--cellfill) padding-box; }
.tv[data-theme="1998"] .p .t::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .5em; background: var(--gf); outline: 1px solid rgb(255 255 255 / .5); vertical-align: .05em; }
.tv:is([data-theme="satellite"], [data-theme="y2k"], [data-theme="modern"]) .p .t::before {
  content: ""; display: inline-block; width: .35em; height: 1em; margin-right: .55em; border-radius: .2em; background: var(--gf); vertical-align: -.15em; box-shadow: 0 0 0 1px rgb(255 255 255 / .35); }
/* The title sticks to the left edge of the view, so a program that started
   before the view still shows its name, as in the app. The cell clips with
   overflow: clip, not hidden, so it is not the title's scroll container. */
.p .t { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
  position: sticky; left: calc(var(--ch-w) + .7cqw); }
.p.cont-l { padding-left: 1.4cqw; }
/* Under 10 minutes a title cannot be read: the cell is a plain block, as in
   a real guide. The name stays in aria-label and the info panel. */
.p.narrow .t { visibility: hidden; }
/* The focused cell: the theme's fill plus a --focus-text inset ring at all
   times, so it reads against any neighbor even under the vignette. With
   scripts off (no role on the table) the server's data-sel cell is shown. */
.tv .g-grid td.p[tabindex="0"], .tv #tv-grid:not([role]) td.p[data-sel] { --cellfill: var(--focus); color: var(--focus-text); font-weight: 700; text-shadow: none;
  box-shadow: inset 0 0 0 max(2px, .25cqw) var(--focus-text); }
.g-grid td:focus-visible { outline: none; }
.g-now { position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; width: max(2px, .16cqw);
  left: calc(var(--ch-w) + var(--now-min) * var(--min-w)); background: var(--now); box-shadow: 0 0 0 max(1px, .06cqw) var(--now-case); }

/* Phone: 4 rows of 44 px, 60 minutes, no preview, info on one line */
@container screen (max-width: 600px) {
  .guide { --padx: 0px; --pady: 0px; --mins: 60; --ch-w: 30cqw; --head-h: 14px; --foot-h: 0px; --bar-h: 14px;
    --grid-h: calc(56.25cqw - 14px); --row-h: 44px; grid-template-areas: "info clock" "grid grid" "grid grid"; grid-template-columns: 1fr auto;
    column-gap: 6px; font-size: max(11px, 3.2cqw); }
  .g-preview, .g-info-ch, .g-info-sum, .g-tag { display: none; }
  .g-info, .tv[data-theme="y2k"] .g-info { display: flex; gap: 8px; align-items: center; background: var(--tbar); color: var(--tbar-text);
    padding: 0 6px; margin: 0; min-height: 14px; border-radius: 0; white-space: nowrap; overflow: hidden; }
  /* The info line grows with user text spacing; the grid takes what is left. */
  .guide { grid-template-rows: minmax(14px, auto) minmax(0, 1fr) 0px; }
  .g-info-title { font-size: 12px; margin: 0 !important; overflow: hidden; text-overflow: ellipsis; }
  .g-info-meta { color: inherit; font-size: 11px; }
  .g-clock { font-size: 11px; align-self: center; padding-right: 6px; }
  .g-bar th { font-size: 11px; }
  .g-ch { white-space: normal; line-height: 1.05; } /* 44 px rows take two lines */
  /* Whole 44 px rows only: the viewport stops at the last full row, so no
     sliver of the next one shows under it. */
  .g-scroll { align-self: start; height: calc(var(--bar-h) + round(down, 100% - var(--bar-h) + 2px, 44px)); }
  /* The card keeps the 11 px floor; the summary stops at two lines. */
  .tv-card { padding: 4cqw; }
  .tv-card-sum { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

/* States: attract, guide, tuning, channel, off, warmup */
.tv-layer { position: absolute; inset: 0; z-index: 6; display: none; }
.tv:is([data-state="tuning"], [data-state="channel"], [data-state="off"], [data-state="warmup"]) .guide { visibility: hidden; }
.tv[data-state="tuning"] .tv-tuning { display: block; }
.tv-tuning { background: var(--static) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .46 0 0 0 0 .46 0 0 0 0 .46 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.tv-tuning canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.tv-tune-num { position: absolute; right: 4cqw; top: 3cqw; color: #fff; background: rgb(0 0 0 / .5); padding: .4cqw 1cqw; font: 800 7cqw/1 var(--f-site); font-stretch: 70%;
  text-shadow: .25cqw .25cqw 0 #000, 0 0 .4cqw #000; }
.tv[data-state="channel"] .tv-card { display: grid; animation: roll .3s linear; }
@keyframes roll { 0% { clip-path: inset(0 0 100% 0); filter: grayscale(1); } 59% { filter: grayscale(1); } 60%, 100% { clip-path: inset(0); filter: none; } }
.tv-card { place-content: center; text-align: center; padding: 6cqw; color: #fff; font-family: var(--f-head);
  background: radial-gradient(ellipse at 50% 40%, rgb(255 255 255 / .06), transparent 60%), var(--gf, #4A4F5C); }
.tv-card p { margin: 0; }
/* The tuned program's public-domain clip (or its poster): it fills the
   screen at 16:9 and sits under the tune banner, Back, and the scanlines. */
.tv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--off); }
.tv-card-ch { font: 700 max(11px, 2cqw)/1.2 var(--f-head); }
.tv-card-title { font: 800 6cqw/1 var(--f-head); font-stretch: 70%; text-transform: uppercase; margin: 1cqw 0 !important; text-shadow: .2cqw .2cqw 0 rgb(0 0 0 / .5); }
.tv-card-sum { font-size: max(11px, 2cqw); max-width: 40ch; margin: 0 auto !important; }
.tv-banner { position: absolute; left: 4.2cqw; right: 4.2cqw; bottom: 3.2cqw; z-index: 7; background: var(--tbar); color: var(--tbar-text);
  border: .2cqw solid var(--focus); border-radius: var(--radius); padding: 1cqw 1.6cqw; font: 600 max(12px, 1.8cqw)/1.3 var(--f-guide); text-align: left; }
.tv-banner p { margin: 0; }
.tv-banner-ch { font-weight: 800; color: var(--focus); }
.tv[data-theme="motel"] .tv-banner-ch { color: inherit; }
.tv-back { position: absolute; left: 2cqw; top: 2cqw; z-index: 9; }
.tv-back { min-width: 44px; min-height: 44px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tv-back { background: var(--tbar); color: var(--tbar-text); border-color: var(--focus); }
.tv[data-state="off"] .tv-off { display: block; background: var(--off); }
.tv-off::before { content: ""; position: absolute; inset: 0; background: var(--off-line); transform: scale(0); animation: collapse .45s ease-in; }
@keyframes collapse { 0% { transform: scale(1, 1); } 55% { transform: scale(1, .006); } 100% { transform: scale(0, .006); } }
.tv[data-state="off"] .tv-led { background: var(--led-off); box-shadow: none; }
.tv[data-state="warmup"] .tv-warm { display: grid; place-content: center; justify-items: center; background: var(--ink); color: var(--cream); font: 600 2.2cqw/1.3 var(--f-site); }
.tv-warm img { width: 30cqw; }
.tv-warm p { margin: 1.5cqw 0 0; }
.tv:fullscreen, .tv[data-full] { width: 100%; max-width: none; height: 100%; display: grid; place-content: center; background: #000; }
.tv[data-full] { position: fixed; inset: 0; z-index: 40; }
.tv:fullscreen .tv-cab, .tv[data-full] .tv-cab { width: min(100vw, 177.7vh); padding: 0; border-radius: 0; }
.tv:fullscreen .tv-stand, .tv[data-full] .tv-stand { display: none; }
.tv-exit { position: fixed; top: 8px; right: 8px; z-index: 42; min-width: 44px; min-height: 44px; border: 1px solid var(--bar); border-radius: 8px;
  background: var(--deep); color: var(--cream); font: 700 20px/1 var(--f-site); cursor: pointer; }


/* Reading column */
.sec { border-top: 1px solid var(--rule); padding: 20px 0 8px; }
.sec h2 { font-size: 26px; margin: 0 0 12px; }
.sec h3 { font-size: 20px; margin: 0 0 8px; }
.sec p, .sec li, .sec dd { color: var(--cream); }

/* Policy pages, listings, 404 */
.doc-body h1, .listings-page h1 { font-size: clamp(32px, 6vw, 48px); margin: 24px 0 8px; }
.listings-page { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.lede { color: var(--lilac); }
.listings { width: 100%; border-collapse: collapse; background: var(--cream); color: var(--outline); font: 500 15px/1.35 var(--f-site); font-stretch: 80%; }
.listings th, .listings td { border-bottom: 1px solid var(--paper-rule); padding: 6px 8px; text-align: left; vertical-align: top; }
.listings thead th { background: var(--outline); color: var(--cream); text-transform: uppercase; }
.listings tbody th { font-weight: 800; text-transform: uppercase; white-space: nowrap; color: var(--outline); text-shadow: none; }
.l-num { font-weight: 800; width: 3em; }
.l-ch { display: none; }
.l-progs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.l-progs small { font-size: 14px; color: var(--paper-ink); white-space: nowrap; }
.nosig { max-width: 900px; margin: 16px auto; padding: 48px 16px; min-height: 50vh; display: grid; place-content: center; text-align: center; border-radius: 12px;
  background: var(--nosig) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .46 0 0 0 0 .46 0 0 0 0 .46 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nosig h1 { font-size: clamp(40px, 9vw, 96px); margin: 0; color: #fff; text-shadow: 3px 3px 0 #000; }
.nosig-ch { margin: 0; font: 800 28px/1 var(--f-site); color: #fff; text-shadow: 2px 2px 0 #000; }

/* Small screens */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .logo img { width: 128px; }
  /* The footer carries the same three links. */
  .tv-cab { border-radius: 6px; padding: 2px 2px 8px; }
  .tv-led { width: 4px; height: 4px; bottom: 3px; }
  .tv-stand { height: 8px; }
  .nosig { margin: 16px; }
  .listings .l-num, .listings thead th:first-child { display: none; }
  .listings tbody th { white-space: normal; width: 26%; }
  .l-ch { display: inline; }
}

/* Motion: the system setting, or the Motion switch (html[data-motion="off"]) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tv-tuning { background: var(--static); }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] .tv-tuning { background: var(--static); }

/* Forced colors: cells keep borders; focus uses the system highlight */
@media (forced-colors: active) {
  .p, .g-ch, .g-bar th { border: 1px solid CanvasText; }
  .tv .g-grid td.p[tabindex="0"] { forced-color-adjust: none; background: Highlight; color: HighlightText; box-shadow: none; }
  .screen::after, .g-preview::after { display: none; }
  .g-now { background: Highlight; }
  .tv-cab:focus-within { outline: 3px solid Highlight; }
  /* A pressed switch keeps a visible state; the genre marker is a colored
     box that would print as a stray glyph. */
  [aria-pressed="true"] { border: 3px solid Highlight; }
  .p .t::before { display: none; }
}

/* Print: the guide becomes a newspaper listings grid */
@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; color: #000; font-size: 10pt; }
  a { color: #000; }
  h1, h2, h3, .hero h1 { color: #000; text-shadow: none; }
  .logo img { filter: none; }
  .skip, .chip, .site-nav, .tv-layer, .tv-led, .tv-stand, .bezel, .dial, .nx-card,
  .g-preview, .g-info, .g-clock, .g-now, .hero p, #after-demo, .site-foot nav { display: none !important; }
  .tv, .tv-cab { width: 100%; padding: 0; background: none; box-shadow: none; }
  .screen { aspect-ratio: auto; overflow: visible; background: none; container-type: normal; }
  .screen::after { display: none; }
  .guide { position: static; display: block; padding: 0; background: none; color: #000; text-shadow: none; font: 500 7.5pt/1.2 var(--f-site); }
  .g-scroll, .g-inner { overflow: visible; width: 100%; }
  .g-grid { width: 100%; border-collapse: collapse; }
  .g-chcol { width: 12%; }
  .g-mincol { width: auto; }
  .g-row { height: auto; }
  .g-bar th, .g-ch { position: static; background: #fff; color: #000; border: 1px solid #000; font-size: 7.5pt; }
  .tv .g-grid td.p { background: #fff !important; color: #000 !important; border: 1px solid #000; border-radius: 0; box-shadow: none; white-space: normal; padding: 1pt 2pt; font-weight: 500; }
  .g-num { color: #000; }
  .p::before, .p .t::before { display: none !important; }
  .p .t { position: static; white-space: normal; }
  .brk { position: static; width: auto; height: auto; clip-path: none; }
  .listings, .listings thead th { background: #fff; color: #000; }
  .listings thead th { border-bottom: 2px solid #000; }
  .nosig { background: none; }
}

/* Page chrome (DESIGN.md section 18): header, drawer, sections, buttons,
   closing band, footer, breadcrumbs. The server joins every CSS file into
   one: site.css first, then this file, then the rest. */

html { scroll-padding-top: calc(var(--hdr-h) + 16px); }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--read); }
.sr-only:focus-visible { position: static; width: auto; height: auto; clip-path: none; }

/* Type: 9 steps only (13, 15, 17, 19, 24, 32, 44, 56, 88) */
.eyebrow { margin: 0 0 16px; font: 700 13px/1.2 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--spite); }
.eyebrow .ch { color: var(--lilac); }
.h1, .blk h1, .page-head h1 { font-size: clamp(44px, 6.4vw, 88px); margin: 0; text-wrap: balance; }
.h2, .blk h2, .sec-head h2 { font-size: clamp(32px, 4.4vw, 56px); margin: 0; text-wrap: balance; }
.h3, .blk h3 { font-size: 24px; line-height: 1.05; margin: 0 0 8px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--lilac); margin: 16px 0 0; max-width: 60ch; }
.small, small { font-size: 15px; }
.muted { color: var(--lilac); }

/* Sections */
.blk { padding: 88px 0; background: var(--ink); }
.blk-soft { background: var(--soft); }
.blk + .blk-soft, .blk-soft + .blk { border-top: 2px solid var(--deep); }
.sec-head { margin: 0 0 40px; max-width: 760px; }
.sec-foot { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (max-width: 860px) { .blk { padding: 64px 0; } .sec-head { margin-bottom: 32px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 2px solid var(--outline); border-radius: 4px; font: 800 15px/1 var(--f-site); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .08s linear, box-shadow .08s linear; white-space: nowrap; }
.btn-primary { background: var(--spite); color: var(--outline); box-shadow: 3px 3px 0 var(--outline); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--outline); text-decoration: none; }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--outline); }
.btn-secondary { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-secondary:hover { background: rgb(243 236 210 / .08); text-decoration: none; }
.btn-sm { min-height: 40px; padding: 0 14px; }
.btn:focus-visible { outline: 3px solid var(--spite); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 600px) { .btn-row .btn, .btn-block { width: 100%; } }
.arrow-link { font-weight: 700; color: var(--spite); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { color: var(--cream); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; height: var(--hdr-h); background: var(--deep); border-bottom: 2px solid var(--rule); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr .logo { flex: none; margin: -2px 0; border-radius: 4px; }
.hdr .logo img { width: 120px; height: 60px; display: block; }
/* The product line beside the logo (owner, 2026-11-15): real text, on every page. */
.hdr-for { flex: none; font: 700 15px/1.1 var(--f-site); font-stretch: 85%; letter-spacing: .04em; color: var(--cream); white-space: nowrap; }
.hdr-for .nw { white-space: nowrap; }
.hdr-nav { margin: 0 auto; }
.hdr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.hdr-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--cream); text-decoration: none;
  font: 700 15px/1 var(--f-site); letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid transparent; border-top: 2px solid transparent; }
.hdr-nav a:hover { color: var(--spite); }
.hdr-nav a[aria-current="page"] { border-bottom-color: var(--spite); color: var(--spite); }
.hdr-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hdr-nav + .hdr-end { margin-left: 0; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid var(--rule);
  border-radius: 4px; background: transparent; color: var(--cream); font: 700 15px/1 var(--f-site); letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; }
.menu-btn:hover { border-color: var(--cream); }
.menu-btn .bars { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
@media (max-width: 1060px) {
  .hdr-nav { display: none; }
  .hdr-nav + .hdr-end { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
/* Under 820 px the label stacks: "for" over "Apple TV". */
@media (max-width: 819px) { .hdr-for { width: min-content; white-space: normal; } }
@media (max-width: 600px) {
  .hdr-in { gap: 8px; }
  .hdr-for { font-size: 14px; }
  .hdr .logo img { width: 120px; }
  .menu-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hdr .btn-sm { padding: 0 10px; font-stretch: 75%; }
  .hdr-end { gap: 8px; }
}
/* Under 400 px the logo gives up 24 px to the "for Apple TV" label. */
@media (max-width: 399px) { .hdr .logo img { width: 96px; height: 48px; } .hdr-for { font-size: 12px; } }
/* Under 360 px the logo gives up 40 px and the label shrinks, so the header fits with
   the WCAG 1.4.12 text spacing applied. */
@media (max-width: 359px) { .hdr .btn-sm { font-size: 13px; letter-spacing: .02em; padding: 0 8px; } .hdr .logo img { width: 80px; height: 40px; } .hdr .logo { display: flex; align-items: center; min-height: 44px; } .hdr-end { min-width: 0; } .hdr-in { gap: 5px; } .hdr-for { font-size: 11px; letter-spacing: 0; } }

/* Drawer: a modal dialog from the right edge */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); max-width: none; height: 100dvh; max-height: none; margin: 0;
  padding: 0; border: 0; border-left: 2px solid var(--spite); background: var(--ink); color: var(--cream); overflow: auto; }
.drawer::backdrop { background: rgb(0 0 0 / .6); }
.drawer[open] { animation: drawer-in .24s ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } }
html:has(.drawer[open]) { overflow: hidden; }
.drawer-in { min-height: 100%; padding: 12px 24px 32px; display: flex; flex-direction: column; gap: 24px; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-top p { margin: 0; font: 700 13px/1 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); }
.drawer-x { min-width: 44px; min-height: 44px; border: 2px solid var(--rule); border-radius: 4px; background: none; color: var(--cream);
  font: 700 24px/1 var(--f-site); cursor: pointer; }
.drawer-x:hover { border-color: var(--cream); }
.drawer h2 { font: 700 13px/1 var(--f-site); letter-spacing: .12em; color: var(--spite); text-shadow: none; margin: 0 0 4px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: flex; align-items: center; min-height: 44px; color: var(--cream); text-decoration: none; font: 700 19px/1.1 var(--f-site);
  font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; border-bottom: 2px solid var(--soft); }
.drawer li a:hover, .drawer li a[aria-current="page"] { color: var(--spite); }
.drawer .legal { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: auto; }
.drawer .legal a { display: inline-flex; align-items: center; font: 500 15px/1 var(--f-site); min-height: 32px; color: var(--lilac); text-decoration: none; }
.drawer .legal a:hover { text-decoration: underline; color: var(--cream); }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 700 13px/1.2 var(--f-site);
  letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.crumbs li { display: inline-flex; align-items: center; min-height: 24px; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--rule); }
.crumbs a { color: var(--lilac); text-decoration: none; display: inline-flex; min-height: 24px; align-items: center; }
.crumbs a:hover { color: var(--spite); text-decoration: underline; }
.crumbs [aria-current] { color: var(--cream); }

/* Page head (interior hero) */
.page-head { padding: 56px 0 72px; background: var(--ink); border-bottom: 2px solid var(--deep); }
.page-head .lead { max-width: 62ch; }
@media (max-width: 860px) { .page-head { padding: 40px 0 56px; } }

/* Cards and rules */
.card { border: 2px solid var(--rule); border-radius: 4px; padding: 24px; background: var(--ink); }
.blk:not(.blk-soft) .card { background: var(--soft); }
.card-answer { background: var(--spite) !important; border-color: var(--outline); color: var(--outline); }
.card-answer :is(h2, h3, p, a, li) { color: var(--outline); text-shadow: none; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Mid-page call to action */
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 40px 0;
  padding: 24px; border: 2px solid var(--spite); border-radius: 4px; background: var(--deep); }
.cta-box p { margin: 0; flex: 1 1 280px; font: 700 19px/1.35 var(--f-site); color: var(--cream); }
@media (max-width: 600px) { .cta-box .btn { width: 100%; } }

/* Questions */
.qa { border-top: 2px solid var(--rule); }
.qa:last-of-type { border-bottom: 2px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 56px; padding: 14px 0; font: 700 19px/1.3 var(--f-site); color: var(--cream); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-content: center; border: 2px solid var(--rule);
  border-radius: 4px; color: var(--spite); font-size: 24px; line-height: 1; }
.qa[open] summary::after { content: "\2212"; }
.qa summary:hover { color: var(--spite); }
.qa > div { padding: 0 48px 20px 0; color: var(--cream); }
.qa > div p { margin: 0 0 12px; }
.qa-group { font: 700 13px/1 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); margin: 40px 0 12px; text-shadow: none; }
.qa-group:first-child { margin-top: 0; }

/* Closing band */
.band-close { position: relative; padding: 96px 0; text-align: center; border-top: 2px solid var(--rule);
  background: var(--deep) repeating-linear-gradient(33deg, transparent 0 120px, rgb(74 68 198 / .12) 120px 240px); }
.band-close h2 { font-size: clamp(32px, 4.4vw, 56px); margin: 0 auto 32px; max-width: 18ch; text-wrap: balance; }
@media (max-width: 860px) { .band-close { padding: 64px 0; } }

/* Footer (owner, 2026-11-15: balanced). One grid across the content
   width: the brand block and three columns of five links, equal columns
   and gutters, the last column ending at the right edge. Under one rule,
   the legal links on the left and the copyright on the right, then the
   trademark lines. */
.ftr { background: var(--deep); color: var(--lilac); border-top: 2px solid var(--rule); padding: 44px 0 28px; font-size: 15px; }
.ftr-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.ftr-brand .logo { display: inline-block; }
.ftr-brand .logo img { width: 160px; height: 80px; display: block; }
.ftr-brand p { margin: 12px 0 18px; color: var(--cream); max-width: 28ch; }
.ftr-cols { grid-column: span 3; display: grid; grid-template-columns: subgrid; padding-top: 10px; }
.ftr h2 { font: 700 13px/1.2 var(--f-site); letter-spacing: .12em; color: var(--spite); text-shadow: none; margin: 0 0 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr-cols ul { display: grid; gap: 12px; justify-items: start; }
.ftr li a { display: inline-flex; align-items: center; min-height: 24px; color: var(--cream); text-decoration: none; line-height: 1.25; }
.ftr li a:hover { color: var(--spite); text-decoration: underline; }
.ftr-legal { margin-top: 32px; padding-top: 18px; border-top: 2px solid var(--soft); font-size: 13px; display: grid; gap: 10px; }
.ftr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.ftr-legal p { margin: 0; }
.ftr-copy { color: var(--lilac); }
.ftr-tm { color: var(--lilac); opacity: .9; font-size: 12px; line-height: 1.5; }
.ftr-legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ftr-legal li a { min-height: 24px; color: var(--lilac); }
@media (max-width: 1060px) {
  .ftr-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-cols { grid-column: 1 / -1; padding-top: 0; }
  .ftr-cols ul { gap: 0; }
  /* Touch widths: 44 x 44 px targets; a short word sits centred in its box. */
  .ftr li a, .ftr-legal li a { min-height: 44px; min-width: 44px; }
  .ftr-legal li a { justify-content: center; }
  .ftr-legal ul { gap: 0 12px; }
}
@media (max-width: 600px) {
  .ftr { padding: 36px 0 28px; }
  .ftr-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .ftr-cols { row-gap: 20px; }
  /* SpiteTV and Help side by side, More under SpiteTV as one column of
     five: no link alone on a row. */
}

/* Tables in content: they scroll inside their own box, never the page */
.tbl { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 2px solid var(--rule); border-radius: 4px; }
.tbl:focus-visible { outline-offset: 2px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.tbl caption { text-align: left; padding: 12px 16px; font: 700 13px/1.2 var(--f-site); letter-spacing: .12em; text-transform: uppercase;
  color: var(--spite); background: var(--deep); border-bottom: 2px solid var(--rule); }
.tbl th, .tbl td { padding: 10px 16px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--soft); }
.tbl thead th { background: var(--deep); color: var(--lilac); font: 700 13px/1.2 var(--f-site); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tbl tbody th { color: var(--cream); font-weight: 700; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody tr:nth-child(even) { background: rgb(13 10 42 / .35); }
@media (max-width: 600px) {
  .tbl-stack { overflow: visible; border: 0; }
  .tbl-stack table, .tbl-stack tbody, .tbl-stack tr, .tbl-stack th, .tbl-stack td { display: block; }
  .tbl-stack caption { display: block; border: 2px solid var(--rule); border-radius: 4px 4px 0 0; }
  .tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl-stack tr { border: 2px solid var(--rule); border-top: 0; padding: 12px 16px; background: none !important; }
  .tbl-stack th, .tbl-stack td { padding: 4px 0; border: 0; }
  .tbl-stack td[data-label]::before { content: attr(data-label); display: block; font: 700 13px/1.4 var(--f-site); letter-spacing: .08em;
    text-transform: uppercase; color: var(--lilac); }
}

@media print {
  .hdr, .drawer, .band-close, .ftr-cols, .ftr-brand .btn, .menu-btn, .crumbs { display: none !important; }
  .blk, .page-head, .ftr { background: #fff !important; color: #000; padding: 12pt 0; }
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* Tap targets: 44 px even where the drawing is smaller */
.hdr .btn-sm { position: relative; }
.hdr .btn-sm::after { content: ""; position: absolute; inset: -4px -2px; }
.drawer .legal a { min-height: 44px; }

/* Soft sections carry a scanline edge at the top, like a channel strip,
   so neighbouring bands read as separate. */
.blk-soft { position: relative; }
.blk-soft::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgb(90 85 176 / .45) 0 2px, transparent 2px 4px); }

/* Static between channels: the old page cuts to snow, then the new one
   locks in. Only after a link in the menu's Channels list (site.js skips
   the rest), and never under reduced motion. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
/* Static: dark grain, scanlines, and three tear bands, jumping in steps
   like the TV's own snow. It stays dark so a channel change is not a
   flash (WCAG 2.3.1): mean relative luminance within 0.10 of the page. */
::view-transition { background:
  repeating-linear-gradient(to bottom, rgb(0 0 0 / .35) 0 2px, transparent 2px 4px),
  linear-gradient(to bottom, transparent 18%, rgb(255 255 255 / .14) 18% 20%, transparent 21% 57%, rgb(0 0 0 / .55) 57% 59.5%, transparent 61% 79%, rgb(255 255 255 / .16) 79% 80.5%, transparent 80.5%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='135'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' seed='7'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2' intercept='-.8'/%3E%3CfeFuncG type='linear' slope='2' intercept='-.8'/%3E%3CfeFuncB type='linear' slope='2' intercept='-.8'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 720px 405px, #0E0D14;
  animation: vt-snow .25s steps(5) both; }
@keyframes vt-snow { 0% { background-position: 0 0, 0 0, 0 0, 0 0; } 100% { background-position: 0 0, 0 -37vh, 173px 91px, 0 0; } }
::view-transition-group(root) { animation-duration: .25s; }
::view-transition-old(root) { animation: vt-cut .25s steps(1, start) both; }
::view-transition-new(root) { animation: vt-lock .25s steps(1, end) both; }
@keyframes vt-cut { to { opacity: 0; } }
@keyframes vt-lock { from { opacity: 0; } to { opacity: 1; } }

.drawer-ch a { gap: 12px; }
.dch-n { display: inline-block; min-width: 32px; color: var(--spite); font-variant-numeric: tabular-nums; }
/* Every text on a yellow surface is dark ink (8.9:1). */
.card-answer :is(h2, h3, h4, p, li, span, a, b, strong, small, dt, dd) { color: var(--outline) !important; text-shadow: none; }

/* Help pages end with one quiet line instead of the closing band (DESIGN 30). */
.help-beta { margin: 0 auto; padding-top: 32px; padding-bottom: 32px; color: var(--lilac); font-size: 15px; border-top: 2px solid var(--soft); }
.help-beta a { color: var(--cream); }

/* Animations (DESIGN 34.20, assets/js/fx.js). The module adds .fx to the
   page only with motion allowed; without it nothing here applies. */
.fx-w { display: inline-block; }
.fx .hero-steps li + li::before { transform-origin: left center; }
.fx-power { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #F3F6FF; box-shadow: 0 0 24px 6px rgb(255 255 255 / .8); }
.fx .reel-screen, .fx .demo-page #tv .screen, .fx .sty-tv { position: relative; }
.sty-tv .fx-power { inset: 7px; border-radius: 3px; }
.fx-progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; transform: scaleX(0); transform-origin: left center; pointer-events: none;
  background: linear-gradient(90deg, var(--spite), #FFB23E); }
.fx-sweep { position: absolute; left: 0; right: 0; top: -24px; height: 48px; z-index: 3; pointer-events: none; opacity: 0;
  background: var(--static, #222) 0 0 / 240px; -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); }

/* Page changes: a short cut of static between pages where cross-document
   view transitions work; elsewhere, an ordinary page load. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .18s steps(3) both; }
  ::view-transition-new(root) { animation: vt-in .22s steps(4) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Mock-ups of app screens (DESIGN 18.6). The guide mock-ups reuse the TV's
   theme tokens (.tv[data-theme]) inside their own size container. */

.mock { margin: 32px 0; }
.mock figcaption { margin-top: 8px; font: 700 13px/1.3 var(--f-site); letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.mock-art { position: relative; }
.shot { margin: 0 0 32px; }
.shot img { display: block; width: 100%; height: auto; border: 2px solid var(--deep); border-radius: 4px; box-shadow: 0 0 0 2px var(--rule); background: #000; }
.shot figcaption { margin-top: 8px; font: 700 13px/1.3 var(--f-site); letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.tv.mock-tv { --tv-w: 100%; width: 100%; border: 2px solid var(--deep); border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 2px var(--rule); }
.mock-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; background: #000; isolation: isolate; }
.mock-screen::after { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgb(0 0 0 / var(--scan)) 2px 4px),
    radial-gradient(ellipse at center, transparent 55%, rgb(0 0 0 / var(--vig)) 100%); }
.mock-tv .guide { font-size: max(7px, var(--fs)); }
.mock-tv .g-preview::after { animation: none; }
.tv.mock-tv .g-grid td.p.is-focus { --cellfill: var(--focus); color: var(--focus-text); font-weight: 700; text-shadow: none; }
.tv.mock-tv[data-theme="cable-box"] .g-grid td.p.is-focus { box-shadow: inset 0 0 0 .2cqw #000; }
.mock-tv .g-info-title { font-size: max(9px, 2.6cqw); }
.mock-tv :is(.g-info-ch, .g-info-meta, .g-clock, .g-bar th, .g-pv-label, .g-pv-ch, .g-pv-title) { font-size: max(7px, 1.35cqw); }
.mock-noinfo { --head-h: 0cqw; grid-template-rows: 0 var(--grid-h) 0; }

/* App screens inside a mock-up: sizes in cqw of the 16:9 screen */
.ms { position: absolute; inset: 0; color: var(--text); font: 500 max(8px, 1.9cqw)/1.3 var(--f-guide); text-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--bg), var(--bg2)); }
.ms p { margin: 0; }
.ms-pad { padding: 4cqw 5cqw; }
.ms-center { display: grid; place-content: center; text-align: center; }
.ms-bottom { display: grid; align-content: end; }
.ms-ink { background: #170D55; color: #F3ECD2; }
.ms-head { font: 800 max(8px, 2.2cqw)/1 var(--f-head); font-stretch: var(--head-stretch); text-transform: var(--caps); color: var(--sub); margin-bottom: 2.4cqw !important; }
.ms-title { font: 800 max(10px, 4cqw)/1.05 var(--f-head); font-stretch: var(--head-stretch); text-transform: var(--caps); }
.ms-line { color: var(--sub); margin-top: 1.4cqw !important; }
.ms-help { color: var(--sub); margin-top: 2cqw !important; font-size: max(8px, 1.6cqw); }
.ms-meta, .ms-ch { color: var(--sub); }
.ms-ch { font-weight: 700; text-transform: var(--caps); }
.ms-info .ms-title { margin: .6cqw 0 1cqw !important; }
.ms-sum { margin-top: 1cqw !important; max-width: 60ch; }
.ms-badges { display: flex; gap: 1cqw; margin-top: 1.4cqw !important; }
.ms-badges span { border: max(1px, .15cqw) solid currentColor; padding: 0 .6cqw; border-radius: .3cqw; font-size: max(8px, 1.4cqw); }
.ms-prog { display: flex; align-items: center; gap: 1.6cqw; margin-top: 2cqw; color: var(--sub); font-size: max(8px, 1.5cqw); }
.ms-bar { display: block; flex: 1; height: max(3px, .6cqw); background: rgb(255 255 255 / .25); border-radius: .3cqw; overflow: hidden; }
.ms-bar-lg { width: 60cqw; height: 1.2cqw; margin: 2.4cqw auto 0; }
.ms-fill { display: block; height: 100%; background: var(--focus); }
.w-33 { width: 33%; } .w-40 { width: 40%; } .w-47 { width: 47%; }
.ms-picture { position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 35%, rgb(255 255 255 / .35), transparent 55%), radial-gradient(ellipse at 75% 70%, rgb(0 0 0 / .45), transparent 60%), var(--gf, #4A4F5C);
  filter: blur(.4cqw); }
.ms-dim { filter: blur(.4cqw) brightness(.5); }
.ms-roll { clip-path: inset(0 0 45% 0); }
.ms-static { position: absolute; inset: 0; background: #7F7F7F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .46 0 0 0 0 .46 0 0 0 0 .46 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.ms-static-low { top: 55%; }
.ms-tunenum { position: absolute; right: 4cqw; top: 3cqw; color: #fff; font: 800 9cqw/1 var(--f-site); font-stretch: 70%; text-shadow: .3cqw .3cqw 0 #000, 0 0 .5cqw #000; }
.ms-banner, .ms-upnext { position: absolute; left: 4cqw; bottom: 5cqw; right: 30cqw; display: grid; grid-template-columns: auto 1fr auto; gap: 2cqw; align-items: center;
  padding: 1.8cqw 2.4cqw; background: var(--tbar); color: var(--tbar-text); border: max(1px, .2cqw) solid var(--focus); border-radius: var(--radius); }
.ms-banner-sm { right: 50cqw; grid-template-columns: auto 1fr; }
.ms-upnext { left: auto; right: 4cqw; bottom: 4cqw; grid-template-columns: auto 1fr; }
.ms-num { display: grid; place-content: center; min-width: 7cqw; height: 7cqw; background: var(--focus); color: var(--focus-text); font: 800 max(10px, 3.4cqw)/1 var(--f-head); text-shadow: none; border-radius: var(--radius); }
.ms-bch { font-size: max(8px, 1.6cqw); opacity: .9; }
.ms-btitle { font: 800 max(10px, 3cqw)/1.05 var(--f-head); font-stretch: var(--head-stretch); text-transform: var(--caps); margin: .3cqw 0 !important; }
.ms-btime, .ms-next { font-size: max(8px, 1.6cqw); }
.ms-next { margin-top: .6cqw !important; opacity: .85; }
.ms-banner .ms-bar { margin-top: .8cqw; }
.ms-chip { display: inline-block; margin-left: 1cqw; padding: 0 .8cqw; border-radius: .3cqw; background: var(--now); color: #fff; text-shadow: none; }
.ms-clock { align-self: start; font: 800 max(9px, 2.4cqw)/1 var(--f-head); }
.mock-frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: fr; }
.mock-frames p, .mock-themes p, .mock-label { margin: 8px 0 0; font: 700 13px/1.3 var(--f-site); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); }
.mock-frames .ms-tunenum { font-size: 12cqw; }
@media (max-width: 600px) { .mock-frames { grid-template-columns: minmax(0, 1fr); } }

/* Settings */
.ms-set { display: grid; grid-template-columns: 28cqw 1fr; gap: 3cqw; }
.ms-side, .ms-rows, .ms-sidebar, .ms-strip { list-style: none; margin: 0; padding: 0; }
.ms-side li { padding: .9cqw 1.4cqw; color: var(--sub); border-radius: var(--radius); }
.ms-side li.is-cur { color: var(--text); background: rgb(255 255 255 / .12); font-weight: 700; }
.ms-rows li { display: flex; justify-content: space-between; gap: 2cqw; padding: 1.1cqw 1.6cqw; margin-bottom: .5cqw; background: var(--cell);
  border-radius: var(--radius); box-shadow: inset var(--bw) var(--bw) 0 var(--bev-l), inset calc(-1 * var(--bw)) calc(-1 * var(--bw)) 0 var(--bev-d); }
.ms-rows li > span:last-child { color: var(--sub); display: inline-flex; align-items: center; gap: .8cqw; }
.ms .is-focus { background: var(--focus) !important; color: var(--focus-text) !important; text-shadow: none; font-weight: 700; }
.ms .is-focus > span:last-child { color: inherit; }
.ms-lock { display: inline-block; width: 1.4cqw; height: 1.2cqw; border: max(1px, .2cqw) solid currentColor; border-radius: .2cqw; position: relative; margin-top: .6cqw; }
.ms-lock::before { content: ""; position: absolute; left: 15%; right: 15%; bottom: 100%; height: .8cqw; border: max(1px, .2cqw) solid currentColor; border-bottom: 0; border-radius: .6cqw .6cqw 0 0; }

/* PIN, upgrade, build, link */
.ms-pin { display: grid; justify-items: center; text-align: center; }
.ms-pin .ms-title { font-size: max(10px, 3.2cqw); }
.ms-boxes { display: flex; gap: 1.6cqw; margin: 2.4cqw 0; }
.ms-boxes span { width: 5cqw; height: 6cqw; border: max(1px, .25cqw) solid var(--sub); border-radius: var(--radius); }
.ms-keys { display: grid; grid-template-columns: repeat(3, 8cqw); gap: .8cqw; }
.ms-keys span { display: grid; place-content: center; height: 4.6cqw; background: var(--cell); border-radius: var(--radius); font-weight: 700; }
.ms-keys .ms-blank { background: none; }
.ms-pin .ms-help { margin-top: 1.6cqw !important; }
.ms-up ul { list-style: none; margin: 2cqw 0 0; padding: 0; display: grid; gap: .8cqw; }
.ms-up li::before { content: "\2022  "; color: var(--focus); }
.ms-btns { display: flex; justify-content: center; gap: 1.4cqw; margin-top: 3cqw; flex-wrap: wrap; }
.ms-btn { padding: 1cqw 2.4cqw; background: var(--cell); border-radius: var(--radius); font-weight: 700;
  box-shadow: inset var(--bw) var(--bw) 0 var(--bev-l), inset calc(-1 * var(--bw)) calc(-1 * var(--bw)) 0 var(--bev-d); }
.ms-col { flex-direction: column; align-items: stretch; margin-top: 2cqw; }
.ms-build .ms-word { font: 800 max(14px, 7cqw)/1 var(--f-site); font-stretch: 70%; color: #F2C230; text-transform: uppercase; text-shadow: .3cqw .3cqw 0 #2B2622; }
.ms-build .ms-line, .ms-build .ms-meta { color: #D4D0F7; }
.ms-build .ms-fill { background: #8C86FF; }
.ms-build .ms-bar { background: #0D0A2A; }
.ms-tag { margin-top: 2.4cqw !important; color: #F2C230; font-weight: 700; }
.ms-link { display: grid; grid-template-columns: 30cqw 1fr; gap: 5cqw; align-items: center; height: 100%; }
.ms-qr { display: grid; grid-template-columns: repeat(7, 1fr); aspect-ratio: 1; padding: 2cqw; background: #fff; border-radius: var(--radius); }
.ms-qr .on { background: #000; }
.ms-code { margin-top: 1.4cqw !important; font: 800 max(14px, 8cqw)/1 ui-monospace, Menlo, monospace; letter-spacing: .2em; color: var(--focus); }

/* Error screens, panels, overlays */
.ms-err { max-width: 70cqw; margin: 0 auto; }
.ms-bottom .ms-err { position: relative; text-align: left; margin: 0; padding: 2.4cqw 3cqw; background: var(--tbar); border: max(1px, .2cqw) solid var(--focus); border-radius: var(--radius); }
.ms-bottom .ms-btns { justify-content: flex-start; }
.ms-bars { display: flex; height: 5cqw; width: 40cqw; margin: 0 auto 3cqw; }
.ms-bars span { flex: 1; }
.ms-bars span:nth-child(1) { background: #C0C0C0; } .ms-bars span:nth-child(2) { background: #C0C000; } .ms-bars span:nth-child(3) { background: #00C0C0; }
.ms-bars span:nth-child(4) { background: #00C000; } .ms-bars span:nth-child(5) { background: #C000C0; } .ms-bars span:nth-child(6) { background: #C00000; }
.ms-bars span:nth-child(7) { background: #0000C0; }
.ms-shade { position: absolute; inset: 0; z-index: 9; background: rgb(0 0 0 / .55); }
.ms-sidebar, .ms-panel { position: absolute; z-index: 10; background: var(--tbar); color: var(--tbar-text); font: 600 max(8px, 1.8cqw)/1.2 var(--f-guide); }
.ms-sidebar { inset: 0 auto 0 0; width: 28cqw; padding: 3cqw 1.6cqw; display: grid; align-content: start; gap: .4cqw; border-right: max(1px, .2cqw) solid var(--focus); }
.ms-sidebar li { padding: .8cqw 1.4cqw; border-radius: var(--radius); }
.ms-sidebar .ms-div { padding: 0; margin: .8cqw 0; border-top: max(1px, .15cqw) solid currentColor; opacity: .4; }
.ms-panel { left: 50%; top: 50%; translate: -50% -50%; width: 40cqw; padding: 2.4cqw; border: max(1px, .2cqw) solid var(--focus); border-radius: var(--radius); }
.ms-panel .ms-title { font-size: max(10px, 2.8cqw); }

/* Search, strip, cards */
.ms-field { padding: 1cqw 1.6cqw; background: var(--cell); border-radius: var(--radius); font-size: max(10px, 3cqw); font-weight: 700; }
.ms-caret { display: inline-block; width: .3cqw; height: 3cqw; margin-left: .4cqw; background: var(--focus); vertical-align: -.4cqw; }
.ms-hint { color: var(--sub); margin: .8cqw 0 2cqw !important; }
.ms-group { color: var(--sub); font-weight: 700; text-transform: var(--caps); margin-bottom: 1cqw !important; }
.ms-strip { position: absolute; right: 4cqw; top: 50%; translate: 0 -50%; width: 44cqw; display: grid; gap: .5cqw; z-index: 2; }
.ms-strip li { display: grid; grid-template-columns: 13cqw 1fr; gap: 1.4cqw; padding: 1cqw 1.6cqw; background: var(--tbar); border-radius: var(--radius); }
.ms-strip li.is-tuned { box-shadow: inset .5cqw 0 0 var(--now); }
.ms-coming .ms-ch { color: var(--chan-num); }
.ms-big { font: 800 max(14px, 8cqw)/1 var(--f-head); font-stretch: var(--head-stretch); text-transform: uppercase; margin: 1.4cqw 0 !important; }

/* Site-style panels */
.mock-panel .mock-art { display: block; }
.mock-card { border: 2px solid var(--rule); border-radius: 4px; background: var(--deep); padding: 24px; }
.mc-h { margin: 0 0 16px; font: 700 13px/1.2 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--spite); }
.mc-rows { list-style: none; margin: 0; padding: 0; }
.mc-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 12px 0; border-top: 2px solid var(--soft); }
.mc-rows li > span:first-child { font-weight: 800; color: var(--cream); }
.mc-rows li > span:last-child { color: var(--lilac); }
.mc-none { opacity: .55; text-decoration: line-through; }
.mock-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mock-tiers ul { margin: 0; padding-left: 20px; }
.mock-tiers li { margin-bottom: 6px; }
.mock-foot { grid-column: 1 / -1; margin: 0; color: var(--lilac); font-size: 15px; }
@media (max-width: 600px) { .mock-tiers { grid-template-columns: minmax(0, 1fr); } .mc-rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.mock-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mock-stats li { border-top: 2px solid var(--spite); padding-top: 12px; color: var(--lilac); font-size: 15px; }
.mock-stats span { display: block; font: 800 44px/1 var(--f-site); font-stretch: 70%; color: var(--cream); }
@media (max-width: 600px) { .mock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mock-two { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; }
.mock-link { margin: 0; text-align: center; font: 700 13px/1.2 var(--f-site); letter-spacing: .08em; text-transform: uppercase; color: var(--spite); }
.mock-link span { display: block; border: 2px dashed var(--rule); border-radius: 4px; padding: 8px; }
.mock-label { margin: 0 0 8px; }
@media (max-width: 600px) { .mock-two { grid-template-columns: minmax(0, 1fr); } }
.mock-themes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
.mock-pair .mock-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mock-themes p { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (max-width: 860px) { .mock-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .mock-themes, .mock-pair .mock-themes { grid-template-columns: minmax(0, 1fr); } }

/* Timelines and the seasonal calendar: widths from colspan */
.mock-tl, .mock-cal { border: 2px solid var(--rule); border-radius: 4px; background: var(--deep); padding: 16px; overflow-x: auto; }
.mock-tl table, .mock-cal table { width: 100%; min-width: 560px; table-layout: fixed; border-collapse: separate; border-spacing: 0 4px; }
.mock-tl th, .mock-cal thead th { text-align: left; font: 700 13px/1.2 var(--f-site); color: var(--lilac); padding: 0 0 4px 6px; border-left: 2px solid var(--rule); white-space: nowrap; }
.mock-tl th.first { border-left-color: var(--spite); }
.mock-tl td { height: 52px; padding: 0 8px; font: 700 13px/1.2 var(--f-site); color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-right: 2px solid var(--deep); }
.tl-prog { background: var(--gf, #4A4F5C); border-radius: 2px; }
.mock-tl .g-drama, .mock-tl .tl-k.g-drama { --gf: #7B2D8E; } .mock-tl .g-sci-fi { --gf: #4B3FA8; } .mock-tl .g-comedy { --gf: #1C6E35; }
.mock-tl .g-other { --gf: #4A4F5C; } .mock-tl .g-family { --gf: #7A4E00; } .mock-tl .g-horror { --gf: #5C1A2E; }
.tl-spots { background: repeating-linear-gradient(135deg, #F2C230 0 6px, #2B2622 6px 12px); }
.tl-next { background: #F3ECD2; color: #2B2622 !important; }
.tl-ticks td { height: 10px; border-left: 2px solid var(--spite); border-right: 0; background: none; }
.tl-key { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--lilac); font-size: 15px; }
.tl-k { display: inline-block; width: 24px; height: 14px; margin-right: -8px; border-radius: 2px; vertical-align: middle; }
.mock-cal .cal-name { width: 170px; }
.mock-cal tbody th { text-align: left; padding: 0 12px 0 0; font: 700 13px/1.1 var(--f-site); color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-cal td { height: 18px; padding: 0; }
.cal-bar { background: var(--bar); opacity: .45; }
.cal-bar.is-live { background: var(--spite); opacity: 1; }
.cal-now { box-shadow: inset 2px 0 0 var(--now); }
.mock-tl::-webkit-scrollbar, .mock-cal::-webkit-scrollbar { height: 8px; }
.mock-tv .guide.rows-1 { --rows: 1; } .mock-tv .guide.rows-2 { --rows: 2; } .mock-tv .guide.rows-3 { --rows: 3; }

/* Flow strips */
.flow { border: 2px solid var(--rule); border-radius: 4px; background: var(--deep); padding: 20px; }
.flow-name { margin: 0 0 10px; font: 700 13px/1.2 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--spite); }
.flow-name:not(:first-child) { margin-top: 20px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.flow-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 2px solid var(--rule); border-radius: 4px;
  background: var(--ink); font: 700 15px/1.25 var(--f-site); color: var(--cream); flex: 0 1 auto; }
.flow-steps li + li::before { content: "\2192"; position: absolute; left: -22px; top: 50%; translate: 0 -50%; color: var(--spite); font-weight: 800; }
.flow-n { flex: none; font: 800 13px/1 var(--f-site); color: var(--spite); }
.flow-ends { border-color: var(--spite) !important; }
.flow-ends b { color: var(--spite); }
.flow-note { margin: 12px 0 0; font-size: 15px; color: var(--lilac); }
@media (max-width: 600px) {
  .flow-steps { flex-direction: column; gap: 22px; }
  .flow-steps li + li::before { content: "\2193"; left: 20px; top: -20px; translate: none; }
}

/* Pair sides */
.mock-pairs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 600px) { .mock-pairs { grid-template-columns: minmax(0, 1fr); } }
.mock-tv .guide.g-large { --rows: 6; --fs: 2.3cqw; }
.mock-tv .guide.g-large .g-info-title { font-size: max(10px, 3.2cqw); }
.tv.mock-tv.g-contrast .p { outline: max(1px, .2cqw) solid #fff; outline-offset: calc(-1 * max(1px, .2cqw)); }
.tv.mock-tv.g-contrast .g-grid td.p.is-focus { box-shadow: inset 0 0 0 .5cqw #000; }
.tv.mock-tv.g-contrast .g-now { width: max(3px, .4cqw); opacity: 1; }
.ms.posters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2cqw; padding: 4cqw; background: #0B0B0D; }
.ms.posters span { border-radius: .6cqw; background: linear-gradient(160deg, #2A2A33, #18181D); }
.ms.posters span.is-focus { background: #3A3A44 !important; outline: .5cqw solid #F2F2F2; }
.ms-build .ms-word { font-size: max(16px, 11cqw); }
.ms-build .ms-line, .ms-build .ms-meta { font-size: max(9px, 2.6cqw); }
.ms-build .ms-tag { font-size: max(10px, 3.2cqw); }
.ms-build .ms-bar-lg { height: 2cqw; border: .3cqw solid #5A55B0; }

/* Interior pages: the content column and the eight templates (DESIGN 19). */

.crumb-bar { background: var(--ink); padding-top: 28px; }
.crumb-bar + .page-head { padding-top: 32px; }
.crumb-bar .crumbs ol { margin-bottom: 0; }

/* Body copy from Markdown */
.prose { font-size: 17px; line-height: 1.55; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 20px; }
.prose h2 { font-size: 32px; margin: 56px 0 16px; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.prose h3 { font-size: 24px; margin: 36px 0 12px; color: var(--cream); }
.prose h4 { font-size: 19px; margin: 28px 0 8px; }
.prose h2 + h3 { margin-top: 20px; }
.prose a { color: var(--spite); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; color: var(--cream); }
.prose > ul, .prose li > ul { list-style: none; padding-left: 0; }
.prose > ul > li, .prose li > ul > li { position: relative; padding-left: 24px; margin: 0 0 8px; }
.prose > ul > li::before, .prose li > ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: var(--spite); }
.prose > ol, .prose li > ol { list-style: none; padding-left: 0; counter-reset: li; }
.prose > ol > li, .prose li > ol > li { position: relative; padding-left: 44px; margin: 0 0 12px; counter-increment: li; min-height: 28px; }
.prose > ol > li::before, .prose li > ol > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .05em; width: 32px; height: 24px;
  display: grid; place-content: center; background: var(--deep); border: 2px solid var(--rule); border-radius: 4px;
  font: 800 13px/1 var(--f-site); color: var(--spite); }
.prose li > ul, .prose li > ol { margin: 8px 0 0; }
.prose code { font: 500 15px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--deep); border: 2px solid var(--soft);
  border-radius: 4px; padding: 0 4px; }
/* Code blocks in help pages are prompts in plain prose: they wrap, so none
   scrolls sideways (verify V12). */
.prose pre { background: var(--deep); border: 2px solid var(--rule); border-radius: 4px; padding: 16px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
/* A license text wraps, so it needs no scroll box. */
.prose pre.license-text { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; font-size: 14px; }
.prose pre code { border: 0; padding: 0; }
.prose blockquote { border-left: 2px solid var(--spite); padding: 4px 0 4px 20px; color: var(--lilac); }
.prose hr { border: 0; border-top: 2px solid var(--rule); margin: 48px 0; }
.prose .tbl { margin: 28px 0; }
.blk-soft .prose .tbl tbody tr:nth-child(even) { background: rgb(13 10 42 / .3); }

/* 404 in the chrome */
.nosignal main { display: grid; }

/* Page head with a visual (feature, theme) */
.head-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.has-visual .head-split, .t-theme .head-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.head-btns { margin-top: 32px; }
.head-visual .mock { margin: 0; }
@media (max-width: 1060px) { .has-visual .head-split, .t-theme .head-split { grid-template-columns: minmax(0, 1fr); } }
.dates, .checked { margin: 20px 0 0; font: 700 13px/1.4 var(--f-site); letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.page-head-legal { padding-top: 56px; }
.page-head-legal h1 { font-size: clamp(44px, 5vw, 56px); }

/* Tags */
.tag { display: inline-block; margin: 0; padding: 4px 8px; border: 2px solid var(--bar); border-radius: 4px; font: 700 13px/1 var(--f-site);
  letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.tag-free { border-color: var(--spite); color: var(--spite); }
.tag-line { margin: 20px 0 0; color: var(--lilac); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Card lists */
.cards { list-style: none; margin: 0; padding: 0; }
.link-card { position: relative; display: flex; flex-direction: column; gap: 8px; transition: border-color .08s linear; }
.link-card .eyebrow { margin: 0; }
.link-card h3 { margin: 0; font-size: 24px; }
.link-card h3 a { color: var(--cream); text-decoration: none; }
.link-card h3 a::after { content: ""; position: absolute; inset: 0; }
.link-card p { margin: 0; color: var(--lilac); font-size: 15px; }
.link-card .tag { align-self: flex-start; margin-top: auto; }
.link-card:hover { border-color: var(--spite); }
.link-card:hover h3 a { color: var(--spite); }
.link-card:focus-within { outline: 3px solid var(--spite); outline-offset: 2px; }
.link-card h3 a:focus-visible { outline: none; box-shadow: none; }

/* Sections from the body */

/* Docs: side navigation and the reading column */
.docs { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 56px; padding-top: 32px; padding-bottom: 88px; }
.docs-nav { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; max-height: calc(100vh - var(--hdr-h) - 48px); overflow: auto;
  padding-right: 8px; border-right: 2px solid var(--soft); }
.docs-nav summary { display: none; }
.docs-nav-h { margin: 24px 0 6px; font: 700 13px/1.2 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--spite); }
.docs-home { margin: 0; }
.docs-home a { font-weight: 700; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li a { display: block; padding: 5px 10px; margin-left: -10px; border-left: 2px solid transparent; color: var(--lilac); text-decoration: none;
  font-size: 15px; line-height: 1.3; }
.docs-nav li a:hover { color: var(--cream); background: var(--soft); }
.docs-nav li a[aria-current="page"] { color: var(--spite); border-left-color: var(--spite); background: var(--soft); font-weight: 700; }
.docs-main { max-width: calc(var(--read) + 80px); min-width: 0; }
.docs-main h1 { font-size: clamp(44px, 5vw, 56px); margin: 0; text-wrap: balance; }
.docs-main .lead { margin-bottom: 32px; }
.docs-main .checked { margin: 12px 0 0; }
.t-doc .crumb-bar { padding-top: 24px; }
.t-doc main { background: var(--ink); }
.docs-q { font-size: 32px; margin: 56px 0 16px; }
.wrong { margin: 48px 0 0; padding: 16px 20px; border: 2px solid var(--rule); border-radius: 4px; color: var(--lilac); font-size: 15px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border: 2px solid var(--rule); border-radius: 4px; text-decoration: none;
  color: var(--cream); font-weight: 700; }
.pager a:hover { border-color: var(--spite); color: var(--spite); }
.pager span { font: 700 13px/1 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); }
.pager-next { grid-column: 2; text-align: right; }
@media (max-width: 1060px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs-nav { position: static; max-height: none; border: 2px solid var(--rule); border-radius: 4px; padding: 0; }
  .docs-nav summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; cursor: pointer;
    font: 700 15px/1 var(--f-site); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); list-style: none; }
  .docs-nav summary::-webkit-details-marker { display: none; }
  .docs-nav summary::after { content: "+"; color: var(--spite); font-size: 24px; }
  .docs-nav details[open] summary::after { content: "\2212"; }
  .docs-nav details > :not(summary) { margin-left: 16px; margin-right: 16px; }
  .docs-nav details > ul:last-of-type { margin-bottom: 16px; }
}
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-next { grid-column: 1; } }

/* Guides and comparisons: table of contents beside the reading column */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.article-main { grid-column: 1; grid-row: 1; max-width: calc(var(--read) + 120px); min-width: 0; }
.toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hdr-h) + 24px); border-left: 2px solid var(--rule); padding-left: 20px; }
.toc-h { margin: 0 0 12px; font: 700 13px/1.2 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--spite); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 5px 0; color: var(--lilac); text-decoration: none; font-size: 15px; line-height: 1.3; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 700 13px/1.5 var(--f-site); color: var(--rule); }
.toc a:hover { color: var(--spite); }
@media (max-width: 1060px) {
  .article { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { grid-column: 1; position: static; border: 2px solid var(--rule); border-radius: 4px; padding: 20px; }
  .article-main { grid-row: 2; }
}
.summary { margin: 0 0 40px; padding: 24px 28px; background: var(--deep); border: 2px solid var(--spite); border-radius: 4px; }
.summary-h { margin: 0 0 12px; font: 700 13px/1.2 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--spite); }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 0 0 8px; }
.summary li::marker { color: var(--spite); }
.sources { margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--rule); font-size: 15px; }
.sources h2 { font-size: 24px; margin: 0 0 16px; }
.sources ol { margin: 0; padding-left: 24px; color: var(--lilac); display: grid; gap: 8px; }
.sources a { overflow-wrap: anywhere; }
.src-note { color: var(--cream); }
.src-date { white-space: nowrap; color: var(--lilac); }
.corrections { margin: 32px 0 0; padding: 16px 20px; border: 2px solid var(--rule); border-radius: 4px; color: var(--lilac); font-size: 15px; }

/* Glossary */
.letters ul { list-style: none; margin: 40px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.letters a { display: grid; place-content: center; width: 40px; height: 40px; border: 2px solid var(--rule); border-radius: 4px; font: 800 17px/1 var(--f-site);
  color: var(--cream); text-decoration: none; }
.letters a:hover { border-color: var(--spite); color: var(--spite); }
.terms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.term { border: 2px solid var(--rule); border-radius: 4px; padding: 24px; background: var(--ink); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.term:target { border-color: var(--spite); }
.term dt { font: 800 24px/1 var(--f-site); font-stretch: 70%; text-transform: uppercase; color: var(--spite); margin: 0 0 12px; }
.term dd { margin: 0; }
.term dd p { margin: 0 0 12px; }
.in-app { color: var(--lilac); font-size: 15px; }
.in-app span { display: block; font: 700 13px/1.4 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--bar); }
@media (max-width: 860px) { .terms { grid-template-columns: minmax(0, 1fr); } }

/* Theme token table swatches */
.swatch-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tbl-tokens { max-width: 720px; }
.tbl-tokens code { font: 500 15px/1.4 ui-monospace, "SF Mono", Menlo, monospace; }

/* Body sections: the heading on the left, the copy on the right */
.sec-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.sec-split > .sec-head { margin: 0; position: sticky; top: calc(var(--hdr-h) + 32px); }
.sec-split h2 { font-size: clamp(32px, 3.6vw, 44px); }
.sec-split .prose { max-width: var(--read); }
.sec-split .prose .mock, .sec-split .prose .tbl { width: auto; max-width: 100%; }
.blk-intro .prose > p:first-child { font-size: 19px; color: var(--cream); }
@media (max-width: 860px) {
  .sec-split { grid-template-columns: minmax(0, 1fr); }
  .sec-split > .sec-head { position: static; }
  .sec-split > .sec-side:empty { display: none; }
}
.blk-intro .sec-split { grid-template-columns: minmax(0, 1fr); }
.blk-intro .sec-side { display: none; }
.blk-intro .prose { max-width: 820px; }
.blk-intro .prose > p:first-child { font-size: 24px; line-height: 1.4; }

/* Channel tables */
.ch-table .ch-num { font: 800 19px/1 var(--f-site); color: var(--spite); width: 64px; }
.ch-table .ch-kind { display: block; margin-top: 4px; font: 700 13px/1.2 var(--f-site); letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
@media (max-width: 600px) {
  .tbl-stack .ch-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
  .tbl-stack .ch-table .ch-num { width: auto; min-width: 44px; padding: 2px 0 0; }
  .tbl-stack .ch-table .ch-num::before { display: none; }
  .tbl-stack .ch-table td:not(.ch-num) { grid-column: 1 / -1; }
}

/* Phone: the docs list and the contents fold away */
.docs-nav-d, .toc-d { display: none; }
.toc-d summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--cream); font-weight: 700; }
@media (max-width: 1060px) {
  .docs-nav-full, .toc-full { display: none; }
  .docs-nav-d, .toc-d { display: block; }
  .docs-nav { padding: 0; }
  .toc .toc-h { margin-bottom: 0; }
  .toc { padding: 16px 20px; }
}
@media (max-width: 600px) { .crumbs li[aria-current]:not(:nth-child(2)) { display: none; } .crumbs li[aria-current] { min-width: 0; } }

/* 404: no signal */
.nosig-wrap { padding: 72px 0 96px; background: var(--ink); }
.nosig-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.nosig-wrap .nosig { margin: 0; max-width: none; min-height: 0; aspect-ratio: 4 / 3; border: 2px solid var(--rule); border-radius: 4px;
  display: grid; place-content: center; text-align: center; padding: 24px; }
.nosig-big { margin: 8px 0 0; font: 800 clamp(44px, 6.4vw, 88px)/.95 var(--f-site); font-stretch: 70%; text-transform: uppercase; color: #fff; text-shadow: 3px 3px 0 #000; }
.nosig-copy h1 { margin: 0; }
.nosig-links { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.nosig-links a { display: flex; align-items: center; min-height: 48px; border-bottom: 2px solid var(--rule); color: var(--cream); text-decoration: none;
  font: 800 19px/1 var(--f-site); font-stretch: 75%; text-transform: uppercase; }
.nosig-links a::after { content: "\2192"; margin-left: auto; color: var(--spite); }
.nosig-links a:hover { color: var(--spite); }
@media (max-width: 860px) { .nosig-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .nosig-wrap { padding: 40px 0 64px; } }
.nosig-copy h1 { font-size: clamp(44px, 6.4vw, 88px); }
.nosig-wrap .nosig-ch { font-size: 24px; text-transform: uppercase; letter-spacing: .12em; }
.prose :not(pre) > code { overflow-wrap: anywhere; }

/* Right rail (doc, page, legal): contents, related, the call to action */
.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.rail-main { min-width: 0; }
.rail-main .prose.read { max-width: calc(var(--read) + 80px); }
.siderail { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 20px; max-height: calc(100vh - var(--hdr-h) - 48px); overflow: auto; }
.side-card { border: 2px solid var(--rule); border-radius: 4px; padding: 20px; background: var(--ink); }
.blk:not(.blk-soft) .side-card, .docs .side-card { background: var(--soft); }
.side-h { margin: 0 0 10px; font: 700 13px/1.2 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--spite); }
.siderail ol, .siderail ul { list-style: none; margin: 0; padding: 0; }
.siderail li a { display: flex; align-items: center; min-height: 32px; padding: 4px 0; color: var(--lilac); text-decoration: none; font-size: 15px; line-height: 1.3; }
.siderail li a:hover { color: var(--spite); }
.side-toc ol { counter-reset: r; }
.side-toc li { counter-increment: r; }
.side-toc li a::before { content: counter(r, decimal-leading-zero); flex: none; width: 28px; font: 700 13px/1 var(--f-site); color: var(--rule); }
.side-cta p:not(.side-h) { margin: 0 0 16px; font-size: 15px; color: var(--cream); }
.docs { grid-template-columns: 240px minmax(0, 1fr) 240px; gap: 48px; }
.docs .siderail { align-self: start; }
@media (max-width: 1100px) {
  .with-rail { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .siderail { position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .side-toc { display: none; }
  .docs { grid-template-columns: 240px minmax(0, 1fr); }
  .docs .siderail { grid-column: 2; }
}
@media (max-width: 1060px) { .docs .siderail { grid-column: 1; } }

/* The page head: an eyebrow rule and a scanline edge, like a channel strip */
.page-head { position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgb(90 85 176 / .55) 0 2px, transparent 2px 4px); }
.page-head .eyebrow::before, .docs-main > .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; vertical-align: .3em; background: var(--spite); }
@media (max-width: 1060px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
/* Buttons inside copy keep their own colors. */
.prose .btn { text-decoration: none; }
.prose .btn-primary { color: var(--outline); }
.prose .btn-secondary { color: var(--cream); }
.faq-main .qa-h2 { font-size: 32px; margin: 56px 0 16px; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.faq-main .qa-h2:first-child { margin-top: 0; }
.faq-main .qa + .qa-h2 { margin-top: 56px; }

/* Wider columns (review 2026-11-14): copy keeps its measure, tables and
   figures take the column. */
.sec-split .prose { max-width: 680px; }
.faq-main { max-width: 760px; }
.faq-main .qa-h2 { margin-top: 48px; }
.rail-main .prose.read { max-width: none; }
.rail-main .prose > :not(.tbl):not(.mock):not(figure):not(.cta-box) { max-width: calc(var(--read) + 80px); }
.article-main { max-width: 860px; }
.article-main .prose > :not(.tbl):not(.mock):not(figure):not(.cta-box) { max-width: calc(var(--read) + 80px); }
.with-rail { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
.article { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }

/* Tables that scroll show an edge hint: shadows that ride the scroll. */
.tbl { background:
  linear-gradient(to right, var(--soft) 30%, rgb(30 19 104 / 0)) left / 32px 100% no-repeat local,
  linear-gradient(to left, var(--soft) 30%, rgb(30 19 104 / 0)) right / 32px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / .55), transparent) left / 14px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / .55), transparent) right / 14px 100% no-repeat scroll; }
.swatch-svg { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--cream); border-radius: 3px; }
.faq-main .qa-h2 { margin-top: 56px; padding-top: 8px; }
.faq-main .qa-h2:first-child { margin-top: 0; padding-top: 0; }
.faq-main .cta-box { margin-top: 56px; }
@media (max-width: 1100px) { .with-rail { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 1060px) { .article { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.swatch-svg { width: 20px; height: 20px; border: 0; outline: 1px solid var(--cream); outline-offset: 1px; border-radius: 2px; margin-right: 10px; vertical-align: -4px; }
.tbl { --tbl-bg: var(--ink); background-color: var(--tbl-bg); background-image:
  linear-gradient(to right, var(--tbl-bg) 30%, transparent), linear-gradient(to left, var(--tbl-bg) 30%, transparent),
  radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / .55), transparent), radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / .55), transparent); }
.blk-soft .tbl, .docs .tbl { --tbl-bg: var(--soft); }
.blk-soft .docs .tbl, .t-doc .tbl { --tbl-bg: var(--ink); }
.prose-wide > :not(.tbl):not(.mock):not(figure) { max-width: calc(var(--read) + 80px); }

/* /help reference groups: plain link lists in columns */
.ref-list { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 32px; }
.ref-list li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.ref-list a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; font-weight: 700; }

/* Reference pages under Help (the former sales sub-pages): the docs' scale,
   one plain surface, tighter bands */
/* Help and reference pages share the docs' h1 size (DESIGN 30.1). */
:is(.t-ref, .t-help) .page-head h1 { font-size: clamp(44px, 5vw, 56px); }
.t-ref .page-head .lead { font-size: 19px; }
.t-ref .blk, .t-ref .blk-soft { background: var(--ink); padding: 48px 0; }
.t-ref .blk + .blk, .t-ref .blk + .blk-soft, .t-ref .blk-soft + .blk { border-top: 1px solid var(--rule); }
.t-ref .sec-head h2 { font-size: clamp(26px, 2.6vw, 34px); }
.t-ref .docs-main .ref-visual { margin: 0 0 32px; }
.t-ref .docs-main .tag-line { margin: 0 0 20px; }

/* The Preview Channel (DESIGN 28.2), in the 1998 guide colors. */
.t-preview main { background: #0E4A7C; color: #fff; }
.t-preview .crumb-bar { background: #0E4A7C; }
.pv { --pv-cell: #173F78; --pv-bar: #122C5E; --pv-sub: #A8C8E8; --pv-focus: #F0A81C; --pv-chan: #12305F;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-height: calc(100svh - var(--hdr-h) - 60px); padding-bottom: 16px; }
.pv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 8px; padding-bottom: 12px; }
.pv-head h1 { font-size: 44px; margin: 0; color: #fff; text-shadow: 2px 2px 0 #061428; }
.pv-pause { color: #fff; border-color: #fff; }
.pv-small { margin: 0 0 0 auto; font-size: 13px; color: var(--pv-sub); }
.pv-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.pv-clip { position: relative; margin: 0; aspect-ratio: 4 / 3; max-height: 42svh; background: #000; border: 2px solid var(--pv-bar); overflow: hidden; }
.pv-clip img, .pv-clip video { width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-lower { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: baseline; padding: 10px 14px;
  background: linear-gradient(transparent, rgb(0 0 0 / .85) 40%); font: 800 24px/1 var(--f-site); font-stretch: 70%; text-transform: uppercase; }
.pv-now { color: var(--pv-focus); font-size: 15px; letter-spacing: .1em; }
.pv-clip-empty { display: grid; place-content: center; color: var(--pv-sub); }
.pv-noscript { display: none; }
@media (scripting: none) { .pv-noscript { display: block; grid-column: 1; margin: 8px 0 0; color: var(--pv-sub); font-size: 15px; } }
.pv-promos { position: relative; display: grid; align-content: stretch; }
.pv-card { display: none; flex-direction: column; justify-content: center; gap: 12px; padding: 28px; background: var(--pv-bar); border: 2px solid var(--pv-focus);
  color: #fff; text-decoration: none; }
.pv-card.is-on { display: flex; animation: fade .2s ease-out; }
.pv-card:hover .pv-card-t, .pv-card:focus-visible .pv-card-t { color: var(--pv-focus); }
.pv-card-e { font: 700 13px/1 var(--f-site); letter-spacing: .12em; text-transform: uppercase; color: var(--pv-focus); }
.pv-card-t { font: 800 44px/.95 var(--f-site); font-stretch: 70%; text-transform: uppercase; text-wrap: balance; }
.pv-card-b { font-size: 17px; color: var(--pv-sub); }
@media (scripting: none) { .pv-promos { gap: 12px; } .pv-card:not([data-more]) { display: flex; } .pv-card-t { font-size: 24px; } }
.pv-step { min-height: 44px; padding: 0 16px; border: 2px solid #fff; border-radius: 4px; background: transparent; color: #fff; font: 800 15px/1 var(--f-site); cursor: pointer; }
.pv-promos .pv-step { position: absolute; right: 12px; bottom: 12px; }
.pv-grid { margin-top: 16px; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.pv-scroll { position: relative; overflow: hidden; border-top: 2px solid var(--pv-bar); min-height: 240px; }
@media (scripting: none) { .pv-scroll { overflow: visible; } }
.pv-table { --pv-y: 0px; width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; font: 600 15px/1.2 var(--f-site); transform: translateY(var(--pv-y)); }
.pv-table thead th { position: sticky; top: 0; z-index: 1; background: var(--pv-bar); color: #fff; text-align: left; padding: 6px 8px; font: 800 15px/1 var(--f-site); font-stretch: 75%; text-transform: uppercase; }
.pv-table thead th:first-child { width: 22%; }
.pv-table tbody th { background: var(--pv-chan); color: var(--pv-sub); text-align: left; padding: 8px; font-weight: 800; text-transform: uppercase; font-stretch: 75%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-num { color: #fff; margin-right: 6px; }
.pv-table td { background: var(--pv-cell); padding: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 2px 2px 0 #58759E, inset -2px -2px 0 #0A1C36; }
.pv-table td.pv-brk { color: var(--pv-sub); background: repeating-linear-gradient(135deg, rgb(255 255 255 / .2) 0 4px, transparent 4px 10px), var(--pv-cell); font-size: 13px; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .pv-table tbody { animation: pv-roll 140s linear infinite; }
  .pv[data-paused] .pv-table tbody, .pv-scroll:hover tbody, .pv-scroll:focus-within tbody { animation-play-state: paused; }
}
@keyframes pv-roll { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 30svh)); } }
.pv-pager { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 860px) {
  .pv-top { grid-template-columns: minmax(0, 1fr); }
  .pv-clip { max-height: none; }
  .pv-card { min-height: 200px; }
  .pv-card-t { font-size: 32px; }
  .pv-table thead th:first-child { width: 34%; }
  .pv-small { margin-left: 0; }
}
.pv-grid { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
@media (scripting: enabled) { .pv-scroll { height: max(240px, calc(100svh - var(--hdr-h) - 42svh - 200px)); } }
@media (scripting: enabled) and (max-width: 860px) { .pv-scroll { height: 60svh; } }
.pv-grid > * { min-width: 0; width: 100%; }
@media (max-width: 600px) {
  .pv-scroll { overflow-x: auto; overflow-y: hidden; }
  .pv-table { min-width: 620px; }
  .pv-table thead th:first-child { width: 150px; }
}
/* 91 columns: spacing between each would eat the width; borders draw the gaps. */
.pv-table { border-spacing: 0; }
.pv-table th, .pv-table td { border: 2px solid #0E4A7C; }
.pv-chc { width: 22%; }
.pv-table thead th:first-child { width: auto; }
@media (max-width: 860px) { .pv-chc { width: 34%; } }
@media (max-width: 600px) { .pv-chc { width: 150px; } }
.pv-ch { margin-left: auto; color: var(--pv-sub); font-size: 15px; letter-spacing: .06em; }

/* Promo cards as mock ads: a ribbon, a display title, a tune-in label,
   and a bar that counts the 12 seconds. The clip window and the card
   share one height. */
.pv-top { align-items: stretch; }
.pv-clip { max-height: none; }
.pv-promos { overflow: hidden; border: 2px solid var(--pv-focus); background:
  repeating-linear-gradient(33deg, transparent 0 60px, rgb(255 255 255 / .04) 60px 120px), var(--pv-bar); }
.pv-card { position: relative; justify-content: flex-start; height: 100%; padding: 56px 32px 40px; border: 0; background: none; gap: 16px; }
.pv-card-e { position: absolute; top: 18px; left: -36px; transform: rotate(-12deg); padding: 6px 48px; background: var(--now); color: #fff;
  font: 800 15px/1 var(--f-site); letter-spacing: .14em; box-shadow: 3px 3px 0 #061428; }
.pv-card-t { font-size: clamp(32px, 4.4vw, 56px); line-height: .95; text-shadow: 2px 2px 0 #061428; margin-top: 12px; }
.pv-card-b { font-size: 19px; line-height: 1.4; color: #fff; max-width: 32ch; }
.pv-card-go { margin-top: auto; align-self: flex-start; padding: 10px 18px; background: var(--pv-focus); color: #0E1A2E; border: 2px solid #0E1A2E;
  font: 800 15px/1 var(--f-site); letter-spacing: .1em; text-transform: uppercase; box-shadow: 3px 3px 0 #0E1A2E; }
.pv-card-go::after { content: " \25B8"; }
.pv-card:hover .pv-card-go { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #0E1A2E; }
.pv-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--pv-focus); transform-origin: left; transform: scaleX(0); }
.pv-bar.run { animation: pv-bar 12s linear forwards; }
.pv[data-paused] .pv-bar { animation-play-state: paused; }
@keyframes pv-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pv-promos .pv-step { z-index: 2; }
@media (scripting: none) { .pv-promos { border: 0; background: none; } .pv-card { padding: 48px 24px 24px; border: 2px solid var(--pv-focus); background: var(--pv-bar); } .pv-card-t { font-size: 32px; } .pv-bar { display: none; } }
@media (max-width: 860px) { .pv-card { min-height: 320px; } }
.pv-card-e { top: 22px; left: -10px; transform: rotate(-4deg); padding: 7px 22px 7px 32px; max-width: calc(100% - 24px); }
.pv-card { padding-top: 72px; }
.pv-lower { flex-wrap: wrap; }
@media (max-width: 600px) {
  .pv-lower { font-size: 19px; gap: 4px 8px; }
  .pv-ch { flex-basis: 100%; margin-left: 0; font-size: 13px; }
}
/* Audit: 4.5:1 for the ribbon and the break cells. */
.pv-card-e { background: #B8322A; }
.pv-table td.pv-brk { color: #fff; background: repeating-linear-gradient(135deg, rgb(0 0 0 / .3) 0 4px, transparent 4px 10px), var(--pv-cell); }

/* Audit 2026-11-14: every control outside running text has a 44 px box. */
.hdr .btn-sm { min-height: 44px; }
.hdr .btn-sm::after { content: none; }
.crumbs a, .crumbs li { min-height: 44px; }
.crumb-bar { padding-top: 16px; }
.arrow-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.letters a { width: 44px; height: 44px; }
.siderail li a { min-height: 44px; }

/* Short words still get a 44 px wide target. */
.crumbs a { min-width: 44px; justify-content: center; }
/* Footer links: 24 px tall at desktop, 44 px at touch widths (chrome.css);
   no 44 px minimum width, which centred "Terms" in a wider box and made
   its gap uneven. */
#pv-pause { min-height: 44px; }
/* A grid column holding a scroll box must be allowed to shrink. */
.split > *, .sec-split > *, .head-split > * { min-width: 0; }
/* One long word in a heading never widens the page. */
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 360px) { .page-head h1, .docs-main h1 { font-size: 36px; } }
/* Scroll boxes contain their absolutely positioned children (visually
   hidden labels), so nothing escapes the clip and widens the page. */
.mock-tl, .mock-cal, .tbl, .pkg-strip, .pv-scroll { position: relative; }

/* The two browser tools (DESIGN.md section 22): the lineup preview and
   the printable channel card. Only these pages use these classes. */

.tool > h2 { margin: 40px 0 12px; }
.tool-note { max-width: 68ch; color: var(--lilac); }
.tbl-scroll { overflow-x: auto; }
.tbl-scroll:focus-visible { outline: 3px solid var(--spite); outline-offset: 2px; }

/* Lineup preview */
.lp-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.lp-presets p { margin: 0; font-weight: 700; }
.lp-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; align-items: start; }
.lp-form fieldset { border: 2px solid var(--rule); border-radius: 4px; margin: 0 0 16px; padding: 12px 16px 16px; min-width: 0; }
.lp-form legend { font-weight: 800; padding: 0 6px; }
.lp-grid { width: 100%; }
.lp-grid th[scope="row"] { text-align: left; font-weight: 600; }
.lp-grid input { width: 6.5em; min-height: 44px; padding: 0 8px; border: 2px solid var(--bar); border-radius: 4px; background: var(--deep); color: var(--cream); font: 500 17px/1 var(--f-site); }
.lp-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--spite); }
.lp-side label { display: block; margin-bottom: 6px; }
.lp-side select { width: 100%; min-height: 44px; padding: 0 8px; border: 2px solid var(--bar); border-radius: 4px; background: var(--deep); color: var(--cream); font: 500 17px/1 var(--f-site); }
.lp-decades { list-style: none; margin: 0; padding: 0; }
.lp-decades label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; }
.lp-decades input { width: 22px; height: 22px; accent-color: var(--spite); }
:is(.lp-grid input, .lp-side select, .lp-decades input, .lp-more summary):focus-visible { outline: 3px solid var(--spite); outline-offset: 2px; }
.lp-result-h { margin: 8px 0; }
.lp-result { font-size: 22px; font-weight: 800; color: var(--spite); min-height: 1.5em; }
.lp-table .lp-pkg th { background: var(--deep); color: var(--spite); text-align: left; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lp-table .lp-num { font-weight: 800; color: var(--spite); }
.lp-table tr.is-in td.lp-st { color: var(--spite); font-weight: 800; }
.lp-table tr.is-out td.lp-st, .lp-table tr.is-maybe td.lp-st { color: var(--lilac); }
.lp-table tr.is-in th[scope="row"] { box-shadow: inset 4px 0 0 var(--spite); }
@media (max-width: 760px) {
  .lp-form { grid-template-columns: 1fr; }
  .lp-form fieldset { padding: 8px 8px 12px; }
  .lp-grid th, .lp-grid td { padding: 6px 6px; }
  .lp-grid input { width: 4.5em; }
  .lp-table td:nth-child(3) { display: none; }
}

/* Channel card: options are links, so the card works with scripts off. */
.lc-opts { margin: 24px 0; }
.lc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.lc-row p { margin: 0; min-width: 6em; font-weight: 800; }
.lc-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lc-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--bar); border-radius: 4px; color: var(--cream); font-weight: 700; text-decoration: none; }
.lc-chip:hover { text-decoration: underline; }
.lc-chip[aria-current="true"] { background: var(--spite); border-color: var(--spite); color: var(--outline); }
.lc-print { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lc-stage { overflow-x: auto; }
/* The card: paper and ink by default; a theme's guide colors (DESIGN 3.2)
   with "Use theme colors". */
.lc { --lc-bg: var(--cream); --lc-ink: var(--outline); --lc-acc: var(--outline); --lc-rule: var(--outline);
  margin: 0 auto; padding: 28px 32px; background: var(--lc-bg); color: var(--lc-ink); max-width: 760px; border-radius: 2px;
  box-shadow: 6px 6px 0 var(--deep); font: 500 14px/1.35 var(--f-site); }
.lc[data-size="half"] { max-width: 500px; }
.lc-color[data-theme="1998"] { --lc-bg: #0E4A7C; --lc-ink: #FFFFFF; --lc-acc: #F0A81C; --lc-rule: #A8C8E8; }
.lc-color[data-theme="motel"] { --lc-bg: #2F55B5; --lc-ink: #FFFFFF; --lc-acc: #FFFFFF; --lc-rule: #FFFFFF; } /* MOTEL yellow is 4.2:1 on its blue */
.lc-color[data-theme="satellite"] { --lc-bg: #001E5A; --lc-ink: #FFFFFF; --lc-acc: #FFE14D; --lc-rule: #C9D7F2; }
.lc-color[data-theme="cable-box"] { --lc-bg: #0A1464; --lc-ink: #EFEFEF; --lc-acc: #F2D21B; --lc-rule: #D8DEFF; }
.lc-color[data-theme="y2k"] { --lc-bg: #0B3B3B; --lc-ink: #F2F0E0; --lc-acc: #E8D36A; --lc-rule: #BFD8D0; }
.lc-color[data-theme="modern"] { --lc-bg: #0B0B0D; --lc-ink: #FFFFFF; --lc-acc: #F2F2F2; --lc-rule: #B8B8C0; }
.lc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px solid var(--lc-rule); padding-bottom: 8px; margin-bottom: 14px; }
.lc-head p { margin: 0; }
.lc-title { font: 800 26px/1.05 var(--f-site); font-stretch: 68%; text-transform: uppercase; color: var(--lc-acc); }
.lc-theme { font-weight: 700; }
.lc-cols { columns: 3 13em; column-gap: 24px; }
.lc[data-size="half"] .lc-cols { columns: 2 12em; }
.lc-pkg { break-inside: avoid; margin: 0 0 12px; }
.lc-pkg h3 { margin: 0 0 4px; font: 800 15px/1.2 var(--f-site); font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em; color: var(--lc-acc); text-shadow: none; border-bottom: 1px solid var(--lc-rule); }
.lc-list { list-style: none; margin: 0; padding: 0; }
.lc-list li { display: flex; gap: 8px; }
.lc-n { min-width: 2.2em; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.lc-foot { margin: 14px 0 0; padding-top: 8px; border-top: 3px solid var(--lc-rule); font-weight: 700; }

/* Print: the card alone, on its own page size. */
@page lcletter { size: letter; margin: .4in; }
@page lchalf { size: 5.5in 8.5in; margin: .3in; }
@media print {
  .page-card :is(.skip, .hdr, .ftr, .crumb-bar, .page-head, .lc-opts, .lc-print, .tool > h2, .band-close, .drawer) { display: none !important; }
  .page-card .blk, .page-card .wrap, .page-card .lc-stage { padding: 0 !important; margin: 0 !important; max-width: none !important; background: none !important; overflow: visible; }
  html:has(body.page-card), body.page-card { background: #FFFFFF !important; }
  .page-card main, .page-card .tool { width: auto; max-width: none; }
  .lc { page: lcletter; width: 100%; max-width: none; padding: 0; box-shadow: none; font-size: 8pt; line-height: 1.22; }
  .lc-pkg { margin-bottom: 6pt; }
  .lc[data-size="half"] { page: lchalf; font-size: 6pt; line-height: 1.15; }
  .lc[data-size="half"] .lc-cols { columns: 3; column-gap: 10pt; }
  .lc:not(.lc-color) { --lc-bg: #FFFFFF; --lc-ink: #000000; --lc-acc: #000000; --lc-rule: #000000; }
  .lc-color { print-color-adjust: exact; -webkit-print-color-adjust: exact; padding: .15in; }
  .lc-title { font-size: 18pt; }
  .lc-pkg h3 { font-size: 9pt; }
  .lc[data-size="half"] .lc-title { font-size: 13pt; }
  .lc[data-size="half"] .lc-pkg h3 { font-size: 7pt; }
}

