/* ============================================================
   TSDF — Tiered Sovereignty Data Framework
   Design system v2: ATNI deep red · greys · dark mode
   Type: League Spartan (titles/subtitles) · Lexend (subheadings/labels)
         Calibri (body) · Spline Sans Mono (code blocks only)
   ============================================================ */

:root {
  color-scheme: dark;

  --ground: #000000;
  --ground-2: #0c0c0c;
  --ground-3: #161616;
  --panel: #111112;
  --panel-2: #1a1a1c;
  --ink: #f2f2f2;
  --ink-soft: #b8bcc0;
  --ink-faint: #8a8f94;
  --line: #303032;
  --line-soft: #222224;

  --dusk: #000000;      /* deepest register: hero, decider, footer */
  --dusk-2: #0e0e0f;
  --dusk-ink: #f2f2f2;
  --dusk-faint: #9aa0a7;

  /* ATNI deep red */
  --red: #9e2b33;
  --red-bright: #c9414c;
  --red-soft: #e0757d;
  --red-wash: rgba(158, 43, 51, 0.16);

  /* tier scale: escalation toward red — white → grey → light red → deep red */
  --t0: #e6e6e6;
  --t0-deep: #ffffff;
  --t0-wash: rgba(230, 230, 230, 0.10);
  --t1: #9aa0a7;
  --t1-deep: #c6cbd0;
  --t1-wash: rgba(154, 160, 167, 0.12);
  --t2: #d98a91;
  --t2-deep: #eaacb1;
  --t2-wash: rgba(217, 138, 145, 0.12);
  --t3: #c9303c;
  --t3-deep: #ee6871;
  --t3-wash: rgba(201, 48, 60, 0.18);

  --accent: var(--red-bright);
  --accent-deep: var(--red-soft);

  --font-display: "League Spartan", "Segoe UI", Arial, sans-serif;
  --font-sub: "Lexend", "Segoe UI", Arial, sans-serif;
  --font-body: Calibri, Carlito, "Segoe UI", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-mono: "Spline Sans Mono", "Cascadia Code", Consolas, monospace;

  --maxw: 1120px;
  --radius: 0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.14;
  margin: 0 0 0.5em;
  letter-spacing: 0.002em;
  color: var(--ink);
  font-weight: 600;
}
h3 { font-weight: 500; }
h4 {
  font-family: var(--font-sub);
  font-weight: 500;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: var(--accent-deep); text-decoration-color: rgba(212, 124, 129, 0.4); text-underline-offset: 3px; }
a:hover { color: #e8a6aa; }

code { font-family: var(--font-mono); }
.mono { font-family: var(--font-sub); }

::selection { background: rgba(158, 43, 51, 0.45); }

/* ---------- utility ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.eyebrow .tick { color: var(--red-bright); margin-right: 8px; }

.section-lede { font-size: 19.5px; line-height: 1.6; color: var(--ink-soft); max-width: 64ch; }

/* contour divider — quiet recurring motif */
.contour-rule {
  height: 26px;
  margin: 8px 0;
  background-repeat: repeat-x;
  background-size: 220px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='26'%3E%3Cpath d='M0 13 Q 27 5 55 13 T 110 13 T 165 13 T 220 13' fill='none' stroke='%23383c41' stroke-width='1'/%3E%3Cpath d='M0 19 Q 27 12 55 19 T 110 19 T 165 19 T 220 19' fill='none' stroke='%232b2e33' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.9;
}

/* ---------- header / nav ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 15, 17, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  max-width: 1340px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
  white-space: nowrap;
}
.brand .sigil {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: var(--red);
  padding: 4px 9px 3px;
  border-radius: 0;
  letter-spacing: 0.08em;
}
.brand .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  position: relative;
  top: 1px;
}
.brand .ver { font-family: var(--font-sub); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; }

nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
nav.tabs a {
  font-family: var(--font-sub);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
nav.tabs a:hover { background: var(--panel-2); color: var(--ink); }
nav.tabs a.active { background: var(--red); color: #fff; }
.gh-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-sub); font-size: 13.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 8px 10px; border-radius: 0; }
.gh-link:hover { background: var(--panel-2); color: var(--ink); }
.gh-link svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- tab panels ---------- */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelIn 0.4s ease both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- hero (deepest register) ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(158, 43, 51, 0.30), transparent 62%),
    radial-gradient(800px 420px at 8% 112%, rgba(255, 255, 255, 0.045), transparent 60%),
    var(--dusk);
  color: var(--dusk-ink);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-top: 74px;
  padding-bottom: 74px;
}
.hero h1 {
  color: var(--dusk-ink);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--red-soft);
}
.hero .eyebrow { color: var(--dusk-faint); }
.hero p.lede { font-size: 19px; line-height: 1.62; color: var(--ink-soft); max-width: 56ch; }
.hero .actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sub);
  font-weight: 500; font-size: 14.5px;
  padding: 12px 20px 11px;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); color: #fff; }
.btn-ghost { border-color: rgba(236, 237, 237, 0.3); color: var(--dusk-ink); }
.btn-ghost:hover { border-color: rgba(236, 237, 237, 0.65); color: #fff; }

/* basin viz */
.basin-wrap { position: relative; }
.basin-svg { width: 100%; height: auto; display: block; }
.basin-ring { cursor: pointer; transition: filter 0.25s ease; }
.basin-ring path.fill { transition: fill-opacity 0.3s ease; }
.basin-ring:hover path.fill, .basin-ring.hot path.fill { fill-opacity: 0.55; }
.basin-ring:focus { outline: none; }
.basin-ring:focus-visible path.edge { stroke-width: 3; }
.basin-label {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--dusk-ink);
  pointer-events: none;
}
.basin-label.sub { font-weight: 400; letter-spacing: 0.03em; fill: var(--dusk-faint); font-size: 11px; }
.basin-caption { text-align: center; font-size: 14px; color: var(--dusk-faint); margin-top: 8px; }
.basin-caption .mono { font-size: 12px; letter-spacing: 0.04em; }

/* ---------- sections ---------- */
section.band { padding: 72px 0; }
section.band.alt { background: var(--ground-2); }
section.band h2 { font-size: clamp(27px, 3.2vw, 38px); margin-bottom: 14px; }

/* tier cards + detail */
.tier-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.tier-card {
  font-family: var(--font-body);
  font-size: inherit;
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--tc, var(--t1));
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.tier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--panel-2); }
.tier-card.selected { outline: 2px solid var(--tc); outline-offset: 1px; }
.tier-card .code { font-family: var(--font-sub); font-weight: 600; font-size: 12px; color: var(--tc); letter-spacing: 0.1em; }
.tier-card h3 { font-size: 19px; margin: 8px 0 6px; }
.tier-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.tier-detail {
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 5px solid var(--tc, var(--t1));
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-soft);
}
.tier-detail[hidden] { display: none; }
.tier-detail .code { font-family: var(--font-sub); font-weight: 600; color: var(--tc); letter-spacing: 0.1em; font-size: 12.5px; }
.tier-detail h3 { font-size: 25px; margin: 8px 0 10px; }
.tier-detail .principle {
  font-family: var(--font-sub);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 3px solid var(--tc);
  padding-left: 14px;
  margin: 14px 0 18px;
}
.tier-detail .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 34px; }
.tier-detail h4 { font-family: var(--font-sub); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 12px 0 8px; }
.tier-detail ul { margin: 0; padding-left: 20px; font-size: 15px; color: var(--ink-soft); }
.tier-detail ul li { margin-bottom: 5px; }
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
.domain-chip { background: var(--ground-2); border: 1px solid var(--line-soft); border-radius: 0; padding: 10px 12px; font-size: 13.5px; color: var(--ink-soft); }
.domain-chip b { display: block; font-family: var(--font-sub); font-weight: 500; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; }

/* tier chip inline */
.chip {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 3px 10px 2px;
  border-radius: 0;
  white-space: nowrap;
}
.chip.t0 { background: var(--t0-wash); color: var(--t0-deep); }
.chip.t1 { background: var(--t1-wash); color: var(--t1-deep); }
.chip.t2 { background: var(--t2-wash); color: var(--t2-deep); }
.chip.t3 { background: var(--t3-wash); color: var(--t3-deep); }

/* principle callout */
.callout-t3 {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(120deg, rgba(158, 43, 51, 0.18), rgba(158, 43, 51, 0.05) 55%), var(--dusk-2);
  border: 1px solid rgba(158, 43, 51, 0.35);
  color: var(--dusk-ink);
  border-radius: 0;
  padding: 30px 36px;
  margin-top: 44px;
}
.callout-t3 .mark { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--red-soft); }
.callout-t3 h3 { color: var(--dusk-ink); font-size: 23px; font-weight: 600; margin-bottom: 6px; }
.callout-t3 p { color: var(--ink-soft); margin: 0; font-size: 16px; max-width: 74ch; }

/* domains section */
.domains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.domain-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-soft);
}
.domain-card .q { font-family: var(--font-sub); font-weight: 400; color: var(--red-soft); font-size: 15px; }
.domain-card h3 { font-size: 21px; margin-bottom: 6px; }
.domain-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.lifecycle {
  font-family: var(--font-sub); font-size: 13px; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 26px 0 4px;
}
.lifecycle .step { background: var(--panel); border: 1px solid var(--line); padding: 6px 13px 5px; border-radius: 0; letter-spacing: 0.03em; }
.lifecycle .arrow { color: var(--red-bright); }

/* alignment strip */
.align-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 30px; }
.align-item { background: var(--panel); border: 1px solid var(--line-soft); border-top: 3px solid var(--red); border-radius: 0; padding: 16px; }
.align-item b { font-family: var(--font-sub); font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.align-item span { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- standard tab ---------- */
.standard-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.std-toc { position: sticky; top: 86px; font-family: var(--font-sub); font-size: 13.5px; }
.std-toc a {
  display: block; color: var(--ink-soft); text-decoration: none;
  padding: 6px 12px; border-left: 2px solid var(--line-soft);
  transition: color 0.15s, border-color 0.15s;
}
.std-toc a:hover { color: var(--ink); }
.std-toc a.here { color: var(--red-soft); border-left-color: var(--red-bright); font-weight: 500; }
.std-toc .mono { font-size: 11px; color: var(--ink-faint); margin-right: 6px; }

.std-section { margin-bottom: 20px; }
.std-section details {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.std-section summary {
  cursor: pointer; list-style: none;
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline;
  padding: 20px 24px;
}
.std-section summary::-webkit-details-marker { display: none; }
.std-section summary .num { font-family: var(--font-sub); font-weight: 600; color: var(--red-bright); font-size: 13.5px; }
.std-section summary h3 { font-size: 19px; font-weight: 500; margin: 0; }
.std-section summary .twirl { color: var(--ink-faint); transition: transform 0.25s ease; font-size: 13px; }
.std-section details[open] summary .twirl { transform: rotate(90deg); }
.std-section .body { padding: 0 24px 22px 24px; border-top: 1px dashed var(--line-soft); }
.std-section .body .what {
  font-family: var(--font-sub);
  font-size: 12px; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-faint);
  margin: 16px 0 6px;
}
.std-section .body p, .std-section .body li { font-size: 15.5px; color: var(--ink-soft); }
.std-section .body ul { padding-left: 20px; }
.std-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0 6px; }
.std-table th { font-family: var(--font-sub); text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line); padding: 8px 10px; }
.std-table td { border-bottom: 1px solid var(--line-soft); padding: 9px 10px; color: var(--ink-soft); vertical-align: top; }
.std-table tr:last-child td { border-bottom: none; }

/* glossary terms */
.term {
  border-bottom: 1.5px dotted var(--red-bright);
  cursor: help;
  position: relative;
}
#gloss-pop {
  position: absolute; z-index: 90;
  max-width: 320px;
  background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0; padding: 14px 16px;
  font-size: 14px; line-height: 1.55;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#gloss-pop.show { opacity: 1; transform: none; }
#gloss-pop b { display: block; font-family: var(--font-sub); font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; color: var(--red-soft); margin-bottom: 5px; text-transform: uppercase; }

.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 26px; }
.gloss-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 0; padding: 15px 17px; }
.gloss-card b { font-family: var(--font-sub); font-weight: 600; font-size: 14px; }
.gloss-card p { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- practice tab ---------- */
.case { margin: 40px 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 0; overflow: hidden; box-shadow: var(--shadow-soft); }
.case-head { padding: 26px 30px 6px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.case-head .k { font-family: var(--font-sub); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--red-bright); text-transform: uppercase; }
.case-head h3 { font-size: 25px; margin: 0; }
.case-body { padding: 6px 30px 26px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 34px; }
.case-body p { font-size: 16px; color: var(--ink-soft); }
.case .inv h4, .case .narr h4 { font-family: var(--font-sub); font-size: 12px; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 0 8px; }
.case .never {
  margin-top: 16px; background: var(--red-wash); border: 1px solid rgba(200, 90, 96, 0.35); border-radius: 0;
  padding: 12px 16px; font-size: 14.5px; color: var(--t3-deep);
}
.case .never b { font-family: var(--font-sub); font-weight: 600; font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; display: block; margin-bottom: 3px; }

/* decision tool */
.decider {
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(158, 43, 51, 0.22), transparent 60%),
    var(--dusk);
  border: 1px solid var(--line-soft);
  border-radius: 0; color: var(--dusk-ink);
  padding: 40px 44px; margin-top: 36px;
  position: relative; overflow: hidden;
}
.decider h3 { color: var(--dusk-ink); font-size: 25px; }
.decider .track { font-family: var(--font-sub); font-size: 11.5px; font-weight: 500; color: var(--red-soft); letter-spacing: 0.14em; margin-bottom: 18px; }
.decider .q { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.32; margin: 10px 0 24px; min-height: 70px; color: #f4f4f4; position: relative; }
.decider .opts { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.decider .opts button {
  font-family: var(--font-sub); font-size: 14.5px; font-weight: 500;
  background: rgba(236, 237, 237, 0.06); color: var(--dusk-ink);
  border: 1px solid rgba(236, 237, 237, 0.28); border-radius: 0;
  padding: 12px 20px 11px; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.decider .opts button:hover { background: rgba(158, 43, 51, 0.3); border-color: var(--red-bright); }
.decider .opts button:active { transform: translateY(1px); }
.decider .verdict { display: none; position: relative; }
.decider .verdict.show { display: block; animation: panelIn 0.45s ease both; }
.decider .verdict .chip { font-size: 14px; padding: 6px 16px 5px; }
.decider .verdict h4 { color: #f4f4f4; font-family: var(--font-display); font-weight: 600; font-size: 27px; margin: 14px 0 8px; }
.decider .verdict p { color: var(--ink-soft); font-size: 16px; max-width: 68ch; }
.decider .reset {
  margin-top: 18px; background: none; border: none; color: var(--red-soft);
  font-family: var(--font-sub); font-size: 13px; letter-spacing: 0.06em; cursor: pointer; padding: 4px 0;
  border-bottom: 1px dotted rgba(212, 124, 129, 0.5);
}
.decider .note { font-size: 14px; color: var(--dusk-faint); margin-top: 22px; position: relative; }

/* red flags */
.redflags { columns: 2; column-gap: 40px; margin-top: 20px; font-size: 15.5px; color: var(--ink-soft); }
.redflags li { break-inside: avoid; margin-bottom: 8px; padding-left: 4px; }
.redflags li::marker { content: "⚑  "; color: var(--red-bright); }

/* ---------- evidence tab ---------- */
.evi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.evi-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-soft); }
.evi-card h3 { font-size: 20px; }
.evi-card p { font-size: 15.5px; color: var(--ink-soft); }
.evi-stat { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: var(--red-soft); line-height: 1; margin: 8px 0 6px; }
.evi-stat.teal { color: #ffffff; }
.evi-src { font-size: 13.5px; color: var(--ink-faint); }

.claim-list { margin-top: 24px; }
.claim {
  background: var(--panel); border: 1px solid var(--line-soft); border-left: 4px solid #d9d9d9;
  border-radius: 0; padding: 16px 22px; margin-bottom: 12px;
  font-size: 16px;
}
.claim.warn { border-left-color: var(--red); }
.claim .src { display: block; font-size: 13.5px; color: var(--ink-faint); margin-top: 6px; }

.policy-acc details { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 0; margin-bottom: 10px; overflow: hidden; }
.policy-acc summary { cursor: pointer; list-style: none; padding: 17px 22px; display: flex; gap: 14px; align-items: baseline; }
.policy-acc summary:hover { background: var(--panel-2); }
.policy-acc summary::-webkit-details-marker { display: none; }
.policy-acc summary b { font-family: var(--font-sub); font-weight: 500; font-size: 15px; }
.policy-acc summary .tag { font-family: var(--font-sub); font-size: 10.5px; font-weight: 600; color: var(--red-soft); letter-spacing: 0.09em; margin-left: auto; white-space: nowrap; }
.policy-acc .pa-body { padding: 0 22px 18px; font-size: 15px; color: var(--ink-soft); border-top: 1px dashed var(--line-soft); }
.policy-acc .pa-body p { margin-top: 12px; }

.extract-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15.5px; }
.extract-table th { font-family: var(--font-display); font-weight: 500; font-size: 17px; text-align: left; padding: 12px 18px; border-bottom: 2px solid var(--line); }
.extract-table td { padding: 11px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.extract-table td:first-child { color: var(--red-soft); }
.extract-table td:last-child { color: #ffffff; }

/* convergence principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; counter-reset: prin; }
.prin { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 0; padding: 16px 18px; }
.prin b { display: block; font-family: var(--font-sub); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.prin span { font-size: 14px; color: var(--ink-soft); }
.prin::before {
  counter-increment: prin;
  content: counter(prin, decimal-leading-zero);
  font-family: var(--font-sub); font-size: 11.5px; font-weight: 600; color: var(--red-bright); display: block; margin-bottom: 6px;
}

/* ---------- adopt tab ---------- */
.license-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 28px; }
.lic-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 24px; }
.lic-card .lic-k { font-family: var(--font-sub); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; }
.lic-card.ok .lic-k { color: #ffffff; }
.lic-card.cond .lic-k { color: var(--ink-soft); }
.lic-card.no .lic-k { color: var(--red-soft); }
.lic-card h3 { font-size: 18px; margin: 8px 0 6px; }
.lic-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.adopt-steps { margin-top: 26px; }
.adopt-step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.adopt-step:last-child { border-bottom: none; }
.adopt-step .n { font-family: var(--font-sub); font-size: 14px; font-weight: 600; color: var(--red-bright); padding-top: 3px; }
.adopt-step h3 { font-size: 19px; margin-bottom: 4px; }
.adopt-step p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

.cite-block {
  background: var(--dusk); color: var(--ink-soft); border: 1px solid var(--line-soft); border-radius: 0;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  padding: 24px 28px; margin-top: 18px; overflow-x: auto; white-space: pre;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
footer.site-foot { background: var(--dusk); color: var(--dusk-faint); border-top: 1px solid var(--line-soft); margin-top: 60px; }
footer .wrap { padding: 44px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; font-size: 14.5px; }
footer h4 { color: var(--ink); font-family: var(--font-sub); font-weight: 600; font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 10px; }
footer a { color: var(--ink-soft); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--red-soft); }
footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: 18px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .brand .ver { display: none; }
  .brand .name { font-size: 15px; }
}
@media (max-width: 1120px) {
  .brand .name { display: none; }
}
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 54px; padding-bottom: 54px; }
  .tier-cards { grid-template-columns: 1fr 1fr; }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .standard-layout { grid-template-columns: 1fr; }
  .std-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
  .std-toc a { border-left: none; border: 1px solid var(--line-soft); border-radius: 0; }
  .case-body { grid-template-columns: 1fr; }
  .evi-grid, .domains { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .license-grid { grid-template-columns: 1fr; }
  .align-strip { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tier-cards, .principles, .domain-grid { grid-template-columns: 1fr; }
  .tier-detail .cols { grid-template-columns: 1fr; }
  .redflags { columns: 1; }
  .site-head .wrap { gap: 10px; }
  .callout-t3 { grid-template-columns: 1fr; padding: 24px; }
  .decider { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
