/* Pongo stylesheet.
   Part 1 is the group page (/review): every rule is scoped to html:not(.ink) or .review, and is unchanged.
   Part 2 is the public site, paper and ink: every rule is scoped to .ink, a class on <html>. Keep the scopes: the two parts share class names. */
:root {
  --paper: #f6f1e7;
  --ink: #1c1b19;
  --quiet: #5c574d;
  --rule: #d8d0bf;
  --desk-green: #2f5d46;
  --confirmed: #1f6b3a;
  --reported: #6a5a1a;
  --unverified: #6b4a8a;
  --disputed: #9a3b1f;
  --walked-back: #4a4a4a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1a17;
    --ink: #ece6d8;
    --quiet: #a39d8e;
    --rule: #3a3731;
    --desk-green: #7fb99a;
    --confirmed: #7fcf98;
    --reported: #d4c070;
    --unverified: #bf9fe0;
    --disputed: #f0a080;
    --walked-back: #b0b0b0;
  }
}
* { box-sizing: border-box; }
html:not(.ink) body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  line-height: 1.55;
}
html:not(.ink) a { color: var(--desk-green); text-underline-offset: 0.15em; }
html:not(.ink) .site-head,
html:not(.ink) main,
html:not(.ink) .site-foot { max-width: 46rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
html:not(.ink) .site-head { padding-top: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--ink); }
html:not(.ink) .masthead { font-size: 2rem; font-weight: 700; letter-spacing: 0.01em; text-decoration: none; color: var(--ink); }
html:not(.ink) .nav { margin-top: 0.5rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.9rem; }
html:not(.ink) .nav a { margin-right: 1rem; }
html:not(.ink) main { padding-top: 1.5rem; padding-bottom: 3rem; }
html:not(.ink) h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.5rem; }
html:not(.ink) h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
html:not(.ink) h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.25rem; }
html:not(.ink) .story-list .story-title { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.25rem; border-top: 0; padding-top: 0; }
html:not(.ink) .lede { font-size: 1.15rem; }
html:not(.ink) .meta,
html:not(.ink) .kicker,
html:not(.ink) .state,
html:not(.ink) .byline,
html:not(.ink) .site-foot,
html:not(.ink) .unlinked {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--quiet);
}
html:not(.ink) .story-list { list-style: none; margin: 0; padding: 0; }
html:not(.ink) .story { position: relative; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
html:not(.ink) .state { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
html:not(.ink) .state[data-state="confirmed"] { color: var(--confirmed); }
html:not(.ink) .state[data-state="reported"] { color: var(--reported); }
html:not(.ink) .state[data-state="unverified"] { color: var(--unverified); }
html:not(.ink) .state[data-state="disputed"] { color: var(--disputed); }
html:not(.ink) .state[data-state="walked-back"] { color: var(--walked-back); }
html:not(.ink) .missing,
html:not(.ink) .primary { font-size: 0.95rem; margin: 0.35rem 0 0; }
html:not(.ink) .posts { list-style: none; margin: 0; padding: 0; }
html:not(.ink) .post { margin: 0 0 1rem; }
html:not(.ink) .post blockquote { margin: 0; padding-left: 0.9rem; border-left: 3px solid var(--rule); }
html:not(.ink) .history,
html:not(.ink) .corrections-list { padding-left: 1.2rem; }
html:not(.ink) .desk-note { border-top: 1px solid var(--rule); margin-top: 1.5rem; padding-top: 0.5rem; font-style: italic; }
html:not(.ink) .pager { margin-top: 1.5rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
html:not(.ink) p,
html:not(.ink) li,
html:not(.ink) blockquote,
html:not(.ink) h1,
html:not(.ink) h3,
html:not(.ink) .story-title { overflow-wrap: anywhere; }
html:not(.ink) .site-foot { padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--rule); }
.review h2 { margin-top: 2.5rem; }
.review .edition { border-top: 3px double var(--ink); margin-top: 2rem; padding-top: 0.5rem; }
.review .earlier { border-left: 4px solid var(--disputed); padding-left: 0.75rem; }
.review .receipt, .review .stamp { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem; color: var(--quiet); }
.review .draft-story { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.review dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 0.75rem; margin: 0.5rem 0; }
.review dt { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem; color: var(--quiet); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review pre.intake-body { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--rule); padding: 0.75rem; max-height: 24rem; overflow: auto; font-size: 0.85rem; }
.review form { margin: 0.5rem 0; }
.review label { display: block; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem; color: var(--quiet); margin-top: 0.5rem; }
.review input[type="text"], .review textarea, .review select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); padding: 0.3rem 0.4rem; }
.review textarea { min-height: 4rem; }
.review button { font: inherit; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.9rem; color: var(--paper); background: var(--desk-green); border: 0; padding: 0.35rem 0.8rem; cursor: pointer; margin-right: 0.5rem; }
.review button.quiet { color: var(--ink); background: transparent; border: 1px solid var(--rule); }
.review .actions { display: flex; flex-wrap: wrap; gap: 0.25rem 0; align-items: center; }
.review .actions form { margin: 0.25rem 0; }
.review table { border-collapse: collapse; width: 100%; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem; }
.review th, .review td { text-align: left; border-bottom: 1px solid var(--rule); padding: 0.25rem 0.5rem 0.25rem 0; overflow-wrap: anywhere; }
.review .stuck, .review .health-list { margin: 0.25rem 0; }
.review .status { min-height: 1.5rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; }

/* ==========================================================================
   Part 2: the public site. Paper and ink. One desk-green accent, for action
   only. Claim colours for claim state only. No cards: the page, dividers and
   type. Scoped to .ink (a class on <html>); .js is added by boot.js.
   ========================================================================== */
html.ink {
  --paper: #f3efe4;
  --ink: #1d1d1b;
  --body: #33312d;
  --quiet: #4d4a44;
  --rule: #cfc8b6;
  --desk-green: #1f5a3c;
  --green-deep: #14402a;
  /* Text colours for a state word: each is at least 4.5:1 on the paper, and on the paper under the densest wash. */
  --confirmed: #1d1d1b;
  --reported: #34506f;
  --unverified: #7a4f0f;
  --disputed: #8f331d;
  --walked-back: #5c5850;
  /* Mark colours, for the drawn shapes. The scripts read these too. */
  --mark-confirmed: #1d1d1b;
  --mark-reported: #3d5a80;
  --mark-unverified: #8a5a12;
  --mark-disputed: #a23b22;
  --mark-walked-back: #6b675f;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  html.ink {
    --paper: #1b1a17;
    --ink: #ece6d8;
    --body: #cfc8b8;
    --quiet: #aaa496;
    --rule: #3a3731;
    --desk-green: #7fb99a;
    --green-deep: #a6d3bb;
    --confirmed: #ece6d8;
    --reported: #8fb0d8;
    --unverified: #dcab52;
    --disputed: #f09a82;
    --walked-back: #aaa59b;
    --mark-confirmed: #ece6d8;
    --mark-reported: #7fa3d0;
    --mark-unverified: #d9a54a;
    --mark-disputed: #e0735a;
    --mark-walked-back: #9a968c;
    color-scheme: dark;
  }
}
.ink body { margin: 0; color: var(--ink); font-family: var(--sans); line-height: 1.5; background: transparent; }
.ink a { color: var(--desk-green); text-underline-offset: 0.15em; }
.ink a:hover { color: var(--green-deep); }
.ink :focus-visible { outline: 3px solid var(--desk-green); outline-offset: 3px; border-radius: 2px; }
.ink .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ink .skip { position: absolute; left: 8px; top: -60px; background: var(--paper); padding: 8px 12px; z-index: 20; }
.ink .skip:focus { top: 8px; }
.ink p, .ink li, .ink h1, .ink h2, .ink h3, .ink blockquote, .ink dd { overflow-wrap: anywhere; }

/* the wash: fixed, a third of the resolution, behind everything */
.ink .wash { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.ink .column { position: relative; max-width: 1000px; margin: 0 auto; padding: 56px 24px 120px; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 40rem) { .ink .column { padding: 24px 16px 96px; gap: 28px; } }

.ink .site-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 16px; border-bottom: 2px solid var(--ink); padding: 0 0 16px; max-width: none; margin: 0; }
.ink .masthead { font-family: var(--serif); font-size: 44px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; color: var(--ink); text-decoration: none; }
.ink .masthead:hover { color: var(--ink); }
.ink .pet-home { width: 56px; height: 36px; flex: none; }
@media (max-width: 40rem) { .ink .masthead { font-size: 36px; } }

.ink .nav { position: relative; display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; margin: 0; }
.ink .nav a { text-transform: capitalize; color: var(--quiet); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; margin: 0; }
.ink .nav a:hover { color: var(--ink); }
.ink .nav a[aria-current], .ink .nav a[data-here] { color: var(--ink); font-weight: 600; border-bottom-color: var(--desk-green); }
.ink .nav.has-ink a[aria-current], .ink .nav.has-ink a[data-here] { border-bottom-color: transparent; }
.ink .nav-ink { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--desk-green); pointer-events: none; }

.ink main { max-width: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 40rem) { .ink main { gap: 28px; } }

/* headings: the page title is serif and large; the edition's own title is a quiet dateline */
.ink main h1 { margin: 0; font-family: var(--serif); font-size: 46px; line-height: 1.1; font-weight: 500; border: 0; padding: 0; }
.ink .dateline-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.ink .dateline-block p { margin: 0; }
.ink main h1.topic-title { text-transform: capitalize; }
.ink main h1.dateline { font-family: var(--sans); font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--quiet); }
@media (max-width: 40rem) { .ink main h1 { font-size: 32px; } }
.ink main h2 { margin: 0; font-size: 14px; font-weight: 700; border: 0; padding: 0; }
.ink .lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--body); }
@media (max-width: 40rem) { .ink .lede { font-size: 17px; } }
.ink .meta, .ink .unlinked { margin: 0; font-size: 14px; color: var(--quiet); }
.ink .desk-note { margin: 0; border-top: 1px solid var(--rule); padding-top: 12px; font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--body); }
.ink .section { display: flex; flex-direction: column; gap: 16px; }

/* stories: page, dividers and type */
.ink .story-list, .ink .bench-list { list-style: none; margin: 0; padding: 0; }
.ink .story { position: static; display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 32px 0; border: 0; border-top: 1px solid var(--rule); }
.ink .story-list > .story:first-child { border-top: 0; padding-top: 0; }
.ink .rail { flex: 0 0 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ink .mark-row { display: flex; align-items: flex-end; gap: 6px; }
.ink .mark { display: inline-flex; }
.ink .mark-svg { display: block; overflow: visible; }
.ink .mark-svg[data-mark="confirmed"] { color: var(--mark-confirmed); }
.ink .mark-svg[data-mark="reported"] { color: var(--mark-reported); }
.ink .mark-svg[data-mark="unverified"] { color: var(--mark-unverified); }
.ink .mark-svg[data-mark="disputed"] { color: var(--mark-disputed); }
.ink .mark-svg[data-mark="walked-back"] { color: var(--mark-walked-back); }
.ink .pet-slot { display: block; position: relative; width: 44px; height: 36px; flex: none; overflow: visible; }
.ink .state { margin: 0; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.ink .state[data-state="confirmed"] { color: var(--confirmed); }
.ink .state[data-state="reported"] { color: var(--reported); }
.ink .state[data-state="unverified"] { color: var(--unverified); }
.ink .state[data-state="disputed"] { color: var(--disputed); }
.ink .state[data-state="walked-back"] { color: var(--walked-back); }
.ink .state-word { display: inline-block; }
/* The word "State: " is read, and copied, and not drawn. Inline, so it does not break the line the way an absolutely positioned one does. */
.ink .state-label { display: inline-block; width: 1px; height: 1px; margin-right: -1px; overflow: hidden; clip-path: inset(50%); white-space: pre; vertical-align: top; }
.ink .state-line { margin: 0; }
/* The topic comes first in the markup (it names the row to a reader and to a screen reader); the state is drawn under the mark. */
.ink .rail > .mark-row { order: 0; }
.ink .rail > .state-line { order: 1; }
.ink .rail > .topic { order: 2; }
.ink .story-state a { color: var(--quiet); text-transform: capitalize; }
.ink .topic { margin: 0; font-size: 13px; color: var(--quiet); text-transform: capitalize; }
.ink .topic a { color: var(--quiet); }
.ink .body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ink .story-title { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 500; border: 0; padding: 0; }
.ink .story-list > .story:first-child .story-title { font-size: 34px; line-height: 1.15; }
.ink .story-title a { color: var(--ink); text-decoration: none; }
.ink .story-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.ink .story[data-state="walked-back"] .story-title a { color: var(--quiet); text-decoration: line-through; text-decoration-thickness: 1px; }
.ink .dek { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.ink .said-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.ink .said-spread > div:only-child { grid-column: 1 / -1; }
@media (max-width: 30rem) { .ink .said-spread { grid-template-columns: minmax(0, 1fr); } }
.ink .said-spread dt { display: inline; font-weight: 700; }
.ink .said-spread dd { display: inline; margin: 0; }
.ink .primary, .ink .missing { margin: 0; font-size: 14px; color: var(--quiet); }
@media (max-width: 40rem) {
  .ink .story-title, .ink .story-list > .story:first-child .story-title { font-size: 24px; }
  .ink .story { padding: 24px 0; }
}

.ink .bench { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.ink .bench-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.ink .bench-list .story { flex-wrap: nowrap; gap: 12px; padding: 0; border: 0; align-items: flex-start; }
.ink .bench-list .rail { flex: 0 0 auto; }
.ink .bench-list .pet-slot { width: 0; }
.ink .bench-list .body { flex: 1 1 0; gap: 6px; }
.ink .bench-list .story-title { font-size: 19px; line-height: 1.25; }
.ink .bench-list .dek { font-size: 15px; line-height: 1.45; }

.ink .pager { margin: 0; font-size: 15px; }
.ink .site-foot { max-width: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--rule); font-size: 13px; color: var(--quiet); }
.ink .site-foot p { margin: 0; }

/* plain pages: method, corrections, not found */
.ink .prose { display: flex; flex-direction: column; gap: 14px; max-width: 42rem; }
.ink .prose p, .ink .prose ul { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.ink .prose h2 { margin: 18px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); }
.ink .prose ul { padding-left: 1.2rem; }
.ink .corrections-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.55; color: var(--body); max-width: 46rem; }
.ink .corrections-list li { padding-top: 18px; border-top: 1px solid var(--rule); }
.ink .corrections-list li:first-child { border-top: 0; padding-top: 0; }

/* the pet: an SVG sprite positioned inside the column, and the static pose in a slot */
.ink .pet { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 5; overflow: visible; }
.ink .pose { display: block; }
.ink .pose[hidden] { display: none; }
.ink .pose-svg { display: block; overflow: visible; }
.ink .pose-svg .i { fill: var(--ink); }
.ink .pose-svg .p { fill: var(--paper); }
.ink .pose-svg .a { fill: var(--unverified); }
.ink .pose-svg .s { fill: var(--rule); }
.ink .pose-svg .w { fill: var(--walked-back); }

/* ---- story page */
.ink .story-head { display: flex; flex-direction: column; gap: 16px; }
.ink .story-state { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.ink .story-state .quiet { color: var(--quiet); }
.ink .story-state .mark-svg { width: 44px; height: 44px; }
.ink .story-page { display: flex; flex-direction: column; gap: 36px; }
/* The slot is as wide as the pose for the state (12, 17 or 26 pixels of four), so the word beside it is never covered. */
.ink .story-state .pet-slot { width: 48px; }
.ink .story-page[data-state="unverified"] .story-state .pet-slot, .ink .story-page[data-state="walked-back"] .story-state .pet-slot { width: 68px; }
.ink .story-page[data-state="disputed"] .story-state .pet-slot { width: 104px; }
.ink .sect { display: flex; flex-direction: column; gap: 14px; }
.ink .sect p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.ink .source-list, .ink .posts, .ink .history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ink .source-list li, .ink .history li { font-size: 16px; }
.ink .post { margin: 0; }
.ink .post blockquote { margin: 0; padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--ink); font-size: 16px; line-height: 1.5; color: var(--body); }
.ink .post blockquote p { margin: 0; }
.ink .byline { margin: 6px 0 0; padding-left: 16px; font-size: 14px; color: var(--quiet); }
.ink .history .state { font-size: 14px; }

/* ---- the "In plain terms" paragraph on a story page */
.ink .plain { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--desk-green); padding-left: 20px; margin: 8px 0; }
.ink .plain h2 { margin: 0; font-size: 14px; font-weight: 700; }
.ink .plain p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; }
@media (max-width: 40rem) { .ink .plain p { font-size: 19px; } }

/* ---- explainers */
.ink .explainer { margin: 0; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--rule); padding: 28px 0 8px; }
.ink .ex-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.ink .ex-title { font-size: 14px; font-weight: 700; }
.ink .ex-hint { font-size: 13px; color: var(--quiet); }
.ink .ex-stage { display: none; }
.ink.js .ex-stage { display: block; position: relative; }
.ink .explainer[data-explainer="stack"] .ex-stage { width: 100%; max-width: 380px; aspect-ratio: 320 / 380; touch-action: pan-y; }
.ink .explainer[data-explainer="stack"] .ex-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.ink .ex-canvas.is-grabbing { cursor: grabbing; }
.ink .explainer[data-explainer="stack"] { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); column-gap: 32px; row-gap: 16px; align-items: start; }
.ink .explainer[data-explainer="stack"] .ex-caption { grid-column: 1 / -1; }
.ink .explainer[data-explainer="stack"] .ex-stage { grid-column: 1; grid-row: 2 / span 2; }
.ink .explainer[data-explainer="stack"] .ex-controls { grid-column: 2; grid-row: 2; }
.ink .explainer[data-explainer="stack"] .ex-list { grid-column: 2; grid-row: 3; }
.ink .explainer[data-explainer="stack"]:not(.is-live) { display: flex; }
@media (max-width: 52rem) { .ink .explainer[data-explainer="stack"] { display: flex; } }
.ink .ex-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ink .ex-controls:empty { display: none; }
.ink .ex-radios { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; min-width: 0; }
.ink .ex-radios legend { padding: 0; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ink .ex-radio { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }
.ink .ex-radio input, .ink .ex-controls input[type="range"] { accent-color: var(--desk-green); }
.ink .ex-controls input[type="range"] { width: 100%; max-width: 520px; min-height: 28px; }
.ink .ex-lab { font-size: 13px; font-weight: 700; }
.ink .ex-readout { margin: 0; font-size: 15px; line-height: 1.45; color: var(--body); min-height: 3em; }
.ink .ex-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.45; color: var(--body); }
.ink .ex-list li { padding: 0 16px; }
.ink .ex-list li.is-selected { border: 2px solid var(--desk-green); padding: 10px 14px; }
.ink .ex-list li[data-off] { color: var(--quiet); }
.ink .ex-note { margin: 0; font-size: 14px; color: var(--quiet); }
.ink .ex-btn { font: inherit; font-weight: 600; min-height: 36px; padding: 6px 14px; cursor: pointer; border: 1px solid var(--desk-green); background: var(--desk-green); color: var(--paper); }
.ink .ex-btn:hover { background: var(--green-deep); }
.ink .ex-btn[aria-pressed="true"] { background: var(--paper); color: var(--desk-green); }
.ink .explainer.is-fallback { display: flex; }

.ink .explainer[data-explainer="timeline"] .ex-stage { aspect-ratio: 600 / 84; max-width: 640px; }
.ink .explainer[data-explainer="compare"] .ex-stage { min-height: 200px; }
.ink .explainer[data-explainer="scale"] .ex-stage { min-height: 160px; }

/* timeline */
.ink .tl { display: block; width: 100%; max-width: 640px; height: auto; touch-action: pan-y; cursor: ew-resize; }
.ink .tl-base { stroke: var(--rule); stroke-width: 2; }
.ink .tl-prog { stroke: var(--ink); stroke-width: 2; }
.ink .tl-head line { stroke: var(--desk-green); stroke-width: 2; }
.ink .tl-head path { fill: var(--desk-green); }
.ink .tl-dot .halo, .ink .tl-dot .ring, .ink .tl-dot .strike { display: none; fill: none; }
.ink .tl-dot .core { fill: var(--mark-confirmed); }
.ink .tl-dot[data-state="reported"] .core { fill: var(--mark-reported); fill-opacity: 0.8; }
.ink .tl-dot[data-state="reported"] .ring { display: block; stroke: var(--mark-reported); stroke-width: 1.5; r: 10px; }
.ink .tl-dot[data-state="unverified"] .core { fill: var(--mark-unverified); r: 6px; }
.ink .tl-dot[data-state="unverified"] .halo { display: block; fill: var(--mark-unverified); fill-opacity: 0.2; }
.ink .tl-dot[data-state="disputed"] .core { fill: var(--mark-disputed); fill-opacity: 0.85; }
.ink .tl-dot[data-state="disputed"] .ring { display: block; stroke: var(--mark-disputed); stroke-width: 2; }
.ink .tl-dot[data-state="walked-back"] .core { fill: none; stroke: var(--mark-walked-back); stroke-width: 1.5; stroke-dasharray: 3 3; r: 9px; }
.ink .tl-dot[data-state="walked-back"] .strike { display: block; stroke: var(--mark-walked-back); stroke-width: 2; }
.ink .tl-dot.is-on .core { stroke: var(--ink); stroke-width: 0; }
.ink .tl-readout { display: flex; align-items: center; gap: 14px; min-height: 64px; font-size: 15px; }
.ink .tl-readout p { margin: 0; }
.ink .tl-readout .ex-what { color: var(--body); }
.ink .tl-readout .state-word[data-state="reported"] { color: var(--reported); }
.ink .tl-readout .state-word[data-state="unverified"] { color: var(--unverified); }
.ink .tl-readout .state-word[data-state="disputed"] { color: var(--disputed); }
.ink .tl-readout .state-word[data-state="walked-back"] { color: var(--walked-back); }

/* compare */
.ink .cmp { --wipe: 50; position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; display: grid; gap: 14px; padding: 4px 0; }
.ink .cmp-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.ink .cmp-row { display: grid; gap: 2px; }
.ink .cmp-label { font-size: 13px; color: var(--quiet); }
.ink .cmp-cell { display: flex; overflow: hidden; font-size: 18px; line-height: 1.4; font-family: var(--serif); }
.ink .cmp-cell > span { flex: 0 0 100%; min-width: 0; transform: translateX(calc(var(--wipe) * -1%)); }
.ink .cmp-cell .spread { color: var(--disputed); }
.ink .cmp-head span { opacity: 0.55; }
.ink .cmp.at-said .cmp-head span:first-child, .ink .cmp.at-spread .cmp-head span:last-child { opacity: 1; }
.ink .cmp-track { height: 2px; background: var(--rule); position: relative; }
.ink .cmp-track::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--wipe) * 1%); background: var(--desk-green); }

/* scale */
.ink .sc { display: grid; gap: 10px; cursor: default; }
.ink .sc-row { display: grid; grid-template-columns: minmax(70px, 140px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.ink .sc-track { height: 14px; border-left: 1px solid var(--ink); }
.ink .sc-bar { display: block; height: 100%; width: calc(var(--w, 0) * 1%); background: var(--ink); }
.ink .sc-value { color: var(--quiet); font-variant-numeric: tabular-nums; }

/* The motion switch (src/client/site.js): a small plain button in the header, shown only when the script runs. */
.motion-toggle { font: inherit; font-size: 0.85rem; background: none; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; padding: 2px 8px; cursor: pointer; }
.motion-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper, #fff); }
.motion-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
