/* ==========================================================================
   Foresight Policies — main stylesheet
   Part of the Summanity and Humanity Solutions family. Shares the family
   tokens (Fraunces display, system sans, indigo night) with Aspiration
   Platform and Foresight Influencers; the site accent is "tunnel" teal.
   CSP-friendly: no inline styles in markup, fonts self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

:root {
  --paper: #F6F6FB;
  --surface: #FFFFFF;
  --surface-2: #EFEFF7;
  --ink: #16173A;
  --ink-2: #434568;
  --muted: #5B5D80;
  --line: #E2E2EF;
  --line-2: #CBCCE2;
  --brand: #312E81;
  --brand-2: #231F66;
  --brand-soft: #ECEBFB;
  --accent: #0F766E;
  --accent-2: #0B5E58;
  --accent-soft: #E1F5F1;
  --accent-glow: #2DD4BF;
  --horizon: #A84A06;
  --horizon-soft: #FFF1D6;
  --focus: #5B5BD6;
  --night: #14123C;
  --night-2: #201D5A;
  --night-line: rgba(255, 255, 255, .16);
  --on-night: #EEEFF8;
  --on-night-muted: #C6C7E6;
  --ok: #0F7B4B;
  --ok-soft: #E3F4EA;
  --warn: #A84A06;
  --warn-soft: #FFF1D6;
  --err: #B42318;
  --err-soft: #FDE8E7;

  /* STEEP colours (non-text accents; the label is always shown beside them) */
  --s-social: #C2478A;
  --s-tech: #3550C8;
  --s-econ: #946300;
  --s-env: #2F7D4A;
  --s-pol: #6D45D6;

  /* Diverging scale for cross-impact and wind-tunnel scores */
  --pos-3: #0B5E58; --pos-2: #14958A; --pos-1: #8FD9CF;
  --neg-1: #F4B4B0; --neg-2: #DB5A52; --neg-3: #A3231A;
  --zero: #F1F1F7;

  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 23, 58, .04), 0 6px 20px rgba(22, 23, 58, .06);
  --shadow-lg: 0 2px 6px rgba(22, 23, 58, .05), 0 18px 48px rgba(22, 23, 58, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
  --head: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E0D2A;
    --surface: #17163A;
    --surface-2: #1D1C47;
    --ink: #EEEFF8;
    --ink-2: #C9CAE6;
    --muted: #A3A5C8;
    --line: #2A2960;
    --line-2: #3A3978;
    --brand: #8E8BF0;
    --brand-2: #A9A6FF;
    --brand-soft: #25235C;
    --accent: #5EEAD4;
    --accent-2: #99F6E4;
    --accent-soft: #123B3D;
    --horizon: #F5B04A;
    --horizon-soft: #3A2A12;
    --focus: #A9A6FF;
    --night: #0A0920;
    --night-2: #17163F;
    --ok: #6CC48C;
    --ok-soft: #14301F;
    --warn: #F5B04A;
    --warn-soft: #3A2A12;
    --err: #FF8A80;
    --err-soft: #3B1715;
    --s-social: #F07AB2;
    --s-tech: #8EA2FF;
    --s-econ: #E6B655;
    --s-env: #6CC48C;
    --s-pol: #B39BFF;
    --pos-3: #5EEAD4; --pos-2: #2BAFA2; --pos-1: #1F6F69;
    --neg-1: #6B2E2B; --neg-2: #B6463E; --neg-3: #FF8A80;
    --zero: #222150;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.35rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.wrap--narrow { max-width: 820px; }

.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--paper { background: var(--paper); }
.section--night { background: var(--night); color: var(--on-night); }
.section--night h2, .section--night h3 { color: #fff; }
.section--night p { color: var(--on-night-muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section--night .eyebrow { color: var(--accent-glow); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 44em; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 48px); }
.section-head p { color: var(--ink-2); }
.section--night .section-head p { color: var(--on-night-muted); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt-lg { margin-top: 40px; }
.mt { margin-top: 20px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1.2 var(--font);
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 46px; background: none; color: inherit;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { border-color: var(--night-line); color: var(--on-night); }
.btn--light:hover { border-color: #fff; color: #fff; }
.btn--glow { background: var(--accent-glow); color: #04221F; }
.btn--glow:hover { background: #5EEAD4; color: #04221F; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .88rem; }
.btn--xs { min-height: 32px; padding: 5px 12px; font-size: .82rem; }
.btn--danger { border-color: var(--line-2); color: var(--err); background: var(--surface); }
.btn--danger:hover { border-color: var(--err); color: var(--err); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
@media (prefers-color-scheme: dark) {
  .btn--primary, .btn--primary:hover, .btn--accent, .btn--accent:hover { color: #0E0D2A; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--head);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--brand); }
.brand-mark .bm-path { stroke: var(--accent); }
.brand-mark .bm-dot { fill: var(--accent); }
.site-footer .brand-mark { width: 32px; height: 32px; color: #C6C7E6; }
.site-footer .brand-mark .bm-path { stroke: var(--accent-glow); }
.site-footer .brand-mark .bm-dot { fill: var(--accent-glow); }
.brand-word { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .9rem;
  padding: 8px 10px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-left: 8px; padding: 10px 18px; min-height: 42px; color: #fff; font-size: .9rem; background: var(--accent); }
.nav .btn:hover, .nav .btn[aria-current="page"] { background: var(--accent-2); color: #fff; }
@media (prefers-color-scheme: dark) { .nav .btn, .nav .btn:hover { color: #0E0D2A; } }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--head) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - var(--head)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 110%, color-mix(in srgb, var(--accent-glow) 20%, transparent), transparent 65%),
    radial-gradient(800px 500px at 100% 0%, var(--brand-soft), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--surface));
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(56px, 7vw, 92px);
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 28px; }
.pill-note {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: .86rem; font-weight: 600; color: var(--accent); text-decoration: none; margin-bottom: 22px;
}
.pill-note b { background: var(--accent); color: #fff; font-size: .74rem; padding: 3px 9px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .pill-note b { color: #0E0D2A; } }
.pill-note:hover { color: var(--accent-2); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line-2); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: .85rem; color: var(--muted); }
.hero-stats dd { margin: 0; font-family: var(--display); font-size: 1.75rem; line-height: 1.1; color: var(--ink); order: -1; }
.hero-stats div { display: flex; flex-direction: column; }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; } }

/* Sub-page hero */
.page-hero {
  background:
    radial-gradient(700px 300px at 92% 120%, color-mix(in srgb, var(--accent-glow) 16%, transparent), transparent 65%),
    linear-gradient(180deg, var(--paper), var(--surface));
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 5vw, 56px);
}
.page-hero h1 { max-width: 18em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .actions { margin-top: 24px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- Quick wind-tunnel (hero card) ---------- */
.qt-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 22px; position: relative;
}
.qt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.qt-head h2 { font-family: var(--font); font-size: 1.1rem; font-weight: 700; margin: 0; letter-spacing: 0; }
.qt-head p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.qt-policy {
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 14px;
  background: var(--paper); margin-bottom: 14px;
}
.qt-policy .k { font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.qt-policy strong { display: block; font-size: 1rem; line-height: 1.35; margin-top: 2px; }
.qt-grid { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .78rem; table-layout: fixed; }
.qt-grid th { font-weight: 650; color: var(--muted); text-align: center; padding: 2px; line-height: 1.15; vertical-align: bottom; }
.qt-grid th[scope="row"] { text-align: left; color: var(--ink-2); font-weight: 600; width: 34%; vertical-align: middle; font-size: .8rem; }
.qt-grid td { height: 30px; border-radius: 6px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qt-group th { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.qt-verdicts { display: grid; gap: 6px; margin-top: 12px; }
.qt-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; }
.illustrative { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qt-tabs button {
  font: 600 .8rem var(--font); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.qt-tabs button:hover { border-color: var(--accent); color: var(--accent); }
.qt-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .qt-tabs button[aria-pressed="true"] { color: #0E0D2A; } }
select.qt-select { width: auto; min-height: 38px; font-size: .86rem; padding: 6px 32px 6px 12px; border-radius: 999px; max-width: 100%; }

/* Score cells (diverging) */
.sc { background: var(--zero); color: var(--ink-2); }
.sc[data-v="3"] { background: var(--pos-3); color: #fff; }
.sc[data-v="2"] { background: var(--pos-2); color: #fff; }
.sc[data-v="1"] { background: var(--pos-1); color: #0B3B37; }
.sc[data-v="-1"] { background: var(--neg-1); color: #5A1410; }
.sc[data-v="-2"] { background: var(--neg-2); color: #fff; }
.sc[data-v="-3"] { background: var(--neg-3); color: #fff; }
@media (prefers-color-scheme: dark) {
  .sc[data-v="1"] { color: #D7FFF8; }
  .sc[data-v="-1"] { color: #FFE1DE; }
  .sc[data-v="3"], .sc[data-v="-3"] { color: #0E0D2A; }
}

/* Verdict badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 750; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--err { background: var(--err-soft); color: var(--err); }
.badge--brand { background: var(--brand-soft); color: var(--brand); }
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.badge--plain::before { display: none; }
.verdict-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; }
.verdict-row span:first-child { color: var(--ink-2); min-width: 0; }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.section--paper .card { box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { color: var(--ink-2); font-size: .95rem; padding-left: 1.1em; }
.card ul:last-child { margin-bottom: 0; }
.card--accent { border-top: 4px solid var(--accent); }
.card--brand { border-top: 4px solid var(--brand); }
.card--horizon { border-top: 4px solid var(--horizon); }
.card .more { display: inline-block; margin-top: 12px; font-weight: 650; font-size: .92rem; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.card-link .more { margin-top: auto; padding-top: 12px; color: var(--accent); }
.icon-box {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.icon-box svg { width: 24px; height: 24px; }
.icon-box--brand { background: var(--brand-soft); color: var(--brand); }
.icon-box--horizon { background: var(--horizon-soft); color: var(--horizon); }

/* Module steps (home) */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: mod; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1020px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .modules { grid-template-columns: 1fr; } }
.modules li {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 8px;
}
.section--paper .modules li { box-shadow: var(--shadow); }
.modules .mod-num { font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--accent); }
.modules h3 { margin: 4px 0 2px; font-size: 1.1rem; }
.modules p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.modules .tag { margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--muted); }
.modules li:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -14px; width: 10px; height: 10px;
  border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg);
}
@media (max-width: 1020px) { .modules li::after { display: none; } }

/* Lock-in loop */
.lockin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 900px) { .lockin { grid-template-columns: 1fr; } }
.loop-fig { max-width: 440px; margin: 0 auto; width: 100%; }
.loop-fig text { font-family: var(--font); }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.check-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }

/* Futures cone figure */
.cone-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 900px) { .cone-wrap { grid-template-columns: 1fr; } }
.cone-fig { width: 100%; height: auto; }
.cone-fig text { font-family: var(--font); font-size: 13px; fill: var(--ink-2); }
.cone-fig .t-strong { font-weight: 700; fill: var(--ink); }
.cone-fig .t-accent { font-weight: 750; fill: var(--accent); }
.cone-fig .c-possible { fill: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.cone-fig .c-plausible { fill: color-mix(in srgb, var(--brand) 22%, var(--surface)); }
.cone-fig .c-probable { fill: color-mix(in srgb, var(--brand) 48%, var(--surface)); }
.cone-fig .c-preferable { fill: color-mix(in srgb, var(--accent-glow) 55%, transparent); }
.cone-fig .c-path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.cone-fig .c-now { fill: var(--brand); }
.cone-fig .c-hz { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 5; }
.cone-fig .c-arrow { fill: var(--accent); }
.loop-fig .l-ring { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 6 6; }
.loop-fig .l-node { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.loop-fig .l-text { font-size: 13px; font-weight: 650; fill: var(--ink); }
.loop-fig .l-center { font-family: var(--display); font-size: 21px; fill: var(--ink); }
.loop-fig .l-sub { font-size: 11.5px; fill: var(--muted); }
.loop-fig .l-arrow { fill: var(--muted); }
.loop-fig .l-break { fill: var(--accent); }
.loop-fig .l-break-text { font-size: 12px; font-weight: 750; fill: var(--accent); }
.loop-fig .l-break-ring { fill: none; stroke: var(--accent); stroke-width: 3; }
.cone-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cone-legend li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; }
.cone-legend i { width: 14px; height: 14px; border-radius: 4px; margin-top: 5px; }
.cone-legend b { display: block; }
.cone-legend span { color: var(--ink-2); font-size: .95rem; }
.sw-possible { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.sw-plausible { background: color-mix(in srgb, var(--brand) 32%, var(--surface)); }
.sw-probable { background: color-mix(in srgb, var(--brand) 60%, var(--surface)); }
.sw-preferable { background: var(--accent); }

/* Family flow */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; list-style: none; padding: 0; margin: 0; }
.flow li { position: relative; padding: 0 10px; text-align: center; }
.flow li::before {
  content: ""; position: absolute; top: 31px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--line-2), var(--accent), var(--line-2)); z-index: 0;
}
.flow li:first-child::before { left: 50%; }
.flow li:last-child::before { right: 50%; }
.flow .node {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); color: var(--brand);
}
.flow .node svg { width: 28px; height: 28px; }
.flow li.is-here .node { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-glow) 22%, transparent); }
@media (prefers-color-scheme: dark) { .flow li.is-here .node { color: #0E0D2A; } }
.flow .verb { display: block; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flow strong { display: block; font-size: 1rem; margin: 2px 0 4px; }
.flow strong a { color: var(--ink); text-decoration: none; }
.flow strong a:hover { color: var(--accent); text-decoration: underline; }
.flow p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.flow-base {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center;
  padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: .92rem; color: var(--ink-2);
}
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; text-align: left; padding: 0; }
  .flow li::before { top: 0; bottom: -18px; left: 31px; right: auto; width: 2px; height: auto; background: var(--line-2); }
  .flow li:first-child::before { left: 31px; top: 32px; }
  .flow li:last-child::before { right: auto; bottom: auto; height: 32px; }
  .flow .node { margin: 0; }
}

/* Stat / trajectory cards */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr; } }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.section--paper .stat { box-shadow: var(--shadow); }
.stat .num { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1; color: var(--accent); }
.stat .num small { font-size: .5em; color: var(--muted); font-family: var(--font); font-weight: 600; }
.stat h3 { font-size: 1rem; margin: 6px 0 0; }
.stat p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.stat .src { margin-top: auto; padding-top: 10px; font-size: .78rem; color: var(--muted); }
.stat .src a { color: var(--muted); }
.bar-compare { display: grid; gap: 6px; margin: 6px 0 2px; }
.bar-compare div { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-compare span.bar { height: 10px; border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar-compare span.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--brand); }
.bar-compare div.now span.bar i { background: var(--accent); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
}
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip--sm { font-size: .74rem; padding: 3px 9px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--t, var(--brand)); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 26px; padding: clamp(32px, 5.5vw, 64px);
  background:
    radial-gradient(560px 280px at 100% 110%, rgba(45, 212, 191, .38), transparent 70%),
    radial-gradient(500px 300px at 0% 0%, rgba(109, 69, 214, .3), transparent 70%),
    var(--night);
  color: var(--on-night); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--on-night-muted); margin: 0; }
.cta-band .actions { justify-content: flex-end; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* Sessions */
.session-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .session-grid { grid-template-columns: 1fr; } }
.session { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.section--paper .session { box-shadow: var(--shadow); }
.session .dur { font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.session h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 0; }
.session p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.session ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: .92rem; }
.session .actions { margin-top: auto; padding-top: 14px; }

/* ---------- Family strip ---------- */
.family { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.family a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--ink); }
.family a:hover { border-color: var(--accent); color: var(--ink); }
.family strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.family span { font-size: .9rem; color: var(--muted); }
.family .role { display: block; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
@media (max-width: 760px) { .family { grid-template-columns: 1fr; } }

/* ---------- Prose & tables ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.split-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split-layout > *, .tool-layout > *, .grid-2 > *, .grid-3 > *, .lockin > *, .cone-wrap > * { min-width: 0; }
@media (max-width: 960px) { .split-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: calc(var(--head) + 24px); font-size: .9rem; }
.toc h2 { font-family: var(--font); font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--accent); border-left-color: var(--accent); }
.block { padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.block > h2 { margin-bottom: .4em; }
.block > .lead { margin-bottom: 1.4em; }
.tool-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: .88rem; text-decoration: none;
}
.tool-link:hover { color: var(--accent-2); }
.tool-link svg { width: 16px; height: 16px; }

.table-wrap, .matrix-scroll, .graph-wrap { position: relative; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.section--paper .table-wrap { box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.data thead th { font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody th { font-weight: 650; color: var(--ink); }
table.data td { color: var(--ink-2); }
.num-step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: .82rem; margin-right: 8px; }

.stage-list { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 10px; }
.stage-list li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.stage-list li::before { content: counter(st); font-family: var(--display); font-size: 1.5rem; line-height: 1.2; color: var(--accent); text-align: center; }
.stage-list b { display: block; color: var(--ink); }
.stage-list span { color: var(--ink-2); font-size: .94rem; }
.stage-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; counter-reset: sr; }
.stage-row li { counter-increment: sr; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; }
.stage-row li::before { content: counter(sr); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .78rem; }
@media (prefers-color-scheme: dark) { .stage-row li::before { color: #0E0D2A; } }

.quote {
  margin: 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--r) var(--r) 0; color: var(--ink); font-size: 1.05rem;
}
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: .85rem; color: var(--muted); }
.callout { padding: 16px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.callout b { color: var(--ink); }
.sources { font-size: .84rem; color: var(--muted); }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.sources a { color: var(--muted); }
sup.ref a { text-decoration: none; font-weight: 700; font-size: .75em; padding: 0 2px; color: var(--accent); }

/* Timeline (EU foresight cycle) */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 82px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 26px; position: relative; }
.timeline .yr { font-family: var(--display); font-size: 1.35rem; color: var(--ink); text-align: right; padding-right: 20px; line-height: 1.3; }
.timeline .tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; position: relative; }
.section--paper .timeline .tl-body { box-shadow: var(--shadow); }
.timeline .tl-body::before { content: ""; position: absolute; left: -20px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline li.is-now .tl-body::before { border-color: var(--accent); background: var(--accent); }
.timeline h3 { font-size: 1.02rem; margin: 0 0 4px; }
.timeline p { margin: 0 0 6px; font-size: .92rem; color: var(--ink-2); }
.timeline p:last-child { margin-bottom: 0; }
.timeline .k { font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) {
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .timeline .yr { text-align: left; padding-right: 0; }
  .timeline .tl-body::before { left: -29px; top: -26px; }
}

/* Ecosystem directory */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-bar button {
  font: 600 .86rem var(--font); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.filter-bar button:hover { border-color: var(--accent); color: var(--accent); }
.filter-bar button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .filter-bar button[aria-pressed="true"] { color: #0E0D2A; } }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.org { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--t, var(--brand)); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.section--paper .org { box-shadow: var(--shadow); }
.org .tier { font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--t, var(--brand)); }
.org h3 { margin: 0; font-size: 1.04rem; line-height: 1.3; }
.org .scope { font-size: .84rem; color: var(--muted); margin: 0; }
.org p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.org .org-links { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.org[data-tier="supra"] { --t: #3550C8; }
.org[data-tier="national"] { --t: #0F766E; }
.org[data-tier="dutch"] { --t: #C2410C; }
.org[data-tier="independent"] { --t: #6D45D6; }
@media (prefers-color-scheme: dark) {
  .org[data-tier="supra"] { --t: #8EA2FF; }
  .org[data-tier="national"] { --t: #5EEAD4; }
  .org[data-tier="dutch"] { --t: #FF9466; }
  .org[data-tier="independent"] { --t: #B39BFF; }
}

/* Leverage points */
.lever-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; counter-reset: lv; }
@media (max-width: 760px) { .lever-grid { grid-template-columns: 1fr; } }
.lever { counter-increment: lv; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; }
.section--paper .lever { box-shadow: var(--shadow); }
.lever::before { content: counter(lv); position: absolute; top: 18px; right: 22px; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: color-mix(in srgb, var(--accent) 30%, transparent); }
.lever h3 { padding-right: 40px; }
.lever p { color: var(--ink-2); font-size: .95rem; }
.lever .ex { font-size: .88rem; padding: 10px 12px; border-radius: 10px; background: var(--paper); color: var(--ink-2); margin: 0; }
.lever .ex b { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

.lever .more { display: inline-block; font-weight: 650; font-size: .92rem; text-decoration: none; }
.lever .more:hover { text-decoration: underline; }
.h3-like { font-family: var(--font); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
@media (min-width: 981px) { .tool-layout > aside { position: sticky; top: calc(var(--head) + 20px); } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1020px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillars li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; border-bottom: 4px solid var(--brand); }
.section--paper .pillars li { box-shadow: var(--shadow); }
.pillars b { display: block; margin-bottom: 4px; }
.pillars span { font-size: .9rem; color: var(--ink-2); }

/* ---------- Forms ---------- */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field { margin-bottom: 18px; }
legend { padding: 0; }
label, .label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
label.btn { display: inline-flex; margin: 0; }
.hint { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 2px; }
input[type="text"], input[type="email"], input[type="date"], input[type="url"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235B5D80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
.field { margin-bottom: 16px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .field-grid, .field-grid--3 { grid-template-columns: 1fr; } }
.field-error { color: var(--err); font-size: .84rem; margin-top: 4px; }
.radio-cards { display: grid; gap: 8px; }
.radio-cards label {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-weight: 500; font-size: .93rem;
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; margin: 0; color: var(--ink-2);
}
.radio-cards label:hover { border-color: var(--line-2); }
.radio-cards input { margin: 3px 0 0; accent-color: var(--accent); width: 16px; height: 16px; }
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .93rem; color: var(--ink-2); margin: 0 0 8px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

/* Range sliders */
.slider { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 4px 12px; align-items: center; margin-bottom: 12px; }
.slider label { margin: 0; font-size: .86rem; }
.slider label .hint { display: inline; margin: 0 0 0 4px; }
.slider output { grid-row: 1 / span 2; grid-column: 2; font-family: var(--display); font-size: 1.3rem; text-align: center; color: var(--accent); }
.slider input[type="range"] { grid-column: 1; width: 100%; accent-color: var(--accent); margin: 0; height: 26px; }

/* ---------- Wind-tunnel tool ---------- */
.tool-hero { padding-bottom: 28px; }
.tool-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 18px; }
.tool-bar .actions { gap: 8px; }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.privacy-note svg { width: 16px; height: 16px; color: var(--accent); }

.stepper {
  position: sticky; top: var(--head); z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.stepper ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 10px 0; margin: 0; }
.stepper button {
  width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left;
  font: inherit; padding: 8px 10px; border-radius: 12px; border: 1.5px solid transparent; background: none; color: var(--ink-2); cursor: pointer;
}
.stepper button:hover { background: var(--paper); }
.stepper button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.stepper .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-weight: 750; font-size: .9rem; }
.stepper button[aria-selected="true"] .n { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .stepper button[aria-selected="true"] .n { color: #0E0D2A; } }
.stepper .n.is-done { background: var(--ok-soft); color: var(--ok); }
.stepper b { display: block; font-size: .9rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper small { display: block; font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .stepper ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stepper button { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 6px 4px; gap: 4px; }
  .stepper small { display: none; }
  .stepper b { font-size: .72rem; white-space: normal; }
}

.panel { padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 6vw, 80px); scroll-margin-top: 80px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.panel-head h2 { margin: 0 0 6px; }
.panel-head p { margin: 0; color: var(--ink-2); max-width: 46em; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tool-layout--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 980px) { .tool-layout, .tool-layout--wide { grid-template-columns: 1fr; } }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow); min-width: 0; }
.tool-card + .tool-card { margin-top: 22px; }
.tool-card > h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin-bottom: 4px; }
.tool-card > .sub { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.step-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 750 .8rem var(--font); flex: none; }
.lock-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--ink-2); font-size: .9rem; margin-bottom: 16px; }
.lock-note svg { width: 18px; height: 18px; flex: none; color: var(--warn); margin-top: 2px; }
.ok-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ink-2); font-size: .9rem; margin-bottom: 16px; }
.ok-note svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 2px; }
.composite { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); margin: 4px 0 16px; }
.composite b { font-family: var(--display); font-size: 1.6rem; color: var(--accent); font-weight: 600; }
.composite span { font-size: .86rem; color: var(--muted); }
.validator { font-size: .84rem; margin-top: 6px; display: flex; gap: 8px; align-items: flex-start; }
.validator svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.validator.is-ok { color: var(--ok); }
.validator.is-bad { color: var(--warn); }

/* Signal log */
.sig-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.sig {
  border: 1px solid var(--line); border-left: 4px solid var(--t, var(--brand)); border-radius: 12px; padding: 12px 14px;
  background: var(--surface); display: grid; gap: 6px;
}
.sig[data-steep="S"] { --t: var(--s-social); }
.sig[data-steep="T"] { --t: var(--s-tech); }
.sig[data-steep="Ec"] { --t: var(--s-econ); }
.sig[data-steep="En"] { --t: var(--s-env); }
.sig[data-steep="P"] { --t: var(--s-pol); }
.sig-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sig h4 { margin: 0; font-size: .97rem; line-height: 1.35; }
.sig .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--muted); }
.sig .mech { font-size: .84rem; color: var(--ink-2); }
.sig .mech b { font-weight: 650; color: var(--ink); }
.sig .score { font-family: var(--display); font-size: 1.25rem; line-height: 1; color: var(--accent); text-align: right; }
.sig .score small { display: block; font-family: var(--font); font-size: .66rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.sig-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sig-actions button { font: 600 .78rem var(--font); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.sig-actions button:hover { border-color: var(--brand); color: var(--brand); }
.decay { display: inline-flex; align-items: center; gap: 6px; }
.decay i { display: inline-block; width: 46px; height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; position: relative; }
.decay i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 100%); background: var(--muted); border-radius: 4px; }
.empty { padding: 20px; text-align: center; color: var(--muted); font-size: .92rem; border: 1px dashed var(--line-2); border-radius: 12px; }

/* Cluster graph */
.graph-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.graph-wrap svg { width: 100%; height: auto; }
.graph-wrap text { font-family: var(--font); }
.graph-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted); padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.graph-legend span { display: inline-flex; align-items: center; gap: 6px; }
.graph-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--t); }
.cluster { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.cluster + .cluster { margin-top: 12px; }
.cluster.is-theme { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-glow) 18%, transparent); }
.cluster-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.cluster-top h4 { margin: 0; font-size: 1rem; }
.cluster-top p { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.cluster details { margin-top: 10px; }
.cluster summary { cursor: pointer; font-weight: 650; font-size: .88rem; color: var(--brand); }
.tests { display: grid; gap: 2px; margin: 10px 0; }

.graph-wrap .g-line { stroke: var(--line-2); stroke-width: 1.5; }
.graph-wrap .g-node { stroke: var(--surface); stroke-width: 2; }
.graph-wrap .g-S, .g-sw-S { fill: var(--s-social); background: var(--s-social); }
.graph-wrap .g-T, .g-sw-T { fill: var(--s-tech); background: var(--s-tech); }
.graph-wrap .g-Ec, .g-sw-Ec { fill: var(--s-econ); background: var(--s-econ); }
.graph-wrap .g-En, .g-sw-En { fill: var(--s-env); background: var(--s-env); }
.graph-wrap .g-P, .g-sw-P { fill: var(--s-pol); background: var(--s-pol); }
.graph-wrap .g-hub { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; }
.graph-wrap .g-hub.is-on { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 2.5; }
.graph-wrap .g-hub.is-theme { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 3.5; }
.graph-wrap .g-hubt { font-size: 13px; font-weight: 750; fill: var(--ink); }
.graph-wrap .g-label { font-size: 12px; font-weight: 650; fill: var(--ink-2); }
.graph-legend i.g-sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.scen svg.radar .r-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.scen svg.radar .r-axis { stroke: var(--line); stroke-width: 1; }
.scen svg.radar .r-shape { fill: color-mix(in srgb, var(--accent-glow) 30%, transparent); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.desc-left { display: grid; gap: 6px; }
.desc-left select { min-height: 36px; padding: 5px 30px 5px 10px; font-size: .8rem; }
table.cim .shead.blk-start { border-left: 2px solid var(--line-2); }
table.cim .rd-name { display: block; font-size: .64rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); padding-top: 4px; }

/* Cross-impact matrix */
.brush { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.brush .label { margin: 0 6px 0 0; font-size: .84rem; }
.brush button {
  width: 38px; height: 34px; border-radius: 8px; border: 2px solid transparent; font: 750 .86rem var(--font); cursor: pointer;
}
.brush button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface) inset; }
.matrix-scroll { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.cim { border-collapse: separate; border-spacing: 0; font-size: .74rem; }
table.cim th, table.cim td { padding: 0; }
table.cim thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); }
table.cim tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); }
table.cim thead th.corner { left: 0; z-index: 3; }
table.cim .dhead { font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); padding: 6px 4px; text-align: center; border-left: 2px solid var(--line-2); border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
table.cim .shead { writing-mode: vertical-rl; transform: rotate(180deg); height: 116px; padding: 6px 2px; color: var(--ink-2); font-weight: 600; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.cim .shead.first { border-right: 2px solid var(--line-2); }
table.cim .rd { font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); padding: 4px 8px; white-space: nowrap; border-top: 2px solid var(--line-2); text-align: left; }
table.cim .rs { padding: 2px 8px 2px 16px; color: var(--ink-2); font-weight: 600; white-space: nowrap; text-align: left; border-right: 1px solid var(--line); }
table.cim td.cell { width: 30px; min-width: 30px; height: 28px; }
table.cim td.cell button {
  width: 28px; height: 26px; margin: 1px; border: 0; border-radius: 5px; font: 700 .74rem var(--font); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
table.cim td.cell button:hover { outline: 2px solid var(--focus); outline-offset: -1px; }
table.cim td.cell.blk-start { border-left: 2px solid var(--line-2); }
table.cim tr.blk-start td, table.cim tr.blk-start th { border-top: 2px solid var(--line-2); }
table.cim td.self { background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 4px, var(--surface) 4px, var(--surface) 8px); }

.desc-editor { display: grid; gap: 10px; }
.desc-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 34px; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.desc-row input { min-height: 38px; padding: 7px 10px; font-size: .88rem; }
.desc-states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 760px) { .desc-row { grid-template-columns: 1fr 34px; } .desc-states { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { color: var(--err); border-color: var(--err); }
.icon-btn svg { width: 16px; height: 16px; }

.scen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.scen { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.scen-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.scen-top input { font-weight: 700; font-size: .98rem; min-height: 36px; padding: 6px 8px; border-color: transparent; background: var(--paper); }
.scen svg.radar { width: 100%; max-width: 240px; height: auto; margin: 0 auto; }
.scen svg.radar text { font-family: var(--font); font-size: 9px; fill: var(--muted); }
.scen dl { margin: 0; display: grid; gap: 3px; font-size: .84rem; }
.scen dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; padding: 3px 0; border-top: 1px solid var(--line); }
.scen dt { color: var(--muted); }
.scen dd { margin: 0; font-weight: 650; color: var(--ink); }
.scen-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.scen .actions { margin-top: auto; }

/* Wind-tunnel results */
.wt-table { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: .84rem; min-width: 640px; }
.wt-table th { font-weight: 650; color: var(--muted); padding: 4px; text-align: center; font-size: .76rem; line-height: 1.2; vertical-align: bottom; }
.wt-table th[scope="row"] { text-align: left; color: var(--ink); font-size: .86rem; vertical-align: middle; min-width: 170px; }
.wt-table th[scope="row"] small { display: block; font-weight: 500; color: var(--muted); }
.wt-table td.sc { height: 40px; border-radius: 8px; text-align: center; font-weight: 750; font-size: .95rem; }
.wt-table td.v { text-align: center; }
.wt-table .grp th { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 750; color: var(--accent); border-bottom: 2px solid var(--accent-soft); }
.warn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.warn-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: .9rem; color: var(--ink-2); }
.warn-list li.is-err { background: var(--err-soft); }
.warn-list li.is-ok { background: var(--ok-soft); }
.warn-list svg { width: 18px; height: 18px; margin-top: 2px; color: var(--warn); }
.warn-list li.is-err svg { color: var(--err); }
.warn-list li.is-ok svg { color: var(--ok); }
.lens-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.lens-row:first-of-type { border-top: 0; }
.lens-row .lname { font-weight: 650; font-size: .9rem; }
.lens-row .lname small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.lens-row select { min-height: 38px; padding: 6px 30px 6px 10px; font-size: .86rem; }
@media (max-width: 560px) { .lens-row { grid-template-columns: 1fr 1fr; } .lens-row .lname { grid-column: 1 / -1; } }
.asm-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .8fr) 34px; gap: 8px; align-items: start; margin-bottom: 8px; }
.asm-row input, .asm-row select { min-height: 40px; padding: 7px 10px; font-size: .88rem; }
.asm-row select { padding-right: 30px; }
@media (max-width: 640px) { .asm-row { grid-template-columns: 1fr 1fr 34px; } .asm-row input[type="text"] { grid-column: 1 / -1; } }
.driver-grid { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
.driver-grid th, .driver-grid td { padding: 6px; border-bottom: 1px solid var(--line); text-align: center; }
.driver-grid th[scope="row"] { text-align: left; font-weight: 650; }
.driver-grid thead th { font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.driver-grid select { min-height: 34px; padding: 4px 26px 4px 8px; font-size: .82rem; background-position: right 6px center; }
.pm { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.pm + .pm { margin-top: 12px; }
.pm h4 { margin: 0 0 4px; font-size: .98rem; }
.pm .fail { font-size: .9rem; color: var(--ink-2); margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--err-soft); }
.pm .fail b { color: var(--err); }
.pm textarea { min-height: 64px; font-size: .88rem; }

/* Cynefin */
.cynefin { width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.cynefin text { font-family: var(--font); }
.cynefin .q { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; transition: fill .2s ease; }
.cynefin .q.is-on { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 3; }
.cynefin .qt { font-size: 15px; font-weight: 700; fill: var(--ink); }
.cynefin .qs { font-size: 11px; fill: var(--muted); }
.cynefin .dis { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.cynefin .dis.is-on { fill: var(--warn-soft); stroke: var(--warn); stroke-width: 3; }
.instrument { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
.instrument + .instrument { margin-top: 12px; }
.instrument h4 { margin: 0 0 4px; font-size: 1.02rem; }
.instrument .why { font-size: .86rem; color: var(--muted); margin: 0 0 8px; }
.instrument ul { margin: 0; padding-left: 1.1em; font-size: .9rem; color: var(--ink-2); }
.instrument li { margin-bottom: 3px; }
.principle-bars { display: grid; gap: 10px; }
.pbar { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: center; }
.pbar b { font-size: .9rem; }
.pbar small { display: block; color: var(--muted); font-size: .78rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg button { font: 600 .74rem var(--font); padding: 6px 4px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { color: #0E0D2A; } }
@media (max-width: 520px) { .pbar { grid-template-columns: 1fr; } }

.doc-out {
  font-family: var(--mono); font-size: .8rem; line-height: 1.55; white-space: pre-wrap; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; max-height: 420px; overflow: auto; color: var(--ink-2);
}

/* Dialog */
dialog.modal {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 20px;
  padding: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: rgba(10, 9, 32, .55); backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { font-size: 1.35rem; margin: 0; }
.modal-head p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.modal-body { padding: 16px 22px 22px; }
.pick-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.pick-list li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pick-list .k { font-size: .74rem; color: var(--muted); }
.pick-list b { display: block; font-size: .93rem; line-height: 1.35; }
.pick-list a { font-size: .8rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90;
  background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; box-shadow: var(--shadow-lg);
  transition: opacity .2s ease, transform .2s ease; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Readiness check */
.rq { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--surface); }
.rq + .rq { margin-top: 10px; }
.rq p { margin: 0 0 10px; font-weight: 600; color: var(--ink); font-size: .96rem; }
.rq .cap { font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px; }
.likert { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.likert label { margin: 0; text-align: center; font-size: .76rem; font-weight: 600; color: var(--ink-2); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 4px; cursor: pointer; line-height: 1.2; }
.likert input { position: absolute; opacity: 0; pointer-events: none; }
.likert label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.likert label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.likert label b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--accent); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; transition: width .3s ease; }
.cap-bars { display: grid; gap: 14px; }
.cap-bar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 46px; gap: 12px; align-items: center; }
.cap-bar b { font-size: .92rem; }
.cap-bar .track { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.cap-bar .track i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.cap-bar span { font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; color: var(--ink-2); }
@media (max-width: 560px) { .cap-bar { grid-template-columns: 1fr 46px; } .cap-bar .track { grid-column: 1 / -1; grid-row: 2; } }
.level { font-family: var(--display); font-size: 2rem; color: var(--accent); margin: 0; }
.rec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rec-list li { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: .93rem; color: var(--ink-2); }
.rec-list b { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-lockup { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.footer-lockup .brand-word { color: #fff; }
.site-footer p { font-size: .93rem; max-width: 32em; }
.site-footer h2 { font-family: var(--font); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--on-night-muted); text-decoration: none; font-size: .93rem; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: .84rem; }
.footer-legal p { max-width: none; font-size: .84rem; margin-bottom: 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Notices ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--ink-2); font-size: .92rem;
}
.notice svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card-link { transition: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .actions { justify-content: center; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .stepper, .tool-bar, .no-print, .skip-link, .nav-toggle { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .panel[hidden] { display: block !important; }
  .tool-card { box-shadow: none; break-inside: avoid; }
  .section, .panel { padding: 16px 0; }
  a { color: #000; }
}
