/* GLOBUS IGNI landing page
   Dark-only by deliberate choice: the product is a night-capable watch system and
   the whole page is styled as a mission console.
   Data-viz colours are the validated dark categorical slots (see README). */

:root {
  /* surfaces */
  --plane:        #080b10;
  --surface-1:    #101720;   /* chart surface: palette validated against this */
  --surface-2:    #16202b;
  --surface-3:    #1c2836;
  --border:       #233040;
  --border-soft:  #1a2431;
  --border-strong:#2f4054;

  /* ink */
  --ink:          #eef3f9;
  --ink-2:        #a8b8c9;
  --ink-3:        #7d8fa3;
  --ink-4:        #5d6e82;

  /* chart chrome */
  --grid:         #1e2a37;
  --axis:         #2b3a4b;

  /* brand */
  --ember:        #ff6a2b;
  --ember-dim:    #d9531c;
  --ember-wash:   rgba(255, 106, 43, 0.12);

  /* validated categorical slots (dark, surface #101720) */
  --s1: #d95926;   /* fire · status quo · losses      */
  --s2: #3987e5;   /* GLOBUS IGNI · prevention        */
  --s3: #199e70;   /* savings · third series          */

  /* validated ordinal ramp (fire hazard severity), light→dark */
  --fhsz-1: #a8431d;   /* Moderate   */
  --fhsz-2: #d9702f;   /* High       */
  --fhsz-3: #f2a273;   /* Very High  */

  /* status */
  --good:     #0ca30c;
  --warning:  #fab219;
  --critical: #d03b3b;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1180px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 82px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--plane);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ember); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }

/* ── skip link ───────────────────────────────────────────────────────────── */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ember); color: #16100c; padding: .6rem 1rem; font-weight: 650; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:where(a, button, summary, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px;
}

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 11, 16, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 62px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 650; letter-spacing: .01em; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.brand b { font-weight: 650; }
.brand span { color: var(--ink-3); font-weight: 400; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; font-size: .875rem; }
.nav-links a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 940px) { .nav-links { display: none; } }

.langtog { display: flex; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; margin-left: auto; flex-shrink: 0; }
.nav-links + .langtog { margin-left: 1.2rem; }
.langtog button {
  background: none; border: 0; color: var(--ink-3); font: 600 .72rem/1 var(--mono);
  letter-spacing: .1em; padding: .5rem .62rem; cursor: pointer;
}
.langtog button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 9px; font-weight: 600; font-size: .94rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, transform .16s;
}
.btn-primary { background: var(--ember); color: #180f09; }
.btn-primary:hover { background: #ff7f49; }
.btn-ghost { border-color: var(--border-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-4); background: var(--surface-2); }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }
@media (max-width: 620px) { .nav .btn { display: none; } }

/* ── section rhythm ──────────────────────────────────────────────────────── */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
section + section { border-top: 1px solid var(--border-soft); }

.eyebrow {
  font: 600 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember); display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--ember); opacity: .55; }

h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.17rem); color: var(--ink-2); max-width: 68ch; }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.15rem); letter-spacing: -0.035em; margin-bottom: 1.3rem; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.24rem); }
.tagline {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem;
  padding: .38rem .8rem .38rem .55rem; border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface-1); font: 500 .78rem/1 var(--sans); color: var(--ink-2);
}
.tagline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(12,163,12,.16); }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.9rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; margin-top: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 780px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hero-stats > div { background: var(--surface-1); padding: 1.35rem 1.3rem; }
.hero-stats .v { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats .k { font-size: .8rem; color: var(--ink-3); margin-top: .3rem; }

/* ── generic layout helpers ──────────────────────────────────────────────── */
.grid { display: grid; gap: 1.15rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.4rem;
}
.card.pad-lg { padding: clamp(1.4rem, 3vw, 2rem); }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--ink-2); font-size: .94rem; margin-bottom: 0; }
.card p + p { margin-top: .7rem; }
.card-num { font: 600 .74rem/1 var(--mono); color: var(--ember); letter-spacing: .1em; margin-bottom: .85rem; display: block; }

.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ── tables ──────────────────────────────────────────────────────────────── */
/* Scroll shadows: the inner shadows appear only when there is content to
   scroll to, so a wide table on a phone reads as swipeable rather than cut off.
   `local` layers move with the content, `scroll` layers stay pinned. */
.tablewrap {
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--surface-1) 40%, rgba(16, 23, 32, 0)) left center / 34px 100% no-repeat local,
    linear-gradient(to left,  var(--surface-1) 40%, rgba(16, 23, 32, 0)) right center / 34px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .5), transparent) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .5), transparent) right center / 16px 100% no-repeat scroll,
    var(--surface-1);
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 300px; }
.tablewrap.wide table { min-width: 660px; }
caption {
  text-align: left; padding: 1.05rem 1.15rem .1rem; font-weight: 600; font-size: .98rem; color: var(--ink);
}
caption .cap-sub { display: block; font-weight: 400; font-size: .84rem; color: var(--ink-3); margin-top: .28rem; }
thead th {
  text-align: left; font: 600 .72rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); padding: .85rem 1.15rem; border-bottom: 1px solid var(--border);
  vertical-align: bottom; white-space: nowrap;
}
tbody td, tbody th { padding: .78rem 1.15rem; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
tbody th { text-align: left; font-weight: 500; color: var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.018); }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td, tfoot th {
  padding: .82rem 1.15rem; border-top: 1px solid var(--border); font-weight: 650; background: var(--surface-2);
}
tfoot th { text-align: left; }
tfoot td:not(.num) { text-align: left; font-weight: 400; }
tfoot .num { font-family: var(--mono); }
tr.hl { background: rgba(57,135,229,.07); }
tr.hl th { box-shadow: inset 3px 0 0 var(--s2); }
.chip {
  display: inline-block; padding: .13rem .5rem; border-radius: 5px; font: 600 .7rem/1.5 var(--mono);
  letter-spacing: .04em; border: 1px solid var(--border-strong); color: var(--ink-2);
}
.chip.win { border-color: rgba(12,163,12,.45); color: #4fd14f; }
.chip.lose { border-color: rgba(208,59,59,.45); color: #ef7d7d; }
.chip.even { border-color: var(--border-strong); color: var(--ink-3); }

.tnote { font-size: .82rem; color: var(--ink-3); margin-top: .8rem; }
.tnote code { font-family: var(--mono); font-size: .95em; color: var(--ink-2); }

/* ── swatches / legend ───────────────────────────────────────────────────── */
.legend { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; font-size: .84rem; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: .5rem; }
.sw { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.sw.line { height: 3px; width: 16px; border-radius: 2px; }

/* ── SVG figures ─────────────────────────────────────────────────────────── */
figure { margin: 0; }
figure svg { display: block; width: 100%; height: auto; }
figcaption { font-size: .84rem; color: var(--ink-3); margin-top: .9rem; }
.fig-frame {
  background: var(--surface-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: clamp(.9rem, 2vw, 1.5rem); overflow: hidden;
}

/* ── map ─────────────────────────────────────────────────────────────────── */
.map-layout { display: grid; grid-template-columns: 330px 1fr; gap: 1.15rem; align-items: start; }
/* Sidebar on the right instead of the left. A class, not an inline style: an
   inline style would outrank the media query below and never collapse. */
.map-layout.flip { grid-template-columns: 1fr 330px; }
@media (max-width: 940px) {
  .map-layout, .map-layout.flip { grid-template-columns: 1fr; }
}

.controls { background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.25rem; }
.ctl + .ctl { margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid var(--border-soft); }
.ctl > label:not(.check), .ctl > .ctl-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  font: 600 .72rem/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: .7rem;
}
.ctl .val { font-size: .96rem; color: var(--ink); letter-spacing: 0; text-transform: none; font-weight: 600; }
.ctl .val small { color: var(--ink-3); font-weight: 400; }

input[type="range"] { width: 100%; appearance: none; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--surface-3); border-radius: 3px; }
input[type="range"]::-moz-range-track { height: 4px; background: var(--surface-3); border-radius: 3px; }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--ember);
  margin-top: -6.5px; border: 2px solid var(--plane); box-shadow: 0 0 0 1px var(--ember);
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--ember);
  border: 2px solid var(--plane); box-shadow: 0 0 0 1px var(--ember);
}
.ticks { display: flex; justify-content: space-between; font: .68rem/1 var(--mono); color: var(--ink-4); margin-top: .5rem; }

.segmented { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 9px; }
.segmented button {
  flex: 1; background: none; border: 0; color: var(--ink-3); padding: .48rem .3rem; border-radius: 6px;
  font: 600 .78rem/1.2 var(--sans); cursor: pointer; transition: background .14s, color .14s;
}
.segmented button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }
.segmented button:hover:not([aria-pressed="true"]) { color: var(--ink-2); }

.check { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--ink-2); cursor: pointer; padding: .2rem 0; }
.check + .check { margin-top: .45rem; }
.check input { accent-color: var(--ember); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }

.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-soft); border-radius: 9px; overflow: hidden; margin-top: 1.35rem; }
.readout > div { background: var(--surface-2); padding: .8rem .85rem; }
.readout .v { font: 600 1.22rem/1.15 var(--sans); letter-spacing: -0.02em; }
.readout .k { font-size: .74rem; color: var(--ink-3); margin-top: .18rem; }

.map-frame {
  background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: .5rem; position: relative; overflow: hidden;
}
.map-frame svg { display: block; width: 100%; height: auto; }
#map-tip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .12s;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: .55rem .7rem; font-size: .8rem; line-height: 1.45; white-space: nowrap; z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
#map-tip .t-h { font-weight: 650; margin-bottom: .18rem; }
#map-tip .t-r { color: var(--ink-3); font-family: var(--mono); font-size: .76rem; }
.node-dot { cursor: pointer; }
.node-dot:hover circle.core, .node-dot.on circle.core { r: 5.4; }

/* ── charts ──────────────────────────────────────────────────────────────── */
.chart-card { background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.35rem; }
.chart-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.chart-card .sub { font-size: .84rem; color: var(--ink-3); margin-bottom: 1.15rem; }
.chart-card .legend { margin-bottom: 1rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); }
.tick { font: .72rem var(--mono); fill: var(--ink-4); }
.axlabel { font: .74rem var(--sans); fill: var(--ink-3); }
.dlabel { font: 600 .76rem var(--mono); fill: var(--ink-2); }
.bar { transition: opacity .14s; }
.bar:hover { opacity: .82; }

details.table-view { margin-top: 1rem; }
details.table-view > summary {
  cursor: pointer; font-size: .82rem; color: var(--ink-3); list-style: none;
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem 0;
}
details.table-view > summary::-webkit-details-marker { display: none; }
details.table-view > summary::before {
  content: ""; display: inline-block; width: 0; height: 0;
  border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .15s; transform-origin: 30% 50%;
}
details.table-view[open] > summary::before { transform: rotate(90deg); }
details.table-view > summary:hover { color: var(--ink); }
details.table-view .tablewrap { margin-top: .8rem; border-radius: 9px; }
details.table-view table { min-width: 300px; font-size: .84rem; }
details.table-view :is(td, th) { padding-inline: .8rem; }

/* ── timeline / gantt ────────────────────────────────────────────────────── */
.tl { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.tl-row { background: var(--surface-1); display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 1rem; padding: .9rem 1.15rem; }
@media (max-width: 720px) { .tl-row { grid-template-columns: 1fr; gap: .5rem; } }
.tl-row .lbl { font-size: .89rem; font-weight: 550; }
.tl-row .lbl small { display: block; color: var(--ink-3); font-weight: 400; font-size: .8rem; }
.tl-track { position: relative; height: 26px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.tl-bar { position: absolute; top: 0; bottom: 0; border-radius: 5px; display: flex; align-items: center; padding-inline: .55rem; font: 600 .72rem var(--mono); color: #0d1116; }
.tl-scale { display: flex; justify-content: space-between; font: .7rem var(--mono); color: var(--ink-4); padding: .5rem 1.15rem; background: var(--surface-2); }

/* ── verdict / callout ───────────────────────────────────────────────────── */
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--ember);
  background: var(--surface-1); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem;
}
.callout h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.callout p { color: var(--ink-2); font-size: .94rem; margin-bottom: 0; }
.callout p + p { margin-top: .65rem; }
.callout.tech { border-left-color: var(--s2); }

/* ── risk list ───────────────────────────────────────────────────────────── */
.risk { background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.risk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.risk h3 { font-size: .99rem; margin: 0; }
.sev { font: 600 .68rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 0 .45rem; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.sev.critical { color: #f08c8c; border: 1px solid rgba(208,59,59,.5); }
.sev.high { color: #f7c65a; border: 1px solid rgba(250,178,25,.45); }
.sev.medium { color: var(--ink-2); border: 1px solid var(--border-strong); }
.risk p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.risk .mit { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border-soft); font-size: .88rem; color: var(--ink-2); }
.risk .mit b { color: var(--ink); font-weight: 600; }

/* ── final CTA ───────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(160deg, #16202b 0%, #101720 62%);
  border: 1px solid var(--border); border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.4rem); text-align: center;
}
.cta-band h2 { margin-bottom: .9rem; }
.cta-band .lede { margin-inline: auto; }
.cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ── footer ──────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border-soft); padding-block: 3rem 3.5rem; font-size: .86rem; color: var(--ink-3); }
footer h4 { font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .9rem; }
footer ol { margin: 0; padding-left: 1.2rem; }
footer li { margin-bottom: .45rem; }
footer a { color: var(--ink-2); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ── misc ────────────────────────────────────────────────────────────────── */
.disclaimer {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; font-size: .87rem; color: var(--ink-3); background: rgba(255,255,255,.012);
}
.disclaimer b { color: var(--ink-2); }
sup.ref { font-size: .68em; color: var(--ember); font-weight: 600; margin-left: .1em; }
sup.ref a { color: inherit; text-decoration: none; }
sup.ref a:hover { text-decoration: underline; }

.spec { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.1rem; font-size: .88rem; }
.spec dt { color: var(--ink-3); white-space: nowrap; }
.spec dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pill { font: 500 .78rem/1 var(--sans); color: var(--ink-2); border: 1px solid var(--border); border-radius: 100px; padding: .42rem .78rem; background: var(--surface-1); }

/* ── small screens ───────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  :root { --gut: 1rem; }
  table { font-size: .85rem; }
  caption { padding-inline: .85rem; }
  :is(thead th, tbody td, tbody th, tfoot td, tfoot th) { padding-inline: .85rem; }
  .card, .risk, .chart-card, .controls { padding: 1.1rem; }
  .callout { padding: 1.1rem 1.15rem; }
  .fig-frame { padding: .75rem; }
  .readout > div { padding: .7rem; }
  .hero-stats > div { padding: 1.1rem; }
  .segmented button { padding-inline: .2rem; font-size: .74rem; }
  .legend { gap: .6rem 1rem; font-size: .8rem; }
}

/* Nothing may push the page wider than the viewport. Wide content scrolls
   inside its own container instead. */
main, footer, section, .wrap, .grid, .map-layout { min-width: 0; }
.grid > *, .map-layout > * { min-width: 0; }

@media print {
  body { background: #fff; color: #000; }
  .nav, .hero-cta, .cta-row, .controls { display: none; }
}
