/* Meridian design system: site styles.
   --app-* values mirror the SwiftUI code (see tokens.json). Everything else is this site's own chrome:
   one night base, three strengths of starlight, hairlines, one radius (8). One gold, only where the app uses it: the logo's star and "Out now". */

:root {
  color-scheme: dark;

  /* Type. The app uses New York; this site sets it in Newsreader so every browser shows the same serif. */
  --serif: "Newsreader", "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Site scale: six steps */
  --t-display: 56px;
  --t-h2: 32px;
  --t-h3: 22px;
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 13px;

  /* Site colour: the Live Activity night, starlight text in three strengths, hairlines */
  --bg: #0D0D0E;
  --raise: #141415;
  --ink: #F4EFE4;
  --gold: #E9C46A;
  --ink-2: rgba(244, 239, 228, .80);
  --ink-3: rgba(244, 239, 228, .64);
  --line: rgba(244, 239, 228, .10);
  --line-2: rgba(244, 239, 228, .20);
  --r: 8px;
  --top-h: 64px;
  --rail-w: 264px;
  --gutter: 56px;
  --col-gap: 48px;  /* between columns of text */
  --card-gap: 16px; /* between cards */
  /* Easing. The site's own chrome eases out strongly; the drawer uses iOS's sheet curve; only pictures of the app
     use the app's .easeOut, so they move as the phone does. */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease-app: cubic-bezier(0, 0, .58, 1); /* the app's .easeOut */

  /* The mockups' wallpaper: a neutral night lifting to ink at the horizon, and a few faint stars for the panels. */
  --sky: radial-gradient(130% 46% at 50% 108%, rgba(120, 138, 186, .16), transparent 70%), linear-gradient(180deg, #0C0D10 0%, #11131A 48%, #1B2030 100%);
  /* The panels' stars sit in the 24 px padding, so none shows through a render. */
  --stars: radial-gradient(circle at 11px 12px, rgba(244, 239, 228, .4) 0 .7px, transparent 1.3px), radial-gradient(circle at calc(100% - 15px) 9px, rgba(244, 239, 228, .3) 0 .6px, transparent 1.2px), radial-gradient(circle at calc(100% - 9px) calc(100% - 17px), rgba(244, 239, 228, .3) 0 .7px, transparent 1.3px), radial-gradient(circle at 17px calc(100% - 10px), rgba(244, 239, 228, .24) 0 .6px, transparent 1.2px), radial-gradient(circle at 62% 8px, rgba(244, 239, 228, .2) 0 .6px, transparent 1.2px);

  /* App tokens */
  --night: #1C1C1C;
  --app-night: #1C1C1C;
  --app-la-base: #0D0D0E;
  --app-ink-secondary: rgba(255, 255, 255, .75);
  --app-ink-muted: rgba(235, 235, 245, .6);
  --app-ink-muted-widget: rgba(255, 255, 255, .55);
  --app-tile: rgba(255, 255, 255, .08);
  --app-control-fill: rgba(0, 0, 0, .55);
  --app-hairline: rgba(255, 255, 255, .35);
  --app-following-fill: rgba(255, 255, 255, .12);
  --app-sys-grouped: #000000;
  --app-sys-cell: #1C1C1E;
  --app-sys-separator: rgba(84, 84, 88, .6);
  --app-sys-blue: #0A84FF;
  --app-sys-red: #FF453A;

  /* Token variables: every CSS name the colour tables offer to copy, with the app's value (tokens.json). */
  --night-ink-primary: #FFFFFF;
  --night-ink-secondary: rgba(255, 255, 255, .75);
  --night-ink-muted: rgba(235, 235, 245, .6);
  --widget-base: #1C1C1C;
  --widget-primary: #FFFFFF;
  --widget-secondary: rgba(255, 255, 255, .75);
  --widget-muted: rgba(255, 255, 255, .55);
  --widget-tile: rgba(255, 255, 255, .08);
  --widget-always-on-factor: .7;
  --la-base: #0D0D0E;
  --la-primary: #FFFFFF;
  --la-secondary: rgba(255, 255, 255, .75);
  --la-muted: rgba(255, 255, 255, .55);
  --la-out: #E9C46A;
  --la-fill: #FFFFFF;
  --la-track: rgba(255, 255, 255, .18);
  --la-disc: rgba(255, 255, 255, .16);
  --la-keyline: rgba(255, 255, 255, .35);
  --la-monogram: rgba(255, 255, 255, .07);
  --night-neutral: #1C1C1C;
  --art-base-neutral: #525252;
  --art-accent: #FFFFFF;
  --night-sample-red: #1C1A1A;
  --night-sample-orange: #1C1B1A;
  --night-sample-yellow: #1C1C1A;
  --night-sample-green: #182418;
  --night-sample-teal: #182420;
  --night-sample-blue: #181E24;
  --night-sample-indigo: #181824;
  --night-sample-purple: #201824;
  --night-sample-wednesday: #181924;
  --night-sample-severance: #1B241A;
  --control-fill: rgba(0, 0, 0, .55);
  --control-hairline: rgba(255, 255, 255, .35);
  --control-picked: #FFFFFF;
  --following-fill: rgba(255, 255, 255, .12);
  --episode-ink: rgba(255, 255, 255, .6);
  --widget-tag-fill: rgba(0, 0, 0, .45);
  --art-scrim: rgba(0, 0, 0, .4);
  --welcome-tile: rgba(255, 255, 255, .05);
  --legacy-exact: #5BE38A;
  --legacy-estimated: #8AB0FF;
  --legacy-adjusted: #C9A6FF;
  --legacy-date-only: #A8A8B0;
  --legacy-delayed: #FDBA74;
  --legacy-no-stream: #FF8A80;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 var(--t-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; font-optical-sizing: auto;
}
[id] { scroll-margin-top: calc(var(--top-h) + 24px); }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .15s var(--ease-out); }
/* Hover tints only where there's a real pointer: on a touch screen a tap would leave them stuck on. */
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: currentColor; } }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
button { font: inherit; color: inherit; }
code, kbd, pre { font-family: var(--mono); font-size: var(--t-label); }
code { background: rgba(244, 239, 228, .07); padding: 1px 5px; border-radius: 4px; color: var(--ink-2); overflow-wrap: anywhere; }
pre code { background: none; padding: 0; border-radius: 0; color: inherit; }
kbd { border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; color: var(--ink-3); line-height: 20px; }
b, strong { font-weight: 600; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* Before the router picks a view, show none of them; afterwards, only the active one. */
.js .view:not(.is-active) { display: none; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; }
h1 { font: 300 var(--t-display)/1.05 var(--serif); letter-spacing: -.012em; }
h2 { font: 400 var(--t-h2)/1.15 var(--serif); letter-spacing: -.005em; margin-top: 96px; }
h3 { font: 400 var(--t-h3)/1.25 var(--serif); margin-top: 56px; }
h4 { font: 600 var(--t-body)/1.35 var(--sans); }
h2 + p, h3 + p, h2 + .note, h3 + .small { margin-top: 12px; }
p { margin: 16px 0 0; max-width: 68ch; }
.lede { font: 400 var(--t-h3)/1.45 var(--serif); color: var(--ink-2); max-width: 36ch; margin-top: 20px; }
.small { font-size: var(--t-small); color: var(--ink-3); }
.label { font-size: var(--t-label); color: var(--ink-3); margin: 0; }
.note { font-size: var(--t-small); color: var(--ink-2); border-left: 1px solid var(--line-2); padding-left: 16px; }
.statement { font: 300 var(--t-h2)/1.25 var(--serif); color: var(--ink); max-width: 26ch; margin-top: 32px; }
.path { font-family: var(--mono); font-size: var(--t-label); color: var(--ink-3); overflow-wrap: anywhere; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand [data-logo], .brand svg { flex: none; display: block; }
.brand svg { width: auto; height: 28px; }
.brand .wordmark { font: 400 var(--t-h3)/1 var(--serif); }
.brand .sub { font-size: var(--t-label); color: var(--ink-3); white-space: nowrap; padding-top: 4px; }
.topbar .spacer { flex: 1; }
.search-btn {
  display: flex; align-items: center; gap: 12px; min-width: 248px; height: 40px; padding: 0 8px 0 12px;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink-3); cursor: pointer;
  font-size: var(--t-small); transition: border-color .15s var(--ease-out), color .15s var(--ease-out), transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .search-btn:hover { color: var(--ink-2); border-color: rgba(244, 239, 228, .32); } }
.search-btn .keys { margin-left: auto; display: flex; gap: 4px; }
/* A long press on a control doesn't select its label; copy chips stay selectable. */
.tabs [role="tab"], .pick button, .btn, .icon-btn, .link-btn, .search-btn, .copy-code, .anchor-btn { -webkit-user-select: none; user-select: none; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); border-radius: var(--r); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { color: var(--ink); background: rgba(244, 239, 228, .06); } }
.menu-btn { display: none; margin-left: -8px; }

/* ---------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); }
main { min-width: 0; padding: 0 var(--gutter) 96px; }
main:focus { outline: none; }
.view { max-width: 1120px; }
.view-head { padding-top: 64px; }
.view-head .lede { max-width: 40ch; }

/* ---------------------------------------------------------------- rail */
.rail { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); overflow-y: auto; padding: 32px 16px 48px; border-right: 1px solid var(--line); }
.rail-head { display: none; }
.rail ol, .rail ul { list-style: none; margin: 0; padding: 0; }
.rail li { margin: 0; }
.rail a { position: relative; display: block; text-decoration: none; border-radius: var(--r); }
.rail .v { margin-bottom: 4px; }
.rail .v > a { padding: 8px 12px; font-size: var(--t-body); font-weight: 500; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .rail .v > a:hover, .rail .sub a:hover { color: var(--ink); } }
.rail .v.open > a { color: var(--ink); }
.rail .sub { margin: 0 0 12px; display: none; }
.rail .v.open .sub { display: block; }
.rail .sub a { padding: 6px 12px 6px 28px; font-size: var(--t-small); color: var(--ink-3); }
/* Signature: your meridian. The current place gets a bright line with the star on top. */
.rail .sub a.here { color: var(--ink); }
.rail .sub a.here::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: 6px; width: 1px; background: var(--ink); }
.rail .sub a.here::after { content: ""; position: absolute; left: 12px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.scrim { display: none; }

/* ---------------------------------------------------------------- overview hero */
.hero {
  --night: #1C1B1A;
  /* The band runs the full width of the page; its contents keep to the 1120 px column the rest of the view uses. */
  margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) + max(0px, 100% - 1120px)) 0 var(--gutter);
  height: 720px; overflow: hidden; background: var(--night);
  display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 64px; align-items: start;
}
#overview.view { max-width: none; }
:where(#overview > :not(.hero)) { max-width: 1120px; }
/* The night is a registered colour, so the band and the phone in it (its art header, fade and copy) fade to a new
   base together, over the art's 0.35 s, as the app's base does. */
@property --night { syntax: '<color>'; inherits: true; initial-value: #1C1C1C; }
.hero, .hero .hero-phone { transition: --night .35s var(--ease-app); }
.hero-copy { align-self: center; padding: 48px 0 64px; max-width: 460px; }
.hero h1 { font-size: 88px; line-height: 1; }
.hero-copy p { max-width: none; }
.hero-copy > p:not(.lede) { color: var(--ink-2); }
.pick-block { margin-top: 40px; display: grid; gap: 12px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button, .btn {
  min-height: 40px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2); cursor: pointer; font-size: var(--t-small);
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out), transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .pick button:hover, .btn:hover { color: var(--ink); border-color: rgba(244, 239, 228, .36); } }
.pick button[aria-pressed="true"] { background: var(--ink); color: #111; border-color: var(--ink); }
.btn:disabled { opacity: .48; cursor: default; pointer-events: none; }
/* Press feedback: every site button sinks a little, easing back as it's let go. */
.btn:active, .pick button:active, .search-btn:active, .icon-btn:active, .copy-val:active, .copy-code:active, .link-btn:active, .anchor-btn:active { transform: scale(.97); }
/* The phone rises from the band's foot, cut off flat there, as if the screen carries on below. */
.hero .hero-phone { margin: 48px 0 0; align-self: end; border-radius: var(--phone-r) var(--phone-r) 0 0; }
.hero .hero-phone::after { bottom: -1px; }
.hero-phone figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------------------------------------------------------------- overview blocks */
.doors { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0 var(--col-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.doors li { padding: 16px 0 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.doors a { font: 400 var(--t-h3)/1.25 var(--serif); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .doors a:hover { text-decoration: underline; text-decoration-color: var(--line-2); } }
.doors span { font-size: var(--t-small); color: var(--ink-3); }
.principles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 0 var(--col-gap); margin-top: 8px; }
.principles > div { border-top: 1px solid var(--line); padding: 20px 0 8px; margin-top: 16px; }
.principles h3 { margin: 0; }
.principles p { margin-top: 8px; }

.logo-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.logo-stage, .construction { background: #1C1C1C; border-radius: var(--r); color: var(--ink); }
.logo-stage { display: grid; place-items: center; min-height: 420px; }
.logo-stage [data-logo] { width: min(200px, 56%); display: block; }
.logo-stage svg, .construction svg { width: 100%; height: auto; display: block; }
.construction { padding: 16px; }
.sizes { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding: 32px 0 8px; color: var(--ink); }
.sizes figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.sizes figcaption { font: var(--t-label) var(--mono); color: var(--ink-3); }
.icon-walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: var(--card-gap); margin-top: 24px; }
.wall { padding: 32px 24px; border-radius: var(--r); background: #2C2C2E; }
.wall.light { background: #E5E5EA; }
.wall.light figcaption { color: #3A3A3C; }
.icons { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.icons figure { margin: 0; display: grid; gap: 12px; justify-items: center; text-align: center; }
.icons figcaption { font-size: var(--t-label); color: rgba(255, 255, 255, .78); max-width: 128px; line-height: 1.4; }
.icon-tile { width: 112px; height: 112px; border-radius: 25px; overflow: hidden; display: block; flex: none; }
.icon-tile svg { width: 100%; height: 100%; display: block; }
.lockups { display: grid; gap: var(--card-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 24px; }
.lockup { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--ink); padding: 40px 24px; border-radius: var(--r); background: #1C1C1C; }
.lockup.paper { background: var(--ink); color: #1C1C1C; }
.lockup .w { font: 400 40px/1 var(--serif); }
.lockup.stack { flex-direction: column; gap: 12px; }
.lockup.stack .w { font-size: 32px; }
.dodont { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px var(--card-gap); margin-top: 24px; }
.dodont figure { margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { position: relative; height: 148px; display: grid; place-items: center; border-radius: var(--r); background: #1C1C1C; color: var(--ink); overflow: hidden; }
.pair .tile::before { position: absolute; left: 12px; top: 8px; font-size: var(--t-label); color: rgba(244, 239, 228, .7); }
.pair .tile:first-child::before { content: "Do"; }
.pair .tile:last-child::before { content: "Don’t"; background: rgba(0, 0, 0, .7); padding: 0 6px; border-radius: 4px; left: 6px; }
.dodont figcaption { font-size: var(--t-small); color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.options { display: grid; gap: 40px var(--card-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 32px; }
.option .preview { padding: 28px 24px; display: flex; gap: 20px; align-items: center; border-radius: var(--r); }
.option .preview .icon-tile { width: 88px; height: 88px; border-radius: 20px; }
.option .pv-line { font: 500 var(--t-label) var(--sans); color: rgba(255, 255, 255, .75); margin-top: 8px; }
.option h4 { margin-top: 20px; font: 400 var(--t-h3)/1.25 var(--serif); }
.option .rec { font: 400 var(--t-small) var(--sans); color: var(--ink-3); }
.option p { font-size: var(--t-small); margin-top: 8px; }
.swatchline { display: flex; gap: 16px; flex-wrap: wrap; font: var(--t-label) var(--mono); color: var(--ink-3); }
.swatchline span { display: inline-flex; align-items: center; gap: 6px; }
.swatchline i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

/* ---------------------------------------------------------------- tables */
.table-wrap { margin-top: 24px; max-width: 100%; }
.table-wrap.scroll { overflow-x: auto; overscroll-behavior-x: contain;
  /* Scroll cues: a faint starlight edge where the table runs on. A cover at each end of the content scrolls with it
     and hides the cue there. */
  background:
    linear-gradient(90deg, var(--bg) 30%, rgba(13, 13, 14, 0)) left / 48px 100% no-repeat local,
    linear-gradient(270deg, var(--bg) 30%, rgba(13, 13, 14, 0)) right / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(244, 239, 228, .10), transparent) left / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(244, 239, 228, .10), transparent) right / 16px 100% no-repeat scroll;
}
table { border-collapse: collapse; width: 100%; font-size: var(--t-small); }
th, td { text-align: left; padding: 12px 20px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: var(--t-label); font-weight: 500; color: var(--ink-3); border-bottom-color: var(--line-2); }
tbody th { text-align: left; font-weight: 500; font-size: var(--t-small); color: var(--ink); }
td:first-child { color: var(--ink); }
td code { white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.voice td.write { color: var(--ink); }
.voice td.not { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------------------------------------------------------------- colour tokens */
.tokens { list-style: none; padding: 0; margin: 20px 0 0; }
.tok { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 20px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tok:last-child { border-bottom: 1px solid var(--line); }
.chip { width: 48px; height: 48px; border-radius: var(--r); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.chip > i { position: absolute; inset: 0; }
.chip.alpha { background-image: conic-gradient(#2a2a2a 25%, #1a1a1a 0 50%, #2a2a2a 0 75%, #1a1a1a 0); background-size: 12px 12px; }
.tok .name { color: var(--ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tok .use { font-size: var(--t-small); color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
/* A token's values, one under another: hex, Swift name, CSS variable. */
.vals { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.copy-val {
  font: var(--t-label) var(--mono); min-height: 32px; padding: 4px 8px; text-align: left;
  background: rgba(244, 239, 228, .05); border: 0; border-radius: var(--r); cursor: pointer; color: var(--ink-2);
  overflow-wrap: anywhere; max-width: 100%;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .copy-val:hover { background: rgba(244, 239, 228, .09); color: var(--ink); } }
.anchor-btn { width: 32px; height: 32px; border: 0; background: none; color: var(--ink-3); border-radius: var(--r); cursor: pointer; font: var(--t-label) var(--mono); opacity: 0; transition: opacity .15s var(--ease-out), transform .16s var(--ease-out); flex: none; }
@media (hover: hover) and (pointer: fine) { .anchor-btn:hover { color: var(--ink); background: rgba(244, 239, 228, .06); } }
.anchor-btn:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .hrow:hover .anchor-btn, .tok:hover .anchor-btn { opacity: 1; } }
@media not ((hover: hover) and (pointer: fine)) { .anchor-btn { opacity: .7; } }
.tokens.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.tokens.strip .tok { grid-template-columns: minmax(0, 1fr); border: 0; padding: 0; align-items: start; }
.tokens.strip .tok:last-child { border: 0; }
.tokens.strip .chip { width: 100%; height: 64px; }

/* contrast */
.contrast { font-size: var(--t-label); min-width: 1040px; }
.contrast th, .contrast td { padding: 10px 12px 10px 0; }
.contrast th:first-child, .contrast td:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; min-width: 168px; padding-right: 16px; }
.contrast td.cell { white-space: nowrap; }
.contrast .sample { display: inline-block; padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; font-size: var(--t-label); }
.contrast .ratio { color: var(--ink); font-variant-numeric: tabular-nums; }
.contrast .grade { color: var(--ink-3); }
.contrast td.unused .ratio { color: var(--ink-3); }
.contrast .role-src { display: block; color: var(--ink-3); font-weight: 400; }
.pair-sample { display: inline-block; padding: 2px 8px; border-radius: 4px; }

/* ---------------------------------------------------------------- type */
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; margin-top: 32px; }
.faces > div { border-top: 1px solid var(--line); padding-top: 20px; }
.face-sample { margin: 0; color: #fff; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.face-sample.serif { font: 300 88px/1 var(--serif); font-variant-numeric: tabular-nums; }
.face-sample.sans { font: 500 32px/88px var(--sans); }
.faces h3 { margin-top: 20px; }
.faces p { font-size: var(--t-small); margin-top: 8px; }
.faces .copy-val { margin-top: 16px; }
.custom-type { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.custom-type label { font-size: var(--t-small); color: var(--ink-3); }
.custom-type input { flex: 1; min-width: 200px; max-width: 420px; height: 40px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--ink); padding: 0 12px; font: var(--t-body) var(--sans); }
.custom-type input::placeholder { color: var(--ink-3); }
.type-row { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 8px 32px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.type-row:last-child { border-bottom: 1px solid var(--line); }
.type-row .sample { color: #fff; line-height: 1.15; overflow-wrap: anywhere; }
.type-row .sample.serif { font-family: var(--serif); }
.type-row .meta-col { font-size: var(--t-small); color: var(--ink-3); line-height: 1.45; }
.type-row .meta-col b { display: block; font-weight: 500; color: var(--ink); }

/* ---------------------------------------------------------------- space, shape, materials */
.space-scale { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 24px; }
.space-scale figure { margin: 0; display: grid; gap: 12px; justify-items: start; }
.space-scale i { display: block; background: var(--ink); border-radius: 2px; }
.space-scale figcaption { font-size: var(--t-label); color: var(--ink-3); }
.radii { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; margin-top: 24px; }
.radii figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.radii figcaption { font-size: var(--t-label); color: var(--ink-3); text-align: center; }
.radii .r { background: #2C2C2E; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 32px 24px; margin-top: 24px; }
.materials figure { margin: 0; }
.mat { position: relative; height: 148px; border-radius: var(--r); overflow: hidden; background: #1C1C1C; }
.mat .layer { position: absolute; inset: 0; }
.mat .glass { position: absolute; left: 50%; top: 50%; margin: -22px 0 0 -22px; }
.materials figcaption { font-size: var(--t-small); color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.motion-demo { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 24px; }
.motion-demo p { margin: 0 0 16px; }
.motion-stage { height: 136px; border-radius: var(--r); background: #1C1C1C; position: relative; overflow: hidden; }
.motion-stage .art { opacity: 0; }
.motion-stage .art.in { opacity: 1; transition: opacity .35s var(--ease-app); }
#motion-note { margin: 12px 0 0; }
.symbols { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 32px; }
.symbols li { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.symbols code { background: none; padding: 0; color: var(--ink); }
.symbols span { font-size: var(--t-small); color: var(--ink-3); }

/* ---------------------------------------------------------------- countdown view */
.cd-grid { display: grid; gap: var(--card-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 24px; }
.cd-card { background: #1C1C1C; border-radius: var(--r); padding: 24px; min-width: 0; color: #fff; }
.cd-card .label { margin-bottom: 16px; color: rgba(244, 239, 228, .7); }
.cd-card .label code { background: none; padding: 0 0 0 6px; color: rgba(244, 239, 228, .7); }
.cd-card .cd { font-size: 56px; }
.cd-card .line { font: 500 var(--t-small) var(--sans); color: var(--app-ink-secondary); margin: 16px 0 0; }
.demo-cd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; background: #1C1C1C; border-radius: var(--r); padding: 40px; margin-top: 24px; color: #fff; }
.demo-cd .cd { font-size: 104px; min-width: 4.4ch; }
.demo-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-side p { margin-top: 16px; color: rgba(244, 239, 228, .7); }

/* ---------------------------------------------------------------- components */
.view-head + h2 { margin-top: 72px; }
.chooser { list-style: none; padding: 0; margin: 20px 0 0; }
.chooser li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 32px; padding: 12px 0; border-top: 1px solid var(--line); }
.chooser li:last-child { border-bottom: 1px solid var(--line); }
.chooser p { margin: 0; }
.chooser .q b { font-weight: 500; }
.comp { padding-top: 48px; margin-top: 48px; border-top: 1px solid var(--line); }
h2 + .comp { margin-top: 24px; border-top: 0; padding-top: 0; }
.hrow { display: flex; align-items: center; gap: 8px; }
.hrow h3 { margin: 0; }
.comp .purpose { margin-top: 8px; }
.states { display: flex; flex-wrap: wrap; gap: 32px 24px; align-items: flex-start; margin-top: 24px; }
.tabs + .states { margin-top: 24px; }
.state { margin: 0; display: grid; grid-template-columns: minmax(0, 100%); gap: 12px; min-width: 0; max-width: 100%; }
.state[hidden] { display: none; }
.state figcaption { font-size: var(--t-label); color: var(--ink-3); }
.stage { background: var(--night); border-radius: var(--r); padding: 16px; color: #fff; position: relative; max-width: 100%; overflow: hidden; }
.stage.la { background: var(--app-la-base); }
.stage.sys { background: var(--app-sys-grouped); }
.art-stage > :not(.art) { position: relative; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
dl.specs { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); font-size: var(--t-small); }
dl.specs dt, dl.specs dd { padding: 8px 0; border-top: 1px solid var(--line); }
dl.specs dt { color: var(--ink-3); }
dl.specs dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; padding-left: 16px; }
.codebox { position: relative; background: var(--raise); border-radius: var(--r); overflow: hidden; }
.codebox .code-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 16px; border-bottom: 1px solid var(--line); font-size: var(--t-label); color: var(--ink-3); }
.codebox pre { margin: 0; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; color: #DCD7CC; line-height: 1.6; tab-size: 4; }
.copy-code { min-height: 32px; padding: 0 12px; border-radius: var(--r); border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: var(--t-label); }
@media (hover: hover) and (pointer: fine) { .copy-code:hover { color: var(--ink); background: rgba(244, 239, 228, .06); } }

/* tabs (ARIA tablist) */
.tabs { display: flex; gap: 0 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-top: 24px; }
/* No transition: a tab, its line and its panel change in the same frame. The selected tab's line is 2 px, drawn inside
   the tab, so it sits on the row's hairline and survives a row that scrolls sideways. */
.tabs [role="tab"] { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: var(--t-small); }
@media (hover: hover) and (pointer: fine) { .tabs [role="tab"]:hover { color: var(--ink); } }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
[role="tabpanel"]:focus-visible { outline-offset: 8px; }

/* ---------------------------------------------------------------- app replicas */
.art { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--a1) 0%, var(--a2) 58%, var(--a3) 100%); }
.art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(64% 46% at 68% 40%, var(--glow), transparent 72%); }
.art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: var(--ridge); clip-path: polygon(0 58%, 11% 44%, 23% 52%, 37% 28%, 51% 46%, 62% 37%, 77% 55%, 89% 40%, 100% 49%, 100% 100%, 0 100%); }
.art.cool { --a1: #5f7a92; --a2: #364b5e; --a3: #1d2a36; --glow: rgba(196, 218, 236, .78); --ridge: #141c24; }
.art.warm { --a1: #9c806a; --a2: #604838; --a3: #2b221c; --glow: rgba(246, 218, 186, .74); --ridge: #1d1814; }
.art.neutral { --a1: #8c8c8c; --a2: #575757; --a3: #2b2b2b; --glow: rgba(226, 226, 226, .72); --ridge: #1b1b1b; }
.art.arrive { animation: arrive .35s var(--ease-app); }
/* A named show's real art, loaded at runtime from TVmaze or AniList and never stored here (rule 9). It covers the
   placeholder, which stays underneath: while it loads, or if it fails and is hidden, the placeholder shows. */
.art > img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.art > img[hidden] { display: none; }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

.phone { --phone-r: 62px; position: relative; width: 390px; max-width: 100%; background: var(--night); border-radius: var(--phone-r); overflow: hidden; color: #fff; }
/* The replicas' corners match the mockups' screens (site.js): Apple's continuous corner, a superellipse 71 pt across
   with exponent 2.31, which is superellipse(1.21) (2^1.21 = 2.31). Without corner-shape, a round 62 pt corner meets
   it at the diagonal. */
@supports (corner-shape: superellipse(2)) {
  .phone { --phone-r: 71px; corner-shape: superellipse(1.21); }
  .phone::after { corner-shape: inherit; }
}
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); pointer-events: none; }
.nah { position: relative; height: 472px; overflow: hidden; background: var(--night); }
.nah.tall { height: 500px; }
.nah .fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--night) 100%); }
.nah .scrim-top { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 25%); }
.phone-copy { position: relative; margin-top: -64px; padding: 0 24px 32px; }

.cd { font-family: var(--serif); font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.cd .d { font-size: .5em; color: rgba(255, 255, 255, .6); }
.hl-title { font: 400 32px/1.12 var(--serif); }
.hl-cd { font-size: 64px; margin-top: 4px; }
.hl-out { font: 500 17px/1.3 var(--sans); margin-top: 8px; }
.meta { font: 13px/1.35 var(--sans); color: var(--app-ink-muted); }

.tabbar { display: inline-flex; gap: 2px; padding: 4px; border-radius: 31px; background: rgba(60, 60, 64, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.tabbar .tab { width: 100px; height: 54px; border-radius: 27px; display: grid; place-items: center; align-content: center; gap: 2px; font: 600 10px var(--sans); color: rgba(255, 255, 255, .9); }
.tabbar .tab.sel { background: rgba(0, 0, 0, .42); color: #fff; }
.tabbar .tab svg { width: 22px; height: 22px; }
.glass { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; padding: 0;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px) saturate(1.6); -webkit-backdrop-filter: blur(10px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 .5px rgba(255, 255, 255, .25); border: 0; cursor: pointer; transition: transform .15s var(--ease-app); }
.glass:active { transform: scale(1.08); background: rgba(255, 255, 255, .22); }
.glass svg { width: 17px; height: 17px; }
.urow { display: flex; gap: 16px; align-items: flex-start; }
.art-thumb { position: relative; width: 44px; height: 66px; border-radius: 8px; margin-top: 3px; overflow: hidden; flex: none; }
.urow .col { flex: 1; min-width: 0; display: grid; gap: 4px; }
.urow .top { display: flex; align-items: baseline; gap: 8px; }
.urow .t { font: 400 20px/1.2 var(--serif); flex: 1; min-width: 0; }
.urow .c { font-size: 24px; }
.urow .out { font: 15px/1.3 var(--sans); color: var(--app-ink-secondary); }
.sechead { font: 500 15px var(--sans); color: var(--app-ink-muted); }
.sechead-list { display: grid; gap: 16px; }
.pcell { width: 110px; display: grid; gap: 4px; align-content: start; }
.pcell .poster { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; }
.pcell .poster.empty { background: var(--app-tile); display: grid; place-items: center; }
.pcell .t { font: 500 13px/1.3 var(--sans); }
.pcell .m { font: 12px/1.33 var(--sans); color: var(--app-ink-muted); }
/* A 32 circle centred in a 44 × 44 tap area that sits 4 in from the poster's corner: 10 from the corner. */
.plus { position: absolute; top: 10px; right: 10px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--app-control-fill); box-shadow: inset 0 0 0 1px var(--app-hairline); color: #fff; }
.art-stage .plus { top: 10px; right: 10px; position: absolute; }
.plus.on { background: #fff; color: #000; box-shadow: none; }
.plus svg { width: 13px; height: 13px; }
.poster-demo { position: relative; width: 96px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; }
/* One row that scrolls sideways, edge to edge of the screen, with the first chip on the 16 pt page margin. */
.chiprow { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px; }
.chiprow::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 17px; font: 500 15px var(--sans); color: #fff; background: var(--app-control-fill); box-shadow: inset 0 0 0 1px var(--app-hairline); white-space: nowrap; }
.fchip.on { background: #fff; color: #000; box-shadow: none; }
.logo-tile { width: 30px; height: 22px; border-radius: 5px; background: #fff; color: #1C1C1C; display: grid; place-items: center; font: 700 12px var(--sans); margin-right: 8px; }
.logo-tile.gap { background: transparent; }
.seg { display: flex; padding: 2px; border-radius: 9px; background: rgba(118, 118, 128, .24); width: 100%; }
.seg span { flex: 1; text-align: center; padding: 6px 0; font: 500 13px var(--sans); border-radius: 7px; }
.seg span.sel { background: #636366; }
.btn-primary { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 24px; background: #fff; color: #000; font: 600 17px var(--sans); }
.btn-primary.small { display: inline-flex; height: 34px; padding: 0 14px; font-size: 15px; border-radius: 17px; }
.btn-follow { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 25px; background: #fff; color: #000; font: 600 17px var(--sans); }
.btn-follow.on { background: var(--app-following-fill); color: #fff; box-shadow: inset 0 0 0 1px var(--app-hairline); }
.btn-bordered { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(255, 255, 255, .18); color: #fff; font: 15px var(--sans); }
.empty-h { font: 400 28px/1.12 var(--serif); }
.msg { color: var(--app-ink-muted); font: 17px/1.35 var(--sans); }
.why { color: var(--app-ink-secondary); font: 15px/1.4 var(--sans); }
.quiet-link { font: 15px var(--sans); color: var(--app-ink-muted); }
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-row > div { flex: 1; }
.tg-title { font: 17px var(--sans); }
.toggle { width: 51px; height: 31px; border-radius: 16px; background: rgba(120, 120, 128, .32); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; }
.toggle.on { background: rgba(255, 255, 255, .6); }
.toggle.on::after { left: 22px; }
.ep { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ep:last-child { border-bottom: 0; }
.ep .l { width: 52px; flex: none; font: 600 13px var(--sans); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6); }
.ep .t { font: 500 17px var(--sans); flex: 1; min-width: 0; }
.ep .d { font: 13px var(--sans); color: rgba(255, 255, 255, .6); }
.sheet { background: rgba(44, 44, 46, .96); border-radius: 14px; overflow: hidden; text-align: center; }
.sheet + .sheet { margin-top: 8px; }
.sheet-title { padding: 14px; font: 600 13px var(--sans); color: rgba(235, 235, 245, .6); }
.sheet-act { border-top: .5px solid var(--app-sys-separator); padding: 14px; font: 17px var(--sans); }
.sheet-act.destructive { color: var(--app-sys-red); }
.sheet.cancel { padding: 14px; font: 600 17px var(--sans); color: var(--app-sys-blue); }
.menu { background: rgba(44, 44, 46, .98); border-radius: 14px; padding: 6px 0; font: 17px var(--sans); }
.menu div { padding: 8px 16px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; display: block; }
.list { background: var(--app-sys-grouped); padding: 12px 16px; }
.list .lh { font: 13px var(--sans); color: rgba(235, 235, 245, .6); padding: 14px 16px 6px; }
.list .lf { font: 13px/1.35 var(--sans); color: rgba(235, 235, 245, .6); padding: 6px 16px 4px; }
.list .grp { background: var(--app-sys-cell); border-radius: 12px; overflow: hidden; }
.list .cell { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; font: 17px/1.3 var(--sans); position: relative; }
.list .cell + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--app-sys-separator); }
.list .cell .v { margin-left: auto; color: rgba(235, 235, 245, .6); text-align: right; }
.list .cell .chev { margin-left: auto; color: rgba(235, 235, 245, .3); font-size: 15px; }
.list .blue { color: var(--app-sys-blue); }
.list .red { color: var(--app-sys-red); }
/* The full screen, 874 pt tall like the iPhone the app is built for, so the wall ends where it does on the phone. */
.phone.welcome { height: 874px; padding: 24px; display: flex; flex-direction: column; }
.welcome .grow { flex: 1; }
.phone.welcome { position: relative; overflow: hidden; }
/* Welcome's wall (WelcomeWallView): three rows, 128 / 172 / 128 tall and 8 apart, over the top 60% of the screen,
   clipped. The rows are dimmed with night at 0.18 and masked to clear by 90% of their own height; night at 0.7 fades
   to clear over the top 96 pt, under the status bar. Each row is its tiles several times over, sliding one run at
   9 pt a second (site.js sets --run, --dur and the staggered --delay); the base transform is its starting place, so
   with Reduce Motion, which drops the animation, it stays still there, as the app's does. */
.welcome .wall { position: absolute; inset: 0 0 auto; height: 60%; padding: 0; border-radius: 0; background: none; overflow: hidden; pointer-events: none; }
.welcome .wall-rows { position: relative; display: grid; gap: 8px;
  -webkit-mask-image: linear-gradient(#000 0%, #000 35%, rgba(0, 0, 0, .35) 68%, transparent 90%); mask-image: linear-gradient(#000 0%, #000 35%, rgba(0, 0, 0, .35) 68%, transparent 90%); }
.welcome .wall-rows::after { content: ""; position: absolute; inset: 0; background: rgba(28, 28, 28, .18); }
.welcome .wall-row { height: var(--h); }
.welcome .wall-strip { display: flex; gap: 8px; width: max-content; height: 100%; transform: translateX(var(--x0)); animation: var(--drift) var(--dur) linear var(--delay) infinite; }
.welcome .wall .art { position: relative; inset: auto; flex: none; height: 100%; border-radius: 10px; background: var(--welcome-tile); }
.welcome .wall .art::before, .welcome .wall .art::after { content: none; }
.welcome .wall-top { position: absolute; inset: 0 0 auto; height: 96px; background: linear-gradient(180deg, rgba(28, 28, 28, .7), rgba(28, 28, 28, 0)); }
@keyframes wall-left { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--run))); } }
@keyframes wall-right { from { transform: translateX(calc(-1 * var(--run))); } to { transform: translateX(0); } }
.welcome .grow, .welcome .wm, .welcome .wh, .welcome .wz, .welcome .btn-primary, .welcome .later { position: relative; }
.welcome .wm { display: flex; align-items: center; gap: 8px; font: 400 22px var(--serif); color: #F4EFE4; }
.welcome .wm .mk { width: 23px; height: 36px; display: flex; justify-content: center; align-items: center; overflow: visible; }
.welcome .wh { font: 400 34px/1.15 var(--serif); margin-top: 16px; }
.welcome .wz { font: 500 17px var(--sans); color: var(--app-ink-secondary); margin-top: 12px; margin-bottom: 32px; }
.welcome .later { height: 44px; display: grid; place-items: center; color: var(--app-ink-secondary); font: 17px var(--sans); margin-top: 12px; }
.lchip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 12px; font: 600 12px var(--sans); }
.legacy-card { background: #1C1C1E; border-radius: 14px; padding: 16px; display: flex; gap: 12px; color: #fff; }

/* ---------------------------------------------------------------- surfaces */
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 0 var(--col-gap); margin: 24px 0 0; }
dl.facts > div { border-top: 1px solid var(--line); padding: 16px 0 20px; }
dl.facts dt { font-weight: 600; color: var(--ink); font-size: var(--t-small); }
dl.facts dd { margin: 6px 0 0; font-size: var(--t-small); color: var(--ink-2); line-height: 1.55; }
.gallery { display: flex; flex-wrap: wrap; gap: 32px 24px; align-items: flex-end; margin-top: 24px; }
.gallery-h { font-size: var(--t-small); color: var(--ink-3); margin-top: 40px; }
.shot { margin: 0; display: grid; gap: 12px; max-width: 100%; }
/* Each render sits on a small panel of the mockups' wallpaper, the Meridian night sky. */
.shot .frame { padding: 24px; border-radius: 20px; background: var(--stars), var(--sky); display: grid; place-items: center; max-width: 100%; }
.shot img { display: block; max-width: 100%; height: auto; }
/* Lock Screen widgets are white ink: iOS draws them straight onto the wallpaper, so their black ground drops out. */
.shot .frame.ink img, .dev-r.ink > img { mix-blend-mode: screen; }
/* A render with its art cut out: the show's art (or the neutral placeholder) sits behind the PNG at each hole. */
.holes { position: relative; display: block; max-width: 100%; overflow: hidden; isolation: isolate; background: #575757; }
.holes > img { position: relative; z-index: 1; border-radius: 0; }
.holes > .hole { inset: auto; z-index: 0; }
.holes > .hole > img { height: 100%; max-width: none; }
.shot figcaption { font-size: var(--t-label); color: var(--ink-3); line-height: 1.45; }
.r-home { border-radius: 22px; }
.r-card { border-radius: 16px; }
.r-rect { border-radius: 12px; }
.r-circle { border-radius: 50%; }
.r-capsule { border-radius: 18px; }
.r-expanded { border-radius: 40px; }

/* Device mockups. One iPhone laid out at true points (1 px = 1 pt) and scaled as a whole by site.js (--s), so the
   renders keep their real size against the screen. The box's size comes from aspect-ratio, so nothing moves. */
/* Two columns, every phone (and every crop of one) the same width, so all share one scale, and none taller than the window. */
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); margin-top: 40px; align-items: start; }
.showcase .mock { width: 100%; max-width: min(428px, max(260px, calc((100vh - 160px) * 428 / 900))); }
.showcase.la .crops { align-self: center; display: grid; gap: 40px; }
.mock { margin: 0; display: grid; gap: 20px; min-width: 0; }
.mock figcaption { font-size: var(--t-small); color: var(--ink-3); line-height: 1.45; }
.dev { --s: 1; position: relative; width: 100%; aspect-ratio: 428 / 900; }
/* A phone's top only: the screen fades out at its foot, over the icons. */
.dev.top { aspect-ratio: 428 / 235; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.dev.top[data-dev="compact"] { aspect-ratio: 428 / 141; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
.dev-phone { position: absolute; left: 0; top: 0; width: 428px; height: 900px; transform: scale(var(--s)); transform-origin: 0 0; }
.dev-bands { position: absolute; inset: 0; display: block; }
.dev-screen { position: absolute; left: 13px; top: 13px; width: 402px; height: 874px; overflow: hidden; color: #fff; font-family: var(--sans); letter-spacing: -.015em; line-height: 1.2; }
.dev-screen > * { position: absolute; }
.dev-sky { inset: 0; background: var(--sky); }
.dev-sky-lines { position: absolute; inset: 0; display: block; }
.dev .dev-r { position: absolute; display: block; overflow: hidden; }
.dev-r > img { display: block; width: 100%; height: 100%; }
.dev-r.island { z-index: 3; }
.dev-island { top: 14px; left: 153.5px; width: 95px; height: 37px; border-radius: 18.5px; background: #000; z-index: 3; }
.dev-status { left: 0; right: 0; top: 0; height: 62px; z-index: 2; }
.dev-time { position: absolute; top: 21.5px; line-height: 22px; text-align: center; font: 590 17.67px/22px "SF Pro Text", var(--sans); letter-spacing: 0; }
.dev-glyphs { position: absolute; top: 25.33px; right: 31.76px; display: flex; gap: 8px; align-items: flex-start; }
.dev-glyphs svg { display: block; }
.dev-glyphs svg:first-child:not(:last-child) { margin-top: 1px; }
/* Home Screen: placeholder apps are quiet glass tiles with a bar for a name; ours is the real icon. */
.dev-app { width: 60px; display: grid; justify-items: center; gap: 5px; }
.dev-icon { width: 60px; height: 60px; border-radius: 14px; background: rgba(255, 255, 255, var(--tint, .08)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); overflow: hidden; }
.dev-icon.is-app { background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); position: relative; }
.dev-icon.is-app svg { display: block; width: 100%; height: 100%; }
.dev-label { font: 500 12px/14px var(--sans); letter-spacing: 0; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.dev-bar { height: 6px; margin-top: 4px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.dev-search { left: 50%; bottom: 118px; height: 30px; padding: 0 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; border-radius: 15px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font: 600 13px/1 var(--sans); letter-spacing: 0; }
.dev-dock { left: 12px; right: 12px; bottom: 12px; height: 92px; border-radius: 46px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* Lock Screen */
.dev-date { left: 0; right: 0; top: 70px; height: 22px; display: flex; justify-content: center; align-items: center; font: 600 18px/22px var(--sans); letter-spacing: 0; color: rgba(255, 255, 255, .85); }
.dev .dev-date .dev-r { position: relative; flex: none; margin-left: -10px; }
.dev-clock { left: 0; right: 0; top: 92px; text-align: center; font: 600 104px/1 var(--sans); letter-spacing: -.03em; color: rgba(255, 255, 255, .94); font-variant-numeric: tabular-nums; }
.dev-btn { bottom: 48px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; }
.dev-btn svg { display: block; }
.dev-home { bottom: 8px; left: 129px; width: 144px; height: 5px; border-radius: 2.5px; background: #fff; }

/* ---------------------------------------------------------------- resources */
.downloads { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 32px; }
.downloads li { border-top: 1px solid var(--line); }
.dl { display: flex; gap: 16px; align-items: center; padding: 16px 0; color: var(--ink-2); text-decoration: none; }
.dl b { display: block; font-weight: 500; color: var(--ink); }
.dl b + span { font-size: var(--t-small); color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .dl:hover b { text-decoration: underline; text-decoration-color: var(--line-2); } }
.dl .ic { width: 44px; height: 44px; border-radius: var(--r); flex: none; overflow: hidden; display: grid; place-items: center; background: #1C1C1C; color: var(--ink); font-size: var(--t-label); }
.dl .ic svg { width: 100%; height: 100%; display: block; }
.dl .ic[data-logo] svg { width: 28px; height: 28px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #F4EFE4; cursor: pointer; }
.checklist label { color: var(--ink); cursor: pointer; }
.checklist p { grid-column: 2; margin: 0; display: grid; gap: 2px; font-size: var(--t-small); }
.checklist .now { color: var(--ink-2); }
.checklist input:checked ~ label { text-decoration: line-through; text-decoration-color: var(--line-2); color: var(--ink-3); }
details.archive { border-top: 1px solid var(--line); margin-top: 0; }
details.archive:last-of-type { border-bottom: 1px solid var(--line); }
details.archive + details.archive { margin-top: 0; }
p + details.archive { margin-top: 24px; }
details.archive > summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; font: 400 var(--t-h3)/1.25 var(--serif); color: var(--ink); }
details.archive > summary::-webkit-details-marker { display: none; }
details.archive > summary::after { content: "Show"; font: var(--t-small) var(--sans); color: var(--ink-3); }
details.archive[open] > summary::after { content: "Hide"; }
details.archive[open] { padding-bottom: 40px; }
details.archive .comp:first-of-type { margin-top: 8px; border-top: 0; padding-top: 0; }
.numerals { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 24px; }
.num-study { background: #1C1C1C; border-radius: var(--r); padding: 20px; color: #fff; }
.num-study .digits { font-size: 40px; line-height: 1.1; margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-study p { font-size: var(--t-small); color: rgba(244, 239, 228, .72); }
.rejected { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-top: 16px; }
.rejected figure { margin: 0; }
.rejected .tile { display: flex; gap: 8px; justify-content: center; align-items: center; }
.rejected .tile.paper { background: var(--ink); }
.rejected .tile img[src$=".png"] { border-radius: 13px; }
.rejected figcaption { font-size: var(--t-small); color: var(--ink-3); margin-top: 12px; }

/* ---------------------------------------------------------------- footer */
footer.foot { display: flex; gap: 12px; align-items: flex-start; padding: 32px var(--gutter) 48px calc(var(--rail-w) + var(--gutter)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--t-small); }
footer.foot p { margin: 0; max-width: 72ch; }
footer.foot [data-logo] { color: var(--ink-3); flex: none; padding-top: 2px; }

/* ---------------------------------------------------------------- search */
dialog.search { padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raise); color: var(--ink); width: min(640px, calc(100% - 32px)); max-width: none; max-height: min(640px, 80vh); margin: 12vh auto auto; overflow: hidden; }
dialog.search::backdrop { background: rgba(0, 0, 0, .64); }
.search-panel { display: flex; flex-direction: column; max-height: min(640px, 80vh); }
#search-input { flex: none; width: 100%; height: 56px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); padding: 0 20px; font: var(--t-body) var(--sans); border-radius: 12px 12px 0 0; }
#search-input::placeholder { color: var(--ink-3); }
#search-input:focus { outline: none; }
/* The field is focused whenever search is open, so its focus is a brighter 2 px bottom line, not a ring. */
#search-input:focus-visible { outline: none; border-bottom-color: var(--ink-3); box-shadow: inset 0 -1px 0 var(--ink-3); }
.search-results { flex: 1; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 8px; }
.search-results li a { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.search-results .k { font-size: var(--t-label); color: var(--ink-3); }
.search-results .s { font-size: var(--t-label); color: var(--ink-3); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.search-results li[aria-selected="true"] a { background: rgba(244, 239, 228, .09); }
.search-empty { padding: 20px 12px; color: var(--ink-3); font-size: var(--t-small); }
.search-foot { display: flex; gap: 16px; align-items: center; padding: 8px 12px 8px 20px; border-top: 1px solid var(--line); font-size: var(--t-label); color: var(--ink-3); flex-wrap: wrap; }
.link-btn { margin-left: auto; min-height: 32px; padding: 0 10px; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: var(--r); font-size: var(--t-label); }
@media (hover: hover) and (pointer: fine) { .link-btn:hover { color: var(--ink); background: rgba(244, 239, 228, .06); } }
/* On a touch screen there are no arrow keys or Escape to hint at. */
@media (hover: none) { .search-foot > span { display: none; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px); opacity: 0; z-index: 120; background: var(--ink); color: #111; padding: 8px 14px; border-radius: var(--r); font: 500 var(--t-small) var(--sans); pointer-events: none; transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); transition-duration: .2s; }
/* A search result's target: the ring holds, then fades out before site.js removes it at 1.6 s. */
.flash { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 2px; animation: flash-out 1.6s linear forwards; }
@keyframes flash-out { 0% { outline-color: var(--ink); } 70% { outline-color: var(--ink); animation-timing-function: var(--ease-out); } 100% { outline-color: transparent; } }

/* Reduce Motion: gentler, not zero. Nothing moves or scales, and the app's art fades are skipped as the app skips
   them, but colour and opacity changes that move nothing still ease. */
@media (prefers-reduced-motion: reduce) {
  .art.arrive, .welcome .wall-strip, .flash { animation: none; }
  .motion-stage .art.in, .hero, .hero .hero-phone { transition: none; }
  .toast { transform: translate(-50%, 0); }
  .btn:active, .pick button:active, .search-btn:active, .icon-btn:active, .copy-val:active, .copy-code:active, .link-btn:active, .anchor-btn:active, .glass:active { transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .hero h1 { font-size: 72px; }
}
@media (max-width: 1000px) {
  :root { --gutter: 24px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: grid; }
  .rail {
    position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(320px, 86vw); z-index: 60;
    background: #121213; border-right: 0; padding: 8px 16px 48px;
    visibility: hidden; transform: translateX(-100%);
    transition: transform .2s var(--ease-drawer), visibility 0s linear .2s;
  }
  .rail.open { visibility: visible; transform: none; transition: transform .25s var(--ease-drawer); }
  /* While the drawer or search is open, the page behind stays put. */
  html:has(.rail.open), html:has(dialog.search[open]) { overflow: hidden; }
  .rail { overscroll-behavior: contain; }
  .rail-head { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 8px; color: var(--ink-3); font-size: var(--t-small); padding-left: 12px; }
  /* The scrim fades with the drawer, in as it slides in and out as it leaves. */
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 55; display: block; opacity: 1; transition: opacity .25s var(--ease-out), display .25s allow-discrete; }
  @starting-style { .scrim { opacity: 0; } }
  .scrim[hidden] { display: none; opacity: 0; transition-duration: .2s; }
  footer.foot { padding-left: var(--gutter); }
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; gap: 0; }
  .hero-copy { padding: 48px 0 0; }
  .hero .hero-phone { height: 640px; margin: 40px auto 0; }
  .logo-hero { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .demo-cd { grid-template-columns: minmax(0, 1fr); }
}
/* With Reduce Motion the drawer cross-fades in place instead of sliding. */
@media (max-width: 1000px) and (prefers-reduced-motion: reduce) {
  .rail { transform: none; opacity: 0; transition: opacity .15s var(--ease-out), visibility 0s linear .15s; }
  .rail.open { opacity: 1; transition: opacity .15s var(--ease-out); }
}
@media (max-width: 700px) {
  :root { --t-display: 40px; --t-h2: 28px; --t-h3: 20px; --top-h: 56px; }
  .hero h1 { font-size: 56px; }
  .lede { font-size: 18px; }
  h2 { margin-top: 64px; }
  .search-btn, .search-btn:hover { min-width: 0; width: 44px; height: 44px; padding: 0; justify-content: center; border-color: transparent; }
  .search-btn .label, .search-btn .keys, .brand .sub { display: none; }
  .topbar { padding: 0 12px 0 16px; gap: 8px; }
  .tok { grid-template-columns: 48px minmax(0, 1fr); }
  .tok .vals { grid-column: 1 / -1; }
  .type-row { grid-template-columns: minmax(0, 1fr); }
  .chooser li { grid-template-columns: minmax(0, 1fr); }
  .motion-demo { grid-template-columns: minmax(0, 1fr); }
  .demo-cd { padding: 24px; }
  .demo-cd .cd { font-size: 72px; }
  dl.specs { grid-template-columns: 96px minmax(0, 1fr); }
  /* Search on a phone sits at the top, clear of the keyboard, with Close beside the field like iOS's Cancel. */
  dialog.search { width: calc(100% - 16px); margin: 8px auto auto; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .search-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .search-foot { display: contents; }
  .search-foot > span { display: none; }
  #search-input { grid-column: 1; grid-row: 1; border-radius: 12px 0 0 0; padding-right: 8px; }
  #search-close { grid-column: 2; grid-row: 1; height: 56px; margin: 0; padding: 0 16px; border-radius: 0 12px 0 0; border-bottom: 1px solid var(--line); font-size: var(--t-body); }
  .search-results { grid-column: 1 / -1; grid-row: 2; }
  .search-results li a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .search-results .s { text-align: left; max-width: none; }
  .face-sample.serif { font-size: 64px; }
  .statement { font-size: 24px; }
}
@media (max-width: 440px) {
  :root { --gutter: 16px; }
  .hl-cd { font-size: 64px; }
  .hero h1 { font-size: 48px; }
  .hero .hero-phone { height: 600px; }
  .cd-card .cd { font-size: 48px; }
  .demo-cd .cd { font-size: 56px; }
  .pair .tile { height: 120px; }
}

/* component groups: one group at a time, with the group tabs pinned under the top bar */
.group-tabs { position: sticky; top: var(--top-h); z-index: 5; background: var(--bg); margin-top: 64px; }
#components .group [id] { scroll-margin-top: calc(var(--top-h) + 72px); }
.group > h2:first-child { margin-top: 48px; }
.next-group { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font: 400 var(--t-h3)/1.25 var(--serif); }
.next-group a { text-decoration: none; }
.next-group span { display: block; font: var(--t-small) var(--sans); color: var(--ink-3); margin-bottom: 4px; }

/* phone-sized components: the phone on the left, its specs and code beside it */
@media (min-width: 1001px) {
  .comp.side { display: grid; grid-template-columns: 390px minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .comp.side > :not(.states):not(.spec) { grid-column: 1 / -1; }
  .comp.side > .states { grid-column: 1; }
  .comp.side > .spec { grid-column: 2; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
}

/* text inks: role × surface */
.inks { table-layout: fixed; }
.inks th[scope="row"] { color: var(--ink); font-size: var(--t-small); font-weight: 500; width: 22%; }
.inks .role-use { display: block; color: var(--ink-3); font-weight: 400; margin-top: 4px; line-height: 1.45; }
.inks td { padding-right: 24px; }
.inks td.none { color: var(--ink-3); }
.ink-cell { display: grid; gap: 10px; }
.ink-cell .chip { width: 100%; height: 48px; display: flex; align-items: center; padding-left: 14px; }
.ink-cell .chip b { position: relative; font: 300 24px var(--serif); white-space: pre; font-variant-numeric: tabular-nums; }
.a11y td:last-child { white-space: nowrap; padding-right: 0; }
@media (max-width: 700px) {
  /* Every tab row scrolls sideways on a phone, edge to edge, rather than wrapping; site.js keeps the chosen tab in view. */
  .tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs [role="tab"] { white-space: nowrap; flex: none; }
  .inks, .inks tbody, .inks tr, .inks th, .inks td { display: block; min-width: 0; width: auto; }
  .inks thead { display: none; }
  .inks tr { border-top: 1px solid var(--line-2); padding-top: 8px; }
  .inks th[scope="row"], .inks td { border: 0; padding: 8px 0; width: auto; }
  .inks td::before { content: attr(data-surface); display: block; font-size: var(--t-label); color: var(--ink-3); margin-bottom: 6px; }
  .inks td.none { display: none; }
}

@media (max-width: 700px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
}
/* On a touch screen the small controls get a 44 pt hit area without growing: an invisible margin around each. */
@media (pointer: coarse) {
  .copy-val, .anchor-btn, .copy-code, .link-btn { position: relative; }
  .copy-val::after, .anchor-btn::after, .copy-code::after, .link-btn::after { content: ""; position: absolute; inset: -6px; }
  .vals { gap: 12px; }
}

@media (max-width: 700px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: auto; }
  table.stack thead { display: none; }
  table.stack tr { border-top: 1px solid var(--line-2); padding: 8px 0; }
  table.stack td { border: 0; padding: 4px 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--t-label); color: var(--ink-3); }
  table.stack td:first-child::before { display: none; }
}

/* A word in the countdown's place ("Out now", "Released", a date) takes the countdown's ink; only "Out now" is
   Meridian Gold, as in the app (CountdownText, D-53). */
.cd-word.out { color: var(--gold); }
