/* Visual system shared by the report, the deck and the decision tool. */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap");

:root {
  --paper: #f3f5f2;
  --surface: #ffffff;
  --ink: #16202e;
  --ink-2: #4a5566;
  --ink-3: #6b7685;
  --rule: #d5dbd6;
  --rule-strong: #aeb8b2;
  --stopped: #1167a8;
  --lost: #c2362b;
  --context: #8a96a3;
  --stopped-wash: #e3edf6;
  --lost-wash: #f7e4e1;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e141d;
    --surface: #121a26;
    --ink: #e8ecf1;
    --ink-2: #a9b3c1;
    --ink-3: #8691a1;
    --rule: #263242;
    --rule-strong: #3a4859;
    --stopped: #4a9ad6;
    --lost: #e5604f;
    --context: #6f7b8b;
    --stopped-wash: #142a40;
    --lost-wash: #3a1d1b;
  }
}
:root[data-theme="dark"] {
  --paper: #0e141d;
  --surface: #121a26;
  --ink: #e8ecf1;
  --ink-2: #a9b3c1;
  --ink-3: #8691a1;
  --rule: #263242;
  --rule-strong: #3a4859;
  --stopped: #4a9ad6;
  --lost: #e5604f;
  --context: #6f7b8b;
  --stopped-wash: #142a40;
  --lost-wash: #3a1d1b;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}

/* Conclusion-style title: the sentence is the point of the page. */
.action-title {
  font: 600 clamp(26px, 3.2vw, 40px)/1.15 var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
/* The signature: the claim's number carries an underline in its chart color. */
.mark-stopped, .mark-lost {
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}
.mark-stopped { text-decoration-color: var(--stopped); }
.mark-lost { text-decoration-color: var(--lost); }

.kicker {
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.figure-num { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.source {
  font: 400 11px/1.4 var(--mono);
  color: var(--ink-3);
}

/* Charts */
.chart { font-size: 11px; }
.chart text { font-family: var(--mono); fill: var(--ink-2); }
.chart .label-strong { fill: var(--ink); font-weight: 500; }
.chart .axis line, .chart .grid line { stroke: var(--rule); stroke-width: 1; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 6px;
  padding: 8px 10px; font: 400 12px/1.45 var(--mono);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.12);
  opacity: 0; transition: opacity 120ms;
  white-space: nowrap;
}
.chart-tip.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .chart-tip { transition: none; } }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font: 400 12px/1 var(--mono); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
