/* Seedspace: a calm fintech-reference look. System fonts only. */
:root {
  color-scheme: light;
  --bg: #f6f7f5; --paper: #ffffff; --paper-2: #f0f3f1; --ink: #13202b; --ink-2: #33424e; --muted: #5d6b75;
  --line: #dbe2de; --line-2: #c5cfca;
  --accent: #0b6e57; --accent-ink: #085342; --accent-soft: #e3f1ec; --accent-2: #b8862b;
  --warn-bg: #fff5e3; --warn-line: #e3b25b; --key-bg: #e8f1fb; --key-line: #7aa7dc;
  --ok: #107a3e; --bad: #b42318;
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300;
  --shadow: 0 1px 2px rgba(16, 32, 43, .06), 0 4px 16px rgba(16, 32, 43, .06);
  --r: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1418; --paper: #131d22; --paper-2: #18242a; --ink: #e5ece9; --ink-2: #c4d0cb; --muted: #95a59f;
    --line: #25343b; --line-2: #33454d;
    --accent: #3fc39b; --accent-ink: #6fd8b6; --accent-soft: #14302a; --accent-2: #d9a84a;
    --warn-bg: #2b2212; --warn-line: #8a6a2a; --key-bg: #142335; --key-line: #3d6a9c;
    --ok: #4cc27a; --bad: #f07a6e;
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1418; --paper: #131d22; --paper-2: #18242a; --ink: #e5ece9; --ink-2: #c4d0cb; --muted: #95a59f;
  --line: #25343b; --line-2: #33454d;
  --accent: #3fc39b; --accent-ink: #6fd8b6; --accent-soft: #14302a; --accent-2: #d9a84a;
  --warn-bg: #2b2212; --warn-line: #8a6a2a; --key-bg: #142335; --key-line: #3d6a9c;
  --ok: #4cc27a; --bad: #f07a6e;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); font-feature-settings: "kern"; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.012em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin: .2em 0 .3em; font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); margin: 2.1em 0 .6em; font-weight: 700; }
h3 { font-size: 1.15rem; margin: 1.7em 0 .5em; font-weight: 680; }
code { font-family: var(--mono); font-size: .92em; background: var(--paper-2); padding: .08em .35em; border-radius: 5px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.small { font-size: .875rem; color: var(--muted); }
.no-js .js-only, html:not(.js) .js-only { display: none !important; }

/* header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; flex: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 7px 10px; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.tools-bar { display: flex; gap: 4px; flex: none; }
.iconbtn { background: none; border: 1px solid transparent; color: var(--ink-2); width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: var(--paper-2); border-color: var(--line); }
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  .brand { order: 1; flex: 1; }
  .tools-bar { order: 2; }
  .nav { order: 3; flex-basis: 100%; margin: 4px -16px 0; padding: 0 12px 8px; mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.search-panel { border-top: 1px solid var(--line); background: var(--paper); padding: 12px 0 14px; }
.search-panel input { width: 100%; font: inherit; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); }
.q-results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.q-results li a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.q-results li a:hover, .q-results li a:focus { background: var(--accent-soft); }
.q-results .qk { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }

/* hero */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); max-width: 16ch; }
.hero-sub { font-size: 1.12rem; color: var(--ink-2); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-fig { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 14px; box-shadow: var(--shadow); min-width: 0; }
.hero-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 36px; } }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 11px 18px; border-radius: 10px; text-decoration: none; font-weight: 650; border: 1px solid var(--accent); }
.btn:hover { color: #fff; background: var(--accent-ink); }
:root[data-theme="dark"] .btn { color: #06231b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #06231b; } }
.btn.ghost { background: transparent; color: var(--accent-ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--accent-soft); }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0; }

/* sections and cards */
.home-sec { margin: 56px 0; }
.home-sec.band { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
@media (max-width: 600px) { .home-sec.band { padding: 20px 16px; margin-left: -4px; margin-right: -4px; } }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0 0 16px; }
.sec-sub { color: var(--muted); margin: -6px 0 18px; max-width: 52rem; }
.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.cards-flex { display: flex; flex-wrap: wrap; justify-content: center; }
.cards-flex .card { flex: 0 1 calc((100% - 32px) / 3); }
@media (max-width: 1040px) { .cards-flex .card { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 640px) { .cards-flex .card { flex-basis: 100%; } }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.card:hover { color: var(--ink); border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.card-k { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.card-t { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.card-d { color: var(--muted); font-size: .94rem; flex: 1; }
.card-go { font-size: .88rem; color: var(--accent); font-weight: 600; margin-top: 4px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-t { font-weight: 700; margin-bottom: 4px; }
.trust p { margin: 0; color: var(--ink-2); }
.trust-grid > div { border-top: 3px solid var(--accent); padding-top: 12px; }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 22px 0 6px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line-2); }
.crumbs a { color: var(--muted); }

/* article */
.art { display: grid; grid-template-columns: minmax(0, 46rem); gap: 0 48px; }
.art.has-toc { grid-template-columns: minmax(0, 46rem) 15rem; }
.art-head { grid-column: 1 / -1; max-width: 50rem; margin-bottom: 8px; }
.lede { font-size: 1.16rem; color: var(--ink-2); margin: .2em 0 .8em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
.toc { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 80px; font-size: .9rem; }
.toc summary { font-weight: 700; cursor: pointer; margin-bottom: 6px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; padding: 0 0 0 12px; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose { grid-column: 1; grid-row: 2; min-width: 0; font-size: 1.0625rem; line-height: 1.72; }
.prose > h2:first-child { margin-top: 1em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
@media (max-width: 1080px) {
  .art.has-toc { grid-template-columns: minmax(0, 46rem); }
  .toc { grid-column: 1; grid-row: 2; position: static; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0 6px; }
  .toc details:not([open]) summary { margin-bottom: 0; }
  .prose { grid-row: 3; }
}
.art.plain { grid-template-columns: minmax(0, 46rem); }
.art.plain .prose, .art.plain > p, .art.plain > h1 { grid-row: auto; }
.src-h { font-size: 1.2rem; }
.sources { font-size: .92rem; color: var(--ink-2); padding-left: 1.4em; }
.sources .lic { color: var(--muted); }
.disclaimer { margin: 28px 0 8px; padding: 14px 18px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); font-size: .92rem; }
.disclaimer p { margin: 0; color: var(--ink-2); }
.related { margin: 48px 0 64px; }
.related h2 { margin-top: 0; }
.hub-head { max-width: 50rem; margin-bottom: 28px; }
.hub-intro p { color: var(--ink-2); }
main { padding-bottom: 48px; }

/* components */
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 10px; padding: 14px 18px; margin: 1.4em 0; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.callout.key { background: var(--accent-soft); border-left-color: var(--accent); }
.callout-t { font-weight: 700; margin-bottom: .3em; }
.tbl-wrap { overflow-x: auto; margin: 1.2em 0 1.5em; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.tbl { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tbl caption { text-align: left; padding: 10px 14px 0; font-weight: 650; color: var(--ink-2); }
.tbl th, .tbl td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--paper-2); font-weight: 650; white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tfoot th, .tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line-2); border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tbody th { font-weight: 600; }
.tbl tr.grp th { background: var(--paper-2); font-size: .88rem; color: var(--ink-2); }
.vsrc { font-size: .78rem; margin-left: 4px; }
.vnote { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.ok { color: var(--ok); font-weight: 650; } .bad { color: var(--bad); font-weight: 650; }
.ok::before { content: "✓ "; } .bad::before { content: "✗ "; }
.vsum { background: var(--accent-soft); padding: 12px 16px; border-radius: 10px; }
ol.steps { list-style: none; counter-reset: s; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
ul.check { list-style: none; padding: 0; }
ul.check > li { position: relative; padding-left: 30px; }
ul.check > li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--accent); background: linear-gradient(45deg, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%) no-repeat; background-size: 0 0; }
ul.check > li::after { content: ""; position: absolute; left: 7px; top: calc(.45em + 3px); width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
dl.defs dt { font-weight: 700; margin-top: 1.1em; scroll-margin-top: 90px; }
dl.defs dt:target { background: var(--accent-soft); border-radius: 6px; padding: 0 6px; margin-left: -6px; }
dl.defs dd { margin: .25em 0 0; }
.prose h2, .prose h3 { scroll-margin-top: 84px; }
.fig { margin: 1.6em 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 10px; overflow-x: auto; }
.fig figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.fig > svg { display: block; min-width: 520px; width: 100%; height: auto; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1.2em 0; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat-l { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-v { font-size: 1.45rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-n { font-size: .85rem; color: var(--muted); }
.formula { font-family: var(--mono); font-size: .92rem; background: var(--paper-2); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre; line-height: 1.6; }

/* SVG classes (charts and diagrams) */
svg .ink { fill: var(--ink); } svg .muted { fill: var(--muted); } svg .paper { fill: var(--paper); }
svg .accent { fill: var(--accent); } svg .accent-soft { fill: var(--accent-soft); }
svg .line { stroke: var(--line-2); fill: none; } svg .line.zero { stroke: var(--muted); }
svg .c1 { fill: var(--c1); } svg .c2 { fill: var(--c2); } svg .c3 { fill: var(--c3); }
svg .c4 { fill: var(--c4); } svg .c5 { fill: var(--c5); } svg .c6 { fill: var(--c6); }
svg .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
svg .ln.s1 { stroke: var(--c1); } svg .ln.s2 { stroke: var(--c2); } svg .ln.s3 { stroke: var(--c3); } svg .ln.s4 { stroke: var(--c4); }
svg text { font-family: var(--font); }
.chart .lbl { font-size: 15px; font-weight: 650; }
.chart .leg { font-size: 14px; }
.chart .ax { font-size: 13px; }
.chart .seglbl { font-size: 13px; font-weight: 700; fill: #fff; }
.chart .seglbl.on-c3, .chart .seglbl.on-c4, .chart .seglbl.on-c5 { fill: #10202b; }
.hero-fig .chart { width: 100%; height: auto; display: block; }

/* tools */
.tool { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 1.4em 0 2em; box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }
.tool fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.tool legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; align-items: center; gap: 4px 10px; margin: 6px 0; font-size: .92rem; }
.field label { color: var(--ink-2); }
.field input, .field select, .tool select { font: inherit; font-variant-numeric: tabular-nums; width: 100%; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--ink); text-align: right; min-width: 0; }
.field select { text-align: left; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.field .hint { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin-top: -2px; }
.inst { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: var(--bg); }
.inst-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 650; font-size: .92rem; }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: .88rem; padding: 2px 4px; text-decoration: underline; }
.addbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.smallbtn { font: inherit; font-size: .86rem; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.smallbtn:hover { border-color: var(--accent); color: var(--accent-ink); }
.out h3 { margin-top: 0; }
.out-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 520px) { .out-sum { gap: 6px; } .out-sum .stat { padding: 8px 8px; } .out-sum .stat-v { font-size: 1rem; } .out-sum .stat-l { font-size: .66rem; letter-spacing: .02em; } .out-sum .stat-n { font-size: .74rem; } }
.out-sum .stat-v { font-size: 1.2rem; }
.explain { font-size: .95rem; color: var(--ink-2); background: var(--paper-2); border-radius: 10px; padding: 12px 14px; }
.explain p { margin: .4em 0; }
.tool-static { font-size: .88rem; color: var(--muted); }
.js .tool-static { display: none; }

.chart-leg { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; }
.chart-leg .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart-leg .sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.sw.s1 { background: var(--c1); } .sw.s2 { background: var(--c2); } .sw.s3 { background: var(--c3); } .sw.s4 { background: var(--c4); }
.tool .fig { margin: 12px 0; }

/* footer */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: .9rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 28px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 10px; } }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ink); font-size: 1rem; }
.foot-h { font-weight: 700; color: var(--ink); }
.foot p { margin: .4em 0 .8em; }

/* stage timeline and term sheet table */
.timeline { margin: 8px 0 32px; }
.ts-table td:first-child { font-weight: 650; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .toc, .related, .tool { display: none; } body { background: #fff; } }
.stage-line { list-style: none; padding: 0; margin: 8px 0 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.stage-line::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 2px; background: linear-gradient(90deg, var(--c1), var(--c3), var(--c4)); }
.stage-line li { position: relative; padding-top: 30px; }
.st-dot { position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.st-name { font-weight: 750; font-size: 1.2rem; text-decoration: none; }
.st-row { margin: 6px 0 0; font-size: .93rem; color: var(--ink-2); }
.st-row b { display: inline-block; min-width: 3.2em; color: var(--muted); font-weight: 650; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 760px) {
  .stage-line { grid-template-columns: 1fr; gap: 20px; padding-left: 28px; }
  .stage-line::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--c1), var(--c3), var(--c4)); }
  .stage-line li { padding-top: 0; }
  .st-dot { left: -28px; top: 4px; }
}
svg .vline { fill: none; stroke: var(--accent); stroke-width: 3; }
.fig > svg.capbars, .hero-fig svg.capbars { min-width: 0; max-width: 600px; margin: 0 auto; }
.chart.capbars .lbl { font-size: 14px; } .chart.capbars .leg { font-size: 13px; } .chart.capbars .seglbl { font-size: 12.5px; }
.art.wide { grid-template-columns: minmax(0, 1fr); max-width: 76rem; }
.art.wide .toc { grid-column: 1; grid-row: 2; position: static; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0 6px; max-width: 46rem; }
.art.wide .prose { grid-row: 3; }
.art.wide .prose > :not(.tool) { max-width: 46rem; }
.art.wide .tool-grid { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
@media (max-width: 860px) { .art.wide .tool-grid { grid-template-columns: minmax(0, 1fr); } }
:root[data-theme="dark"] .btn.ghost { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.ghost { color: var(--accent-ink); } }
@media (max-width: 600px) {
  .hero-fig { padding: 14px 12px 10px; }
  .hero-fig .chart.capbars .lbl { font-size: 18px; } .hero-fig .chart.capbars .leg { font-size: 16px; } .hero-fig .chart.capbars .seglbl { font-size: 15px; }
  .fig .chart.capbars .lbl { font-size: 17px; } .fig .chart.capbars .leg { font-size: 15px; } .fig .chart.capbars .seglbl { font-size: 14px; }
}
