/* asr.qitv.app — qitv.app's poster look (its colours, fonts, colour bars, strip and cards), with the
   demo framed like QiTV's picture and its captions in QiTV's caption style. */

/* Turkish needs Latin Extended (ş, ğ, İ): each family's latin-ext file covers it, the latin file the rest. */
@font-face { font-family: "Inter"; src: url(/fonts/inter/inter-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url(/fonts/inter/inter-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Slab"; src: url(/fonts/roboto-slab/roboto-slab-latin.woff2) format("woff2"); font-weight: 800 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Slab"; src: url(/fonts/roboto-slab/roboto-slab-latin-ext.woff2) format("woff2"); font-weight: 800 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-400-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-400-latin-ext.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-500-latin.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-500-latin-ext.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-600-latin-ext.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Arrows and π, which the Latin files lack (Roboto Slab has no arrows at all: --slab falls back to Inter). */
@font-face { font-family: "Inter"; src: url(/fonts/inter/inter-symbols.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+2190-2199, U+03C0; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-400-symbols.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+2190-2199, U+03C0; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-500-symbols.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+2190-2199, U+03C0; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono/ibm-plex-mono-600-symbols.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+2190-2199, U+03C0; }

:root {
  --ink: #1c1917;
  --paper: #f4eee8;
  --coral: #ff6656;
  --muted: rgba(244, 238, 232, .72);
  --faint: rgba(244, 238, 232, .6);
  --rule: rgba(244, 238, 232, .12);
  --wash: rgba(255, 102, 86, .07);
  /* QiTV's picture: its canvas, and its captions' panel and text (ui/theme.py, ui/overlays/captions.py). */
  --tv-canvas: #0b0f14;
  --tv-panel: rgba(8, 11, 15, .78);
  --tv-text: #eef2f6;
  --gutter: clamp(16px, 3.6vw, 52px);
  --max: 1440px;
  --pad: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
  --slab: "Roboto Slab", Inter, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
/* Longer headlines than qitv.app's: a little smaller, so they keep to two or three lines. */
:lang(en) { --h1-scale: .92; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1rem/1.5 var(--sans); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); letter-spacing: .08em; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; z-index: 10; inset-inline-start: var(--gutter); top: -4rem; background: var(--coral); color: var(--ink); padding: .6rem 1rem; border-radius: .3rem; font-weight: 700; text-decoration: none; }
.skip:focus { top: .6rem; }

/* ---------- menu bar ---------- */
.menu { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2.2rem); padding: clamp(14px, 1.7vw, 24px) var(--pad); }
.mark { display: flex; align-items: center; gap: .7rem; margin-inline-end: auto; text-decoration: none; }
.mark .icon { position: relative; width: clamp(34px, 2.9vw, 42px); aspect-ratio: 1; flex: none; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.mark .icon img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .45s; }
.mark .icon .pi { opacity: 0; }
.mark:hover .icon, .mark:focus-visible .icon { transform: rotate(180deg); }
.mark:hover .icon .pi, .mark:focus-visible .icon .pi { opacity: 1; }
.mark .name { font: 900 clamp(1.3rem, 1.9vw, 1.7rem)/1 var(--slab); letter-spacing: -.02em; white-space: nowrap; }
.mark .name span { color: var(--coral); }
.menu .lk { font: 400 .95rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); text-decoration: none; }
.menu .lk:hover { color: var(--paper); }
.switch { display: flex; gap: .15rem; font-size: .85rem; }
.switch a { padding: .35em .45em; border-radius: .3em; color: var(--muted); text-decoration: none; }
.switch a:hover { color: var(--paper); }
.switch a[aria-current] { color: var(--coral); box-shadow: inset 0 0 0 1px rgba(255, 102, 86, .55); }
.menu .dl { font: 600 1rem/1 var(--mono); letter-spacing: .08em; background: var(--coral); color: var(--ink); padding: .72em 1.05em; border-radius: .35em; text-decoration: none; white-space: nowrap; }
.bars { height: 6px; opacity: .9; background: linear-gradient(90deg, #bfbfbf 0 14.29%, #bfbf00 0 28.57%, #00bfbf 0 42.86%, #00bf00 0 57.14%, #bf00bf 0 71.43%, #bf0000 0 85.71%, #0000bf 0 100%); }

/* ---------- first screen: the headline and the tool left, the picture right ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: clamp(28px, 3.6vw, 64px); align-items: start; padding: clamp(36px, 4.2vw, 64px) var(--pad) clamp(44px, 4.6vw, 72px); }
.kicker { color: var(--coral); font-size: clamp(.78rem, 1.1vw, 1rem); }
h1 { font: 900 calc(var(--h1-scale, 1) * clamp(2.6rem, 5.1vw, 5.2rem))/.95 var(--slab); letter-spacing: -.025em; margin: .3em 0 .38em; text-wrap: balance; overflow-wrap: break-word; }
h1 span { color: var(--coral); }
.lede { font-size: clamp(1.06rem, 1.4vw, 1.3rem); line-height: 1.5; color: rgba(244, 238, 232, .8); max-width: 30em; }

/* ---------- the tool: drop zone, then the visitor's file ---------- */
.tool { margin-top: clamp(1.4rem, 2.4vw, 2.2rem); }
.drop { display: grid; justify-items: start; gap: .85rem; padding: clamp(1.1rem, 1.9vw, 1.7rem); border: 2px dashed rgba(255, 102, 86, .7); border-radius: .6rem; background: var(--wash); transition: background-color .2s, border-color .2s; }
.drop.over { border-style: solid; border-color: var(--coral); background: rgba(255, 102, 86, .16); }
.drop-t { font: 800 clamp(1.12rem, 1.45vw, 1.32rem)/1.25 var(--slab); }
.drop-note { font-size: .78rem; letter-spacing: .06em; color: var(--faint); }
.drop-busy { font-size: .95rem; color: var(--muted); }
.pick, .big { display: inline-flex; flex-direction: column; justify-content: center; gap: .3rem; padding: .95rem 1.5rem; border: 0; border-radius: .35rem; background: var(--coral); color: var(--ink); text-align: start; text-decoration: none; cursor: pointer; }
.pick { font: 800 clamp(1.1rem, 1.5vw, 1.3rem)/1.2 var(--slab); flex-direction: row; gap: .5rem; }
.big strong { font: 800 clamp(1.1rem, 1.5vw, 1.3rem)/1.2 var(--slab); }
.big small { font: 500 .78rem/1.3 var(--mono); letter-spacing: .06em; opacity: .8; }
.pick:hover, .big:hover { background: #ff7a6c; }
.quiet { padding: .85rem 1.1rem; border: 1px solid var(--rule); border-radius: .35rem; background: none; font: 500 .9rem/1.2 var(--mono); letter-spacing: .06em; cursor: pointer; }
.quiet:hover { border-color: rgba(255, 102, 86, .6); }
.job { display: grid; gap: 1.1rem; padding: clamp(1.1rem, 1.8vw, 1.6rem); border: 1px solid var(--rule); border-radius: .6rem; background: rgba(244, 238, 232, .03); }
.job-file { display: grid; gap: .2rem; }
.job-file .mono { font-size: .76rem; color: var(--faint); }
.job-file .mono:first-child { color: var(--coral); }
.job-file b { font: 800 1.2rem/1.3 var(--slab); overflow-wrap: anywhere; }
.models { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.models legend { float: left; grid-column: 1 / -1; width: 100%; margin-bottom: .5rem; padding: 0; font-size: .76rem; color: var(--faint); }
/* A row a mode: its name and one-time download on one line, what it is under them */
.models label { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .9rem; border: 1px solid var(--rule); border-radius: .4rem; cursor: pointer; }
.models label > span { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; min-width: 0; }
.models label:has(input:checked) { border-color: var(--coral); background: var(--wash); }
.models label:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }
.models input { accent-color: var(--coral); margin: .3rem 0 0; }
.models b { grid-column: 1; grid-row: 1; font: 800 1.05rem/1.3 var(--slab); }
.models small { grid-column: 1 / -1; margin-top: .1rem; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.models .mb { grid-column: 2; grid-row: 1; align-self: center; font-size: .74rem; letter-spacing: .06em; color: var(--faint); white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .8rem; }
.downloads { display: flex; flex-wrap: wrap; align-items: stretch; gap: .8rem; }
.downloads .file { margin: 0; gap: 1.2rem; }
.msg { padding: .75rem .95rem; border-inline-start: .22rem solid var(--coral); border-radius: .2rem; background: rgba(255, 102, 86, .1); color: #ffd3cc; line-height: 1.5; }

/* ---------- the picture, framed like QiTV's, with its captions ---------- */
.player { min-width: 0; }
.picture { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .8rem; border: 1px solid rgba(255, 255, 255, .1); background: var(--tv-canvas); box-shadow: 0 3rem 6rem rgba(0, 0, 0, .55); }
.picture video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--tv-canvas); }
video::cue { background: var(--tv-panel); color: var(--tv-text); font-family: var(--sans); }
/* QiTV's sizes, in hundredths of the picture's width: text 3.2, 4 above the bottom, a 76-wide line at most. */
.caption { position: absolute; inset-inline: 2cqw; bottom: 4cqw; display: flex; justify-content: center; pointer-events: none; transition: bottom .2s; }
.caption span { max-width: 76cqw; padding: .7cqw 1.3cqw; border-radius: .8cqw; background: var(--tv-panel); color: var(--tv-text); font: 400 max(13px, 3.2cqw)/1.3 var(--sans); text-align: center; white-space: pre-line; text-wrap: balance; }
/* Above the player's own controls while they show, as QiTV's captions rise above its controls. */
.picture:hover .caption, .picture:focus-within .caption, .player.paused .caption { bottom: calc(4cqw + 50px); }
/* A narrow player puts its controls on two rows. */
@container (max-width: 520px) {
  .picture:hover .caption, .picture:focus-within .caption, .player.paused .caption { bottom: calc(2cqw + 76px); }
}
.sound-only { position: absolute; top: 38%; inset-inline: 0; text-align: center; font-size: max(12px, 1.6cqw); color: rgba(238, 242, 246, .55); pointer-events: none; }
.band { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; min-height: 2.75rem; }
.badge { flex: none; padding: .3em .6em; border: 1px solid rgba(255, 102, 86, .7); border-radius: .3em; font-size: .76rem; color: var(--coral); }
.band-t { flex: 1 1 14rem; min-width: 0; font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; }
/* Beside the file panel, the file's name is there already. */
@media (min-width: 1000px) {
  .player[data-state="file"] .band-t { visibility: hidden; }
}
.here { flex: none; padding: .7rem 1rem; border: 1px solid var(--coral); border-radius: .35rem; background: none; color: var(--paper); font: 600 .92rem/1.1 var(--sans); cursor: pointer; }
.here .mono { font-weight: 500; font-size: .85em; letter-spacing: .04em; color: var(--muted); }
.here:hover { background: var(--wash); }
.here:disabled { opacity: .5; cursor: not-allowed; }
/* The demo's mode, beside its button: only while the pre-written demo shows, and only with the script */
.demo-mode { flex: none; padding: .62rem .6rem; border: 1px solid var(--rule); border-radius: .35rem; background: var(--ink); color: var(--paper); font-size: .82rem; cursor: pointer; }
.demo-mode:hover { border-color: var(--coral); }
.demo-mode:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
html:not(.js) .demo-mode, .player:not([data-state="demo"]) .demo-mode, .demo-mode:has(+ .here[hidden]) { display: none; }
.progress { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
.progress span { flex: none; font-size: .8rem; letter-spacing: .04em; color: var(--muted); }
.progress .quiet { flex: none; margin-inline-start: auto; padding: .45rem .8rem; font-size: .8rem; }
progress { flex: 1; min-width: 4rem; height: .4rem; border: 0; border-radius: 1em; overflow: hidden; background: rgba(244, 238, 232, .12); appearance: none; }
progress::-webkit-progress-bar { background: rgba(244, 238, 232, .12); }
progress::-webkit-progress-value { background: var(--coral); transition: width .25s; }
progress::-moz-progress-bar { background: var(--coral); }
.written { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.written h2 { margin-bottom: .5rem; font-size: .76rem; font-weight: 500; color: var(--coral); }
.cues { max-height: 15.5rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(244, 238, 232, .25) transparent; }
.cues button { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .9rem; width: 100%; padding: .45rem .7rem; border: 0; border-inline-start: .2rem solid transparent; background: none; text-align: start; cursor: pointer; animation: arrive .35s ease-out; }
.cues button:hover { background: rgba(244, 238, 232, .04); }
.cues button[aria-current] { border-inline-start-color: var(--coral); background: var(--wash); }
.cues .t { padding-top: .12rem; font-size: .82rem; color: var(--faint); }
.cues .x { font-size: 1rem; line-height: 1.45; }
@keyframes arrive { from { opacity: 0; transform: translateY(.3rem); } }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--rule); }
.facts li { padding: 1.5rem 1.6rem; border-inline-start: 1px solid var(--rule); }
.facts li:first-child { border-inline-start: 0; padding-inline-start: var(--pad); }
.facts strong { display: block; font: 800 1.2rem/1.3 var(--slab); }
.facts li:first-child strong { color: var(--coral); font: 900 clamp(2.4rem, 3.6vw, 3.3rem)/1 var(--slab); letter-spacing: -.02em; }
.facts span { display: block; margin-top: .35rem; font-size: .98rem; line-height: 1.45; color: var(--faint); }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 6.6vw, 96px) var(--pad) clamp(40px, 4.6vw, 64px); }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.4rem; margin-bottom: clamp(1.6rem, 2.9vw, 2.6rem); }
.sec-h h2 { font: 900 clamp(2.2rem, 4vw, 3.6rem)/1 var(--slab); letter-spacing: -.02em; }
.sec-h .mono { color: var(--coral); }
/* Cells divided by hairlines: a 1 px gap over the rule colour. */
.steps, .ways, .cards { display: grid; gap: 1px; border: 1px solid var(--rule); background: var(--rule); }
.steps > *, .ways > *, .cards > * { background: var(--ink); }

.steps { grid-template-columns: repeat(3, 1fr); }
.steps li { padding: clamp(1.4rem, 2.5vw, 2.2rem); }
.steps .n { font-size: 1rem; color: var(--coral); }
.steps h3 { font: 900 clamp(1.4rem, 2.2vw, 1.9rem)/1.1 var(--slab); letter-spacing: -.01em; margin: .5em 0; }
.steps p { font-size: 1.05rem; line-height: 1.55; color: var(--muted); }

.why-lede { max-width: 42em; margin-bottom: clamp(1.6rem, 2.9vw, 2.6rem); font: 800 clamp(1.3rem, 2.1vw, 1.85rem)/1.35 var(--slab); letter-spacing: -.01em; }
.ways { grid-template-columns: 1fr 1fr; }
.way { padding: clamp(1.4rem, 2.5vw, 2.2rem); }
.way .label { font-size: .9rem; color: var(--coral); }
.way h3 { font: 900 clamp(1.5rem, 2.4vw, 2.1rem)/1.05 var(--slab); letter-spacing: -.01em; margin: .4em 0 .45em; }
.way p { font-size: 1.1rem; line-height: 1.55; color: var(--muted); max-width: 34em; }
a:is(.way *, .how, .card *, .credits *) { text-decoration-color: rgba(255, 102, 86, .7); text-underline-offset: .2em; }

/* ---------- the models ---------- */
.cards { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; padding: clamp(1.4rem, 2.4vw, 2.1rem); }
/* Side by side, the cards share their rows, so their charts line up whatever the words above them. */
@supports (grid-template-rows: subgrid) {
  .card { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .card > * { min-width: 0; }
  .card .more { justify-self: start; align-self: end; }
}
.card .label { font-size: .82rem; color: var(--coral); }
.card h3 { font: 900 clamp(1.7rem, 2.6vw, 2.3rem)/1.05 var(--slab); letter-spacing: -.01em; margin: .35em 0 .4em; }
.card-d { font-size: 1.02rem; line-height: 1.55; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chips li { padding: .35em .65em; border: 1px solid var(--rule); border-radius: .3em; font: 400 .78rem/1.5 var(--mono); letter-spacing: .05em; color: rgba(244, 238, 232, .8); }
.chart { margin-top: 1.5rem; }
.chart figcaption { margin-bottom: .8rem; font-size: .72rem; letter-spacing: .05em; color: var(--faint); }
.chart ul { display: grid; gap: .55rem; }
.chart li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .8rem; align-items: baseline; font-size: .88rem; }
.chart .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.chart .v { grid-row: 1; grid-column: 2; font-size: .82rem; letter-spacing: .02em; color: var(--muted); }
.chart .bar { grid-column: 1 / -1; width: 100%; min-width: 0; height: .5rem; }
.chart rect { fill: rgba(244, 238, 232, .26); }
.chart .ours .who, .chart .ours .v { color: var(--paper); font-weight: 600; }
.chart .ours rect { fill: var(--coral); }
.where { margin-top: 1.4rem; font-size: .95rem; line-height: 1.5; color: var(--faint); }
.where b { color: var(--muted); font-weight: 600; }
.more { margin-top: auto; padding-top: 1.4rem; font: 500 .9rem/1.2 var(--mono); letter-spacing: .06em; color: var(--paper); }

.board { margin-top: clamp(2.2rem, 3.8vw, 3.4rem); }
.board h3 { font: 900 clamp(1.5rem, 2.4vw, 2.1rem)/1.1 var(--slab); letter-spacing: -.01em; }
.board-note { max-width: 60em; margin: .5rem 0 1.2rem; font-size: .98rem; line-height: 1.5; color: var(--faint); }
/* Positioned, so the visually hidden words in its cells stay inside it rather than widening the page. */
.scroll { position: relative; overflow-x: auto; border: 1px solid var(--rule); }
table { width: 100%; min-width: 54rem; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
caption { padding: .8rem 1rem; caption-side: top; text-align: start; font: 400 .76rem/1.4 var(--mono); letter-spacing: .05em; color: var(--faint); }
th, td { padding: .6rem .9rem; border-top: 1px solid var(--rule); text-align: end; white-space: nowrap; }
th[scope="row"], thead th:first-child { text-align: start; font-weight: 500; }
thead th { vertical-align: bottom; font: 500 .78rem/1.3 var(--mono); letter-spacing: .03em; color: var(--muted); }
thead th a { text-decoration-color: rgba(255, 102, 86, .5); text-underline-offset: .2em; }
:is(th, td).ours { background: var(--wash); }
thead .ours { color: var(--coral); }
td strong { color: var(--coral); font-weight: 700; }

/* ---------- use it yourself ---------- */
.get { border-top: 1px solid var(--rule); }
.plats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); }
.plat { padding: 2.2rem 2rem; }
.plat + .plat { border-inline-start: 1px solid var(--rule); }
.plat h3 { font: 900 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--slab); letter-spacing: -.01em; margin-bottom: 1rem; }
.file { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85em 1em; margin-bottom: .6rem; border: 1px solid var(--rule); border-radius: .3rem; font-size: 1rem; text-decoration: none; overflow-wrap: anywhere; }
.file:hover { border-color: rgba(255, 102, 86, .6); }
.file span { flex: none; font-size: .82em; opacity: .75; }
.how { margin-top: 1.1rem; font-size: .98rem; line-height: 1.5; color: var(--faint); }

/* ---------- footer ---------- */
.foot-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem 4rem; padding: 3rem var(--pad) 2.2rem; }
.foot-main p { max-width: 44em; font-size: .98rem; line-height: 1.6; color: var(--faint); }
.foot h2 { margin: 1.8rem 0 .7rem; font-size: .78rem; font-weight: 500; color: var(--coral); }
.credits { display: grid; gap: .4rem; font-size: .92rem; line-height: 1.5; color: var(--faint); }
.credits a { color: var(--muted); }
.credits [data-todo] { font-style: italic; color: rgba(244, 238, 232, .5); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: start; gap: .8rem 2.2rem; font-weight: 500; color: var(--muted); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--paper); }
.fstory { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; margin: 0 var(--pad); padding: 1.3rem 0 2.4rem; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--faint); }
.fstory b { color: rgba(244, 238, 232, .78); font-weight: 600; }

/* ---------- short desktop windows: the drop zone stays on the first screen ---------- */
@media (min-width: 1000px) {
  h1 { font-size: calc(var(--h1-scale, 1) * clamp(2.6rem, min(5.1vw, 8.4svh), 5.2rem)); }
  .hero { padding-top: clamp(28px, min(4.2vw, 5svh), 64px); }
}

/* ---------- smaller screens ---------- */
@media (max-width: 999px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .lede { max-width: 34em; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li:first-child {
    display: grid; grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr); gap: .15rem 1rem; align-items: baseline;
    padding: .95rem var(--gutter); border-inline-start: 0; border-top: 1px solid var(--rule);
  }
  .facts li:first-child { border-top: 0; }
  .facts span { margin-top: 0; }
  .steps, .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .menu .lk { display: none; }
  .menu { gap: .7rem; }
  .menu .dl { font-size: .85rem; padding: .7em .8em; }
  .ways, .plats { grid-template-columns: minmax(0, 1fr); }
  .plat + .plat { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .plat { padding: 1.8rem var(--gutter); }
  .foot-main { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .caption span { font-size: max(12px, 3.6cqw); }
}
/* Phones: the name without "ASR", and on the smallest the logo alone, so the language switch and the
   button keep their room. */
@media (max-width: 480px) {
  .mark .name span { display: none; }
}
@media (max-width: 380px) {
  .mark .name { display: none; }
  .menu { gap: .55rem; }
  .menu .dl { font-size: .78rem; letter-spacing: .04em; padding: .7em .75em; }
  .switch a { padding: .3em .35em; }
}


/* ---------- 404: no signal, as on qitv.app ---------- */
.nosignal { background: #05070a; }
.tv { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #eef2f6; }
.tc { position: absolute; inset: 0; filter: brightness(.82) saturate(.92); }
.tc div { position: absolute; left: 0; right: 0; }
.tc-bars { top: 0; height: 58%; background: linear-gradient(90deg, #bfbfbf 0 14.29%, #bfbf00 0 28.57%, #00bfbf 0 42.86%, #00bf00 0 57.14%, #bf00bf 0 71.43%, #bf0000 0 85.71%, #0000bf 0 100%); }
.tc-rev { top: 58%; height: 7%; background: linear-gradient(90deg, #0000bf 0 14.29%, #131313 0 28.57%, #bf00bf 0 42.86%, #131313 0 57.14%, #00bfbf 0 71.43%, #131313 0 85.71%, #bfbfbf 0 100%); }
.tc-pluge { top: 65%; bottom: 0; background: linear-gradient(90deg, #00214c 0 17.8%, #f2f2f2 0 35.7%, #32006a 0 53.5%, #131313 0 71.4%, #090909 0 76%, #131313 0 80.7%, #1d1d1d 0 85.5%, #131313 0 100%); }
.tv-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 75% 60% at 50% 32%, transparent 40%, rgba(5, 7, 10, .5) 100%),
  linear-gradient(180deg, rgba(5, 7, 10, .85) 0%, rgba(5, 7, 10, .35) 9%, rgba(5, 7, 10, .05) 18%, rgba(5, 7, 10, .15) 40%, rgba(5, 7, 10, .88) 60%, #05070a 74%); }
/* An old set's rolling bar, drifting down the picture. */
.tv::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none;
  background: linear-gradient(transparent, rgba(255, 255, 255, .05), transparent); animation: roll 7s linear infinite; }
@keyframes roll { to { transform: translateY(433%); } }
.tv-ring { position: absolute; left: 50%; top: 27%; transform: translate(-50%, -50%); width: clamp(140px, 17vw, 240px); aspect-ratio: 1; border-radius: 50%;
  border: clamp(3px, .35vw, 5px) solid rgba(255, 255, 255, .9); background: #1c1917; display: grid; place-items: center; box-shadow: 0 0 0 clamp(8px, 1vw, 14px) rgba(0, 0, 0, .25); }
.tv-ring img { width: 63%; }
.tv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: clamp(14px, 1.7vw, 24px) var(--gutter); z-index: 2; }
.banner { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 9vh, 110px); display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0 clamp(14px, 2.2vw, 32px); z-index: 2; }
.banner .num { font: 300 clamp(2.6rem, 5.4vw, 5rem)/1 var(--sans); }
.banner .tile { width: clamp(64px, 8vw, 120px); aspect-ratio: 1; border-radius: 16%; background: #1c1917; border: 3px solid #000; display: grid; place-items: center; box-shadow: 0 .4rem 1.4rem rgba(0, 0, 0, .5); }
.banner .tile img { width: 82%; }
.banner .t1 { display: flex; align-items: center; gap: .55em; }
.banner h1 { margin: 0; font: 800 clamp(2.2rem, 4.4vw, 4rem)/1 var(--sans); letter-spacing: -.02em; }
.offair { background: #4a4d52; color: #fff; font: 800 clamp(.8rem, 1.1vw, 1.05rem)/1 var(--sans); padding: .3em .5em; border-radius: .3em; letter-spacing: .04em; }
.banner .now { margin-top: .35em; font: 600 clamp(1.1rem, 2.2vw, 2rem)/1.25 var(--sans); }
.banner .now em { font-style: normal; font-weight: 500; color: #e08a5f; margin-right: .35em; }
.banner .prog { height: 5px; margin: 1em 0 .9em; max-width: 72em; border-radius: 1em; background: rgba(255, 255, 255, .16); overflow: hidden; }
.banner .prog b { display: block; height: 100%; width: 100%; background: #e08a5f; border-radius: 1em; animation: programme 40s linear infinite; transform-origin: left; }
@keyframes programme { from { transform: scaleX(0); } }
.banner .next { font-size: clamp(.95rem, 1.3vw, 1.25rem); color: rgba(238, 242, 246, .62); }
.banner .next b { color: rgba(238, 242, 246, .85); font-weight: 500; margin-right: .4em; }
.banner .next a { color: #eef2f6; text-decoration-color: #e08a5f; text-underline-offset: .2em; }
@media (max-width: 759px) {
  .banner { grid-template-columns: auto 1fr; }
  .banner .num { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tv::after { animation: none; display: none; }
  .banner .prog b { animation: none; transform: scaleX(.36); }
}
.banner .now.en { margin-top: .15em; font-size: clamp(.95rem, 1.6vw, 1.45rem); color: rgba(238, 242, 246, .75); }
.banner .next span a { margin-left: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark:hover .icon, .mark:focus-visible .icon { transform: none; }
  .mark:hover .icon .pi, .mark:focus-visible .icon .pi { opacity: 0; }
}
