:root {
  --ink: #143235;
  --ink-deep: #0b2528;
  --ink-soft: #375154;
  --paper: #f4efe5;
  --paper-deep: #e9e1d2;
  --surface: #fffdf8;
  --line: #d8cfbf;
  --line-dark: #496265;
  --copper: #bd6437;
  --copper-dark: #8f4524;
  --teal: #147478;
  --teal-light: #cce0dc;
  --gold: #d7b36a;
  --warning: #f5e4b5;
  --danger: #9c3e2e;
  --shadow: 0 18px 50px rgba(15, 38, 40, .1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1440px;
  --article: 900px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--copper-dark); }
button, input, select { font: inherit; }
.filter-reset { align-self: end; min-height: 44px; padding: .55rem 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-dark); border-radius: .3rem; cursor: pointer; }
.filter-reset:hover { background: var(--teal-light); }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink-deep); background: #efd29e; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 1000;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: .25rem;
  color: #fff;
  background: var(--copper-dark);
  font-weight: 800;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #fffdf8; outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink-deep); }

.reading-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}
.reading-progress span { display: block; width: 0; height: 100%; background: var(--copper); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(20, 50, 53, .18);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink-deep);
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink-deep); }
.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: .55rem;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--serif);
  font-weight: 800;
}
.brand strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; margin-top: .18rem; color: var(--ink-soft); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2.25rem); }
.primary-nav a { color: var(--ink); font-size: .88rem; font-weight: 720; text-decoration: none; }
.primary-nav a:hover { color: var(--copper-dark); }
.nav-toggle { display: none; border: 0; background: transparent; padding: .55rem; }
.nav-toggle > span:not(.sr-only) { display: block; width: 1.45rem; height: 2px; margin: .28rem 0; background: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: .25rem;
  font-size: .85rem;
  font-weight: 850;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: #fff; background: var(--copper-dark); border-color: var(--copper-dark); box-shadow: 5px 5px 0 rgba(10, 34, 37, .24); }
.button.primary:hover { color: #fff; background: #6f311a; border-color: #6f311a; transform: translate(-1px, -1px); }
.button.secondary { color: var(--ink); background: transparent; }
.button.secondary:hover { background: var(--paper-deep); }
.text-link { font-weight: 850; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--copper-dark); }
.text-link.light { color: #eef3ec; }
.eyebrow, .kicker {
  margin: 0 0 .7rem;
  color: var(--copper-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Home */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  color: #eef2eb;
  background:
    radial-gradient(circle at 80% 15%, rgba(24, 124, 126, .42), transparent 28rem),
    linear-gradient(135deg, #0c292c, #153d3f 62%, #0d3033);
}
.home-hero-grid, .hero-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.home-hero::after {
  content: "";
  position: absolute;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  right: -8vw;
  bottom: -40%;
  border: 1px solid rgba(215,179,106,.45);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(215,179,106,.04), 0 0 0 160px rgba(215,179,106,.025);
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 3rem), 1180px);
  margin: auto;
  padding: clamp(3.5rem, 6vw, 5rem) 0 3.5rem;
}
.home-hero .eyebrow { color: #efb476; }
.home-hero h1 {
  max-width: 1020px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .92;
}
.home-deck {
  max-width: 760px;
  margin: 2rem 0 0;
  color: #cedbd5;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.5;
}
.hero-actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.2rem; }
.home-hero .text-link { color: #e7eee8; }
.home-preview {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  max-width: 800px;
  margin-bottom: 2rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(238, 180, 118, .5);
  border-radius: .25rem;
  color: #f4e5d2;
  background: rgba(5, 21, 23, .35);
  font-size: .78rem;
}
.home-preview strong { color: #f3bd80; white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.hero-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 920px;
  margin-top: 2.6rem;
  border-top: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.hero-ledger a { color: inherit; padding: 1.4rem 1.5rem 1.3rem 0; border-right: 1px solid rgba(255,255,255,.18); text-decoration: none; transition: background .2s ease; }
.hero-ledger a:not(:first-child) { padding-left: 1.5rem; }
.hero-ledger a:last-child { border-right: 0; }
.hero-ledger a:hover, .hero-ledger a:focus-visible { background: rgba(255,255,255,.07); }
.hero-ledger strong { display: block; color: #f2c178; font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1; }
.hero-ledger span { display: block; margin-top: .4rem; color: #bdccc7; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.section-pad { width: min(calc(100% - 3rem), 1180px); margin-inline: auto; padding-block: clamp(4.5rem, 8vw, 8rem); }
.home-intro { padding-bottom: 2rem; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: clamp(2rem, 8vw, 8rem); align-items: end; }
.split-heading h2, .method-band h2, .boundary-section h2, .closing-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}
.split-heading > p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; }
.research-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; padding-top: 2rem; }
.research-card {
  position: relative;
  min-height: 380px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 rgba(20,50,53,0);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.research-card:hover { color: var(--ink); border-color: var(--copper); transform: translateY(-4px); box-shadow: var(--shadow); }
.research-card:nth-child(1) { grid-column: span 7; background: var(--ink); color: #edf1ea; }
.research-card:nth-child(2) { grid-column: span 5; }
.research-card:nth-child(n+3) { grid-column: span 4; min-height: 340px; }
.research-card > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid currentColor; opacity: .72; }
.research-card > div span { font-family: var(--mono); font-size: .78rem; }
.research-card > div small { font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.research-card h2 { margin: 2rem 0 1rem; font-family: var(--serif); font-size: clamp(1.65rem, 2.7vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.research-card p { margin: 0; color: inherit; opacity: .76; }
.research-card > strong { margin-top: auto; padding-top: 2rem; color: var(--copper-dark); font-size: .8rem; }
.research-card:nth-child(1) > strong { color: #f2bf78; }
.method-band {
  width: 100%;
  max-width: none;
  padding-inline: max(1.5rem, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(3rem, 10vw, 9rem);
  color: #eaf0e8;
  background: var(--ink-deep);
}
.method-band .eyebrow { color: #efb476; }
.method-band h2 { max-width: 500px; }
.method-intro > p:not(.eyebrow) { max-width: 540px; color: #b9c8c3; }
.method-band ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.method-band li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line-dark); }
.method-band li > span { color: #e5ad67; font-family: var(--mono); }
.method-band li strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.method-band li p { margin: .3rem 0 0; color: #aebfba; }
.boundary-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 10vw, 9rem); align-items: start; }
.boundary-list { border-top: 1px solid var(--line-dark); }
.boundary-list p { display: flex; gap: 1rem; margin: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-weight: 750; }
.boundary-list span { color: var(--copper); font-weight: 900; }
.closing-cta { text-align: center; border-top: 1px solid var(--line); }
.closing-cta h2 { max-width: 900px; margin-inline: auto; }
.closing-cta > p:not(.eyebrow) { max-width: 700px; margin: 1.5rem auto 2rem; color: var(--ink-soft); font-family: var(--serif); font-size: 1.2rem; }

/* Article */
.article-hero {
  position: relative;
  overflow: hidden;
  color: #edf2eb;
  background:
    radial-gradient(circle at 88% 0%, rgba(30, 132, 132, .28), transparent 28rem),
    var(--ink-deep);
}
.hero-inner { position: relative; z-index: 1; width: min(calc(100% - 3rem), 1180px); margin: auto; padding: 2rem 0 clamp(4.5rem, 8vw, 7rem); }
.breadcrumb { display: flex; align-items: center; gap: .65rem; margin-bottom: clamp(3.5rem, 7vw, 6rem); color: #99b0ac; font-size: .75rem; }
.breadcrumb a { color: #c1d0cc; text-decoration: none; }
.article-hero .eyebrow { color: #efb476; }
.article-hero h1 { max-width: 1050px; margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 6.4vw, 6.15rem); font-weight: 500; letter-spacing: -.055em; line-height: .99; text-wrap: balance; }
.deck { max-width: 820px; margin: 1.6rem 0 0; color: #c2d0cb; font-family: var(--serif); font-size: clamp(1.12rem, 2vw, 1.45rem); line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: .65rem 1.8rem; margin-top: 2.2rem; color: #9eb2ae; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.article-meta span { position: relative; }
.article-meta span + span::before { content: ""; position: absolute; left: -.95rem; top: .35rem; width: 3px; height: 3px; border-radius: 50%; background: #d39a61; }
.preview-banner { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; padding: .65rem .8rem; border: 1px solid rgba(237, 178, 111, .45); color: #d7e0dc; background: rgba(4,20,22,.34); font-size: .75rem; }
.preview-banner strong { color: #f0b879; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.article-layout { width: min(calc(100% - 3rem), var(--max)); margin: auto; padding: clamp(3rem, 7vw, 7rem) 0; display: grid; grid-template-columns: 250px minmax(0, var(--article)); gap: clamp(2.5rem, 7vw, 7rem); justify-content: center; align-items: start; }
.article-rail { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow: auto; scrollbar-width: thin; }
.article-rail details { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: .9rem 0; }
.article-rail summary { cursor: pointer; font-size: .73rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.toc { display: flex; flex-direction: column; gap: .15rem; margin-top: .8rem; }
.toc a { padding: .42rem .5rem; border-left: 2px solid transparent; color: var(--ink-soft); font-size: .76rem; line-height: 1.35; text-decoration: none; }
.toc a:hover, .toc a[aria-current="true"] { border-left-color: var(--copper); color: var(--ink-deep); background: rgba(255,255,255,.4); }
.rail-note { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.34); }
.rail-note p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }
.article-main { min-width: 0; }
.prose { font-family: var(--serif); font-size: clamp(1.03rem, 1.3vw, 1.12rem); }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote { max-width: 74ch; }
.prose p { margin: 0 0 1.3em; }
.prose h2, .prose h3, .prose h4 { position: relative; color: var(--ink-deep); text-wrap: balance; }
.prose h2 { margin: 3.3rem 0 1.15rem; padding-top: .5rem; border-top: 1px solid var(--line); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.prose h3 { margin: 2.35rem 0 .85rem; font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.prose h4 { margin: 1.8rem 0 .7rem; font-size: 1.18rem; }
.heading-anchor { margin-left: .45rem; color: var(--copper); font-family: var(--sans); font-size: .75em; font-weight: 500; opacity: 0; text-decoration: none; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor, .prose h4:hover .heading-anchor, .heading-anchor:focus { opacity: .65; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.prose li { margin: .45rem 0; padding-left: .35rem; }
.prose li::marker { color: var(--copper); font-family: var(--sans); font-weight: 800; }
.prose strong { color: var(--ink-deep); }
.prose code { padding: .12em .28em; border: 1px solid var(--line); border-radius: .2rem; background: rgba(255,255,255,.48); font-family: var(--mono); font-size: .84em; }
.answer-card, .pull-quote { margin: 0 0 2rem; padding: 1.5rem 1.7rem; border-left: 5px solid var(--copper); background: var(--surface); box-shadow: var(--shadow); font-size: 1.12em; }
.answer-card p, .pull-quote p { margin: 0; }
.answer-card strong:first-child { color: var(--copper-dark); font-family: var(--sans); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.pull-quote { border-left-color: var(--teal); color: var(--ink-soft); font-style: italic; }
.section-rule { width: 5rem; margin: 3rem 0; border: 0; border-top: 3px solid var(--copper); }
.text-diagram { margin: 2rem 0; }
.text-diagram figcaption { color: var(--ink-soft); font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.text-diagram pre { overflow: auto; padding: 1.4rem; color: #e9f0ea; background: var(--ink-deep); font-family: var(--mono); font-size: .82rem; line-height: 1.55; }

.citation-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .16rem; margin-left: .15rem; font-family: var(--sans); font-size: .64em; font-style: normal; vertical-align: .15em; }
.cite { min-width: 2.5em; padding: .12rem .27rem; border: 1px solid #9db7b2; border-radius: 99px; color: var(--teal); background: #edf4ef; font-weight: 850; line-height: 1.25; text-align: center; text-decoration: none; }
.cite:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.citation-many .cite { padding-inline: .5rem; }

.table-scroll { max-width: 100%; margin: 1.8rem 0 2.2rem; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 8px 24px rgba(21,46,48,.05); }
.table-scroll:focus-visible { outline-offset: 4px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-family: var(--sans); font-size: .78rem; line-height: 1.45; }
caption { padding: .9rem 1rem; color: var(--ink-soft); background: var(--paper-deep); font-weight: 800; text-align: left; }
thead th { position: sticky; top: 0; z-index: 1; padding: .78rem .85rem; color: #edf2ec; background: var(--ink); font-size: .66rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; vertical-align: bottom; }
tbody th { padding: .8rem .85rem; border-bottom: 1px solid var(--line); color: var(--ink); background: #eee7d9; font-weight: 750; text-align: left; vertical-align: top; }
td { padding: .8rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child :is(th, td) { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #faf7ef; }
td p { margin: .3rem 0 0 !important; color: var(--ink-soft); font-family: var(--serif); }
td small { display: block; margin-top: .3rem; color: var(--ink-soft); }

.component { margin: 2.5rem 0 3.3rem; font-family: var(--sans); }
.component-heading, .component figcaption { margin-bottom: 1.3rem; }
.component-heading h2, .component-heading h3, .component figcaption h2, .component figcaption h3 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.component-heading > p:not(.eyebrow), .component figcaption > p:not(.eyebrow) { max-width: 700px; margin: .7rem 0 0; color: var(--ink-soft); font-family: var(--serif); }
.component .eyebrow { font-family: var(--sans); }

.research-map { margin-top: 0; padding: clamp(1.5rem, 4vw, 2.8rem); color: #eef2ec; background: var(--ink); box-shadow: var(--shadow); }
.research-map .eyebrow { color: #efb476; }
.research-map .component-heading h2 { color: #fff; }
.research-map .component-heading > p:not(.eyebrow) { color: #b9cbc5; }
.research-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 2rem; background: var(--line-dark); }
.research-paths a { min-height: 170px; padding: 1.25rem; display: flex; flex-direction: column; color: #ecf2eb; background: #123437; text-decoration: none; }
.research-paths a:first-child { grid-column: span 2; min-height: 145px; background: #174448; }
.research-paths a:hover { color: #fff; background: #1b5154; }
.research-paths span { color: #e4ad69; font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.research-paths strong { margin-top: .55rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.15; }
.research-paths small { margin-top: auto; padding-top: .8rem; color: #a9bfba; }

.tool-controls { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem; border: 1px solid var(--line); background: var(--paper-deep); }
.tool-controls label { flex: 1 1 260px; color: var(--ink-soft); font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tool-controls input, .tool-controls select { width: 100%; min-height: 44px; margin-top: .35rem; padding: .55rem .7rem; border: 1px solid var(--line-dark); border-radius: 0; color: var(--ink); background: var(--surface); }
.tool-status { margin: .65rem 0 !important; color: var(--ink-soft); font-family: var(--sans) !important; font-size: .72rem; }
.timeline-scroll, .claims-scroll { max-height: 680px; }
.timeline-scroll td:nth-child(1) { min-width: 120px; font-weight: 800; }
.timeline-scroll td:nth-child(2) { min-width: 135px; }
.timeline-scroll :is(td, th):nth-child(3) { min-width: 360px; }
.claims-scroll { max-height: 740px; }
.claims-scroll table { min-width: 1180px; }
.claims-scroll :is(td, th) { min-width: 200px; }
.confidence, .volatility { display: inline-block; padding: .18rem .4rem; border-radius: 99px; color: var(--ink); background: var(--teal-light); font-size: .62rem; font-weight: 850; text-transform: capitalize; }
.dataset-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: .85rem 1rem; color: #c5d3cf; background: var(--ink); font-size: .72rem; }
.dataset-links span { margin-right: auto; color: #fff; font-weight: 800; }
.dataset-links a { padding: .28rem .55rem; border: 1px solid #668184; color: #f0d2ad; text-decoration: none; }
.dataset-links a:hover { border-color: #efb476; color: #fff; }

.functions-visual { padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.functions-visual ol { display: grid; grid-template-columns: repeat(7, 1fr); gap: .55rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.functions-visual li { min-width: 0; padding: .8rem .65rem; border-top: 4px solid var(--teal); background: var(--paper); }
.functions-visual li:nth-child(3n+2) { border-top-color: var(--copper); }
.functions-visual li:nth-child(3n) { border-top-color: var(--gold); }
.functions-visual li span { display: block; color: var(--ink-soft); font-family: var(--mono); font-size: .62rem; }
.functions-visual li strong { display: block; margin-top: .5rem; font-family: var(--serif); font-size: 1rem; line-height: 1.1; }
.functions-visual li small { display: block; margin-top: .55rem; color: var(--ink-soft); font-size: .62rem; line-height: 1.35; }
.trust-visual { padding: 1.5rem; color: #edf2eb; background: var(--ink-deep); }
.trust-visual .eyebrow { color: #efb476; }
.trust-visual figcaption h3 { color: #fff; }
.trust-visual figcaption > p:not(.eyebrow) { color: #b5c8c2; }
.trust-visual ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 1.5rem 0 0; padding: 1px; list-style: none; background: var(--line-dark); }
.trust-visual li { min-height: 95px; padding: .8rem; display: flex; flex-direction: column; justify-content: space-between; background: #13383b; font-family: var(--serif); }
.trust-visual li span { color: #dfaa68; font-family: var(--mono); font-size: .62rem; }

.decision-tree { padding: clamp(1.25rem, 3vw, 2rem); color: #edf2eb; background: var(--ink); }
.decision-tree .eyebrow { color: #efb476; }
.decision-tree figcaption h2 { color: #fff; }
.decision-tree figcaption > p:not(.eyebrow) { color: #b9cbc5; }
.decision-tree ol { position: relative; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.decision-tree ol::before { content: ""; position: absolute; left: 1.25rem; top: 1rem; bottom: 1rem; width: 1px; background: #638083; }
.decision-tree li { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: .85rem 0; }
.decision-tree li > span { z-index: 1; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid #e8b16d; border-radius: 50%; color: #f3bf7d; background: var(--ink); font-family: var(--mono); font-size: .67rem; }
.decision-tree li strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.decision-tree li p { margin: .25rem 0 0; color: #acc0ba; font-size: .78rem; }

.evidence-anatomy { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--surface); }
.evidence-ledger { display: grid; grid-template-columns: .72fr 1.28fr; gap: 1rem; align-items: stretch; }
.ledger-core { min-height: 260px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; color: #eef2ec; background: var(--ink); text-align: center; }
.ledger-core span { color: #eeb575; font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.ledger-core strong { margin-top: .7rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.ledger-core small { margin-top: 1rem; color: #adc0bb; }
.evidence-ledger ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin: 0; padding: 0; list-style: none; }
.evidence-ledger li { padding: .8rem; border: 1px solid var(--line); background: var(--paper); }
.evidence-ledger li span { display: block; color: var(--copper); font-family: var(--mono); font-size: .62rem; }
.evidence-ledger li strong { display: block; margin-top: .35rem; font-family: var(--serif); }
.evidence-ledger li small { display: block; color: var(--ink-soft); }

.ledger-stepper { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.step-tabs { display: none; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 1.5rem; background: var(--line); }
html[data-js="true"] .step-tabs { display: grid; }
.step-tabs button { min-height: 48px; padding: .55rem; border: 0; color: var(--ink); background: var(--paper-deep); font-size: .72rem; font-weight: 850; cursor: pointer; }
.step-tabs button[aria-selected="true"] { color: #fff; background: var(--teal); }
.ledger-panels > section { padding: 1.35rem; border: 1px solid var(--line); border-top: 0; }
.ledger-panels h3 { margin: 0 0 1rem !important; font-family: var(--serif); font-size: 1.35rem !important; }
.ledger-panels > section > p { margin: .9rem 0 0; color: var(--ink-soft); font-size: .78rem; }
.mini-balance { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line-dark); }
.mini-balance > div { padding: .8rem; }
.mini-balance > div + div { border-left: 1px solid var(--line-dark); }
.mini-balance span { display: block; padding-bottom: .45rem; border-bottom: 2px solid var(--ink); font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mini-balance p { display: flex; justify-content: space-between; margin: .55rem 0 0 !important; font-family: var(--sans) !important; font-size: .72rem; }
.mini-balance > div > strong { display: block; margin-top: .7rem; padding-top: .45rem; border-top: 1px solid var(--line); font-size: .72rem; }
.mini-balance i { color: var(--copper); font-style: normal; }
.settlement-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: .7rem; align-items: center; }
.settlement-pair > div { padding: 1rem; color: #fff; background: var(--ink); }
.settlement-pair > div:last-child { background: var(--teal); }
.settlement-pair p { margin: .4rem 0 0 !important; font-family: var(--sans) !important; font-size: .72rem; }
.settlement-pair > span { color: var(--copper-dark); font-size: .65rem; font-weight: 900; text-align: center; text-transform: uppercase; }
.figure-note { margin: .7rem 0 0 !important; color: var(--ink-soft); font-size: .68rem; }

.balance-comparison { padding: clamp(1.2rem, 3vw, 2rem); color: #eef3ec; background: var(--ink-deep); }
.balance-comparison .eyebrow { color: #efb476; }
.balance-comparison figcaption h2 { color: #fff; }
.balance-comparison figcaption > p:not(.eyebrow) { color: #b1c5bf; }
.balance-pair { display: grid; grid-template-columns: 1fr 120px 1fr; gap: .7rem; align-items: stretch; margin-top: 1.5rem; }
.balance-pair > section { padding: 1rem; background: #153d40; }
.balance-label { margin: 0 !important; color: #efb476; font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.balance-pair h3 { margin: .3rem 0 1rem !important; color: #fff; font-family: var(--serif); font-size: 1.25rem !important; }
.balance-pair .mini-balance { border-color: #5d787a; }
.balance-pair .mini-balance > div + div { border-color: #5d787a; }
.balance-pair .mini-balance span { border-color: #9bb2ad; }
.balance-pair .mini-balance p { color: #cfdbd7; }
.balance-pair section > small { display: block; margin-top: .8rem; color: #a9bfba; }
.settlement-bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; color: #b5c8c2; text-align: center; }
.settlement-bridge::before, .settlement-bridge::after { content: ""; width: 100%; height: 1px; background: #6b8587; }
.settlement-bridge strong { color: #efb476; font-size: .7rem; text-transform: uppercase; }
.settlement-bridge span { font-size: .64rem; }

.run-flow { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--surface); }
.flow-grid { max-width: 720px; margin: 1.5rem auto 0; text-align: center; }
.flow-node { padding: 1rem; border: 1px solid var(--line-dark); background: var(--paper); }
.flow-node span, .flow-split span, .flow-responses span { display: block; color: var(--copper-dark); font-size: .63rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.flow-node strong, .flow-split strong, .flow-responses strong { display: block; margin-top: .3rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.flow-node.stress { color: #fff; background: var(--teal); border-color: var(--teal); }
.flow-node.stress span { color: #fde1b9; }
.flow-arrow { height: 2.2rem; display: grid; place-items: center; color: var(--copper); font-size: 1.4rem; }
.flow-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.flow-split > div { padding: 1rem; border: 1px solid var(--line); background: var(--paper-deep); }
.flow-split small { display: block; margin-top: .3rem; color: var(--ink-soft); }
.flow-responses { margin-top: 1rem; padding: .9rem; color: #fff; background: var(--ink); }
.flow-responses span { color: #efb476; }

.sources-section { margin-top: clamp(4rem, 8vw, 7rem); padding-top: 2rem; border-top: 4px solid var(--ink); }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.section-heading > p:not(.eyebrow) { max-width: 720px; color: var(--ink-soft); }
.source-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.source-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: .8rem; align-items: start; padding: .85rem .4rem; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: .74rem; }
.source-id { color: var(--copper-dark); font-family: var(--mono); font-weight: 800; }
.source-item a { color: var(--ink); font-weight: 800; overflow-wrap: anywhere; }
.source-item p { margin: .18rem 0 0; color: var(--ink-soft); font-size: .68rem; }
.source-tier { white-space: nowrap; color: var(--ink-soft); }
.volatility { white-space: nowrap; }
.volatility.is-live { color: #6a3c09; background: var(--warning); }
.update-note { margin-top: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--paper-deep); }
.update-note p { margin: 0; color: var(--ink-soft); font-size: .78rem; }

.related-section { padding: clamp(4rem, 8vw, 7rem) 1.5rem; color: #edf2eb; background: var(--ink); }
.related-inner { width: min(100%, 1180px); margin: auto; }
.related-section .eyebrow { color: #efb476; }
.related-section h2 { max-width: 800px; margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.2rem; background: var(--line-dark); }
.related-card { min-height: 260px; padding: 1.3rem; display: flex; flex-direction: column; color: #edf2eb; background: #123638; text-decoration: none; }
.related-card:hover { color: #fff; background: #18494c; }
.related-card > span { color: #eeb575; font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.related-card strong { margin-top: .7rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.15; }
.related-card p { color: #abc0ba; font-size: .75rem; }
.related-card small { margin-top: auto; color: #f1c993; font-weight: 800; }

.not-found { width: min(calc(100% - 3rem), 900px); min-height: 68vh; margin: auto; padding: clamp(6rem, 12vw, 11rem) 0; text-align: center; }
.not-found h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 7vw, 6rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.not-found > p:not(.eyebrow) { max-width: 600px; margin: 1.5rem auto; color: var(--ink-soft); }
.not-found > div { display: flex; justify-content: center; align-items: center; gap: 1.5rem; }

/* Footer */
.site-footer { padding: 4rem 1.5rem 1.5rem; color: #becdc8; background: #081d1f; }
.footer-grid { width: min(100%, 1180px); margin: auto; display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 3rem; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 1.55rem; text-decoration: none; }
.footer-grid p { max-width: 420px; color: #97aba5; font-size: .78rem; }
.footer-grid h2 { margin: 0 0 .8rem; color: #e9b573; font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a:not(.footer-brand) { margin: .25rem 0; color: #bccdc7; font-size: .78rem; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-status { padding-left: .7rem; border-left: 2px solid var(--copper); }
.footer-base { width: min(100%, 1180px); margin: 3rem auto 0; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #294143; color: #718a84; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }

[hidden] { display: none !important; }

@media (max-width: 1050px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-rail { position: static; max-height: none; }
  .article-rail details { padding-inline: .8rem; border: 1px solid var(--line); background: var(--surface); }
  .toc { display: grid; grid-template-columns: repeat(2, 1fr); }
  .rail-note { display: none; }
  .functions-visual ol { grid-template-columns: repeat(4, 1fr); }
  .trust-visual ol { grid-template-columns: repeat(3, 1fr); }
  .balance-pair { grid-template-columns: 1fr; }
  .settlement-bridge { flex-direction: row; }
  .settlement-bridge::before, .settlement-bridge::after { flex: 1; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 5.5rem; }
  .header-inner { width: min(calc(100% - 2rem), var(--max)); min-height: 66px; flex-wrap: wrap; padding-block: .55rem; }
  .primary-nav { width: 100%; flex-wrap: wrap; gap: .2rem 1rem; }
  .primary-nav a { padding: .35rem 0; }
  html[data-js="true"] .header-inner { flex-wrap: nowrap; padding-block: 0; }
  html[data-js="true"] .nav-toggle { display: block; }
  html[data-js="true"] .primary-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; width: auto; padding: 1rem; display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  html[data-js="true"] .primary-nav.is-open { display: flex; }
  html[data-js="true"] .primary-nav a { padding: .75rem; border-bottom: 1px solid var(--line); }
  .home-hero { min-height: auto; }
  .home-hero-inner, .hero-inner { width: min(calc(100% - 2rem), 1180px); }
  .home-hero-inner { padding-top: 4.5rem; }
  .home-hero h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .home-preview, .preview-banner { align-items: flex-start; flex-direction: column; }
  .hero-ledger { grid-template-columns: repeat(2, 1fr); }
  .hero-ledger a:nth-child(2) { border-right: 0; }
  .hero-ledger a:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .section-pad { width: min(calc(100% - 2rem), 1180px); }
  .split-heading, .method-band, .boundary-section { grid-template-columns: 1fr; }
  .research-card:nth-child(n) { grid-column: span 12; min-height: 300px; }
  .method-band { width: 100%; padding-inline: 1rem; }
  .article-hero h1 { font-size: clamp(2.65rem, 11vw, 4.7rem); }
  .article-layout { width: min(calc(100% - 2rem), var(--max)); padding-top: 2rem; }
  .toc { grid-template-columns: 1fr; }
  .article-meta span + span::before { display: none; }
  .research-paths { grid-template-columns: 1fr; }
  .research-paths a:first-child { grid-column: auto; }
  .functions-visual ol { grid-template-columns: repeat(2, 1fr); }
  .trust-visual ol { grid-template-columns: repeat(2, 1fr); }
  .evidence-ledger { grid-template-columns: 1fr; }
  .step-tabs { grid-template-columns: repeat(2, 1fr); }
  .settlement-pair { grid-template-columns: 1fr; }
  .settlement-pair > span { transform: rotate(90deg); margin: .4rem; }
  .related-grid { grid-template-columns: 1fr; }
  .source-item { grid-template-columns: 48px minmax(0, 1fr); }
  .source-tier, .source-item > .volatility { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
}

@media (max-width: 540px) {
  .home-hero h1 { font-size: 3.15rem; }
  .article-hero h1 { font-size: 2.65rem; }
  .hero-ledger strong { font-size: 1.7rem; }
  .hero-ledger a { padding: 1rem .7rem 1rem 0; }
  .hero-ledger a:not(:first-child) { padding-left: .7rem; }
  .functions-visual ol, .trust-visual ol, .evidence-ledger ol, .flow-split { grid-template-columns: 1fr; }
  .mini-balance { grid-template-columns: 1fr; }
  .mini-balance > div + div { border-left: 0; border-top: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-base { align-items: flex-start; flex-direction: column; }
  .not-found > div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  :root { --paper: #fff; --surface: #fff; }
  .site-header, .site-footer, .article-rail, .reading-progress, .related-section, .preview-banner, .home-preview, .tool-controls, .dataset-links, .step-tabs, .button, .heading-anchor { display: none !important; }
  body { color: #000; background: #fff; font-size: 10.5pt; }
  .article-hero { color: #000; background: #fff; }
  .article-hero h1, .deck { color: #000; }
  .article-layout { display: block; width: 100%; padding: 1rem 0; }
  .article-main { max-width: none; }
  .component, .table-scroll, .answer-card { break-inside: avoid; box-shadow: none; }
  .table-scroll { overflow: visible; }
  [data-ledger-panel][hidden], [data-timeline-row][hidden], [data-claim-row][hidden] { display: block !important; }
  tr[data-timeline-row][hidden], tr[data-claim-row][hidden] { display: table-row !important; }
  table { min-width: 0; font-size: 7.5pt; }
  a { color: #000; text-decoration: none; }
  .source-list a::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; font-weight: 400; }
}
