/* ryanclinton.uk. Tokens and rules from site-spec.md section 5; motion from section 8. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Fallbacks sized to the web fonts, so the swap doesn't move the page */
@font-face { font-family: "Archivo fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 88%; descent-override: 21%; }
@font-face { font-family: "Plex fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 102%; descent-override: 27%; }

:root {
  --sky: #0b0e14;
  --sky-deep: #06080c;
  --panel: #131824;
  --panel-raised: #1a2131;
  --line: #253047;
  --text: #d9dee8;
  --text-dim: #8b95a8;
  --link: #9cc4ff;
  --accent: #4d9fff;
  --amber: #ffb547;
  --kind-observation: #7fb2ff;
  --kind-build: #f0b35c;
  --kind-mod: #8fd6a4;
  --kind-story: #d9a6e8;
  --kind-note: #7cc9c1;
  --proven: #8fd6a4;
  --partly: #ffb547;
  --not-yet: #8b95a8;

  --display: "Archivo", "Archivo fallback", system-ui, sans-serif;
  --body: "Plex Sans", "Plex fallback", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 46rem;
  --wide: 76rem;
  --gutter: 1rem;
  --radius: 12px;
  --raise: 0 10px 30px rgb(0 0 0 / .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 2rem; } }

/* Every page is the warm room from the films (references/NOTES.md, Ryan 18 Oct 2026); only the dark
   tokens above remain for the terminal and the photographs' own frames */
body.home, body.reading {
  --sky: #f3e9dd; --sky-deep: #eadcc9; --panel: #fbf5ee; --panel-raised: #efe3d4; --line: #dccbb6;
  --text: #2b231c; --text-dim: #6f6052; --link: #a3242c; --accent: #a3242c; --amber: #a3242c;
  --kind-observation: #24408f; --kind-build: #b8400f; --kind-mod: #0d6b51; --kind-story: #5a47b5; --kind-note: #1d6b64;
  --proven: #0d6b51; --partly: #b8400f; --not-yet: #6f6052;
  --control-border: #8a7764;   /* 3.6:1 on the page, 4:1 on a panel: a field's edge must show (WCAG 1.4.11, docs/audits.md 27) */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);   /* 17px, in rem so text enlargement reaches it (docs/audits.md 27) */
  font-kerning: normal;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 20; padding: .5rem 1rem; background: var(--text); color: var(--sky); border-radius: 6px; }
.skip:focus { top: .75rem; }

.wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Type ---------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 640; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin: .3rem 0 1.5rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 3rem 0 .8rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.display { font-family: var(--display); font-stretch: 125%; font-weight: 720; letter-spacing: -0.025em; line-height: .95; }
.label {
  font: 400 .75rem/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 38rem; text-wrap: pretty; }
p, li { text-wrap: pretty; }
code { font-family: var(--mono); font-size: .9em; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .06em .35em; }
pre { font-family: var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; overflow-x: auto; font-size: .88rem; line-height: 1.55; }
pre code { border: 0; padding: 0; background: none; }
.button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: .55rem 1.15rem; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--text); background: rgb(77 159 255 / .12); text-decoration: none;
  font: 500 .95rem/1 var(--body);
  transition: background .15s, border-color .15s;
}
.button:hover { background: rgb(77 159 255 / .24); }
.text-link { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 1px; min-height: 24px; display: inline-flex; align-items: center; gap: .35rem; }
.text-link:hover { color: var(--amber); }

/* Header ---------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--sky) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: .7rem var(--gutter); }
.wordmark { font: 700 .82rem/1 var(--display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--text); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: .25rem; }
.nav a { display: block; padding: .6rem .7rem; color: var(--text-dim); text-decoration: none; font-size: .92rem; border-radius: 6px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
body.reading .site-header { background: color-mix(in srgb, var(--sky) 90%, transparent); }

/* Over the hero the header starts clear and turns solid after scrolling (site.js) */
.home .site-header { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; backdrop-filter: none; }
html:not(.js) .home .site-header { background: rgb(11 14 20 / .88); }

@media (max-width: 767px) {
  .nav { display: none; }
}

/* Hero ------------------------------------------------------------------------ */
.hero {
  --mx: 72%;
  --my: 46%;
  --photo: clamp(260px, 34vw, 540px);
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at var(--mx) var(--my), #101726 0%, var(--sky-deep) 70%);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.sky .grid polyline { fill: none; stroke: #9cc4ff; stroke-opacity: .07; stroke-width: .6; vector-effect: non-scaling-stroke; }
.sky .lines polyline { fill: none; stroke: #9cc4ff; stroke-opacity: .28; stroke-width: 1; vector-effect: non-scaling-stroke; animation: fade-in 2.4s .5s var(--ease) both; }
.sky .labels text { font: 400 7px var(--mono); letter-spacing: .25em; fill: #8b95a8; fill-opacity: .7; text-anchor: middle; }
.sky .tw { animation: twinkle 5s ease-in-out infinite; animation-delay: var(--d); }
.lite .sky .tw { animation-play-state: paused; }
@keyframes twinkle { 50% { opacity: .35; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes drift { to { scale: 1.06; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(6 8 12 / .92) 0%, rgb(6 8 12 / .55) 38%, transparent 62%),
    linear-gradient(0deg, var(--sky) 0%, transparent 28%);
}
.hero .display { font-size: clamp(3rem, 9vw, 8.5rem); margin: .6rem 0 1.4rem; max-width: 12ch; }
.hero .label { color: var(--amber); }

@media (max-width: 767px) {
  .hero { --mx: 50%; --my: 30%; --photo: min(66vw, 300px); align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, var(--sky) 0%, rgb(6 8 12 / .9) 42%, transparent 66%); }
}

.now { margin-top: 2rem; margin-bottom: clamp(5rem, 10vw, 8rem); }
.now dl { display: grid; gap: 1.5rem 2.5rem; margin: 0; }
.now div { border-top: 1px solid var(--line); padding-top: 1rem; }
.now dd { margin: .5rem 0 0; color: var(--text); }
@media (min-width: 768px) { .now dl { grid-template-columns: repeat(3, 1fr); } }

.work { margin-bottom: clamp(5rem, 10vw, 8rem); }

.figures { display: grid; gap: 1rem; margin: 1.5rem 0; }
.figures div { border-left: 2px solid var(--amber); padding-left: 1rem; }
.figures dt { font: 500 clamp(1.35rem, 2.2vw, 1.75rem)/1.15 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.figures dd { margin: .3rem 0 0; color: var(--text-dim); font-size: .92rem; line-height: 1.45; }
.case .figures { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 2.5rem 0 1rem; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: translate .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.tile:hover, .tile:focus-within { translate: 0 -4px; box-shadow: var(--raise); background: var(--panel-raised); }
.tile h3 { margin: .5rem 0 .3rem; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.tile h3 a { color: var(--text); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole tile is the link */
.tile h3 a:focus-visible { outline: none; }
.tile:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile .summary { color: var(--text-dim); margin: 0; }

/* Video with a play button; site.js plays it on hover and focus */
.video { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: var(--sky-deep); }
.video video { width: 100%; }
.play {
  position: absolute; left: 1rem; bottom: 1rem; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgb(6 8 12 / .75); color: #f3e9dd; border: 1px solid rgb(217 222 232 / .35);
  font-size: .95rem; cursor: pointer; transition: opacity .2s;
}

/* Evidence: a real terminal session */
.evidence { background: var(--sky-deep); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6rem); margin-bottom: clamp(5rem, 10vw, 8rem); }
.evidence h2 { margin: 0 0 1.5rem; }
.terminal { margin: 0; }
.terminal pre { background: #0d1117; border-color: #1f2735; font-size: clamp(.74rem, 1.45vw, .95rem); padding: 1.4rem 1.5rem; margin: 0; }
.terminal code { color: #d4d4d4; }
.terminal figcaption { margin-top: .8rem; font: 400 .78rem/1.5 var(--mono); color: var(--text-dim); }

section.story { padding-bottom: clamp(5rem, 12vw, 9rem); }     /* section: the diary's kind labels are also .story */
section.story > div { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); }
.story .display { font-size: clamp(2.6rem, 7vw, 6rem); margin: 0 0 1.5rem; max-width: 14ch; }
.story .lede { color: var(--text-dim); max-width: 42rem; }

/* The home page: a warm room, not a night sky. David Heckhoff's clay scene beside a big name,
   then Area's row of folders (references/NOTES.md). Colours are taken from the film's room. */
.home .site-header, html:not(.js) .home .site-header { position: sticky; background: color-mix(in srgb, var(--sky) 92%, transparent); border-color: transparent; }

.folders { padding-block: clamp(2rem, 6vw, 4.5rem); }
.folders ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 1.5rem; }
.folders a { display: flex; flex-direction: column; align-items: center; gap: .7rem; width: 9.5rem; color: var(--text); text-decoration: none; font: 500 .95rem/1.3 var(--body); text-align: center; }
.folders svg { width: 120px; filter: drop-shadow(0 6px 10px rgb(80 50 20 / .16)); }
.folders span::after { content: "▲"; display: block; font-size: .6rem; margin-top: .3rem; visibility: hidden; }
.folders a:hover span::after, .folders a:focus-visible span::after { visibility: visible; }
@media (max-width: 599px) {
  .folders ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem .5rem; }
  .folders a { width: auto; font-size: .85rem; }
  .folders svg { width: 88px; }
}
.home section.story { padding-bottom: clamp(4rem, 10vw, 7rem); }
.home .story .display { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.home .story .lede + .lede { margin-top: 1.2rem; }

/* A claymation film: plays once when scrolled to (site.js), never upscaled */
.film { margin: 2rem 0 0; max-width: 768px; }
.film-frame { position: relative; }
@media (min-width: 64rem) { .film { margin-top: 0; } }
.film video { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--sky-deep); }
.note { font: 400 .78rem/1.5 var(--mono); color: var(--text-dim); margin-top: -1rem; }

.table-wrap { overflow-x: auto; position: relative; }
table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .9rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--text-dim); font: 400 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
tbody th { font-weight: 600; }
.status td:last-child { color: var(--text-dim); }
.state { display: inline-block; white-space: nowrap; font: 400 .74rem/1 var(--mono); letter-spacing: .04em; padding: .35rem .55rem; border: 1px solid currentColor; border-radius: 6px; }
.state.partly { color: var(--partly); }
@media (max-width: 767px) {
  .status thead { display: none; }
  .status tr { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .status th, .status td { border: 0; padding: 0; }
  .status td:last-child { grid-column: 1 / -1; }
}

/* The diary: a calm reading surface (unchanged in content) --------------------- */
.reading main { padding-top: 2.5rem; padding-bottom: 4rem; }
blockquote { margin: 1.2rem 0; padding: .1rem 0 .1rem 1.1rem; border-left: 3px solid var(--line); font-family: var(--mono); font-size: .9rem; }
blockquote p { margin: .4rem 0; }

.meta { margin: 0; font: 400 .8rem/1.5 var(--mono); color: var(--text-dim); }
.kind { display: inline-block; margin-right: .5rem; font-size: .85rem; font-weight: 600; }
.kind.build { color: var(--kind-build); }
.kind.mod { color: var(--kind-mod); }
.kind.story { color: var(--kind-story); }
.kind.note { color: var(--kind-note); }

.about h1 { margin-bottom: .8rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1rem; }
.filters button { font: 400 .85rem var(--body); color: var(--text-dim); background: none; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; min-height: 36px; cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--sky); background: var(--text); border-color: var(--text); }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.entry a { display: block; padding: 1.1rem 1.2rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s; }
.entry a:hover { border-color: var(--text-dim); }
.entry img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; margin-bottom: 1rem; border-radius: 8px; }
.entry h2 { margin: .4rem 0 .3rem; font-size: 1.35rem; }
.entry p:last-child { margin: 0; color: var(--text-dim); }
.turn { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .95rem; }
.turn .newer { margin-left: auto; text-align: right; }
.messier .lede { max-width: 46rem; }
.messier > p:not(.lede):not(.meta):not(.filters) { color: var(--text-dim); max-width: 46rem; }
.credit { margin-top: 2.5rem; font-size: .8rem; color: var(--text-dim); }

/* Footer ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; color: var(--text-dim); font-size: .9rem; }
.site-footer .site-map { display: grid; gap: 1.6rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
.site-footer h2 { margin: 0 0 .5rem; font: 600 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer a { color: var(--text); display: inline-flex; min-height: 32px; align-items: center; }   /* 24px is the minimum (WCAG 2.5.8) */
.sign { margin: 0; font: 700 .78rem/1 var(--display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }

/* The diary (diary-spec.md) --------------------------------------------------- */
.standfirst { font-size: 1.15rem; color: var(--text-dim); margin: -.6rem 0 1rem; }

/* Signal search: SignalSearchYoke's reports (signalsearch.py) */
.report { overflow-wrap: anywhere; }
.reports { display: grid; gap: 2rem; margin: 2rem 0; }
.report img[src$=".svg"] { width: 100%; border-radius: 8px; }
.report table { display: block; overflow-x: auto; }

/* Session cards: logged values in mono with a label; noted values plain (4.2) */
.cards { display: grid; gap: 1rem; margin: 1.5rem 0 2.5rem; }
.logged { font-family: var(--mono); font-size: .88rem; }
.logged::after { content: "logged"; margin-left: .45rem; font: 400 .66rem/1 var(--mono); letter-spacing: .05em; color: var(--text-dim); border: 1px solid var(--line); border-radius: 4px; padding: .1rem .3rem; vertical-align: .1em; white-space: nowrap; }
.why { display: block; color: var(--text-dim); font-size: .82rem; margin-top: .2rem; }
.sources p, .sources li { font-size: .85rem; color: var(--text-dim); }
.sources ul { padding-left: 1.1rem; }
.hash { font-family: var(--mono); font-size: .75rem; }
.night { min-width: 36rem; width: 100%; font: 400 10px var(--mono); }
.night text { fill: var(--text-dim); }
.night .grid { stroke: var(--line); }
.night polyline { fill: none; stroke-width: 1.4; }
.night .kept { stroke: var(--kind-observation); }
.night .lost { stroke: var(--text-dim); opacity: .7; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.compare { margin: 2rem 0; }
.compare .pair { display: grid; gap: 1rem; }
.compare .pair figure { margin: 0; }
.compare figcaption { font-size: .88rem; color: var(--text-dim); margin-top: .5rem; }
@media (min-width: 768px) { .compare .pair { grid-template-columns: 1fr 1fr; } }
.ways ul { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: .75rem; }
.ways a { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.ways a:hover { border-color: var(--text-dim); }
.ways span { color: var(--text-dim); font-size: .88rem; }
@media (min-width: 768px) { .ways ul { grid-template-columns: repeat(4, 1fr); } }
.archive h2#archive-h { margin-top: 0; }
.archive .filters { display: block; margin: 1rem 0 1.5rem; }
.archive .kinds { display: none; }
.js .archive .kinds { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; }
.kinds button { font: 400 .85rem var(--body); color: var(--text-dim); background: none; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; min-height: 36px; cursor: pointer; }
.kinds button[aria-pressed="true"] { color: var(--sky); background: var(--text); border-color: var(--text); }
.archive .entries { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 768px) { .archive .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.entry h3 { margin: .4rem 0 .3rem; font-size: 1.3rem; }
.entry h3 + p { color: var(--text-dim); margin: 0; }
.kit { margin-top: 4rem; }
.stat { margin: .3rem 0 0; font: 400 .8rem var(--mono); color: var(--text-dim); }
.ids { font: 400 .85rem/1.5 var(--mono); color: var(--text-dim); margin: -.8rem 0 0; }
.tools li p { margin: .2rem 0 0; color: var(--text-dim); }
.progress td, .progress th { white-space: nowrap; }
.strip { list-style: none; padding: 0 0 .5rem; margin: 1rem 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 22rem); gap: 1rem; overflow-x: auto; position: relative; }   /* relative: hidden labels inside stay inside */
.strip p { font-size: .85rem; color: var(--text-dim); margin: .4rem 0 0; }
/* Meanwhile's object pages (mwobjects.py): the pictures sent in, each with its stats for nerds */
.mw-pics { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 2rem; }
.sent { margin: 0; }
.sent img { width: 100%; height: auto; border-radius: 4px; background: #000; }
.sent figcaption { font-size: .9rem; color: var(--text-dim); margin-top: .5rem; }
.sent figcaption p { margin: .1rem 0; }
.sent .sent-title b { color: var(--text); font-weight: 600; }
.sent details { margin-top: .5rem; }
.sent summary { cursor: pointer; color: var(--text); }
.sent-kit { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .5rem 0 0; }
.sent-kit dt { font-weight: 600; color: var(--text); }
.sent-kit dd { margin: 0; overflow-wrap: anywhere; }
.mw-object section p { max-width: 46rem; }
.mw-object .sources { font-size: .9rem; color: var(--text-dim); margin-top: 2.5rem; }
.mw-object .sources ul { padding-left: 1.1rem; }
.mw-index { columns: 14rem; column-gap: 2rem; }
.mw-index li { break-inside: avoid; margin: .2rem 0; }
.mw-index a { display: inline-block; padding-block: .3rem; }   /* each a 34px target, past WCAG's 24 px, without doubling the long lists (docs/audits.md 27) */
/* The objects index's kinds to jump to, and its search (docs/audits.md 26) */
.mw-kinds ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 1rem 0 1.5rem; }
.mw-kinds a { display: inline-block; padding: .35rem 0; }
#obj-find[hidden], .mw-yoursky[hidden], .mw-kinds[hidden] { display: none; }
#obj-find input { min-width: min(18rem, 100%); }
#obj-find output { margin-left: .5rem; }
.mw-objects [hidden] { display: none; }
.mw-near { margin-top: 2.5rem; }
.mw-gallery { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1.2rem; }
.mw-gallery a { display: block; text-decoration: none; color: var(--text); }
.mw-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; display: block; }
.mw-gallery a > span { display: block; margin-top: .4rem; font-weight: 600; }
.mw-gallery .dim { display: block; font-weight: 400; font-size: .9rem; }
.rig { display: grid; gap: 1rem; margin: 1rem 0 2rem; }
.source { font-size: .82rem; color: var(--text-dim); }
.source { margin: .2rem 0 0; }
.history { list-style: none; padding: 0 0 0 1.2rem; border-left: 2px solid var(--line); }
.history li { position: relative; padding: 0 0 1.4rem; }
.history li::before { content: ""; position: absolute; left: calc(-1.2rem - 6px); top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--kind-build); }
.history li.software::before { background: var(--kind-mod); }
.history time { font: 400 .8rem var(--mono); color: var(--text-dim); }
.history p { margin: .2rem 0; }
.history .what { font-weight: 600; }
.results { list-style: none; padding: 0; }
.results li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 600; }
.results p { margin: .3rem 0 0; font-size: .92rem; color: var(--text-dim); overflow-wrap: anywhere; }
.results mark { background: none; color: var(--text); font-weight: 600; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@keyframes onair { 0% { box-shadow: 0 0 0 0 rgb(163 36 44 / .45); } 70%, 100% { box-shadow: 0 0 0 .7rem rgb(163 36 44 / 0); } }
.progress { margin-top: 1.4rem; max-width: 34rem; }
.progress .track { height: 10px; border-radius: 5px; background: var(--panel-raised); overflow: hidden; }
.progress .fill { width: 0; height: 100%; background: var(--accent); border-radius: 5px; transition: width .6s var(--ease); }
.progress p { margin: .55rem 0 0; }
.progress b { font-weight: 600; }
.window { background: #0b0e14; color: #d9dee8; border-radius: 16px; padding: clamp(.75rem, 2vw, 1.25rem); display: grid; gap: 1rem; box-shadow: var(--raise); }
.window[hidden] { display: none; }
.window figure { margin: 0; }
.window img { width: 100%; height: auto; border-radius: 10px; background: #000; }
.window figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .6rem; font-size: .9rem; color: #8b95a8; }
.window figcaption b { color: #d9dee8; font-weight: 600; }
.window .side { display: grid; gap: 1rem; align-content: start; }
.quality { display: grid; gap: .75rem; }
@media (min-width: 48rem) { .quality { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) {
  .window { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .quality { grid-template-columns: 1fr; }
}
.tonight { margin-top: 3rem; }
.tonight h2 { margin-top: 0; }
@keyframes zzz { 0% { opacity: 0; translate: 0 0; } 15% { opacity: .95; } 100% { opacity: 0; translate: 2.5rem -5rem; } }
.steps { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .2rem 1rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 30rem) { .step { grid-template-columns: 1fr auto; } }
.mosaic { margin: 1.25rem 0; }
.mosaic figcaption { font-weight: 600; margin-bottom: .5rem; }
.mosaic ol { display: grid; gap: 6px; max-width: 26rem; list-style: none; margin: 0; padding: 0; align-items: start; }
.mosaic li { margin: 0; border-radius: 8px; padding: .45rem .3rem; text-align: center; font-size: .78rem; line-height: 1.3; background: var(--panel-raised); color: var(--text-dim); }
.mosaic li b { display: block; font-size: .95rem; color: var(--text); }
.mosaic li em { display: block; font-style: normal; font-weight: 600; color: var(--accent); }
.mosaic li[data-state="done"] { background: #d7e6dc; }
.mosaic li[data-state="now"] { background: #f3d9a4; }
.mosaic li[data-state="stopped"] { background: #f0c9c6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* Questionnaires (forms.py) --------------------------------------------------- */
.form-page h2 { margin: 2.6rem 0 .6rem; color: var(--accent); }
.form-page h3 { margin: 1.8rem 0 .6rem; font-size: 1.1rem; }
.form-page ol, .form-page ul { padding-left: 1.3rem; }
.form-page input[type=text], .form-page input[type=url], .form-page input[type=email], .form-page textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--panel); border: 1px solid var(--control-border, var(--line)); border-radius: 8px; padding: .55rem .7rem;
}
.form-page textarea { resize: vertical; min-height: 2.6rem; }
.form-page input:focus, .form-page textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.sites { display: grid; gap: .6rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--sky); font-size: .92rem; }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask { display: block; margin: 1.2rem 0 0; border: 0; padding: 0; }
.ask .q { display: block; font-weight: 600; margin-bottom: .2rem; padding: 0; }
.ask .hint { display: block; color: var(--text-dim); font-size: .92rem; margin-bottom: .35rem; }
.box { display: flex; align-items: center; gap: .55rem; min-height: 36px; }
.box input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
fieldset.ask input[type=text] { margin-top: .4rem; }
.needs { display: grid; gap: .5rem; }
.need { display: grid; gap: .4rem; padding: .7rem .8rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 768px) { .need { grid-template-columns: 1fr auto; align-items: center; } }
.finds { display: grid; gap: .5rem; }
.find { display: grid; gap: .4rem; }
@media (min-width: 768px) { .find { grid-template-columns: 2fr 3fr; } }
.trap { position: absolute; left: -9999px; }
.send .button { font-size: 1.05rem; padding: .8rem 2rem; background: var(--accent); color: #fff; }
.send .button:disabled { opacity: .6; }
.send .status { font-weight: 600; min-height: 1.5em; }
.looks { display: grid; gap: 1rem; }
.look { display: grid; gap: .8rem; padding: .8rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
/* Send me your picture (pictures.py): the call-out after Meanwhile's list */
.mw-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin: 1.6rem 0; padding: 1.4rem 1.6rem; background: var(--panel); border: 2px solid var(--accent); border-radius: var(--radius); }
.mw-send h3 { margin: 0 0 .3rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.mw-send p { margin: 0; max-width: 40rem; }
.mw-send .button, .pictures-form .send .button { background: var(--accent); color: #fff; font-weight: 600; font-size: 1.05rem;
  padding: .8rem 1.8rem; max-width: 100%; text-align: center; }    /* wraps at 200% text on a phone rather than pushing the page sideways */
.mw-send .button:hover, .pictures-form .send .button:hover { filter: brightness(1.08); }
/* The form in Meanwhile's reading style */
.pictures-form h2 { color: var(--text); }
.pictures-form section { margin-top: 2rem; padding: 1.2rem 1.4rem 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pictures-form section h2 { margin-top: 0; }
.pictures-form section.send { background: none; border: 0; padding: 0; }
.pictures-form input[type=text], .pictures-form input[type=url], .pictures-form input[type=email], .pictures-form textarea,
.pictures-form input[type=file] { background: var(--sky); }
.pictures-form input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: .9rem; padding: .5rem 1.2rem;
  border: 1px solid var(--accent); border-radius: 999px; background: var(--panel); color: var(--accent); cursor: pointer; }
.pictures-form input[type=file]::file-selector-button:hover { background: var(--accent); color: #fff; }
.ask .optional { font-weight: 400; color: var(--text-dim); font-size: .9rem; }
.form-page input[type=file] { width: 100%; box-sizing: border-box; font: inherit; padding: .7rem; background: var(--panel);
  border: 1px dashed var(--control-border, var(--line)); border-radius: 8px; color: var(--text); }
.form-page input[type=file]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pictures-form .box { align-items: flex-start; margin-top: .5rem; }
.pictures-form .box input { margin-top: .2rem; flex: none; }
/* At 200% text a fieldset keeps its widest word's width unless told not to, and the page scrolled sideways (docs/audits.md 27) */
.pictures-form fieldset { min-width: 0; }
.box span { min-width: 0; overflow-wrap: anywhere; }
.pictures-form .dim { color: var(--text-dim); font-size: .92rem; }
.problems { padding-left: 1.3rem; }
.problems li { margin: .5rem 0; padding: .4rem .6rem; border-radius: 8px; color: var(--text-dim); }
.problems li:target { background: var(--panel); border: 1px solid var(--accent); color: var(--text); }
@media (min-width: 768px) { .look { grid-template-columns: 5fr 4fr; align-items: start; } }

/* Meanwhile, in space (docs/meanwhile-spec.md): the page for any place, and the diary front page's panel */
.mw h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
/* At 200% text one long word ("Transparency") is wider than a phone: let headings hyphenate or break it (layout round 2) */
.mw h1, .mw h2, .mw h3, .mw .lede { overflow-wrap: break-word; hyphens: auto; }
/* Star names and alert links ("1SWASP J022916.91-395901.4") break where they must, so a list never pushes the page sideways */
.mw li, .mw p, .mw td { overflow-wrap: anywhere; }
.mw .dim { color: var(--text-dim); }
.mw-head .display { font-size: clamp(2.2rem, 8vw, 4.2rem); margin: 1rem 0 .6rem; }
/* The tagline: the joke on its own line, then what the page does, never split mid-sentence (Ryan) */
.mw-head .lede { max-width: 52rem; }
.mw-head .lede span { display: block; text-wrap: balance; }
/* Every Meanwhile rule sits under .mw: the site already has .strip (target pages' picture row), .kinds (the
   diary's filter row), .cards and .pill, and unscoped rules here restyled them (fixed in the layout round) */
.mw .where { margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .95rem; }
.mw .where input { font: inherit; padding: .45rem .6rem; border: 1px solid var(--control-border, var(--line)); border-radius: 8px; background: var(--panel); color: var(--text); min-width: 10rem; min-height: 44px; }
.mw .where button { font: inherit; padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--text); background: var(--text); color: var(--sky); min-height: 44px; }
.mw .where .dim { font-size: .82rem; }
.mw-lead { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.2rem 1rem; margin-top: 2rem; }
.mw-lead h2 { margin-top: 1rem; font-size: 1.3rem; }
.mw-lead ul { margin: 0; padding-left: 1.1rem; }
.mw-tonight { margin-top: 1.5rem; }
.mw .mw-state { font-weight: 600; }   /* not .state: the site's .state is a one-line badge (nowrap), which ran off a phone */
.mw .verdict { font-size: 1.2rem; max-width: 46rem; }
.mw-tonight .verdict { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.35; }
/* Every grid's minimum is "the smaller of 100% and N", so a column is never wider than a 320px phone (layout round 2) */
.mw .kinds { list-style: none; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1rem 0; }
.mw .kinds li { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.mw .kinds li span:last-child { grid-column: 2; color: var(--text-dim); font-size: .85rem; }
.mw .pill { font: 600 .72rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: .35rem .5rem; border-radius: 6px; border: 1px solid currentColor; white-space: nowrap; }
.mw .pill.good { color: var(--proven); } .mw .pill.possible { color: var(--partly); } .mw .pill.poor, .mw .pill.unknown { color: var(--not-yet); }
.mw .pill.unknown { border-style: dashed; }
.mw .facts { padding-left: 1.1rem; max-width: 46rem; }
.mw .strip-wrap { position: relative; margin: 1rem 0 .4rem; }
.mw .strip { list-style: none; padding: 0 0 .3rem; margin: 0; display: flex; gap: 3px; overflow-x: auto; }
.mw .strip li { min-width: 4rem; flex: 1; text-align: center; border-radius: 6px; padding: .4rem 0 .3rem; font: .75rem/1.3 var(--mono); border: 2px solid transparent; }
.mw .strip li b { display: block; font-weight: 600; }
.mw .strip li .air { display: block; font-style: normal; font-size: .7rem; }
.mw .strip li .marks { display: block; font-style: normal; font-size: .75rem; min-height: 1em; }
.mw .strip li.best { border-color: var(--text); }
.mw .strip .clear { background: #0d6b51; color: #fff; } .mw .strip .mostly { background: #2f6b57; color: #fff; }   /* 4.5:1 or better for white text */
.mw .strip:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.mw .strip .maybe { background: #e5c9a3; color: #2b231c; } .mw .strip .cloud { background: var(--panel-raised); color: var(--text-dim); }
.mw .strip .unknown { background: none; color: var(--text-dim); border-style: dashed; border-color: var(--line); }   /* not known, not bad (27 re-audited) */
.mw .strip li.unknown.best { border-color: var(--text); }
.mw .strip-key { font-size: .78rem; color: var(--text-dim); margin: .3rem 0 0; }
.mw .strip-more { display: none; }
.mw .strip-jump[hidden] { display: none; }
.mw .strip-jump { font: inherit; font-size: .85rem; min-height: 44px; margin: .4rem 0 0; padding: .3rem .9rem; border-radius: 999px;
  border: 1px solid var(--control-border, var(--line)); background: var(--panel); color: var(--text); cursor: pointer; }
.mw .source { font-size: .82rem; color: var(--text-dim); max-width: 46rem; }
.mw .cards { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); align-items: stretch; }
.mw .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.mw .card h3 { margin: .2rem 0 .4rem; }
.mw .card p { margin: .3rem 0; font-size: .95rem; }
.mw .card .see { color: var(--text-dim); }
.mw .card figure { margin: -1rem -1.1rem .8rem; }
.mw .card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.mw .card figcaption { font-size: .75rem; color: var(--text-dim); padding: .4rem 1.1rem 0; }
/* A card with a diary photo goes wide, picture beside the words, so it isn't twice the height of its row */
/* No dense packing: a wide card may leave a gap, but the cards stay in their ranked order on screen, as they
   are for the keyboard and screen readers (docs/audits.md 27) */
@media (min-width: 640px) {
  .mw .card.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
  .mw .card.wide figure { margin: -1rem 0 -1rem -1.1rem; display: flex; flex-direction: column; }
  .mw .card.wide picture { flex: 1; display: block; position: relative; min-height: 10rem; }
  .mw .card.wide img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: var(--radius) 0 0 0; }
  .mw .card.wide figcaption { padding: .4rem .2rem .8rem 1.1rem; }
}
.mw .card .dim { color: var(--text-dim); font-size: .85rem; }
.mw .as-table { margin: 1.2rem 0 .6rem; }
.mw .as-table summary { cursor: pointer; color: var(--link); }
/* Every expander a thumb can hit outdoors, 44px or more; padding, not flex, so the disclosure triangle stays (docs/audits.md 27) */
.mw summary { padding-block: .55rem; min-height: 44px; box-sizing: border-box; }
.mw .as-table .list { margin-top: .6rem; }
/* The worldwide briefing as a magazine page: a featured story, then events beside discoveries (layout round) */
.mw-feature { display: grid; gap: 1.2rem; align-items: center; }
.mw-feature figure { margin: 0; }
.mw-feature img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.mw-feature figcaption { font-size: .75rem; color: var(--text-dim); margin-top: .4rem; }
.mw-eyebrow { font: 400 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin: 1rem 0 0; }
.mw-split { display: grid; gap: 0 2.5rem; }
@media (min-width: 900px) {
  .mw-feature.has-picture { grid-template-columns: 3fr 2fr; }
  .mw-split { grid-template-columns: 1fr 1fr; }
}
.mw .dont-miss { list-style: none; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.mw .dont-miss li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.mw .dont-miss b { display: block; font: 400 .75rem var(--mono); color: var(--text-dim); margin-bottom: .2rem; }
.mw-guide figure { margin: 1.5rem 0; }
.mw-guide img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.mw-guide figcaption { font-size: .8rem; color: var(--text-dim); margin-top: .4rem; }
.mw .list { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mw .list th { text-align: left; font: 400 .75rem var(--mono); color: var(--text-dim); border-bottom: 1px solid var(--line); padding: .5rem .4rem; }
.mw .list td, .mw .list tbody th { border-bottom: 1px solid var(--line); padding: .55rem .4rem; vertical-align: top; }
/* A row's first cell is its header (mwpage.table_roles), styled as the cell it was */
.mw .list tbody th { text-align: left; font: inherit; color: inherit; }
.mw .list td .dim, .mw .list tbody th .dim { display: block; font-size: .8rem; }
.mw .tag { font: 600 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; background: var(--text); color: var(--sky); padding: .25rem .4rem; border-radius: 5px; margin-left: .3rem; }
.mw .events { list-style: none; padding: 0; }
.mw .events li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.mw .events .lab { font: .75rem var(--mono); margin-left: .4rem; padding: .15rem .35rem; border-radius: 4px; border: 1px solid currentColor; }
.mw .events .visible .lab { color: var(--proven); } .mw .events .not-visible { color: var(--text-dim); } .mw .events .not-checked .lab { color: var(--partly); }
.mw .know { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.mw .plain { padding-left: 1.1rem; font-size: .93rem; }
.mw .plain li { margin: .45rem 0; }
/* The news as its own section: the top story larger, the rest as cards (layout round 3) */
.mw-news { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.mw .news-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.mw .news-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.mw .news-grid h3 { font-size: 1.02rem; line-height: 1.3; margin: 0 0 .5rem; }
.mw .news-grid h3 a { color: var(--text); }
.mw .news-grid p { margin: 0 0 .6rem; color: var(--text-dim); font-size: .9rem; }
.mw .news-grid .meta { margin: auto 0 0; font: 400 .75rem var(--mono); }
.mw .news-grid .lead { grid-column: 1 / -1; }
.mw .news-grid .lead h3 { font-size: 1.35rem; }
.mw .news-grid .lead p:not(.meta) { font-size: 1rem; max-width: 46rem; }
.mw .mine { border-top: 1px solid var(--line); margin-top: 3rem; }
.mw-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem 1.1rem; margin: 0 0 1.5rem; }
/* Phones: the tables become cards, one object or night each, every value labelled (layout round). Plain
   CSS on the same table markup, so nothing changes for screen readers or without JavaScript */
@media (max-width: 640px) {
  .mw .list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mw .list, .mw .list tbody, .mw .list tr, .mw .list td, .mw .list tbody th { display: block; width: auto; }
  .mw .list tr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; margin: 0 0 .7rem; }
  /* The label column is at most 40% of the card, so at 200% text the values keep their room (layout round 2) */
  .mw .list td { border: 0; padding: .15rem 0; display: grid; grid-template-columns: minmax(0, min(7.5rem, 40%)) minmax(0, 1fr); gap: .6rem; }
  .mw .list td::before { content: attr(data-label); font: 400 .72rem/1.6 var(--mono); color: var(--text-dim); }
  .mw .list td:first-child, .mw .list tbody th { display: block; font-size: 1.02rem; padding: 0 0 .35rem; border: 0; }
  .mw .list td:first-child::before, .mw .list tbody th::before { content: none; }
  .mw .list.week td[data-label="Forecasts"] { font-size: .82rem; color: var(--text-dim); }
  .mw .list td > .dim { grid-column: 2; }              /* a cell's second line stays beside its label */
  .mw .list td:first-child > .dim, .mw .list tbody th > .dim { display: inline; }
  .mw .list .pill { justify-self: start; }
  /* Two across where they fit; one across at 320px or with large text, since the minimum is in rem (layout round 2) */
  .mw .kinds { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.25rem), 1fr)); }   /* two at 390px, one at 320px */
  .mw .kinds li { grid-template-columns: 1fr; padding: .55rem .65rem; }
  .mw .kinds li span:last-child { grid-column: 1; }
  .mw .strip-more { display: inline; }
  .mw .strip-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 1.6rem; width: 2.2rem; pointer-events: none;
                           background: linear-gradient(90deg, transparent, var(--sky)); }
}

/* Meanwhile's navigation (meanwhile/mwnav.py; docs/meanwhile-nav-research.md, 18 Nov 2026): a one-line breadcrumb,
   one bar of its pages in the same order on every page, and "On this page" on the long ones: a rail beside the
   page on a wide screen, a list near the top on a phone. The bar wraps rather than scrolling, so nothing hides. */
/* Wraps rather than clipping, so at large text no step of the trail is hidden (docs/audits.md 27) */
.mw-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .4rem;
  font: 400 .8rem/1.5 var(--mono); color: var(--text-dim); }
.mw-crumbs li + li::before { content: "›"; margin-right: .4rem; }
.mw-crumbs a { color: var(--text-dim); }
.mw-crumbs [aria-current] { color: var(--text); overflow-wrap: anywhere; }
.mw-bar { margin: .6rem 0 1.4rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.mw-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.mw-bar a { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .2rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font: 500 .92rem var(--body); }
@media (pointer: coarse), (max-height: 500px) { .mw-bar a { min-height: 44px; } }   /* a thumb, a phone on its side too (docs/audits.md 27) */
.mw-bar a:hover { border-color: var(--accent); }
.mw-bar a:focus-visible, .mw-toc a:focus-visible, .mw-crumbs a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.mw-bar a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--sky); }
.mw-bar .n { font: 400 .75rem var(--mono); color: var(--text-dim); }
.mw-bar a[aria-current="page"] .n { color: var(--sky); opacity: .75; }
.mw-toc h2 { margin: 0 0 .5rem; font: 600 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.mw-toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.mw-toc a { display: flex; align-items: center; min-height: 32px; padding: .15rem .65rem; border-left: 2px solid var(--line);
  color: var(--text-dim); text-decoration: none; font-size: .9rem; }
.mw-toc a.on { border-color: var(--accent); color: var(--text); }
@media (max-width: 599px) {
  .mw-bar ul { gap: .3rem; }
  .mw-bar a { min-height: 44px; padding: .15rem .6rem; font-size: .88rem; }      /* a thumb, as the section links were (layout round 2) */
}
@media (max-width: 1099px) {
  .mw-toc { margin: 1.4rem 0; padding: .9rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
  .mw-toc ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); column-gap: .6rem; }
  .mw-toc a { min-height: 44px; }
}
@media (min-width: 1100px) {
  .mw:has(> .mw-toc) { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; column-gap: 2.5rem; }
  .mw:has(> .mw-toc) > * { grid-column: 1; }
  .mw:has(> .mw-toc) > .mw-toc { grid-column: 2; grid-row: 1 / span 60; align-self: start; position: sticky; top: 5rem; margin-top: 4.5rem; }
}
.mw .source code { overflow-wrap: anywhere; font-size: .85em; }   /* the calendar feed address, on a phone too (docs/audits.md 29) */
