/* Setrune / Rune Keeper visual system. Compatibility token names preserve the existing interactions. */
:root,
:root[data-theme="day"] {
  --paper: #fff7e5;
  --paper-light: #fffcf4;
  --surface: #f1eddf;
  --surface-raised: #ffffff;
  --ink: #080e25;
  --muted: #51566b;
  --green: #526600;
  --line: #cdcbbc;
  --rule-strong: #7d8194;
  --mint: #ffc526;
  --accent: #ccff00;
  --accent-text: #080e25;
  --accent-soft: #f0f5cd;
  --teal: #ccff00;
  --violet: #080e25;
  --amber: #ffc526;
  --copper: #f47722;
  --copper-text: #9b3a08;
  --hero-stage: #080e25;
  --night: #080e25;
  --stage: #f4f0e4;
  --stage-line: #d7d0ba;
  --stage-text: #080e25;
  --stage-grid: #ccff0026;
  --clear-bg: #e9edff;
  --clear-ink: #080e25;
  --clear-muted: #454e70;
  --clear-rule: #afbce2;
  --control-bg: #fffcf4;
  --warning-bg: #fff0cc;
  --warning-text: #683b11;
  --warning-line: #cf701f;
  --focus: #526600;
  --shadow: 0 20px 48px #080e2518;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: Arial, Helvetica, sans-serif;
  color-scheme: light;
}
:root[data-theme="night"] {
  --paper: #080e25;
  --paper-light: #0e1735;
  --surface: #131e42;
  --surface-raised: #1a2853;
  --ink: #fff7e5;
  --muted: #b6bfd9;
  --green: #ffc526;
  --line: #2c3a65;
  --rule-strong: #687cae;
  --mint: #ffc526;
  --accent: #ffc526;
  --accent-text: #080e25;
  --accent-soft: #292847;
  --copper-text: #ffb37a;
  --hero-stage: #102665;
  --night: #05091a;
  --stage: #10204f;
  --stage-line: #2f4d92;
  --stage-text: #d4ddff;
  --stage-grid: #ccff0028;
  --clear-bg: #101c40;
  --clear-ink: #fff7e5;
  --clear-muted: #b6bfd9;
  --clear-rule: #3b4d7d;
  --control-bg: #0a1230;
  --warning-bg: #332514;
  --warning-text: #ffdda3;
  --warning-line: #f47722;
  --focus: #ffc526;
  --shadow: 0 18px 48px #00000030;
  color-scheme: dark;
}
html { scroll-padding-top: 108px; }
body { color:var(--ink); background:var(--paper); font-family:var(--sans); font-size:15px; line-height:1.7; }
body, .header, .mobile-nav, .hero-art, .scene-view, .clearing-section, .sim-network, .sim-controls, .instrument-panel, .priors-section, .risk-disclosure, .closing, input, select, button, .paper-article code, .paper-article pre, .editorial-notes {
  transition: background-color .48s ease, color .48s ease, border-color .48s ease, box-shadow .48s ease;
}
h1,h2,h3 { font-family:var(--serif); font-weight:400; }
h2 { font-size:clamp(40px,4.3vw,66px); line-height:1.09; letter-spacing:-.047em; }
h2 em,h1 em { color:var(--green); }
h1,h2,h3,p,.eyebrow,.section-index,.text-link,.button,.hero-footnote,.outline-tag,.paper-tools,.limits-row,.risk-grid,.waterfall,table,details,.sim-toolbar,.slider-field,.sim-results,.sim-note,.reset,.trust-inputs,.trust-result,.calculator-note,.module-details,.paper-nav,.risk-disclosure,.epoch-row,.art-top,.art-bottom,.art-coordinate { position:relative; z-index:2; }
a { text-underline-offset:4px; }
a:hover { text-decoration-thickness:1px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--focus); outline-offset:5px; }
button, summary, a, input { touch-action:manipulation; }
::selection { background:#ffc526; color:#080e25; }
[hidden] { display:none !important; }
.header { height:92px; padding:0 5%; gap:22px; background:var(--paper); border-bottom:1px solid var(--line); z-index:30; }
.brand { font-family:var(--serif); letter-spacing:-1.7px; font-size:36px; flex-shrink:0; gap:10px; white-space:nowrap; min-height:44px; }
.brand-mark { width:48px; height:48px; background:transparent; border:0; flex-shrink:0; overflow:hidden; }
.brand-dot { color:var(--green); }
.desktop-nav { margin-left:auto; gap:24px; font-size:12px; }
.desktop-nav a { padding:12px 0; white-space:nowrap; }
.desktop-nav a:hover { color:var(--green); }
.header-action { padding:10px 14px; white-space:nowrap; min-height:44px; display:inline-flex; align-items:center; font-size:11px; color:var(--green); border-color:var(--green); }
.header-action span { margin-left:13px; }
.display-controls { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.display-controls button { min-height:44px; min-width:44px; padding:9px 11px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line); background:transparent; color:var(--ink); font:10px/1.2 var(--mono); white-space:nowrap; }
.display-controls button:disabled { opacity:.65; cursor:default; }
.art-bottom button:disabled { opacity:.7; cursor:default; }
.display-controls button:hover { border-color:var(--rule-strong); background:var(--surface); }
.display-controls button svg { width:15px; height:15px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.5; }
.display-controls button [data-theme-label] { min-width:29px; }
.display-controls .motion-toggle:before { content:"Ⅱ"; font:14px/1 Arial,sans-serif; display:inline-block; width:12px; }
[data-motion="paused"] .display-controls .motion-toggle:before { content:"▷"; }
[data-theme="day"] .theme-moon, [data-theme="night"] .theme-sun { display:none; }
[data-motion="paused"] .motion-pause, [data-motion="running"] .motion-play { display:none; }
.menu-toggle { color:var(--ink); min-height:44px; min-width:44px; }
.mobile-nav { top:92px; background:var(--paper); box-shadow:var(--shadow); z-index:31; }
.mobile-nav a { min-height:44px; border-bottom:1px solid var(--line); }
.mobile-nav a:last-child { border-bottom:0; }
.status-strip { padding:11px 5%; font-size:10px; color:var(--muted); min-height:42px; }
.status-strip b { color:var(--ink); }
.status-dot { width:5px; height:5px; background:var(--green); }
.hero { padding:56px 5% 55px; min-height:710px; grid-template-columns:1.02fr 1fr; gap:5%; }
.hero-copy { padding:29px 0 0; min-width:0; }
.hero .eyebrow { font-size:10px; letter-spacing:.07em; }
h1 { font-size:clamp(65px,6.6vw,107px); margin:33px 0 28px; line-height:1.025; letter-spacing:-.065em; }
.hero-description { font-size:26px; line-height:1.34; letter-spacing:-.025em; }
.hero-detail { font-size:14px; line-height:1.85; color:var(--muted); max-width:395px; margin-top:19px; }
.hero-actions { gap:24px; margin-top:31px; }
.button { padding:15px 20px; min-height:48px; font-size:12px; line-height:1.5; }
.button:hover { transform:translateY(-1px); }
.dark { background:var(--accent); color:var(--accent-text); box-shadow:0 6px 18px #ccff0022; }
.dark:hover { background:#b8e600; color:#080e25; }
.light { background:#fff7e5; color:#080e25; }
.light:hover { background:#fff7e5; }
.mint { background:var(--accent); color:var(--accent-text); }
.mint:hover { filter:brightness(1.06); }
.text-link { min-height:29px; gap:20px; font-size:12px; line-height:1.6; }
.foundation-link { position:relative; z-index:2; margin-top:22px; color:var(--green); font:10px/1.6 var(--mono); border-bottom:1px solid var(--line); padding-bottom:4px; }
.foundation-link span { margin-left:14px; }
.hero-footnote { font-size:9px; line-height:1.5; color:var(--muted); padding-top:34px; gap:14px; flex-wrap:wrap; }
.hero-footnote span+span:before { margin-right:14px; }
/* The Keeper occupies the page itself; its viewport must never read as a card. */
.hero-art { min-height:572px; }
.hero-art.scene-view {
  --stage:transparent;
  --stage-text:var(--muted);
  --keeper-shadow:#080e2533;
  border:0;
  background:transparent;
  color:var(--muted);
  box-shadow:none;
  overflow:visible;
}
.scene-view:before { content:''; position:absolute; inset:0; pointer-events:none; background-image:linear-gradient(var(--stage-grid) 1px,transparent 1px),linear-gradient(90deg,var(--stage-grid) 1px,transparent 1px); background-size:44px 44px; opacity:.4; z-index:0; }
.hero-art.scene-view:before { content:none; }
.hero-art:after {
  content:'';
  position:absolute;
  inset:auto;
  left:23%;
  bottom:13.5%;
  width:54%;
  height:5.5%;
  border-radius:50%;
  background:radial-gradient(ellipse at center,var(--keeper-shadow),transparent 68%);
  filter:blur(7px);
  pointer-events:none;
  z-index:0;
}
.art-top,.art-bottom { position:absolute; z-index:3; color:var(--muted); left:0; right:0; font-size:10px; line-height:1.7; letter-spacing:.025em; gap:12px; }
.art-top { top:6px; padding:0; border:0; align-items:center; }
.art-top .status-dot { width:4px; height:4px; background:var(--green); box-shadow:none; margin-right:6px; }
.art-bottom { bottom:0; align-items:center; }
.art-bottom button { font-size:11px; line-height:1.4; color:var(--muted); min-height:44px; padding:10px 0 10px 12px; }
.art-bottom button:hover { color:var(--ink); }
.art-coordinate { position:absolute; color:var(--muted); right:-1px; top:49%; font-size:9px; z-index:3; }
#ledger-canvas { pointer-events:none; }
.scene-fallback { position:absolute; width:45%; left:27.5%; top:28%; filter:drop-shadow(0 2px 1px #080e2555) drop-shadow(0 12px 10px #080e2530); }
.scene-fallback[src$="closing.svg"] { width:100%; height:100%; object-fit:contain; left:0; top:0; filter:none; }
.spec-ribbon { padding:0 5%; background:var(--paper-light); }
.spec-ribbon>div { padding:28px 22px 29px; }
.spec-ribbon small,.limits-row small { font-size:9px; color:var(--muted); }
.spec-ribbon strong { font-size:22px; letter-spacing:-.02em; margin-top:12px; }
.spec-ribbon strong span { font-size:11px; line-height:1.5; margin-top:9px; }
.section-shell { padding:103px 6%; grid-template-columns:18% minmax(0,1fr); gap:4%; }
.section-index { font-size:10px; line-height:1.7; padding-top:8px; letter-spacing:.065em; color:var(--muted); }
.section-content,.intro-main { min-width:0; }
.hero-art,.sim-controls,.trust-calculator>div,footer>* { min-width:0; }
.intro-columns { gap:40px; margin:31px 0 27px; }
.intro-columns p { font-size:15px; color:var(--muted); line-height:1.9; }
.scene-view { position:relative; overflow:hidden; background:var(--stage); border:1px solid var(--stage-line); min-width:0; }
.scene-static { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:0; }
img.scene-static { width:100%; height:100%; object-fit:contain; }
.scene-static img { display:block; width:100%; height:100%; max-width:none; object-fit:contain; }
.scene-view.scene-ready .scene-static { visibility:hidden; }
.premise-scene { height:250px; margin:33px 0 25px; }
.clearing-section { background:var(--clear-bg); color:var(--clear-ink); border-top:1px solid var(--clear-rule); border-bottom:1px solid var(--clear-rule); }
.clearing-heading { padding-top:88px; padding-bottom:45px; }
.clearing-heading .section-index,.clearing-heading .muted { color:var(--clear-muted); }
.clearing-heading h2 { font-size:clamp(38px,4.1vw,62px); }
.clearing-heading h2 em { color:var(--green); }
.clearing-heading p { font-size:14px; color:var(--clear-muted); margin-top:22px; }
.simulator { border:1px solid var(--clear-rule); margin:0 6%; grid-template-columns:1.35fr 1fr; background:var(--clear-bg); }
.sim-network { border-right:1px solid var(--clear-rule); padding:26px; background:none; min-width:0; }
.sim-toolbar { font-size:9px; color:var(--clear-muted); }
.sim-toolbar .status-dot { background:var(--green); }
.clearing-scene { border:0; background:transparent; aspect-ratio:600/410; margin:10px auto 12px; overflow:visible; }
.clearing-scene:before { display:none; }
.clearing-scene .network-svg { margin:0; width:100%; height:100%; max-height:none; position:relative; z-index:2; }
.clearing-scene.scene-ready .network-svg { visibility:hidden; }
.graph-labels { position:absolute; inset:0; pointer-events:none; z-index:2; visibility:hidden; font-family:var(--mono); color:var(--clear-ink); }
.clearing-scene.scene-ready .graph-labels { visibility:visible; }
.graph-labels>* { position:absolute; transform:translate(-50%,-50%); white-space:nowrap; }
.graph-labels .graph-edge,.graph-labels [data-edge] { font-size:10px; background:var(--clear-bg); padding:4px 6px; }
.graph-labels .graph-agent { font-family:var(--serif); font-size:25px; }
.clearing-scene.scene-ready .graph-agent { color:#080e25; }
.graph-labels .graph-center { font:54px/1 var(--serif); color:var(--green); }
.graph-labels .graph-center-caption { font-size:8px; letter-spacing:.13em; }
.graph-labels .agent-a { left:50%; top:18%; }
.graph-labels .agent-b { left:74%; top:74%; }
.graph-labels .agent-c { left:26%; top:74%; }
.graph-labels .edge-ab { left:73%; top:40.5%; }
.graph-labels .edge-bc { left:50%; top:89.5%; }
.graph-labels .edge-ca { left:24.2%; top:40.5%; }
.graph-labels .graph-center { left:50%; top:53%; text-align:center; }
.graph-labels .graph-center small { display:block; margin-top:13px; font:8px/1.5 var(--mono); letter-spacing:.12em; color:var(--clear-muted); }
.orbit { stroke:var(--clear-rule); }
.debt-edge { stroke:var(--green); }
.edge-label { fill:var(--clear-ink); stroke:var(--clear-bg); }
.agent rect { fill:var(--surface); stroke:var(--rule-strong); }
.agent text { fill:var(--ink); }
.center-sum { fill:var(--green); }
.center-caption { fill:var(--clear-muted); }
.network-caption { font-size:11px; line-height:1.75; color:var(--clear-muted); max-width:500px; }
.sim-controls { padding:32px; background:var(--paper-light); }
.sim-controls .eyebrow { color:var(--clear-ink); font-size:10px; }
.slider-field { margin:20px 0; }
.slider-field label { font-size:12px; color:var(--clear-muted); }
.slider-field output { font-size:12px; color:var(--clear-ink); font-variant-numeric:tabular-nums; }
input[type=range] { accent-color:var(--green); min-height:22px; }
.sim-results { border-color:var(--clear-rule); margin-top:22px; }
.sim-results>div { font-size:12px; margin:12px 0; }
.sim-results strong { font:27px/1.2 var(--serif); font-variant-numeric:tabular-nums; }
.sim-results small { color:var(--clear-muted); font-size:9px; }
.sim-results .saved { color:var(--green); border-color:var(--clear-rule); }
.reset { color:var(--clear-ink); border-color:var(--rule-strong); font-size:11px; min-height:35px; margin:10px auto; }
.sim-note { font-size:10px; line-height:1.75; color:var(--clear-muted); }
.epoch-row { color:var(--clear-muted); padding:31px 6% 42px; font-size:10px; }
.epoch-row span:last-child { color:var(--clear-ink); }
.section-title-row { align-items:flex-end; gap:22px; }
.outline-tag { display:inline-block; color:var(--muted); font-size:9px; line-height:1.5; padding:7px 9px; }
.instrument-layout { grid-template-columns:.86fr 1.14fr; margin-top:42px; border-color:var(--line); }
.instrument-tabs { padding-right:28px; }
.instrument-tabs button { padding:23px 2px; gap:18px; color:var(--muted); font-size:23px; line-height:1.4; min-height:73px; }
.instrument-tabs button span { font-size:10px; }
.instrument-tabs button[aria-selected=true] { color:var(--green); background:var(--accent-soft); box-shadow:inset 3px 0 var(--accent); }
.instrument-tabs button[aria-selected=true] span { color:var(--green); }
.instrument-tabs button[aria-selected=true] b { color:var(--green); }
.instrument-panel { padding:30px; background:var(--surface); border-color:var(--line); min-height:510px; }
.instrument-panel h3 { font-size:36px; line-height:1.1; margin:17px 0 19px; }
.instrument-panel p { font-size:14px; color:var(--muted); line-height:1.85; }
.instrument-panel .eyebrow { color:var(--green); font-size:10px; }
.instruments-scene { height:160px; margin:-5px -5px 22px; border:0; background:transparent; }
.instruments-scene:before { opacity:.18; }
.instrument-diagram { display:none; }
.module-details { gap:8px; margin:22px 0; }
.module-details span { color:var(--ink); border-color:var(--rule-strong); font-size:10px; line-height:1.5; }
.priors-section { background:var(--surface); border-color:var(--line); padding-top:88px; padding-bottom:82px; }
.priors-main { gap:24px 46px; grid-template-columns:1fr 1fr; }
.foundation-caption { grid-column:1/-1; position:relative; z-index:2; font:10px/1.6 var(--mono); color:var(--green); letter-spacing:.025em; }
.priors-main p { color:var(--muted); font-size:15px; line-height:1.9; }
.priors-main .small-copy { font-size:12px; line-height:1.8; margin:20px 0; }
.trust-calculator { grid-template-columns:1fr 1.08fr .86fr; gap:30px; border-color:var(--rule-strong); margin-top:40px; padding-top:32px; }
.trust-calculator .eyebrow { font-size:10px; }
.trust-calculator>div:first-child p { font-size:25px; line-height:1.35; }
.small-copy { font-size:12px; line-height:1.75; color:var(--muted); }
.trust-inputs label { color:var(--muted); font-size:11px; line-height:1.6; }
.trust-inputs input[type=number],.trust-inputs select { border-color:var(--rule-strong); color:var(--ink); background:var(--control-bg); height:44px; padding:9px 10px; }
.check-label { min-height:32px; }
.check-label input { width:16px; height:16px; flex-shrink:0; }
.trust-result { border-color:var(--rule-strong); padding-left:25px; }
.trust-result small { font-size:9px; color:var(--muted); line-height:1.5; }
.trust-result strong { font-size:53px; line-height:1.3; font-variant-numeric:tabular-nums; color:var(--green); }
.trust-result strong>span:last-child { font-size:10px; }
.trust-result p { color:var(--muted); font-size:10px; line-height:1.8; overflow-wrap:anywhere; }
.calculator-note { color:var(--muted); font-size:10px; line-height:1.85; margin-top:0; }
.reputation-scene { grid-column:1/-1; height:210px; margin-top:5px; background:var(--paper); }
.section-lead { font-size:15px; line-height:1.85; max-width:670px; margin-top:27px; }
.risk-grid { gap:28px; margin:43px 0; }
.risk-grid article { border-top:1px solid var(--line); padding-top:20px; }
.risk-number { font-size:11px; }
.risk-grid h3 { font-size:26px; line-height:1.2; margin:17px 0 15px; }
.risk-grid p { font-size:13px; line-height:1.85; }
.waterfall { padding-top:28px; }
.waterfall .eyebrow { font-size:10px; }
.waterfall ol { gap:18px; margin-bottom:26px; }
.waterfall li { border-color:var(--rule-strong); }
.waterfall b { font-size:10px; }
.waterfall strong { font-size:20px; line-height:1.25; margin:8px 0; }
.waterfall li span { font-size:11px; line-height:1.6; }
.risk-scene { height:235px; margin:27px 0 30px; }
.risk-disclosure { background:var(--warning-bg); border-left:2px solid var(--warning-line); padding:23px 25px; }
.risk-disclosure>span { color:var(--warning-text); font-size:10px; }
.risk-disclosure p { color:var(--warning-text); font-size:12px; line-height:1.9; margin:10px 0 14px; }
.risk-disclosure a { font-size:12px; color:var(--warning-text); }
.economics { padding-top:0; }
.economics .section-title-row p { max-width:260px; font-size:12px; line-height:1.8; }
.table-scroll { margin-top:37px; position:relative; z-index:2; }
th { color:var(--muted); border-color:var(--rule-strong); font-size:10px; line-height:1.6; padding:13px 12px 13px 0; }
td { padding:19px 12px 19px 0; font-size:13px; line-height:1.6; }
td:nth-child(2) { font-size:13px; font-variant-numeric:tabular-nums; }
td:nth-child(3) { font-size:12px; }
td small { font-size:10px; line-height:1.5; }
.economics-scene { height:200px; margin:30px 0; }
.limits-row { gap:23px; margin:32px 0 23px; }
.limits-row small { font-size:9px; line-height:1.7; display:block; }
.limits-row strong { font-size:23px; line-height:1.3; margin-top:10px; font-variant-numeric:tabular-nums; }
.faq { padding-top:0; }
.faq h2 { font-size:43px; margin-bottom:33px; }
.faq .section-index { align-self:start; z-index:auto; }
.faq-scene { width:100%; height:235px; margin-top:32px; border:none; background:transparent; }
.faq-scene:before { opacity:.15; }
.faq details { padding:23px 0; }
.faq summary { font-size:23px; line-height:1.35; min-height:32px; }
.faq summary span { display:inline-block; line-height:1.5; flex-shrink:0; transition:transform .25s ease; }
.faq details p { font-size:14px; line-height:1.9; max-width:68ch; }
.closing { background:#102052; color:#fff7e5; padding:79px 8%; min-height:395px; border-top:1px solid #ccff00; }
[data-theme="night"] .closing { background:#102052; }
.closing h2 { font-size:clamp(42px,5.2vw,77px); margin:28px 0 33px; max-width:68%; }
.closing h2 em { color:#ffc526; }
.closing .eyebrow { color:#fff0bd; font-size:10px; }
.closing-scene { position:absolute; width:34%; height:100%; right:3%; top:0; background:transparent; border:0; }
.closing-scene:before { display:none; }
.closing .closing-mark { display:none; }
footer { padding:44px 6% 47px; grid-template-columns:1fr 1.2fr 1fr .8fr; gap:30px; background:var(--paper); }
footer>.brand { grid-column:1; grid-row:1; }
footer>p { grid-column:2; grid-row:1; }
footer>div { grid-column:3; grid-row:1; }
footer>.footer-meta { grid-column:4; grid-row:1; }
.foundation-footer { grid-column:2/4; grid-row:2; width:fit-content; font:10px/1.6 var(--mono); color:var(--green); border-bottom:1px solid var(--line); padding-bottom:4px; position:relative; z-index:2; }
footer p { font-size:13px; line-height:1.8; }
footer>div { font-size:12px; gap:10px; }
footer>div a { width:fit-content; }
footer>div a:hover { text-decoration:underline; }
.footer-meta { font-size:10px; line-height:1.9; }
.paper-layout { grid-template-columns:235px minmax(0,790px); gap:65px; padding:58px 6% 90px; }
.paper-nav { position:sticky; top:119px; max-height:calc(100vh - 145px); padding-right:22px; border-right:1px solid var(--line); scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.paper-nav .eyebrow { font-size:10px; }
.paper-nav a { font-size:11px; line-height:1.6; padding:8px 0; }
.paper-nav a:hover { color:var(--green); text-decoration:underline; }
.paper-article { min-width:0; }
.paper-article>.eyebrow { font-size:10px; }
.paper-scene { height:190px; margin:25px 0 33px; background:transparent; border:0; }
.paper-scene:before { content:none; }
.paper-article h1 { font-size:63px; line-height:1.03; margin:22px 0 29px; }
.paper-article h2 { font-size:36px; line-height:1.14; margin:62px 0 25px; padding-top:31px; }
.paper-article h3 { font-size:26px; line-height:1.25; margin:32px 0 18px; }
.paper-article p,.paper-article li { font-size:15px; line-height:1.92; color:var(--muted); margin:16px 0; }
.paper-article strong { color:var(--ink); }
.paper-article ul,.paper-article ol { padding-left:24px; }
.paper-article code { background:var(--surface); color:var(--ink); font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.paper-article pre { background:var(--surface); color:var(--ink); padding:22px; line-height:1.8; border:1px solid var(--line); }
.paper-article pre code { overflow-wrap:normal; }
.paper-article table { margin:25px 0; border:1px solid var(--line); }
.paper-article td,.paper-article th { padding:12px; font-size:12px; }
.paper-article th { font-size:10px; background:var(--surface); }
.paper-article td:first-child { color:var(--ink); }
.paper-article .editorial-notes { padding:28px; background:var(--warning-bg); border-color:var(--warning-line); margin:32px 0 42px; }
.editorial-notes h2 { font-size:29px; margin:0 0 18px; border:0; padding:0; }
.paper-article .editorial-notes p,.paper-article .editorial-notes li { font-size:12px; line-height:1.9; color:var(--warning-text); }
.paper-article .editorial-notes strong { color:var(--warning-text); }
.paper-tools { margin:22px 0 30px; flex-wrap:wrap; }
.paper-tools button { color:var(--ink); min-height:44px; }
.paper-article blockquote { border-color:var(--green); }

/* Approved Keeper artwork: full figure at editorial scale, cropped face at identity scale. */
.brand-mark img.brand-avatar { display:block; width:100%; height:100%; max-width:none; object-fit:contain; padding:0; }
.hero-art .keeper-image { display:block; position:absolute; left:0; top:14%; width:100%; height:72%; max-width:none; padding:0 5%; object-fit:contain; z-index:2; filter:drop-shadow(0 9px 10px #080e2514); }
.hero-art.webgl-ready .keeper-image { display:none; }
.paper-scene .keeper-image { position:absolute; inset:8px 28%; width:44%; height:calc(100% - 16px); object-fit:contain; padding:0; z-index:2; filter:drop-shadow(0 8px 9px #080e252b); }
.closing-scene .keeper-image { position:absolute; inset:5% 0; width:100%; height:90%; object-fit:contain; padding:0; z-index:2; filter:drop-shadow(0 12px 12px #080e2544); }
.paper-scene.scene-ready .keeper-image,.closing-scene.scene-ready .keeper-image { visibility:visible; }
.header-action:hover { color:var(--paper); }
.hero-art button:focus-visible { outline-color:var(--focus); }
.closing a:focus-visible { outline-color:#ffc526; }
.status-dot { border-radius:1px; }
.outline-tag { border-color:var(--rule-strong); }
.waterfall b,.risk-number { color:var(--copper-text); }
.waterfall li:before { background:var(--copper); }
.spec-ribbon>div { border-top:2px solid transparent; }
.spec-ribbon>div:nth-child(1) { border-top-color:#ccff00; }
.spec-ribbon>div:nth-child(2) { border-top-color:#ffc526; }
.spec-ribbon>div:nth-child(3) { border-top-color:#f47722; }
.spec-ribbon>div:nth-child(4) { border-top-color:#ccff00; }
[data-theme="night"] .header-action:hover { background:var(--accent); color:var(--accent-text); }
[data-theme="night"] .hero-art.scene-view { --keeper-shadow:#00000099; }
[data-theme="night"] .light { background:#fff7e5; color:#080e25; }

html[data-motion="paused"] { scroll-behavior:auto; }
@media (min-width:781px) {
  .mobile-nav { display:none; }
}
@media (min-width:1600px) {
  .hero,.header,.status-strip,.spec-ribbon,footer { padding-left:max(6%,calc((100vw - 1460px)/2)); padding-right:max(6%,calc((100vw - 1460px)/2)); }
  .section-shell { padding-left:max(6%,calc((100vw - 1420px)/2)); padding-right:max(6%,calc((100vw - 1420px)/2)); }
  .hero { gap:65px; }
  .hero-art { min-height:620px; }
}
@media (max-width:1200px) {
  .header { gap:16px; padding:0 4%; }
  .desktop-nav { gap:16px; font-size:11px; }
  .header-action { display:none; }
  .hero { padding-left:5%; padding-right:5%; gap:4%; min-height:650px; }
  .hero-art { min-height:550px; }
  .hero-actions { gap:19px; flex-wrap:wrap; }
  .hero-footnote { font-size:9px; gap:9px; }
  .hero-footnote span+span:before { margin-right:9px; }
  .art-top { font-size:9px; }
  .section-shell { grid-template-columns:15% minmax(0,1fr); gap:4%; padding:83px 5%; }
  .section-index { font-size:9px; }
  .simulator { margin:0 5%; grid-template-columns:1.2fr 1fr; }
  .sim-controls { padding:28px; }
  .sim-network { padding:24px 20px; }
  .instrument-panel { padding:27px; }
  .instrument-tabs { padding-right:23px; }
  .instrument-tabs button { font-size:21px; gap:14px; }
  .outline-tag { display:inline-block; font-size:8px; white-space:normal; max-width:100px; }
  .trust-calculator { column-gap:23px; grid-template-columns:.9fr 1.15fr .95fr; }
  .trust-result { padding-left:20px; }
  .trust-result strong { font-size:45px; }
  .economics,.faq { padding-top:0; }
  .paper-layout { grid-template-columns:210px minmax(0,740px); gap:36px; padding-left:5%; padding-right:5%; }
}
@media (max-width:960px) {
  .desktop-nav { gap:14px; }
  .display-controls { gap:4px; }
  .display-controls button { padding:8px; }
  .display-controls [data-motion-label] { display:none; }
  .hero { grid-template-columns:1fr 1fr; padding-top:40px; }
  h1 { font-size:clamp(52px,6.6vw,64px); }
  .hero .eyebrow { font-size:8px; }
  .hero-description { font-size:23px; }
  .hero-detail { font-size:13px; }
  .hero-art { min-height:545px; }
  .hero-footnote { row-gap:8px; }
  .section-title-row { flex-wrap:wrap; }
  .outline-tag { max-width:none; white-space:nowrap; }
  .section-shell { grid-template-columns:1fr; gap:23px; }
  .section-index { margin:0; }
  .faq { grid-template-columns:18% minmax(0,1fr); }
  .faq .section-index { font-size:8px; }
  .priors-main { grid-column:1/-1; }
  .trust-calculator { grid-template-columns:.9fr 1.15fr .95fr; }
  .faq-scene { height:190px; }
}
@media (max-width:780px) {
  html { scroll-padding-top:90px; }
  .header { height:77px; gap:13px; padding:0 6%; }
  .brand { font-size:30px; gap:9px; }
  .brand-mark { width:38px; height:38px; }
  .brand-mark img { width:26px; height:auto; }
  .desktop-nav,.header-action { display:none; }
  .display-controls { margin-left:auto; }
  .display-controls button { min-width:44px; min-height:44px; padding:8px; font-size:10px; gap:5px; }
  .display-controls button svg { width:14px; height:14px; }
  .display-controls button [data-theme-label] { min-width:26px; }
  .menu-toggle { display:flex; gap:10px; min-height:44px; padding:9px 0 9px 4px; font-size:11px; }
  .menu-toggle span { font-size:20px; }
  .mobile-nav { top:77px; }
  .header>.text-link { font-size:10px; gap:8px; margin-left:auto; }
  .header>.text-link+.display-controls { margin-left:0; }
  .status-strip { padding:10px 6%; font-size:8px; gap:16px; align-items:flex-start; }
  .status-strip>span:last-child { font-size:8px; text-align:right; }
  .status-strip b { font-size:8px; display:block; margin-left:0; white-space:nowrap; }
  .hero { grid-template-columns:1fr; padding:32px 6% 34px; gap:33px; min-height:0; }
  .hero-copy { padding:0; }
  .hero .eyebrow { font-size:9px; }
  h1 { font-size:clamp(64px,13.7vw,95px); margin:27px 0 22px; letter-spacing:-.061em; }
  .hero-description { font-size:25px; line-height:1.35; }
  .hero-detail { font-size:14px; max-width:470px; line-height:1.85; }
  .hero-actions { margin-top:26px; gap:23px; }
  .button { padding:14px 18px; min-height:47px; font-size:11px; }
  .text-link { font-size:11px; }
  .hero-footnote { font-size:9px; gap:13px; padding-top:29px; }
  .hero-footnote span+span:before { margin-right:13px; }
  .hero-art { min-height:430px; }
  .hero-art .keeper-image { top:15%; height:70%; }
  .art-top,.art-bottom { left:0; right:0; font-size:9px; }
  .art-top { top:4px; }
  .art-bottom { bottom:0; }
  .art-coordinate { right:0; font-size:8px; }
  .spec-ribbon { padding:0 6%; }
  .spec-ribbon>div { padding:23px 15px; }
  .spec-ribbon small { font-size:8px; line-height:1.6; }
  .spec-ribbon strong { font-size:20px; line-height:1.2; }
  .spec-ribbon strong span { font-size:11px; margin-top:9px; }
  .section-shell { display:block; padding:64px 6%; }
  .section-index { margin-bottom:23px; font-size:9px; line-height:1.7; }
  h2 { font-size:clamp(36px,8.3vw,53px); }
  .intro-columns { gap:25px; margin-top:25px; }
  .intro-columns p { font-size:13px; line-height:1.85; }
  .premise-scene { height:220px; margin:28px 0 23px; }
  .clearing-heading { padding-bottom:31px; }
  .clearing-heading h2 { font-size:clamp(35px,8vw,47px); }
  .clearing-heading p { font-size:13px; }
  .simulator { margin:0 6%; grid-template-columns:1fr; }
  .sim-network { padding:21px 19px 23px; border-right:0; border-bottom:1px solid var(--clear-rule); }
  .sim-toolbar { font-size:8px; }
  .clearing-scene { max-height:420px; margin:14px auto; }
  .sim-network .network-svg { max-height:none; }
  .graph-labels .graph-edge,.graph-labels [data-edge] { font-size:9px; padding:3px 4px; }
  .graph-labels .graph-agent { font-size:23px; }
  .graph-labels .graph-center { font-size:47px; }
  .graph-labels .graph-center-caption { font-size:7px; }
  .network-caption { font-size:10px; }
  .sim-controls { padding:26px; }
  .sim-results strong { font-size:27px; }
  .sim-note { font-size:10px; }
  .epoch-row { padding:27px 6% 35px; font-size:9px; gap:14px; flex-wrap:wrap; }
  .epoch-row>span:last-child { font-size:9px; }
  .section-title-row { display:flex; align-items:flex-start; gap:17px; }
  .outline-tag { display:inline-block; font-size:8px; }
  .instrument-layout { grid-template-columns:1fr; margin-top:30px; }
  .instrument-tabs { display:grid; grid-template-columns:1fr 1fr; padding:0; border-bottom:1px solid var(--line); }
  .instrument-tabs button { min-height:60px; padding:17px 12px; font-size:17px; line-height:1.3; gap:10px; }
  .instrument-tabs button span { font-size:9px; }
  .instrument-tabs button b { font-size:14px; }
  .instrument-panel { padding:25px; min-height:470px; border-left:0; }
  .instrument-panel h3 { font-size:34px; }
  .instrument-panel p { font-size:13px; }
  .instruments-scene { height:155px; margin:-4px -5px 22px; }
  .priors-main { grid-template-columns:1fr; gap:25px; }
  .priors-main p { font-size:14px; }
  .trust-calculator { grid-template-columns:1fr; margin-top:33px; padding-top:28px; gap:24px; }
  .trust-calculator>div:first-child p { font-size:25px; margin-top:15px; }
  .trust-inputs { gap:16px; }
  .trust-inputs label { font-size:11px; }
  .trust-result { padding:21px 0 0; border-left:0; border-top:1px solid var(--rule-strong); }
  .trust-result strong { font-size:52px; margin:4px 0; }
  .calculator-note { grid-column:auto; margin-top:0; }
  .reputation-scene { height:195px; }
  .section-lead { font-size:14px; line-height:1.9; margin-top:24px; }
  .risk-grid { grid-template-columns:1fr; margin:32px 0; gap:23px; }
  .risk-grid article { border-top:0; border-bottom:1px solid var(--line); padding:0 0 23px; }
  .risk-grid h3 { font-size:26px; margin:10px 0 13px; }
  .risk-grid p { font-size:13px; }
  .waterfall { border-top:0; padding-top:3px; }
  .waterfall ol { grid-template-columns:1fr 1fr; gap:28px 20px; margin-top:24px; }
  .waterfall strong { font-size:21px; }
  .risk-scene { height:210px; margin:25px 0; }
  .risk-disclosure { padding:21px; }
  .risk-disclosure p { font-size:12px; }
  .economics,.faq { padding-top:0; }
  .economics .section-title-row p { font-size:12px; max-width:310px; margin-top:17px; }
  .table-scroll { margin-top:27px; }
  th { font-size:9px; }
  td { font-size:12px; min-width:104px; padding:17px 13px 17px 0; }
  td:nth-child(2) { font-size:12px; }
  td:nth-child(3) { font-size:11px; min-width:145px; }
  td small { font-size:10px; margin-left:0; }
  .economics-scene { height:180px; margin:24px 0; }
  .limits-row { grid-template-columns:1fr 1fr; gap:25px 20px; }
  .limits-row strong { font-size:23px; }
  .limits-row small { font-size:8px; }
  .faq h2 { font-size:35px; margin-bottom:24px; }
  .faq-scene { height:130px; width:175px; margin:5px 0 0; }
  .faq .section-index { font-size:9px; }
  .faq details { padding:21px 0; }
  .faq summary { font-size:21px; min-height:33px; }
  .faq details p { font-size:13px; line-height:1.9; }
  .closing { padding:56px 6% 44px; min-height:0; }
  .closing h2 { font-size:clamp(39px,8.4vw,56px); max-width:100%; margin:24px 0 28px; }
  .closing .eyebrow { font-size:9px; }
  .closing-scene { position:relative; height:285px; width:100%; inset:auto; margin:15px 0 0; }
  footer { grid-template-columns:1fr 1fr; gap:28px 22px; padding:34px 6%; }
  footer>.brand { grid-column:1; grid-row:1; }
  footer>p { grid-column:2; grid-row:1; }
  footer>div { grid-column:1; grid-row:2; }
  footer>.footer-meta { grid-column:2; grid-row:2; }
  .foundation-footer { grid-column:1/-1; grid-row:3; font-size:9px; }
  footer p { font-size:12px; }
  footer>div { font-size:11px; }
  .footer-meta { font-size:9px; }
  .paper-layout { display:block; padding:32px 6% 65px; }
  .paper-nav { position:relative; top:0; max-height:230px; overflow:auto; padding:22px; margin-bottom:34px; border:1px solid var(--line); }
  .paper-nav .eyebrow { margin-bottom:15px; }
  .paper-nav a { font-size:12px; padding:8px 0; }
  .paper-article h1 { font-size:49px; }
  .paper-article h2 { font-size:31px; line-height:1.17; margin-top:49px; padding-top:25px; }
  .paper-article h3 { font-size:24px; }
  .paper-article p,.paper-article li { font-size:14px; line-height:1.9; }
  .paper-article .editorial-notes { padding:22px; }
  .paper-article .editorial-notes h2 { padding:0; margin:0 0 17px; font-size:27px; }
  .paper-article .editorial-notes p,.paper-article .editorial-notes li { font-size:12px; }
  .paper-article td { font-size:11px; }
  .paper-article th { font-size:9px; }
  .paper-scene { height:175px; }
  .paper-tools { gap:18px; }
}
@media (max-width:420px) {
  .header { padding:0 5%; gap:8px; }
  .brand { gap:7px; font-size:27px; letter-spacing:-1.25px; }
  .brand-mark { width:34px; height:34px; }
  .display-controls button { padding:8px 7px; }
  .display-controls [data-theme-label] { display:none; }
  .display-controls button [data-theme-label] { min-width:0; }
  .header>.text-link { max-width:110px; line-height:1.35; }
  .menu-toggle { gap:6px; }
  h1 { font-size:61px; }
  .hero-footnote { font-size:9px; gap:10px; }
  .hero-footnote span+span:before { margin-right:10px; }
  .hero-art { min-height:390px; }
  .header>.text-link { max-width:78px; font-size:9px; }
  .art-top { font-size:9px; gap:8px; }
  .art-bottom { font-size:9px; }
  .art-bottom button { font-size:10px; }
  .intro-columns { grid-template-columns:1fr; gap:19px; }
  .premise-scene { height:195px; }
  .sim-network { padding:19px 11px; }
  .sim-toolbar { font-size:7px; gap:5px; }
  .sim-controls { padding:23px; }
  .graph-labels .graph-edge,.graph-labels [data-edge] { font-size:8px; }
  .graph-labels .graph-agent { font-size:20px; }
  .graph-labels .graph-center { font-size:40px; }
  .instrument-tabs button { font-size:15px; padding:15px 10px; gap:7px; }
  .module-details span { font-size:9px; }
  .trust-inputs { gap:12px; }
  .trust-inputs label { font-size:10px; }
  .trust-inputs input[type=number],.trust-inputs select { font-size:12px; }
  .paper-article h1 { font-size:44px; }
}
@media (max-width:360px) {
  .hero h1 { font-size:clamp(44px,14vw,50px); }
  .header { gap:6px; }
  .brand { font-size:25px; gap:5px; }
  .brand-mark { width:31px; height:31px; }
  .display-controls { gap:3px; }
  .display-controls button { min-width:44px; min-height:44px; padding:7px 6px; }
  .menu-toggle { gap:4px; font-size:10px; }
  .header>.text-link { max-width:58px; font-size:9px; gap:3px; }
  .hero .eyebrow { font-size:8px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*:before,*:after { animation:none !important; transition:none !important; }
}
/* Clearing terminal: precise instrument controls and a compact, dark data stage. */
.clearing-section {
  --clear-bg:var(--paper);
  --clear-ink:var(--ink);
  --clear-muted:var(--muted);
  --clear-rule:var(--line);
  background:var(--paper);
}
.clearing-section .clearing-heading { padding-top:76px; padding-bottom:35px; }
.clearing-section .simulator {
  --clear-bg:#090f1f;
  --clear-ink:#fff7e5;
  --clear-muted:#aab4cc;
  --clear-rule:#26314a;
  --green:#ffc526;
  --accent:#ffc526;
  --accent-text:#080e25;
  --focus:#ffc526;
  width:88%;
  max-width:1200px;
  margin:0 auto;
  grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr);
  background:#090f1f;
  border:1px solid #2a3550;
  border-radius:18px;
  box-shadow:0 24px 64px #04081a1f,0 2px 6px #04081a0d;
  overflow:hidden;
  color:var(--clear-ink);
}
[data-theme="night"] .clearing-section .simulator { box-shadow:0 24px 56px #0000002b; border-color:#28334e; }
.clearing-section .sim-network {
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
  padding:25px 27px 25px;
  border-right:1px solid #26314a;
  background:radial-gradient(ellipse at 50% 43%,#ccff000b,transparent 65%),#090f1f;
}
.clearing-section .sim-toolbar {
  align-items:center;
  gap:14px;
  min-height:24px;
  font-size:8px;
  line-height:1.7;
  letter-spacing:.07em;
  color:#aab4cc;
}
.clearing-section .sim-toolbar>span:first-child { color:#fff7e5; white-space:nowrap; }
.clearing-section .sim-toolbar>span:last-child { text-align:right; font-size:7px; letter-spacing:.06em; }
.clearing-section .sim-toolbar .status-dot { width:5px; height:5px; border-radius:50%; box-shadow:0 0 10px #ffc52635; margin-right:7px; }
.clearing-section .clearing-scene {
  flex:none;
  width:100%;
  max-width:500px;
  height:auto;
  aspect-ratio:600/410;
  margin:2px auto;
  background:transparent;
  border:0;
}
.clearing-section .clearing-scene .network-svg { width:100%; height:100%; max-height:none; }
.clearing-section .graph-labels { color:#fff7e5; }
.clearing-section .graph-labels .graph-agent,
.clearing-section .clearing-scene.scene-ready .graph-agent { font:600 18px/1 var(--sans); letter-spacing:-.02em; color:#fff7e5; text-shadow:0 1px 2px #00000080; }
.clearing-section .graph-labels .graph-edge,
.clearing-section .graph-labels [data-edge] {
  font:10px/1.4 var(--mono);
  font-variant-numeric:tabular-nums;
  color:#e4eafa;
  background:#0e172b;
  padding:5px 8px;
  border:1px solid #2c3854;
  border-radius:6px;
  box-shadow:0 3px 10px #00000020;
}
.clearing-section .graph-labels .graph-center { top:62%; color:#ffc526; font:10px/1.4 var(--mono); }
.clearing-section .graph-labels .graph-center small { font:7px/1.5 var(--mono); color:#aab4cc; letter-spacing:.12em; margin:0; }
.clearing-section .network-caption {
  max-width:480px;
  min-height:37px;
  font:10px/1.8 var(--mono);
  color:#aab4cc;
  padding:16px 0 0;
  border-top:1px solid #202b42;
}
.clearing-section .sim-controls { padding:26px 28px 23px; background:#0f172a; }
.clearing-section .sim-controls>.eyebrow { font-size:9px; color:#fff7e5; letter-spacing:.095em; margin-bottom:20px; }
.clearing-section .slider-field { margin:13px 0; }
.clearing-section .slider-field label { align-items:center; color:#bcc5da; font-size:11px; line-height:1.5; }
.clearing-section .slider-field output { color:#fff7e5; font:12px/1.5 var(--mono); font-variant-numeric:tabular-nums; }
.clearing-section input[type="range"] {
  --range-fill:50%;
  -webkit-appearance:none;
  appearance:none;
  display:block;
  width:100%;
  min-height:32px;
  height:32px;
  padding:0;
  margin:4px 0 0;
  border:0;
  border-radius:4px;
  background:transparent;
  outline-offset:2px;
  cursor:ew-resize;
  accent-color:#ffc526;
  touch-action:pan-y;
}
.clearing-section #debt-a { --range-fill:80%; }
.clearing-section #debt-b { --range-fill:60%; }
.clearing-section #debt-c { --range-fill:50%; }
.clearing-section input[type="range"]::-webkit-slider-runnable-track {
  height:4px;
  border:0;
  border-radius:4px;
  background:linear-gradient(90deg,#ccff00 0%,#ccff00 var(--range-fill),#2e3a55 var(--range-fill),#2e3a55 100%);
}
.clearing-section input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance:none;
  appearance:none;
  width:14px;
  height:14px;
  margin-top:-5px;
  border:3px solid #ffc526;
  border-radius:50%;
  background:#0f172a;
  box-shadow:0 0 0 4px #ffc52610;
  transition:box-shadow .16s ease,background-color .16s ease;
}
.clearing-section input[type="range"]::-moz-range-track { height:4px; border:0; border-radius:4px; background:#2e3a55; }
.clearing-section input[type="range"]::-moz-range-progress { height:4px; border-radius:4px; background:#ccff00; }
.clearing-section input[type="range"]::-moz-range-thumb { width:10px; height:10px; border:3px solid #ffc526; border-radius:50%; background:#0f172a; box-shadow:0 0 0 4px #ffc52610; }
.clearing-section input[type="range"]:hover::-webkit-slider-thumb,
.clearing-section input[type="range"]:focus-visible::-webkit-slider-thumb { background:#ffc526; box-shadow:0 0 0 5px #ffc5261c; }
.clearing-section input[type="range"]:hover::-moz-range-thumb,
.clearing-section input[type="range"]:focus-visible::-moz-range-thumb { background:#ffc526; box-shadow:0 0 0 5px #ffc5261c; }
.clearing-section .sim-results { border-top:1px solid #2a3550; padding-top:12px; margin:17px 0 17px; }
.clearing-section .sim-results>div { align-items:center; margin:10px 0; gap:14px; font-size:11px; line-height:1.5; color:#c0c9dc; }
.clearing-section .sim-results strong { font:400 25px/1.25 var(--serif); letter-spacing:-.035em; color:#fff7e5; font-variant-numeric:tabular-nums lining-nums; white-space:nowrap; }
.clearing-section .sim-results small { color:#aab4cc; font:8px/1.4 var(--mono); margin-left:4px; letter-spacing:.02em; }
.clearing-section .sim-results .saved { border-top:1px solid #2a3550; padding-top:12px; margin-top:13px; color:#ffc526; }
.clearing-section .sim-results .saved strong { color:#ffc526; font-size:29px; }
.clearing-section .sim-controls .button { min-height:46px; border:1px solid #ffd14d; border-radius:8px; padding:12px 15px; background:#ffc526; color:#080e25; font-size:11px; font-weight:500; box-shadow:0 4px 14px #02071730; }
.clearing-section .sim-controls .button:hover { background:#ffd356; border-color:#ffdc77; filter:none; transform:translateY(-1px); }
.clearing-section .sim-controls .button span { font-size:14px; }
.clearing-section .reset { min-height:44px; width:fit-content; padding:8px 12px; border:0; border-radius:6px; margin:3px auto 4px; color:#b9c3db; font-size:10px; text-decoration:underline; text-decoration-color:#536181; text-underline-offset:5px; }
.clearing-section .reset:hover { color:#fff7e5; background:#ffffff05; }
.clearing-section .sim-note { font:9px/1.75 var(--mono); color:#9da9c4; margin:6px 0 0; }
.clearing-section .epoch-row { width:88%; max-width:1200px; margin:0 auto; padding:22px 0 34px; font-size:9px; gap:18px; }
.button,.header-action,.display-controls button { border-radius:6px; }
@media (max-width:1200px) {
  .clearing-section .simulator,.clearing-section .epoch-row { width:90%; }
  .clearing-section .sim-network { padding:23px 22px; }
  .clearing-section .sim-controls { padding:25px 24px 23px; }
  .clearing-section .sim-toolbar { font-size:7px; }
  .clearing-section .sim-toolbar>span:last-child { font-size:6px; }
}
@media (max-width:960px) {
  .clearing-section .simulator { grid-template-columns:minmax(0,1.02fr) minmax(300px,.98fr); }
  .clearing-section .sim-network { padding:22px 18px; }
  .clearing-section .sim-controls { padding:24px 22px; }
  .clearing-section .graph-labels .graph-edge,.clearing-section .graph-labels [data-edge] { font-size:8px; padding:4px 6px; }
  .clearing-section .graph-labels .graph-agent,.clearing-section .clearing-scene.scene-ready .graph-agent { font-size:16px; }
  .clearing-section .network-caption { font-size:9px; }
}
@media (max-width:780px) {
  .clearing-section .clearing-heading { padding-top:58px; padding-bottom:28px; }
  .clearing-section .simulator { width:88%; grid-template-columns:1fr; border-radius:14px; }
  .clearing-section .sim-network { padding:20px 20px 18px; border-right:0; border-bottom:1px solid #26314a; gap:13px; }
  .clearing-section .sim-toolbar { font-size:8px; }
  .clearing-section .sim-toolbar>span:last-child { font-size:7px; }
  .clearing-section .clearing-scene { max-width:470px; margin:5px auto 1px; }
  .clearing-section .graph-labels .graph-agent,.clearing-section .clearing-scene.scene-ready .graph-agent { font-size:18px; }
  .clearing-section .network-caption { min-height:0; padding-top:14px; font-size:9px; line-height:1.8; }
  .clearing-section .sim-controls { padding:24px 24px 22px; }
  .clearing-section .sim-controls>.eyebrow { margin-bottom:19px; }
  .clearing-section .slider-field { margin:13px 0; }
  .clearing-section .slider-field label { font-size:12px; }
  .clearing-section .slider-field output { font-size:13px; }
  .clearing-section .sim-results>div { font-size:12px; }
  .clearing-section .sim-results strong { font-size:27px; }
  .clearing-section .sim-results .saved strong { font-size:30px; }
  .clearing-section .sim-note { font-size:9px; }
  .clearing-section .epoch-row { width:88%; padding:20px 0 29px; flex-wrap:wrap; row-gap:12px; font-size:8px; }
  .clearing-section .epoch-row>span:last-child { font-size:8px; }
}
@media (max-width:420px) {
  .clearing-section .sim-network { padding:18px 12px; }
  .clearing-section .sim-toolbar { font-size:7px; gap:8px; }
  .clearing-section .sim-toolbar>span:last-child { font-size:6px; }
  .clearing-section .sim-controls { padding:23px 19px 20px; }
  .clearing-section .graph-labels .graph-edge,.clearing-section .graph-labels [data-edge] { font-size:7px; padding:3px 5px; border-radius:4px; }
  .clearing-section .graph-labels .graph-agent,.clearing-section .clearing-scene.scene-ready .graph-agent { font-size:15px; }
  .clearing-section .graph-labels .graph-center small { font-size:6px; letter-spacing:.06em; }
  .clearing-section .sim-results>div { font-size:11px; gap:8px; }
  .clearing-section .sim-results strong { font-size:25px; }
  .clearing-section .sim-results .saved strong { font-size:27px; }
}

/* Shared semantic labels keep the SVG and WebGL presentations equally readable. */
.clearing-section .graph-labels { visibility:visible; }
.clearing-section .network-svg .edge-label,
.clearing-section .network-svg .agent-node text,
.clearing-section .network-svg .center-caption,
.clearing-section .network-svg .fallback-value-pills { opacity:0; }
.clearing-section .graph-labels .graph-edge { font-size:12px; padding:5px 8px; }
.clearing-section .graph-labels .graph-center small { font-size:9px; }
.clearing-section .network-caption { font-size:12px; line-height:1.75; }
.clearing-section .slider-field label { font-size:13px; }
.clearing-section .sim-note { font-size:11px; line-height:1.75; }
.display-controls button { border-color:transparent; color:var(--muted); }
.display-controls button:hover { color:var(--ink); }
.scene-view:not(.hero-art):before { opacity:.10; }
@media(max-width:780px) {
 .clearing-section .graph-labels .graph-edge { font-size:10px; padding:4px 6px; }
 .clearing-section .graph-labels .graph-center small { font-size:8px; }
 .clearing-section .network-caption,.clearing-section .sim-note { font-size:11px; }
}
@media(max-width:420px) {
 .clearing-section .graph-labels .graph-edge { font-size:9px; padding:3px 5px; }
 .clearing-section .graph-labels .graph-center small { font-size:7px; }
}

@media print {
  :root { --paper:#fff; --paper-light:#fff; --surface:#f5f5f5; --ink:#111; --muted:#333; --green:#080e25; --line:#bbb; --warning-text:#111; --warning-bg:#fff; --clear-ink:#111; --clear-muted:#333; --clear-bg:#fff; }
  html,body { background:#fff !important; color:#111 !important; font-size:10pt; }
  .header,.status-strip,.paper-nav,.paper-tools,footer,.skip,.display-controls,.scene-view,.hero-art,#ledger-canvas,#setrune-scenes,#tally-webgl-canvas,.tally-webgl-canvas,.site-canvas,canvas,[data-theme-toggle],[data-motion-toggle],#motion-toggle { display:none !important; }
  * { color:#111 !important; text-shadow:none !important; box-shadow:none !important; transition:none !important; }
  .paper-layout { display:block; padding:0; }
  .paper-article { max-width:none; }
  .paper-article h1 { font-size:30pt; }
  .paper-article h2 { font-size:20pt; break-after:avoid; margin:26pt 0 12pt; }
  .paper-article h3 { font-size:15pt; break-after:avoid; }
  .paper-article p,.paper-article li { font-size:10pt; line-height:1.5; }
  .paper-article .editorial-notes { background:#fff; border:1px solid #888; padding:16pt; }
  .paper-article .editorial-notes p,.paper-article .editorial-notes li { font-size:9pt; }
  .paper-article pre { white-space:pre-wrap; overflow-wrap:anywhere; background:#f5f5f5; border-color:#aaa; font-size:9pt; }
  .paper-article table { display:table; overflow:visible; width:100%; break-inside:auto; }
  .paper-article th,.paper-article td { min-width:0; font-size:8pt; padding:6pt; }
  tr { break-inside:avoid; }
  .paper-article a[href] { text-decoration:underline; }
  .paper-article blockquote { border-color:#555; }
  .hero,.section-shell,.simulator,.intro-columns,.priors-main,.trust-calculator,.instrument-layout { display:block; padding:18pt 0; margin:0; background:#fff; }
  .clearing-section,.priors-section,.closing,.instrument-panel,.risk-disclosure { background:#fff; border-color:#aaa; }
  .clearing-section .simulator,.clearing-section .sim-network,.clearing-section .sim-controls { background:#fff; border-color:#aaa; box-shadow:none; width:100%; }
  .section-index { margin-bottom:12pt; }
  .hero-copy,.section-content,.intro-main,.priors-main { width:100%; }
  .risk-grid,.waterfall ol,.limits-row,.spec-ribbon { break-inside:avoid; }
  .faq details { display:block; }
  .faq details::details-content { content-visibility:visible !important; display:block; }
  .faq details>p { display:block !important; }
}
