/* Singularity Nightly. One stylesheet, mobile first, readability first. Dark by default; light follows the system
   or the toggle. Sizes are in rem so the A / A+ / A++ control (html[data-size]) scales the whole page. */
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #050806;
  --panel: #0b120d;
  --panel-2: #111b14;
  --line: #1d2e22;
  --green: #33ff66;
  --green-dim: #1f9d4c;
  --text: #e6ede8;
  --muted: #8fa396;
  --amber: #ffb000;
  --rain: #33ff66;
  --rain-opacity: 0.32;
  --glow: 0 0 14px rgba(51, 255, 102, 0.28);
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 70ch;
  --gutter: clamp(16px, 4vw, 48px);
  --page: 1440px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f7f4; --panel: #ffffff; --panel-2: #e7eee9; --line: #c6d4ca;
    --green: #0a7a34; --green-dim: #2f6b45; --text: #0c1a10; --muted: #4d6155; --amber: #8a5300;
    --rain: #1f9d4c; --rain-opacity: 0.22; --glow: none; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f7f4; --panel: #ffffff; --panel-2: #e7eee9; --line: #c6d4ca;
  --green: #0a7a34; --green-dim: #2f6b45; --text: #0c1a10; --muted: #4d6155; --amber: #8a5300;
  --rain: #1f9d4c; --rain-opacity: 0.22; --glow: none; color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); font-size: 100%; }
html[data-size="2"] { font-size: 112.5%; }
html[data-size="3"] { font-size: 125%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.1875rem; line-height: 1.65; overflow-wrap: break-word; }
a { color: var(--green); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.eyebrow, .dateline, .tag, .btn, .pager, .rule, .foot-mark, .tstrip, .num, .stat-num, code, .toc-h, .card-tag, .pill { font-family: var(--mono); }
code { font-size: 0.9em; background: var(--panel-2); padding: 0 0.25em; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--panel); color: var(--green); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }   /* every page fills the browser; text keeps its measure */
main { display: block; padding-bottom: 48px; }

/* live strip: fixed to its row, scrolls sideways inside itself on a phone */
.tstrip { min-height: 46px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden;
  white-space: nowrap; scrollbar-width: none; font-size: 0.875rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tstrip::-webkit-scrollbar { display: none; }
.tstrip-inner { display: flex; align-items: center; gap: 22px; min-height: 46px; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.tbadge { flex: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; color: var(--green); border: 1px solid var(--green); padding: 4px 7px; border-radius: 3px; }
.titem { flex: none; display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; color: var(--text); padding: 12px 0; }
.titem:hover .tlbl { color: var(--green); }
.tlbl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.tnum { font-size: 0.9375rem; font-weight: 600; color: var(--green); }
.tnum.pending { font-weight: 400; color: var(--green-dim); }
.tbadge-life { background: var(--green); color: var(--bg); }
.tlife .tlbl { color: var(--text); }
.tlife .tnum { font-size: 1.0625rem; font-weight: 700; }

/* masthead: the only place anything moves on its own */
.masthead { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--rain-opacity); pointer-events: none; }
.mast-inner { position: relative; max-width: var(--page); margin: 0 auto; padding: 26px var(--gutter) 22px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.wordmark { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: clamp(1.9rem, 8vw, 3.6rem); line-height: 1.05;
  letter-spacing: -0.5px; color: var(--green); text-decoration: none; text-shadow: var(--glow); }
.tagline { margin: 8px 0 0; font-family: var(--mono); font-size: 1rem; color: var(--muted); max-width: 46ch; }
.wordmark, .tagline { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.mast-brand { min-width: 0; }
.mast-tools { display: none; align-items: center; gap: 10px; flex-wrap: wrap; }
.js .mast-tools { display: flex; }
.size-ctl { display: inline-flex; border: 1px solid var(--green-dim); border-radius: 6px; overflow: hidden; background: var(--bg); }
.size-btn { min-width: 48px; min-height: 44px; padding: 0 10px; font-family: var(--sans); font-weight: 700; color: var(--green);
  background: var(--bg); border: 0; border-left: 1px solid var(--green-dim); cursor: pointer; line-height: 1; }
.size-btn:first-child { border-left: 0; }
.size-btn[data-size="1"] { font-size: 1rem; } .size-btn[data-size="2"] { font-size: 1.2rem; } .size-btn[data-size="3"] { font-size: 1.4rem; }
.size-btn[aria-pressed="true"] { background: var(--green); color: var(--bg); }
.theme-toggle { min-height: 44px; min-width: 44px; font-family: var(--mono); font-size: 0.9375rem; color: var(--green); background: var(--bg);
  border: 1px solid var(--green-dim); border-radius: 6px; padding: 0 14px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .rain { display: none; } }

.sitenav { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-inner { max-width: var(--page); margin: 0 auto; padding: 6px var(--gutter); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 6px 18px; }
.sitenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.sitenav li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--green); font-size: 1rem;
  font-weight: 600; text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent); }
.sitenav li a[aria-current="page"] { text-decoration-color: var(--green); text-decoration-thickness: 0.16em; }
.pill { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 0.9375rem;
  font-weight: 600; color: var(--bg); background: var(--green); text-decoration: none; white-space: nowrap; }
.pill span { text-decoration: underline; text-underline-offset: 0.18em; }
.pill:hover { box-shadow: var(--glow); }

.eyebrow { margin: 28px 0 6px; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-dim); }
.special { display: inline-block; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--bg); background: var(--green); padding: 2px 7px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.tag { font-size: 0.8em; font-weight: 600; color: var(--green); white-space: nowrap; }
.dateline { margin: 6px 0; font-size: 0.9375rem; color: var(--green-dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; font-size: 1rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--bg); background: var(--green); padding: 0 22px; border-radius: 6px; text-decoration: none; }
.btn:hover { text-decoration: underline; }
.btn-ghost { color: var(--green); background: transparent; border: 2px solid var(--green); }

/* the front page: hero, Start Here, story cards, editions, the dashboard row */
.fp-hero { display: grid; gap: 0; margin: 28px 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fp-art { position: relative; background: var(--panel-2); min-height: 0; }
.fp-art img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fp-credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 4px 10px; font-size: 0.8125rem; color: #e6ede8; background: rgba(5, 8, 6, 0.82); }
.fp-credit a { color: #e6ede8; }
.fp-text { padding: 4px clamp(18px, 3vw, 40px) 30px; min-width: 0; }
.fp-text .eyebrow { margin-top: 22px; }
@media (min-width: 900px) {
  .fp-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .fp-art img { aspect-ratio: auto; min-height: 560px; }
}
.lead { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 24px 24px; margin: 28px 0 8px; }
.lead .eyebrow { margin-top: 18px; }
.lead-kind { margin: 0; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.lead-title { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 10px 0 10px; }
.lead-title a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); }
.lead-title a:hover { color: var(--green); }
.lead-by { margin: 0 0 10px; font-size: 1rem; color: var(--muted); }
.lead-excerpt { margin: 8px 0; max-width: var(--measure); font-size: 1.125rem; }

/* In 60 Seconds: the edition in three or four bullets */
.in60 { margin: 0 0 22px; padding: 16px 22px 18px; background: var(--panel); border: 2px solid var(--green); border-radius: 10px; }
.in60-h { margin: 0 0 8px; font-family: var(--mono); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.in60-list { margin: 0; padding-left: 1.2em; font-size: 1.25rem; line-height: 1.5; }
.in60-list li { margin: 0 0 10px; }
.in60-list li::marker { color: var(--green); }
.in60-hero { margin: 16px 0 6px; background: var(--panel-2); }
.in60-hero .in60-list { font-size: 1.125rem; }

.start-card { display: grid; gap: 4px 24px; align-items: center; margin: 18px 0 8px; padding: 18px 24px; background: var(--panel);
  border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 10px; }
.start-k { margin: 0; font-family: var(--mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-dim); }
.start-t { margin: 0; font-size: 1.6rem; }
.start-sum { margin: 0; max-width: var(--measure); }
.start-card .btn { margin-top: 6px; justify-self: start; }
@media (min-width: 900px) { .start-card { grid-template-columns: 1fr auto; } .start-card .btn { grid-row: 1 / span 3; grid-column: 2; } }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; color: var(--text); text-decoration: none; }
.card-link:hover { border-color: var(--green-dim); }
.card-link:hover .card-title { color: var(--green); }
.card-art { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-credit { position: absolute; right: 0; bottom: 0; padding: 2px 8px; font-size: 0.75rem; color: #e6ede8; background: rgba(5, 8, 6, 0.82); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 20px; }
.card-tag { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--green); }
.card-title { font-family: var(--sans); font-size: 1.375rem; font-weight: 700; line-height: 1.25; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent); text-underline-offset: 0.16em; }
.card-why, .card-date { font-size: 1rem; color: var(--muted); line-height: 1.5; }
.card-why-k { font-weight: 600; color: var(--text); }
.art-pattern { display: block; width: 100%; height: 100%; min-height: 120px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--green) 30%, transparent), transparent 60%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--green) 14%, transparent) 0 2px, transparent 2px 40px), var(--panel-2); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card-link, .stat, .pill, .btn { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
  .card-link:hover, .stat:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
}

/* big numbers */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.stat { display: flex; flex-direction: column; gap: 4px; min-height: 44px; height: 100%; padding: 16px 18px; background: var(--panel);
  border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 8px; color: var(--text); text-decoration: none; }
.stat-num { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; line-height: 1.05; color: var(--green); font-variant-numeric: tabular-nums; }
.stat-num.pending { font-size: 1.0625rem; font-weight: 400; color: var(--green-dim); }
.stat-unit { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.stat-lbl { font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.16em; text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent); }
.stats-rail .stat { padding: 12px 14px; }
.stats-rail .stat-num { font-size: 1.75rem; }

/* lists */
.rule { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); margin: 44px 0 16px;
  display: flex; align-items: center; gap: 12px; font-weight: 600; }
.rule::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.rows, .ditems, .desk-rows, .corrections { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 8em 1fr auto; gap: 4px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row time { font-family: var(--mono); font-size: 0.875rem; color: var(--green-dim); }
.row-title { color: var(--text); font-weight: 700; }
.row-title:hover { color: var(--green); }
.row-read { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-family: var(--mono); font-size: 0.9375rem; font-weight: 600; }
.row-sum { display: block; color: var(--muted); font-size: 1.0625rem; }
.kind { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.row.empty, .ditem.empty { display: block; color: var(--muted); }
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr auto; }
  .row time { grid-column: 1 / -1; }
}
.more { font-family: var(--mono); font-size: 1rem; }
.more a { display: inline-flex; align-items: center; min-height: 44px; }

.subscribe { margin: 48px 0 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 24px 24px; }
.subscribe h2 { font-size: 1.5rem; color: var(--green); }
.sub-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sub-form label { width: 100%; font-size: 1rem; color: var(--muted); }
.sub-form input { flex: 1 1 220px; min-width: 0; min-height: 48px; font: inherit; padding: 8px 12px; color: var(--text); background: var(--bg);
  border: 2px solid var(--green-dim); border-radius: 6px; }
.sub-form button { min-height: 48px; font-family: var(--mono); font-size: 1rem; font-weight: 600; padding: 0 20px;
  color: var(--bg); background: var(--green); border: 0; border-radius: 6px; cursor: pointer; }

.pager { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 32px 0 0; font-size: 1rem; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.pager-count { color: var(--muted); }

/* an edition: header, full-width hero, then the article beside its rail */
.ed-head { max-width: 62rem; }
.ed-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 6px 0 10px; }
.window { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.dek { font-size: 1.375rem; line-height: 1.5; max-width: var(--measure); margin: 14px 0 8px; }
.byline { font-size: 1rem; color: var(--muted); margin: 8px 0 0; }
.ed-hero { margin: 26px 0 28px; }
.ed-hero img { width: 100%; border-radius: 10px; object-fit: cover; aspect-ratio: 16 / 9; max-height: 72vh; }
@media (min-width: 900px) { .ed-hero img { aspect-ratio: 21 / 9; } }
.ed-hero figcaption, .story-img figcaption, .yt figcaption { font-size: 0.9375rem; color: var(--muted); margin-top: 8px; }
.credit { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); white-space: normal; }
.ed-grid { display: block; }
.rail { margin: 0 0 28px; }
@media (min-width: 1100px) {
  .ed-grid { display: grid; grid-template-columns: minmax(0, 72ch) 22rem; grid-template-areas: "body rail"; justify-content: space-between; gap: 56px; }
  .ed-body { grid-area: body; min-width: 0; }
  .rail { grid-area: rail; position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; margin: 0;
    scrollbar-width: thin; }
}
.toc { margin: 0 0 22px; padding: 12px 16px; border-left: 3px solid var(--green-dim); background: var(--panel); }
.toc-h { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li a { display: flex; align-items: center; min-height: 44px; font-size: 1.0625rem; }
.rail-stats { margin: 0 0 22px; }
.rail-more, .rail-start { margin: 10px 0 0; font-size: 1rem; }
.rail-more a, .rail-start a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.edition p, .edition li, .prose p, .prose li { max-width: var(--measure); }
.sec { margin-top: 44px; }
.sec-h { font-family: var(--mono); font-size: 1.0625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sec-h::before { content: "> "; color: var(--green-dim); }
.edition ul { padding-left: 1.1em; }
.edition li { margin: 0 0 14px; }
.edition .rail ul, .edition ul.stats { padding-left: 0; }
.edition .stats li, .edition .toc li { margin: 0; }
.edition .in60-list { padding-left: 1.2em; }
.ticker-list, .desk-list, .voices, .watchlist { list-style: none; padding-left: 0 !important; }
.ticker-list > li { font-size: 1.1875rem; line-height: 1.6; margin: 0; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.ticker-list > li:first-child { padding-top: 6px; }
.desk-list li { padding-left: 0; }
.src { font-family: var(--mono); font-size: 0.8em; color: var(--green-dim); }
.opinion { font-family: var(--mono); font-size: 0.78em; color: var(--muted); text-transform: lowercase; }
.numbers strong { font-family: var(--mono); color: var(--green); }
.desk h3 { font-size: 1.5rem; margin: 34px 0 10px; }
blockquote { margin: 18px 0; padding: 2px 18px; border-left: 3px solid var(--green-dim); color: var(--text); }
.lead-head { font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--text); margin: 18px 0 12px; }
.story { margin: 26px 0 10px; }
.story-h { font-size: 1.4rem; line-height: 1.25; color: var(--text); margin: 0 0 10px; }
.desk h3 + .story { margin-top: 12px; }
.story-item .story { margin: 0; }
.story-img { margin: 12px 0 18px; }
.story-img img { width: 100%; border-radius: 8px; }
.story-art { margin: 10px 0 14px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.story-art img { width: 100%; height: 100%; object-fit: cover; }

/* Why it matters: the box under every story, the toggle under every ticker item */
[hidden] { display: none !important; }
.why { margin: 18px 0 24px; padding: 12px 20px 14px; background: var(--panel); border-left: 4px solid var(--green); border-radius: 0 6px 6px 0; }
.why-label { margin: 0 0 6px; font-family: var(--mono); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); }
.why-text { margin: 0; font-family: var(--sans); font-size: 1.1875rem; line-height: 1.65; color: var(--text); }
.why-tools { margin: 0 0 10px; }
.why-all { min-height: 44px; font-family: var(--mono); font-size: 0.9375rem; font-weight: 600; color: var(--green); background: var(--bg);
  border: 2px solid var(--green-dim); border-radius: 6px; padding: 0 16px; cursor: pointer; }
.why-all:hover { border-color: var(--green); }
.why-t { margin: 10px 0 0; }
.why-t summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; cursor: pointer; list-style: none;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--green); background: var(--bg);
  border: 2px solid var(--green-dim); border-radius: 999px; }
.why-t summary::-webkit-details-marker { display: none; }
.why-t summary::before { content: "+"; font-family: var(--mono); font-size: 1.2em; line-height: 1; }
.why-t[open] summary::before { content: "\2212"; }
.why-t summary:hover { border-color: var(--green); text-decoration: underline; }
.why-t-text { margin: 10px 0 4px; padding: 12px 18px; background: var(--panel); border-left: 4px solid var(--green); font-size: 1.125rem; color: var(--text); }

/* glossary: the first use of a term in an edition, with its definition on hover, focus or tap */
.gl { position: relative; }
.gl-term { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: help; text-align: inherit;
  text-decoration: underline dotted var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gl-term:hover { text-decoration-style: solid; }
.gl-pop { display: none; position: absolute; z-index: 20; left: 0; top: 100%; width: min(22rem, calc(100vw - 32px)); padding: 12px 14px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--green-dim); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; font-style: normal; line-height: 1.5; text-transform: none; letter-spacing: normal; white-space: normal; }
.gl.flip .gl-pop { left: auto; right: 0; }
.gl:hover .gl-pop, .gl:focus-within .gl-pop, .gl.open .gl-pop { display: block; }
.gl.hush .gl-pop { display: none; }
.gl-def { display: block; }
.gl-more { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 0.9375rem; }
@media (max-width: 520px) {
  .gl-pop { position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; width: auto; }
}
.az { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 18px 0; font-family: var(--mono); font-size: 1.0625rem; }
.az a, .az-none { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.az-none { color: var(--muted); }
.gl-list { margin: 0; }
.gl-entry { padding: 12px 0; border-bottom: 1px solid var(--line); max-width: var(--measure); scroll-margin-top: 12px; }
.gl-entry dt { font-family: var(--sans); font-weight: 700; color: var(--green); }
.gl-entry dd { margin: 4px 0 0; }
.gl-also { font-size: 1rem; color: var(--muted); }
.gl-link { font-family: var(--mono); font-size: 0.9375rem; }
.about-tagline { font-family: var(--mono); color: var(--green); }
.yt { margin: 14px 0 20px; max-width: 720px; }
.yt-link { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; border-radius: 8px; }
.yt-link img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 1rem; font-weight: 600;
  color: #050806; background: #33ff66; padding: 10px 18px; border-radius: 6px; }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.yt-out { font-family: var(--mono); font-size: 0.875rem; white-space: nowrap; }
.correction, .corr { border-left: 4px solid var(--amber); background: var(--panel); padding: 10px 16px; margin: 18px 0; }
.corr-h { margin: 0; font-family: var(--mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); }
.correction time, .corr time { font-family: var(--mono); font-size: 0.875rem; color: var(--amber); margin-right: 6px; }
.ed-foot { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.cite { font-family: var(--mono); font-size: 0.875rem; }
.prevnext { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 1rem; }
.prevnext a { display: inline-flex; align-items: center; min-height: 44px; }

/* desks */
.page-h { font-size: clamp(2rem, 4.6vw, 3rem); margin: 30px 0 10px; }
.intro { color: var(--muted); max-width: var(--measure); font-size: 1.125rem; }
.desk-rows { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); }
.desk-row { display: grid; grid-template-columns: 120px auto 1fr; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.desk-art { grid-row: 1 / span 3; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.desk-art img { width: 100%; height: 100%; object-fit: cover; }
.desk-row .tag { grid-column: 2; }
.desk-name { grid-column: 3; font-weight: 700; }
.desk-blurb, .desk-count { grid-column: 2 / -1; color: var(--muted); font-size: 1.0625rem; }
.desk-count { font-family: var(--mono); font-size: 0.875rem; color: var(--green-dim); }
.ditems { display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); align-items: start; }
.ditem { padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ditem .story-h { font-size: 1.4rem; }
.dmeta { display: block; font-family: var(--mono); font-size: 0.875rem; color: var(--green-dim); margin-top: 6px; }

/* dashboard */
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 20px; }
.m-card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 8px; padding: 14px 18px; min-width: 0; }
.m-title { margin: 0 0 8px; font-family: var(--mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.m-value { margin: 0; font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.m-value .num { color: var(--green); }
.m-value .unit { font-family: var(--mono); font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.m-value.pending { font-family: var(--mono); font-size: 1rem; font-weight: 400; color: var(--green-dim); }
.m-holder { margin: 4px 0 0; font-size: 1rem; color: var(--muted); }
.m-details { margin: 10px 0 0; font-size: 1rem; }
.m-details div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 4px 0; }
.m-details dt { color: var(--muted); }
.m-details dd { margin: 0; font-family: var(--mono); color: var(--text); text-align: right; }
.m-details dd.pending { color: var(--green-dim); }
.spark { display: block; width: 100%; height: 52px; margin: 12px 0 4px; overflow: visible; }
.spark-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark-end { fill: var(--green); stroke: var(--panel); stroke-width: 2; }
.spark-hit { fill: transparent; }
.spark-none { margin: 10px 0 4px; font-family: var(--mono); font-size: 0.875rem; color: var(--green-dim); }
.m-why { margin: 10px 0; font-size: 1.0625rem; }
.m-meta { margin: 6px 0 0; font-size: 0.9375rem; color: var(--muted); }
.m-eds { margin: 6px 0 0; padding-left: 1.1em; font-size: 1rem; }
.m-note { margin: 8px 0 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.next-launch { font-family: var(--mono); font-size: 1rem; color: var(--green-dim); }
.m-foot { margin-top: 20px; font-size: 1rem; color: var(--muted); }

.prose h2 { font-size: 1.6rem; color: var(--green); margin-top: 34px; }
.prose ul.plain { list-style: none; padding-left: 0; }
.page-prose { max-width: 50rem; }
.page-prose li { margin: 0 0 10px; }
.empty-note { font-family: var(--mono); color: var(--green-dim); }

.sitefoot { border-top: 1px solid var(--line); background: var(--panel); padding: 24px 0 32px; font-size: 1rem; color: var(--muted); }
.sitefoot .wrap { max-width: var(--page); }
.foot-mark { font-weight: 600; color: var(--green); letter-spacing: 0.12em; margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0 0 10px; font-family: var(--mono); }
.foot-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.sitefoot p { margin: 6px 0; }
