/* ============================================================
   Kairos — When Remembering Can Be Faked
   Design system unico. 16 luglio 2026.

   Impianto: documento di ricerca, non sito promozionale.
   Tipografia serif per il testo, sans per la struttura,
   mono per i numeri (i numeri sono il punto di questo sito).
   ============================================================ */

:root {
  --paper:      #fbfaf7;
  --paper-sunk: #f4f2ec;
  --ink:        #1b1a17;
  --ink-soft:   #55524a;
  --ink-faint:  #86816f;
  --rule:       #e2ded3;
  --rule-firm:  #cbc5b6;

  --gold:       #8a6a20;   /* accento Kairos, portato a contrasto AA su carta */
  --gold-wash:  rgba(168, 128, 44, 0.09);
  --alert:      #8f3216;   /* correzione / ritrattazione */
  --alert-wash: rgba(143, 50, 22, 0.06);
  --live:       #1f6f4a;

  --serif: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 34rem;   /* larghezza di lettura */
  --wide:    46rem;   /* tabelle, figure */
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #131211;
    --paper-sunk: #1a1917;
    --ink:        #e9e5dc;
    --ink-soft:   #a8a294;
    --ink-faint:  #7c7768;
    --rule:       #2b2925;
    --rule-firm:  #3d3a34;
    --gold:       #c9a24e;
    --gold-wash:  rgba(201, 162, 78, 0.10);
    --alert:      #d97757;
    --alert-wash: rgba(217, 119, 87, 0.08);
    --live:       #4ba97a;
  }
}
:root[data-theme="dark"] {
  --paper: #131211; --paper-sunk: #1a1917;
  --ink: #e9e5dc; --ink-soft: #a8a294; --ink-faint: #7c7768;
  --rule: #2b2925; --rule-firm: #3d3a34;
  --gold: #c9a24e; --gold-wash: rgba(201, 162, 78, 0.10);
  --alert: #d97757; --alert-wash: rgba(217, 119, 87, 0.08);
  --live: #4ba97a;
}
:root[data-theme="light"] {
  --paper: #fbfaf7; --paper-sunk: #f4f2ec;
  --ink: #1b1a17; --ink-soft: #55524a; --ink-faint: #86816f;
  --rule: #e2ded3; --rule-firm: #cbc5b6;
  --gold: #8a6a20; --gold-wash: rgba(168, 128, 44, 0.09);
  --alert: #8f3216; --alert-wash: rgba(143, 50, 22, 0.06);
  --live: #1f6f4a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- struttura ---------- */

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.col  { max-width: var(--measure); }

main { padding-bottom: 6rem; }

section { margin: 3.5rem 0; }
section + section { margin-top: 4.5rem; }

/* ---------- testata ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
  margin-bottom: 3rem;
}
.masthead__inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--sans);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.55rem;
  border-bottom: none;
}
.wordmark span { color: var(--gold); }
/* Il SIMBOLO, non il wordmark esteso: quello porta sotto la tagline
   "MEMORY. RELATIONSHIP. CONTINUITY.", cioe' la tesi ritirata il 14/07.
   Un claim dentro un'immagine e' un claim che nessuna correzione raggiunge. */
.wordmark__mark {
  /* 34px: il file e' ritagliato sul disegno (l'originale aveva 1/3 di aria
     intorno, quindi a 26px la K reale ne faceva 19 e spariva). Servito a 2x. */
  height: 34px; width: auto; display: block;
  margin-top: -2px;   /* allineamento ottico col maiuscoletto */
  transition: filter 0.15s;
}
.wordmark:hover .wordmark__mark {
  filter: drop-shadow(0 0 6px rgba(168, 128, 44, 0.45));
}

/* ---------- navigazione ---------- */

.nav {
  font-family: var(--sans);
  font-size: 0.8rem;
  display: flex; flex-wrap: wrap; gap: 0 1.15rem;
  line-height: 2.1;
}
.nav a {
  color: var(--ink-faint); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule-firm); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav__lang { color: var(--rule-firm); }

/* ---------- titoli ---------- */

h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.25; }

h1 {
  font-size: 2.5rem; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 1rem;
  max-width: 22ch;
}
.subtitle {
  font-family: var(--sans);
  font-size: 1rem; font-weight: 400; line-height: 1.55;
  color: var(--ink-faint); max-width: 44ch;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.4rem; margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.0625rem; margin-bottom: 0.5rem;
}

/* etichetta di sezione, sans, maiuscoletto */
.label {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
  display: block; margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

/* ---------- testo ---------- */

p { margin-bottom: 1.15rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.25rem; line-height: 1.6; color: var(--ink);
  max-width: 38ch;
}

a { color: var(--ink); text-decoration: underline;
    text-decoration-color: var(--rule-firm);
    text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--gold); }

strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

/* la domanda che apre il sito */
.question {
  font-size: 1.75rem; line-height: 1.4; color: var(--ink);
  font-weight: 400; letter-spacing: -0.01em;
  max-width: 26ch; margin-bottom: 1.75rem;
}
.question em { font-style: italic; color: var(--gold); }

/* citazione / frase-perno */
blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem; margin: 1.75rem 0;
  color: var(--ink); font-style: italic;
  max-width: 36ch;
}
blockquote p { margin-bottom: 0.5rem; }
blockquote cite {
  display: block; font-style: normal; font-family: var(--sans);
  font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.5rem;
}

/* ---------- numeri ---------- */

.stat { font-family: var(--mono); font-size: 0.92em;
        color: var(--ink); font-variant-numeric: tabular-nums; }
.ci   { font-family: var(--mono); font-size: 0.85em; color: var(--ink-faint);
        white-space: nowrap; }

/* ---------- i tre risultati ---------- */

.findings { display: grid; gap: 0; margin-top: 1.5rem; }

.finding {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 1.25rem;
}
.finding:last-child { border-bottom: 1px solid var(--rule); }
.finding__num {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--gold); padding-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.finding__body { max-width: var(--measure); }
.finding h3 { margin-bottom: 0.55rem; }
.finding p { font-size: 0.98rem; margin-bottom: 0.75rem; }
.finding__limit {
  font-family: var(--sans); font-size: 0.82rem;
  color: var(--ink-faint); line-height: 1.6;
  padding-left: 0.85rem; border-left: 2px solid var(--rule);
  margin-top: 0.9rem;
}
.finding__limit b {
  font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9em;
}

/* ---------- avviso di correzione ---------- */

.correction {
  border: 1px solid var(--alert);
  border-left-width: 3px;
  background: var(--alert-wash);
  padding: 1.25rem 1.4rem;
  margin-bottom: 3rem;
  max-width: var(--measure);
}
.correction__tag {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--alert); display: block; margin-bottom: 0.6rem;
}
.correction p { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.6rem; }
.correction p:last-child { margin-bottom: 0; }

/* banner archivio */
.superseded {
  border: 1px solid var(--alert); border-left-width: 3px;
  background: var(--alert-wash);
  padding: 1.1rem 1.3rem; margin-bottom: 2.5rem;
}

/* ---------- osservato / non concludibile ---------- */

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  max-width: var(--wide);
}
.two-col > div { max-width: none; }
.two-col h3 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 0.6rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule-firm);
}
.two-col--observed h3 { color: var(--live); border-bottom-color: var(--live); }
.two-col--cannot h3   { color: var(--alert); border-bottom-color: var(--alert); }
.two-col ul { list-style: none; }
.two-col li {
  font-size: 0.95rem; line-height: 1.6;
  padding: 0.7rem 0; border-bottom: 1px solid var(--rule);
  max-width: none;
}
.two-col li:last-child { border-bottom: none; }

/* ---------- liste ---------- */

.plain { list-style: none; max-width: var(--measure); }
.plain li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.plain li:last-child { border-bottom: none; }

.terms { list-style: none; max-width: var(--measure); }
.terms li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.terms dfn {
  font-style: normal; font-weight: 600; color: var(--ink);
  display: block; margin-bottom: 0.15rem;
}

/* ---------- tabella ---------- */

.data {
  width: 100%; border-collapse: collapse;
  font-family: var(--sans); font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.data th, .data td {
  text-align: left; padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--rule); vertical-align: top;
}
.data th {
  font-weight: 600; color: var(--ink); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom-color: var(--rule-firm);
}
.data td { color: var(--ink-soft); }
.data td.num { font-family: var(--mono); color: var(--ink); }

.scroll-x { overflow-x: auto; max-width: 100%; margin: 1.5rem 0; }

/* ---------- navigazione in fondo ---------- */

.next {
  display: block; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 3px;
  padding: 1.1rem 1.3rem; margin-top: 3rem;
  max-width: var(--measure);
  transition: border-color 0.15s;
}
.next:hover { border-color: var(--gold); }
.next__label {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); display: block; margin-bottom: 0.3rem;
}
.next__title { color: var(--ink); font-size: 1.05rem; }

/* pulsanti/collegamenti d'azione */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.btn {
  font-family: var(--sans); font-size: 0.82rem;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule-firm); border-radius: 3px;
  padding: 0.55rem 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--gold); background: var(--gold-wash); }
.btn--primary { border-color: var(--gold); background: var(--gold-wash); }

/* ---------- piede ---------- */

.foot {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 4rem;
  font-family: var(--sans); font-size: 0.8rem;
  color: var(--ink-faint);
}
.foot__inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.foot a { color: var(--ink-faint); }
.foot a:hover { color: var(--ink); }
.foot p { max-width: 40ch; margin-bottom: 0.4rem; font-family: var(--sans); }

/* ---------- utilità ---------- */

.muted { color: var(--ink-faint); }
.small { font-size: 0.85rem; }
.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;
}
hr {
  border: 0; border-top: 1px solid var(--rule);
  margin: 3rem 0; max-width: var(--measure);
}

/* ============================================================
   Grafici
   Palette: coppia divergente blu↔rosso — veridico vs corrotto sono
   poli opposti, non due identità qualsiasi.
   Validata con validate_palette.js contro le superfici reali:
     light #2a78d6/#e34948 su #fbfaf7 → 6/6 PASS (CVD ΔE 21.6, normale 32.3)
     dark  #3987e5/#e66767 su #131211 → 6/6 PASS (CVD ΔE 19.2, normale 29.0)
   ============================================================ */

/* ---------- apertura a tutta pagina ---------- */

.hero-bleed {
  background: #121110;
  color: #a8a294;
  padding: 4.5rem 0 3.5rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid #2b2925;
}
.hero-bleed__inner { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

.hero-bleed h1 {
  color: #f3efe6;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 15ch;
  margin-bottom: 1.5rem;
}
.hero-bleed .subtitle {
  color: #7c7768; max-width: 52ch; margin-bottom: 2.75rem;
  font-size: 0.95rem;
}
.hero-claim {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.42; color: #e9e5dc; font-weight: 400;
  max-width: 30ch; margin-bottom: 2.5rem;
  border-left: 2px solid #c9a24e; padding-left: 1.25rem;
}

/* dentro l'apertura scura il grafico usa SEMPRE gli step scuri, validati
   contro #131211 — non seguono il tema della pagina. */
.hero-bleed .viz-root {
  --viz-veridical: #3987e5;
  --viz-corrupted: #e66767;
  --viz-grid: #2c2c2a; --viz-axis: #383835; --viz-muted: #898781;
  --viz-ink: #e9e5dc; --viz-surface: #121110; --viz-band: rgba(255,255,255,0.05);
}
.hero-bleed .viz-legend { color: #a8a294; margin-bottom: 1.25rem; }
.hero-bleed .viz-table summary { color: #7c7768; }
.hero-bleed .viz-table summary:hover,
.hero-bleed .viz-table[open] summary { color: #e9e5dc; }
.hero-bleed .data th { color: #e9e5dc; border-bottom-color: #3d3a34; }
.hero-bleed .data td { color: #a8a294; border-bottom-color: #2b2925; }
.hero-bleed .data td.num { color: #e9e5dc; }
.hero-bleed figcaption { color: #7c7768; }
.hero-bleed figcaption strong { color: #a8a294; }
.hero-bleed .btn { color: #e9e5dc; border-color: #3d3a34; }
.hero-bleed .btn:hover { border-color: #c9a24e; background: rgba(201,162,78,0.10); }
.hero-bleed .btn--primary { border-color: #c9a24e; background: rgba(201,162,78,0.10); }

/* ---------- la cifra d'apertura (una sola per pagina) ---------- */

.hero-fig {
  display: flex; align-items: baseline; gap: 1.1rem;
  flex-wrap: wrap;
  margin: 2.75rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid #2b2925;
}
.hero-fig__val {
  font-family: var(--sans);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600; line-height: 0.9;
  letter-spacing: -0.04em;
  color: #f3efe6;
  /* cifre proporzionali: tabular-nums fa sembrare slabbrati i numeri grandi */
}
.hero-fig__lab {
  font-family: var(--sans); font-size: 0.95rem; line-height: 1.5;
  color: #a8a294; max-width: 26ch;
}
.hero-fig__lab b { color: #e9e5dc; font-weight: 600; }

/* ---------- riga di cifre ---------- */

.statrow {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin: 3rem 0; max-width: var(--wide);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-tile { padding: 1.6rem 1.5rem 1.6rem 0; }
.stat-tile + .stat-tile {
  border-left: 1px solid var(--rule); padding-left: 1.5rem;
}
.stat-tile__val {
  font-family: var(--sans); font-size: 2.4rem; font-weight: 600;
  line-height: 1; letter-spacing: -0.03em; color: var(--ink);
  display: block; margin-bottom: 0.55rem;
}
.stat-tile__lab {
  font-family: var(--sans); font-size: 0.82rem; line-height: 1.5;
  color: var(--ink-faint);
}
.stat-tile__lab b { color: var(--ink-soft); font-weight: 600; }

.figure { margin: 2rem 0 2.5rem; max-width: var(--wide); }
.figure--hero { margin: 0; }
.figure figcaption {
  font-family: var(--sans); font-size: 0.82rem; line-height: 1.6;
  color: var(--ink-faint); margin-top: 0.75rem; max-width: 60ch;
}
.figure figcaption strong { color: var(--ink-soft); font-weight: 600; }

.viz-root {
  --viz-veridical: #2a78d6;
  --viz-corrupted: #e34948;
  --viz-grid:      #e1e0d9;
  --viz-axis:      #c3c2b7;
  --viz-muted:     #898781;
  --viz-ink:       #1b1a17;
  --viz-surface:   #fbfaf7;
  --viz-band:      rgba(11,11,11,0.045);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .viz-root {
    --viz-veridical: #3987e5;
    --viz-corrupted: #e66767;
    --viz-grid:      #2c2c2a;
    --viz-axis:      #383835;
    --viz-muted:     #898781;
    --viz-ink:       #e9e5dc;
    --viz-surface:   #131211;
    --viz-band:      rgba(255,255,255,0.05);
  }
}
:root[data-theme="dark"] .viz-root {
  --viz-veridical: #3987e5;
  --viz-corrupted: #e66767;
  --viz-grid:      #2c2c2a;
  --viz-axis:      #383835;
  --viz-muted:     #898781;
  --viz-ink:       #e9e5dc;
  --viz-surface:   #131211;
  --viz-band:      rgba(255,255,255,0.05);
}

.viz { width: 100%; height: auto; display: block; overflow: visible; }

/* testo: sempre inchiostro, mai il colore della serie */
.viz text { font-family: var(--sans); fill: var(--viz-muted); }
.viz-cat  { font-size: 12.5px; fill: var(--viz-ink); font-weight: 500; }
.viz-sub  { font-size: 10.5px; fill: var(--viz-muted); }
.viz-tick { font-size: 11px; font-variant-numeric: tabular-nums; }
.viz-axis { font-size: 11.5px; }
.viz-val  { font-size: 11.5px; fill: var(--viz-ink); font-variant-numeric: tabular-nums; }
.viz-note { font-size: 11.5px; fill: var(--viz-ink); font-weight: 600;
            font-variant-numeric: tabular-nums; }
.viz-tx-veridical { fill: var(--viz-veridical); }
.viz-tx-corrupted { fill: var(--viz-corrupted); }
.viz-threshold-lab { font-size: 10.5px; letter-spacing: 0.04em; fill: var(--viz-muted); }

/* chrome: hairline, solido, recessivo */
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-zero { stroke: var(--viz-axis); stroke-width: 1; }
.viz-bound { stroke: var(--viz-axis); stroke-width: 1.5; }
.viz-band  { fill: var(--viz-band); }
.viz-threshold { stroke: var(--viz-muted); stroke-width: 1.5; }

/* marks */
.viz-drop { stroke: var(--viz-axis); stroke-width: 2; }
.viz-ring { fill: var(--viz-surface); }          /* anello di superficie, non un bordo */
.viz-dot  { stroke: none; }
.viz-veridical { fill: var(--viz-veridical); }
.viz-corrupted { fill: var(--viz-corrupted); }
.viz-bar--bad  { fill: var(--viz-corrupted); }
.viz-bar--ok   { fill: var(--viz-veridical); }
.viz-ci  { stroke-width: 2; stroke-linecap: round; }
.viz-cap { stroke-width: 2; stroke-linecap: round; }
.viz-ci--in  { stroke: var(--viz-veridical); }
.viz-ci--out { stroke: var(--viz-corrupted); }

.viz circle, .viz rect { transition: opacity 0.12s; }
.viz circle:hover, .viz rect:hover { opacity: 0.72; cursor: help; }

/* ---------- il crollo che accade ----------
   La linea si disegna DAL documento veridico VERSO quello corrotto, e il
   pallino rosso atterra quando la linea lo raggiunge. Sette volte, sfalsate.
   pathLength="1" normalizza righe di lunghezza diversa: partono e arrivano
   insieme, cosi' il ritmo e' del dato, non della geometria.
   Nessun valore e' animato: si anima solo il momento in cui compare. */

.viz--hero .viz-drop {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: viz-collapse 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(0.32s + var(--i) * 0.11s);
}
.viz--hero .viz-land {
  opacity: 0;
  animation: viz-land 0.32s ease-out forwards;
  animation-delay: calc(1.05s + var(--i) * 0.11s);
}
@keyframes viz-collapse { to { stroke-dashoffset: 0; } }
@keyframes viz-land     { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .viz--hero .viz-drop { stroke-dashoffset: 0; animation: none; }
  .viz--hero .viz-land { opacity: 1; animation: none; }
}

/* legenda — sempre presente da 2 serie in su */
.viz-legend {
  display: flex; flex-wrap: wrap; gap: 0 1.5rem;
  font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft);
  margin-bottom: 1rem;
}
.viz-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.viz-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.viz-legend .k-ver { background: var(--viz-veridical); }
.viz-legend .k-cor { background: var(--viz-corrupted); }

/* tavola gemella — ogni grafico ne ha una, i valori non stanno solo nel tooltip */
.viz-table { margin-top: 1rem; }
.viz-table summary {
  font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint);
  cursor: pointer; padding: 0.4rem 0;
}
.viz-table summary:hover { color: var(--ink); }
.viz-table[open] summary { color: var(--ink); margin-bottom: 0.5rem; }

/* ---------- responsive ---------- */

@media (max-width: 680px) {
  .figure { margin-left: -1.5rem; margin-right: -1.5rem; }
  .figure--hero { margin-left: 0; margin-right: 0; }
  .figure .viz-root { padding: 0 1.5rem; }
  .figure--hero .viz-root { padding: 0; }
  .figure figcaption { padding: 0 1.5rem; }
  .figure--hero figcaption { padding: 0; }
  .hero-bleed { padding: 3rem 0 2.5rem; margin-bottom: 3rem; }
  .hero-claim { padding-left: 1rem; margin-bottom: 2rem; }
  .hero-fig { gap: 0.75rem; margin-top: 2rem; padding-top: 1.5rem; }
  .statrow { grid-template-columns: 1fr; }
  .stat-tile { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
  .stat-tile:first-child { border-top: none; }
  .stat-tile + .stat-tile { border-left: none; padding-left: 0; }
  body { font-size: 1rem; }
  h1 { font-size: 1.85rem; }
  .question { font-size: 1.35rem; max-width: none; }
  .lede { font-size: 1.1rem; max-width: none; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .finding { grid-template-columns: 1fr; gap: 0.4rem; }
  .finding__num { padding-top: 0; }
  .masthead__inner { flex-direction: column; gap: 0.75rem; }
  .foot__inner { flex-direction: column; gap: 1.25rem; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .nav, .next, .actions { display: none; }
  a { text-decoration: none; color: #000; }
}
