/* saidtoo — paper and ink. The only colour on the page belongs to the data. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-ext-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --surface: #faf7f0;
  --ink: #16140f;
  --ink-2: #4f4a40;
  --ink-3: #736d61;   /* was #857e70 (3.5:1 on the paper); darkened only as far as 4.5:1 on the paper and the surface */
  --line: rgba(22, 20, 15, .13);
  --line-2: rgba(22, 20, 15, .06);
  --bar: #25221b;
  --bar-soft: #b9b2a2;
  --blank: #e7e1d3;
  --focus: #1f5fbf;
  /* cold -> neutral -> warm: the thermometer */
  --c3: #1f5fbf; --c2: #5e93e0; --c1: #a9c4ec; --m0: #d6d0c2; --w1: #f1b998; --w2: #ea8455; --w3: #d9541f;
  /* kinds of sentence: fixed order, checked for colour-blind separation */
  --k1: #2a78d6; --k2: #eb6834; --k3: #1baf7a; --k4: #eda100; --k5: #e87ba4; --k6: #008300;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Noto Serif", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Songti SC", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans CJK JP", "Hiragino Sans", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(20px, 5vw, 64px);
  --wide: 1120px;
  /* the parts of the screen a notch or the home bar covers (0 where there are none). The page is edge to edge (viewport-fit=cover); everything that is read or tapped keeps inside these. */
  --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #121110;
    --surface: #1a1917;
    --ink: #efe9dc;
    --ink-2: #c2bbab;
    --ink-3: #8f8879;
    --line: rgba(239, 233, 220, .16);
    --line-2: rgba(239, 233, 220, .07);
    --bar: #e9e3d6;
    --bar-soft: #5d584d;
    --blank: #24221f;
    --focus: #7fb1f5;
    --c3: #5a9bf0; --c2: #3472c4; --c1: #27508a; --m0: #3d3a34; --w1: #86492c; --w2: #c35f2f; --w3: #ee7a44;
    --k1: #3987e5; --k2: #d95926; --k3: #199e70; --k4: #c98500; --k5: #d55181; --k6: #0ca30c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--sans); font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column;
  padding-bottom: var(--sab);
}
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h2 { font: 500 clamp(26px, 3.2vw, 38px)/1.12 var(--serif); letter-spacing: -.015em; margin: 0; }
p { margin: 0; }

/* ---------- top ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(22px + var(--sat)) calc(var(--pad) + var(--sar)) 22px calc(var(--pad) + var(--sal)); }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: italic 500 22px/1 var(--serif); letter-spacing: -.01em; }
.mark-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-meta { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); font-size: 14px;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
@media (hover: hover) { .link:hover { color: var(--ink); text-decoration-color: currentColor; } }

.btn { appearance: none; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer;
  font: 550 16px/1 var(--sans); letter-spacing: -.005em; padding: 15px 28px; border-radius: 999px;
  transition: transform .18s var(--ease), opacity .2s, background .2s, color .2s; }
@media (hover: hover) { .btn:hover:not(:disabled) { transform: translateY(-1px); } }
.btn:active:not(:disabled) { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .28; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
@media (hover: hover) { .btn.ghost:hover { border-color: var(--ink); } }
.btn.small { padding: 10px 18px; font-size: 14px; }

/* ---------- views ---------- */
.view { flex: 1; width: 100%; margin: 0 auto; padding: 0 calc(var(--pad) + var(--sar)) 0 calc(var(--pad) + var(--sal)); animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- 1. the box ---------- */
.write { max-width: 860px; display: flex; flex-direction: column; justify-content: center; padding-bottom: 12vh; }
.say textarea {
  display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink);
  font: 400 clamp(30px, 5.2vw, 58px)/1.14 var(--serif); letter-spacing: -.022em; padding: 0 0 18px; margin: 0;
  caret-color: var(--w3); overflow: hidden; min-height: 1.14em;
}
.say textarea::placeholder { color: var(--ink-3); opacity: .55; font-style: italic; }
.say-rule { height: 1px; background: var(--line); position: relative; }
.say-rule::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease); }
.say:focus-within .say-rule::after { transform: scaleX(1); }
.say-row { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 22px; min-height: 52px; }
.say-count { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; margin-right: auto; }
.say-error { color: var(--ink-2); font-size: 14px; }
.promises { list-style: none; padding: 0; margin: clamp(40px, 9vh, 96px) 0 0; display: grid; gap: 8px; color: var(--ink-3); font-size: 14px; max-width: 520px; }
.promises li { padding-left: 18px; position: relative; }
.promises li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink-3); }
.already { margin-top: 26px; }
.turnstile:empty { display: none; }
.turnstile { margin-top: 16px; }

/* ---------- 2. the reveal ---------- */
.reveal { max-width: 860px; display: flex; flex-direction: column; justify-content: center; padding-bottom: 10vh; }
.said { margin: 16px 0 0; font: 400 clamp(26px, 4vw, 44px)/1.18 var(--serif); letter-spacing: -.018em; overflow-wrap: anywhere; }
.verdict { margin-top: clamp(30px, 6vh, 60px); }
.big { font: 600 clamp(84px, 17vw, 184px)/.92 var(--sans); letter-spacing: -.055em; display: block; margin-left: -.04em; }
.verdict-line { font: 400 clamp(20px, 2.6vw, 28px)/1.3 var(--serif); margin-top: clamp(26px, 4vw, 44px); color: var(--ink); max-width: 30ch; }
.verdict-line.solo { font-style: italic; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.14; max-width: 20ch; letter-spacing: -.015em; }
.verdict-sub { color: var(--ink-2); font-size: 15px; margin-top: 12px; max-width: 56ch; }
.near-box { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 620px; }
.near-line { font: 400 19px/1.4 var(--serif); }
.near-line b { font: 600 17px var(--sans); letter-spacing: -.01em; }
.near-words { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.near-words li { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; font: 400 18px/1.3 var(--serif); }
.near-words .n { font: 500 13px var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.note { color: var(--ink-3); font-size: 14px; margin-top: 18px; max-width: 60ch; }
.note.help { color: var(--ink-2); border-left: 2px solid var(--ink); padding-left: 14px; }
.note a { color: inherit; text-underline-offset: 3px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(30px, 6vh, 56px); }

/* ---------- 3. the world ---------- */
.world { max-width: var(--wide); padding-bottom: 80px; }
.hero { padding: clamp(18px, 5vh, 56px) 0 clamp(36px, 7vh, 72px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: end; margin-top: 18px; }
.hero-num { font: 600 clamp(110px, 19vw, 232px)/.8 var(--sans); letter-spacing: -.06em; display: flex; align-items: baseline; gap: 14px; margin-left: -.04em; }
.hero-of { font: 500 clamp(15px, 1.5vw, 19px)/1 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.hero-cap { font: 400 clamp(19px, 2.1vw, 25px)/1.32 var(--serif); margin-top: 26px; max-width: 26ch; }
.hero-cap b { font-weight: 600; }
.hero-meta { color: var(--ink-3); font-size: 13px; margin-top: 30px; font-variant-numeric: tabular-nums; }
.hero-side { display: grid; gap: 34px; padding-bottom: 6px; }

.thermo { position: relative; padding-top: 34px; }
.thermo-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; height: 16px; }
.thermo-track i { display: block; }
.thermo-track i:first-child { border-radius: 8px 0 0 8px; }
.thermo-track i:last-child { border-radius: 0 8px 8px 0; }
.s-c3 { background: var(--c3); fill: var(--c3); } .s-c2 { background: var(--c2); fill: var(--c2); } .s-c1 { background: var(--c1); fill: var(--c1); }
.s-m0 { background: var(--m0); fill: var(--m0); }
.s-w1 { background: var(--w1); fill: var(--w1); } .s-w2 { background: var(--w2); fill: var(--w2); } .s-w3 { background: var(--w3); fill: var(--w3); }
.thermo-mark { position: absolute; top: 0; bottom: 20px; left: var(--at, 50%); width: 0; transition: left 1.1s var(--ease); }
.thermo-mark::before { content: ""; position: absolute; left: -1.5px; top: 26px; bottom: -6px; width: 3px; background: var(--ink); border-radius: 2px;
  box-shadow: 0 0 0 2px var(--paper); }
.thermo-mark span { position: absolute; left: 0; top: 0; transform: translateX(-50%); font: 600 14px/1 var(--sans); white-space: nowrap; }
.thermo-ends { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.trend-head { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; margin-bottom: 6px; }
svg { display: block; overflow: visible; }
.axis { stroke: var(--line); stroke-width: 1; }
.line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.cross { stroke: var(--ink-3); stroke-width: 1; }
.svg-label { font: 500 12px var(--sans); fill: var(--ink-3); }
.spark { width: 100%; }
.svg-value { font: 600 12px var(--sans); fill: var(--ink); }

.block { padding: clamp(44px, 8vh, 88px) 0 0; }
.block-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(16px, 6vw, 88px); align-items: end; }
.block-sub { color: var(--ink-2); font-size: 15px; max-width: 54ch; }

/* filter chips: one row, above the list */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 15px; font-size: 14px; cursor: pointer; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s; }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { border-color: var(--ink); color: var(--ink); } }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--ink-3); font-size: 13px; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 18px; height: 8px; border-radius: 0 3px 3px 0; }
.sw.exact { background: var(--bar); } .sw.near { background: var(--bar-soft); }

/* stacks */
.stacks { margin-top: 10px; }
.stack { border-bottom: 1px solid var(--line); }
.stack-head { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; gap: 6px 18px; align-items: baseline; padding: 22px 0 8px; cursor: pointer; border-radius: 6px; }
.stack-words { font: 400 clamp(22px, 2.7vw, 31px)/1.2 var(--serif); letter-spacing: -.014em; overflow-wrap: anywhere; }
.stack-total { font: 600 clamp(18px, 2vw, 23px)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stack-chev { width: 10px; height: 10px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); justify-self: center; align-self: center;
  transition: transform .3s var(--ease); margin-top: -4px; }
.stack[open] .stack-chev, .stack.open .stack-chev { transform: rotate(225deg); margin-top: 4px; }
.stack-bar { display: flex; gap: 2px; height: 10px; margin: 6px 0 0; }
.stack-bar i { display: block; height: 100%; min-width: 2px; transition: width 1s var(--ease); }
.stack-bar .exact { background: var(--bar); }
.stack-bar .near { background: var(--bar-soft); }
.stack-bar i:last-child { border-radius: 0 4px 4px 0; }
.stack-sub { color: var(--ink-3); font-size: 13px; padding: 10px 0 20px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.stack-body { padding: 4px 0 30px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 5vw, 72px); animation: rise .45s var(--ease) both; }
.words { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.words li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; }
.words .w { font: 400 19px/1.3 var(--serif); overflow-wrap: anywhere; }
.words .n { font: 500 13px var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.words .mini { grid-column: 1 / -1; height: 4px; background: var(--bar); border-radius: 0 2px 2px 0; min-width: 2px; }
.words .mini.near { background: var(--bar-soft); }
.words .own { font: italic 400 17px/1.3 var(--serif); color: var(--ink-2); }
.side h3 { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.side > * + h3 { margin-top: 26px; }
.where { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.where li { font-size: 14px; color: var(--ink-2); }
.where li + li::before { content: "·"; margin-right: 8px; color: var(--ink-3); }
.where .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.opp { font: 400 17px/1.35 var(--serif); }
.opp .n { font: 500 13px var(--sans); color: var(--ink-3); }
.helpline { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--ink); padding-left: 12px; margin-top: 22px; }
.helpline a { color: inherit; }

/* covered sentences: tap to show */
.veil { border: 1px dashed var(--line); background: var(--line-2); border-radius: 6px; padding: 4px 12px; cursor: pointer; color: var(--ink-3);
  font: 500 13px/1.6 var(--sans); letter-spacing: 0; vertical-align: middle; }
@media (hover: hover) { .veil:hover { color: var(--ink); border-color: var(--ink-3); } }
.veil b { color: var(--ink-2); font-weight: 600; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }

.more { margin-top: 22px; }

/* map */
.map-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 64px); margin-top: 34px; align-items: start; }
.map-fig, .donut-fig { margin: 0; }
.map svg { width: 100%; height: auto; }
.land { fill: var(--blank); stroke: var(--paper); stroke-width: .6; transition: opacity .2s; }
.land.has { cursor: pointer; }
.land.s-c3 { fill: var(--c3); } .land.s-c2 { fill: var(--c2); } .land.s-c1 { fill: var(--c1); } .land.s-m0 { fill: var(--m0); }
.land.s-w1 { fill: var(--w1); } .land.s-w2 { fill: var(--w2); } .land.s-w3 { fill: var(--w3); }
@media (hover: hover) { .map:hover .land.has { opacity: .55; } }
.map .land.hot { opacity: 1; stroke: var(--ink); stroke-width: 1; }
@media (hover: hover) { .map .land.has:hover { opacity: 1; stroke: var(--ink); stroke-width: 1; } }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; color: var(--ink-3); font-size: 12px; }
.scale { display: inline-grid; grid-template-columns: repeat(7, 26px); gap: 2px; }
.scale i { height: 8px; display: block; }
.scale i:first-child { border-radius: 4px 0 0 4px; } .scale i:last-child { border-radius: 0 4px 4px 0; }
.scale-wrap { display: inline-flex; align-items: center; gap: 10px; }
.blank-key { display: inline-flex; align-items: center; gap: 8px; }
.blank-key i { width: 18px; height: 8px; border-radius: 4px; background: var(--blank); display: block; }

.rank-table { width: 100%; border-collapse: collapse; }
.rank-table td { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: middle; }
.rank-table tr { cursor: pointer; }
.rank-table tr.hot .r-name { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .rank-table tr:hover .r-name { text-decoration: underline; text-underline-offset: 3px; } }
.r-name { color: var(--ink); }
.r-name button { all: unset; cursor: pointer; }
.r-name button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }   /* `all: unset` above also removed the focus ring */
.r-meter { width: 38%; padding: 0 14px !important; }
.meter { position: relative; height: 8px; border-radius: 4px; background: var(--line-2); }
.meter i { position: absolute; top: -3px; width: 4px; height: 14px; border-radius: 2px; margin-left: -2px; box-shadow: 0 0 0 2px var(--paper); }
.r-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; width: 34px; }
.r-n { text-align: right; color: var(--ink-3); font-size: 12px !important; font-variant-numeric: tabular-nums; width: 64px; }

/* kinds */
.kinds-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 88px); margin-top: 34px; align-items: center; }
.donut-fig { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.donut svg { width: 100%; height: auto; }
.arc { fill: none; stroke-width: 22; transition: opacity .2s, stroke-width .2s; cursor: default; }
.donut.dim .arc { opacity: .3; } .donut.dim .arc.hot { opacity: 1; stroke-width: 26; }
.donut-mid { font: 600 22px var(--sans); fill: var(--ink); letter-spacing: -.02em; }
.donut-cap { font: 500 12px var(--sans); fill: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.k1 { stroke: var(--k1); background: var(--k1); } .k2 { stroke: var(--k2); background: var(--k2); } .k3 { stroke: var(--k3); background: var(--k3); }
.k4 { stroke: var(--k4); background: var(--k4); } .k5 { stroke: var(--k5); background: var(--k5); } .k6 { stroke: var(--k6); background: var(--k6); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.donut-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; cursor: default; }
.donut-legend i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.donut-legend .pct { font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-legend .n { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.figures { margin: 0; display: grid; gap: 26px; }
.figures div { display: grid; gap: 6px; padding-left: 20px; border-left: 1px solid var(--line); }
.figures dt { order: 2; color: var(--ink-2); font-size: 15px; max-width: 30ch; }
.figures dd { margin: 0; font: 600 clamp(34px, 4.4vw, 52px)/1 var(--sans); letter-spacing: -.04em; }

/* shared */
.shared { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 6vw, 88px); }
.shared li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.shared .w { font: 400 24px/1.2 var(--serif); letter-spacing: -.012em; }
.shared .ccs { color: var(--ink-3); font-size: 13px; margin-top: 8px; }

.foot { margin-top: clamp(56px, 10vh, 110px); padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; display: grid; gap: 10px; max-width: 76ch; }

/* country sheet */
.scrim { position: fixed; inset: 0; background: rgba(10, 9, 7, .34); animation: fade .3s both; z-index: 20; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); z-index: 21; overflow-y: auto;
  padding: calc(56px + var(--sat)) calc(clamp(22px, 4vw, 44px) + var(--sar)) calc(60px + var(--sab)) calc(clamp(22px, 4vw, 44px) + var(--sal));
  box-shadow: -30px 0 80px rgba(0, 0, 0, .14); animation: slide .5s var(--ease) both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font: 300 28px/1 var(--sans); color: var(--ink-2); }
@media (hover: hover) { .sheet-close:hover { background: var(--line-2); color: var(--ink); } }
.sheet > .sheet-close { top: calc(14px + var(--sat)); right: calc(16px + var(--sar)); }
.sheet-name { margin-top: 10px; font-size: clamp(32px, 5vw, 44px); }
.sheet-read { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; }
.sheet-read .num { font: 600 92px/.85 var(--sans); letter-spacing: -.055em; }
.sheet-read .of { color: var(--ink-3); font-size: 15px; }
.sheet-cap { color: var(--ink-2); font-size: 15px; margin-top: 14px; max-width: 40ch; }
.sheet h3 { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 38px 0 14px; }
.sheet .thermo { margin-top: 26px; }
.sheet .thermo-mark::before { box-shadow: 0 0 0 2px var(--surface); }
.sheet .dot { stroke: var(--surface); }
.times { color: var(--ink-3); font: 500 13px var(--sans); white-space: nowrap; }
.empty { color: var(--ink-3); font-size: 15px; }

/* how it works */
.how { border: 0; padding: 48px clamp(22px, 5vw, 52px) 44px; width: min(640px, calc(100vw - 24px - var(--sal) - var(--sar))); max-height: calc(100dvh - 24px - var(--sat) - var(--sab)); border-radius: 18px;
  inset: calc(12px + var(--sat)) calc(12px + var(--sar)) calc(12px + var(--sab)) calc(12px + var(--sal)); margin: auto; background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .3); }
.how::backdrop { background: rgba(10, 9, 7, .4); }
.how h2 { margin-bottom: 22px; }
.how-list { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 16px; }
.how-list li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; gap: 8px; color: var(--ink-2); font-size: 15px; }
.how-list li::before { content: counter(how); font: 600 13px/1.7 var(--sans); color: var(--ink-3); }
.how-list b { color: var(--ink); font-weight: 600; }

/* hover readout */
.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--ink); color: var(--paper); padding: 9px 12px; border-radius: 8px; font-size: 13px; line-height: 1.35;
  max-width: 260px; box-shadow: 0 8px 30px rgba(0, 0, 0, .22); transform: translate(-50%, calc(-100% - 14px)); }
.tip b { font-weight: 600; font-size: 15px; display: block; }
.tip span { opacity: .72; }

.demo { position: fixed; left: 50%; bottom: calc(14px + var(--sab)); transform: translateX(-50%); z-index: 15; background: var(--ink); color: var(--paper); font-size: 12px; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2); white-space: nowrap; }
.noscript { padding: 40px var(--pad); }

@media (max-width: 860px) {
  .hero-grid, .block-head, .map-grid, .kinds-grid, .stack-body { grid-template-columns: minmax(0, 1fr); }
  .block-head { gap: 12px; }
  .shared { grid-template-columns: minmax(0, 1fr); }
  .top-meta { display: none; }
  .top-nav { gap: 14px; }
}
@media (max-width: 520px) {
  .donut-fig { grid-template-columns: minmax(0, 1fr); }
  .donut { max-width: 200px; }
  .r-n { display: none; }
  .btn { padding: 14px 22px; }
  .demo { font-size: 12px; }
}
/* A finger needs 44 x 44. Only where the main pointer is a finger (a mouse keeps the look it had); the area grows, the letters do not. */
@media (pointer: coarse) {
  .top { padding-top: calc(11px + var(--sat)); padding-bottom: 11px; }
  .link { min-height: 44px; min-width: 44px; padding: 0 6px; }
  .mark { min-height: 44px; min-width: 44px; }
  .say textarea { min-height: 44px; }
  .link.more { margin-top: 8px; }
  .btn.small, .chip { min-height: 44px; }
  .sheet-close { width: 44px; height: 44px; }
  .rank-table td { padding: 11px 0; }
  .veil { min-height: 44px; display: inline-flex; align-items: center; }
  .note a, .helpline a { display: inline-block; padding: 13px 4px; margin: -13px 0; }
  .langs { gap: 0 4px; margin-top: 6px; }
  .lang { display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
}
/* A short screen (a phone on its side, with the keyboard up): the box and Send must fit together in what the keyboard leaves. */
@media (max-height: 480px) {
  .top { padding-top: calc(6px + var(--sat)); padding-bottom: 6px; }
  .write { justify-content: flex-start; padding-bottom: 24px; }
  .say textarea { font-size: clamp(22px, 7.5vh, 30px); padding-bottom: 8px; }
  .say-row { margin-top: 8px; min-height: 0; }
  .promises { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- right to left (Arabic) ----
   The same page, mirrored where words run. Charts, the map, the thermometer and the bars keep their own left-to-right direction: cold is on the left, warm on the right, in every language. */
[dir="rtl"] .promises li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .promises li::before { left: auto; right: 0; }
[dir="rtl"] .say-count { margin-right: 0; margin-left: auto; }
[dir="rtl"] .say-rule::after { transform-origin: right; }
[dir="rtl"] .big, [dir="rtl"] .hero-num { margin-left: 0; margin-right: -.04em; }
[dir="rtl"] .note.help, [dir="rtl"] .helpline { border-left: 0; border-right: 2px solid var(--ink); padding-left: 0; padding-right: 14px; }
[dir="rtl"] .where li + li::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .veil b { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .figures div { padding-left: 0; padding-right: 20px; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .r-val, [dir="rtl"] .r-n, [dir="rtl"] .donut-legend .n { text-align: left; }
[dir="rtl"] .words .mini { border-radius: 2px 0 0 2px; }
[dir="rtl"] .sheet { right: auto; left: 0; box-shadow: 30px 0 80px rgba(0, 0, 0, .14); animation-name: slide-rtl; }
[dir="rtl"] .sheet-close { right: auto; left: 16px; }
[dir="rtl"] .sheet > .sheet-close { right: auto; left: calc(16px + var(--sal)); }
@keyframes slide-rtl { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
[dir="rtl"] .thermo, [dir="rtl"] .trend, [dir="rtl"] .map, [dir="rtl"] .meter, [dir="rtl"] .donut, [dir="rtl"] .stack-bar, [dir="rtl"] .scale, [dir="rtl"] .scale-wrap { direction: ltr; }

/* scripts that have no italic: do not slant them artificially */
:lang(ar) .say textarea::placeholder, :lang(ja) .say textarea::placeholder, :lang(ko) .say textarea::placeholder, :lang(hi) .say textarea::placeholder,
:lang(ar) .verdict-line.solo, :lang(ja) .verdict-line.solo, :lang(ko) .verdict-line.solo, :lang(hi) .verdict-line.solo,
:lang(ar) .words .own, :lang(ja) .words .own, :lang(ko) .words .own, :lang(hi) .words .own { font-style: normal; }

/* people's sentences keep their own reading order inside (dir=auto) but sit on the page's start side, so a list of them has one edge */
html[dir="ltr"] [dir="auto"]:not(textarea) { text-align: left; }
html[dir="rtl"] [dir="auto"]:not(textarea) { text-align: right; }

/* the language row: quiet, each name in its own language */
.langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; }
.lang { font-size: 13px; color: var(--ink-3); }
.lang[aria-current="true"] { color: var(--ink); font-weight: 600; }
