:root {
  --ink: #18252b;
  --paper: #f2ede2;
  --paper-deep: #e4ddcf;
  --white: #fffaf0;
  --blue: #2e6f91;
  --blue-deep: #204c63;
  --rust: #b2523f;
  --yellow: #e0a22d;
  --mint: #b8d6c2;
  --muted: #526368;
  --line: #aeb7ad;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration-thickness: 0.12em; text-underline-offset: 0.16em; }
button, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 10; left: 1rem; top: -4rem; padding: 0.75rem 1rem; background: var(--yellow); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { padding: 1rem clamp(1rem, 3vw, 3rem) 0; border-bottom: 1px solid var(--line); background: rgba(242,237,226,.96); }
.masthead, .primary-nav { max-width: 1200px; margin: 0 auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .72rem; letter-spacing: .14em; font-weight: 900; text-decoration: none; }
.header-note { color: var(--muted); font-size: .76rem; letter-spacing: .05em; }
.primary-nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; font-size: .83rem; font-weight: 800; }
.primary-nav > a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.language-nav { display: flex; align-items: center; gap: .25rem; }
.language-nav a, .language-nav span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: .45rem .65rem; text-decoration: none; }
.language-nav span[aria-current="page"] { background: var(--ink); color: var(--white); }

.hero { max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 3rem) clamp(3rem, 7vw, 7rem); display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(320px, .97fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.eyebrow, .section-kicker, .figure-kicker, .screen-label, .source-card-head, .list-heading, .ledger-cell span, .answer-stats span, .rule-card > span, .limits-grid span, .question-grid span, .boundary-grid span, .big-denominator span { margin: 0; font-size: .68rem; line-height: 1.3; letter-spacing: .14em; font-weight: 900; }
.eyebrow { color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 10ch; margin: 1rem 0 1.4rem; font-size: clamp(3.35rem, 8vw, 7rem); line-height: .93; }
h1 em { color: var(--rust); font-style: normal; }
.deck { max-width: 39rem; margin-bottom: 1.45rem; font-size: clamp(1.16rem, 2vw, 1.55rem); line-height: 1.32; letter-spacing: -.02em; }
.deck strong { color: var(--rust); }
.source-line { max-width: 39rem; margin: -.8rem 0 1.15rem; color: var(--blue-deep); font-size: .72rem; font-weight: 800; letter-spacing: .04em; line-height: 1.45; text-transform: uppercase; }
.source-line a { display: inline-flex; min-height: 44px; align-items: center; color: inherit; text-decoration-color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.source-line a:hover, .source-line a:focus-visible { color: var(--rust); }
.audience-cue { margin-bottom: 1rem; color: var(--blue-deep); font-size: .77rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.reader-gain { max-width: 36rem; padding: 1rem 1.1rem; border-left: 4px solid var(--yellow); background: rgba(255,250,240,.64); }
.continuation-cue { max-width: 36rem; margin-bottom: 1.45rem; color: var(--blue-deep); font-weight: 800; }
.credibility { max-width: 38rem; margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.credibility a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-weight: 800; }

.hero-ledger { margin: 0; padding: clamp(1.1rem, 2.3vw, 2rem); background: var(--ink); color: var(--white); box-shadow: 16px 16px 0 var(--yellow); transform: rotate(1deg); }
.hero-ledger figcaption { display: grid; gap: .65rem; margin-bottom: 1.2rem; }
.hero-ledger figcaption .figure-kicker { color: var(--mint); }
.hero-ledger figcaption strong { color: var(--white); font-size: clamp(1.3rem, 3vw, 2.2rem); line-height: .96; letter-spacing: -.04em; }
.hero-ledger figcaption span:last-child { color: #a9c2c4; font-size: .8rem; }
.ledger-screen { display: grid; gap: .2rem; padding: 1.2rem; background: #26373d; border: 1px solid #607276; }
.ledger-screen .screen-label { color: var(--mint); }
.ledger-screen strong { font-family: var(--display); font-size: clamp(3.5rem, 8vw, 5.8rem); font-weight: 500; line-height: .95; color: var(--yellow); }
.ledger-screen span:last-child { color: #c1d0cb; font-size: .82rem; }
.ledger-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1rem; }
.ledger-cell { min-height: 10rem; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--ink); color: var(--ink); }
.ledger-cell strong { font-family: var(--display); font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 500; line-height: 1; }
.ledger-cell i { display: block; height: .65rem; background: var(--ink); }
.ledger-cell.grant { background: var(--rust); color: var(--white); }
.ledger-cell.renew { background: var(--mint); }
.ledger-foot { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid #63767a; color: #cfddd5; font-size: .86rem; }
.ledger-foot strong { color: var(--yellow); }

.section-nav { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 3rem); display: flex; flex-wrap: wrap; gap: .35rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-nav a { min-height: 2.75rem; padding: .65rem .7rem; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.section-nav a:hover { color: var(--ink); background: var(--paper-deep); }

.chapter { padding: clamp(3.5rem, 8vw, 8rem) clamp(1rem, 3vw, 3rem); }
.chapter-inner { max-width: 1200px; margin: 0 auto; }
.chapter-inner.narrow { max-width: 960px; }
.chapter-paper { background: var(--paper); }
.chapter-light { background: var(--white); }
.chapter-ink { background: var(--ink); color: var(--white); }
.chapter-yellow { background: var(--yellow); color: var(--ink); }
.chapter-coral { background: var(--rust); color: var(--white); }
.chapter-blue { background: var(--blue); color: var(--white); }
.section-kicker { margin-bottom: 1rem; color: var(--blue); }
.chapter-ink .section-kicker, .chapter-coral .section-kicker, .chapter-blue .section-kicker { color: var(--mint); }
.chapter-yellow .section-kicker { color: var(--blue-deep); }
h2 { max-width: 16ch; margin-bottom: 2rem; font-size: clamp(2.55rem, 5vw, 5.25rem); line-height: .98; }
h3 { margin-bottom: .55rem; font-size: 1.05rem; line-height: 1.18; letter-spacing: -.02em; }
.lead { max-width: 43rem; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.4; letter-spacing: -.015em; }
.intro-on-dark { color: #e4ebe1; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(330px, 1.12fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.chapter-grid p:not(.lead) { max-width: 36rem; }
.answer-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.answer-stats > div { min-height: 10rem; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper-deep); }
.answer-stats > div:nth-child(1) { border-top: .45rem solid var(--rust); }
.answer-stats > div:nth-child(2) { border-top: .45rem solid var(--blue); }
.answer-stats > div:nth-child(3) { border-top: .45rem solid var(--yellow); }
.answer-stats strong { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: .95; font-weight: 500; }
.answer-stats small { color: var(--muted); font-size: .76rem; }
.answer-stat-total { grid-column: span 2; background: var(--ink) !important; color: var(--white); }
.answer-stat-total small { color: #c8d6cf; }
.boundary-strip { margin-top: 2.2rem; padding: 1rem 1.2rem; border-left: .4rem solid var(--yellow); background: rgba(255,250,240,.6); }
.chapter-ink .boundary-strip { background: #26373d; border-left-color: var(--mint); }
.next-question { margin: 2.5rem 0 0; color: var(--blue-deep); font-weight: 800; }
.chapter-ink .next-question, .chapter-blue .next-question { color: var(--mint); }
.chapter-coral .next-question { color: var(--white); }
.next-question-light { color: var(--mint); }

.comparison-layout { display: grid; grid-template-columns: minmax(190px, .4fr) minmax(0, 1fr); gap: 1.2rem; align-items: stretch; }
.force-picker { padding: 1.2rem; background: #26373d; border: 1px solid #597078; }
.force-picker label { display: block; margin-bottom: .45rem; color: var(--mint); font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.force-picker select { width: 100%; min-height: 2.75rem; padding: .55rem .65rem; border: 0; border-radius: 0; background: var(--white); color: var(--ink); }
.reset-button, .button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem .8rem; border: 1px solid currentColor; font-size: .76rem; font-weight: 900; line-height: 1.2; text-decoration: none; }
.reset-button { width: 100%; margin-top: .7rem; background: transparent; color: var(--white); cursor: pointer; text-align: left; }
.reset-button:hover { background: var(--white); color: var(--ink); }
.control-note { margin: .9rem 0 0; color: #bdd0ca; font-size: .78rem; }
.selected-card { padding: clamp(1.2rem, 2.5vw, 2rem); background: var(--white); color: var(--ink); }
.selected-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 2px solid var(--ink); }
.selected-card-head span { color: var(--rust); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.selected-card-head strong { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.45rem); font-weight: 500; letter-spacing: -.04em; }
.paired-bars { display: grid; gap: 1rem; padding: 1.5rem 0 1.2rem; }
.bar-row { display: grid; grid-template-columns: 8rem 5.2rem 1fr; gap: .7rem; align-items: center; }
.bar-row > span { font-size: .8rem; font-weight: 800; }
.bar-row > b { font-family: var(--display); font-size: 1.5rem; font-weight: 500; text-align: right; }
.bar-track { height: .9rem; background: var(--paper-deep); overflow: hidden; }
.bar-fill { display: block; width: var(--bar-width, 0%); height: 100%; transition: width .28s ease; }
.grant-fill, .grant-initial { background: var(--rust); }
.renewal-fill, .renewal-initial { background: var(--blue); }
.total-fill, .total-initial { background: var(--yellow); }
.grant-initial { --bar-width: 7.59%; }
.renewal-initial { --bar-width: 97.49%; }
.total-initial { --bar-width: 88.64%; }
.total-row { padding-top: 1rem; border-top: 1px solid var(--line); }
.selected-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0; }
.selected-facts > div { padding-top: .65rem; border-top: 1px solid var(--line); }
.selected-facts dt { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.selected-facts dd { margin: .2rem 0 0; font-family: var(--display); font-size: 1.35rem; }
.selected-note { margin: 1.1rem 0 0; color: var(--muted); font-size: .78rem; }
.force-list-shell { margin-top: 1.3rem; padding: 1rem; background: #101b20; }
.list-heading { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem .35rem .8rem; color: var(--mint); }
.list-heading > span:last-child { display: grid; grid-template-columns: 5.1rem 5.1rem; gap: .5rem; text-align: right; }
.list-heading b { font-size: .62rem; }
.force-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .7rem; margin: 0; padding: 0; list-style: none; }
.force-row { width: 100%; min-height: 2.75rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; align-items: center; padding: .45rem .5rem; border: 0; border-left: 3px solid transparent; background: #1d2b30; color: var(--white); cursor: pointer; text-align: left; }
.force-row:hover, .force-row:focus-visible { background: #2a4047; }
.force-row.is-selected { border-left-color: var(--yellow); background: #314851; }
.force-name { min-width: 0; display: flex; align-items: baseline; gap: .5rem; overflow-wrap: anywhere; font-size: .8rem; font-weight: 800; }
.force-name small { color: var(--mint); font-family: monospace; font-size: .62rem; }
.force-pair { display: grid; grid-template-columns: 5rem 5rem; gap: .5rem; color: #d6e5df; font-family: monospace; font-size: .72rem; text-align: right; }
.force-pair b:first-child { color: #f4a391; }
.force-pair b:last-child { color: #a8c9dd; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.2rem 0 0; color: #c8d6cf; font-size: .8rem; }
.button-link { border-color: var(--mint); color: var(--white); }
.button-link:hover { background: var(--mint); color: var(--ink); }

.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rule-card { min-height: 15rem; padding: 1.25rem; border-top: .45rem solid var(--rust); background: var(--paper); }
.rule-card-blue { border-top-color: var(--blue); }
.rule-card-rust { border-top-color: var(--yellow); }
.rule-card > span { color: var(--muted); }
.rule-card h3 { margin-top: 2rem; font-family: var(--display); font-size: 1.65rem; font-weight: 500; letter-spacing: -.04em; }
.rule-card p { color: var(--muted); font-size: .9rem; }
.method-note { margin-top: 1.2rem; padding: 1.2rem; border: 1px solid var(--line); background: var(--paper-deep); }
.method-note strong { color: var(--rust); }

.denominator-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: stretch; margin: 2.5rem 0; }
.big-denominator { min-height: 15rem; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--white); }
.big-denominator strong { font-family: var(--display); font-size: clamp(5rem, 12vw, 10rem); font-weight: 500; line-height: .8; letter-spacing: -.08em; }
.big-denominator small { max-width: 11rem; font-size: .88rem; font-weight: 800; }
.dark-denominator { background: var(--ink); color: var(--white); }
.denominator-arrow { display: grid; place-items: center; min-width: 3.5rem; font-family: var(--display); font-size: 3rem; }
.boundary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.boundary-grid article { padding: 1.2rem; border: 1px solid currentColor; }
.boundary-grid h3 { margin-top: 1.4rem; font-family: var(--display); font-size: 1.7rem; font-weight: 500; }
.boundary-grid p { margin-bottom: 0; }

.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.limits-grid article { min-height: 13rem; padding: 1.15rem; border: 1px solid rgba(255,250,240,.75); }
.limits-grid span { color: var(--yellow); }
.limits-grid strong { display: block; margin: 2rem 0 .6rem; font-family: var(--display); font-size: 1.55rem; font-weight: 500; line-height: 1.1; }
.limits-grid p { margin-bottom: 0; color: #ffe4d9; font-size: .88rem; }
.safety-callout { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1.2rem; padding: 1.1rem; background: var(--ink); }
.safety-callout strong { color: var(--yellow); }
.review-date { margin-top: 1.2rem; color: #ffe4d9; font-size: .86rem; }

.source-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.source-card { padding: 1.25rem; border: 1px solid var(--line); background: var(--white); }
.source-card-blue { border-top: .45rem solid var(--blue); }
.source-card:not(.source-card-blue) { border-top: .45rem solid var(--rust); }
.source-card-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.source-card h3 { margin-top: 2.2rem; font-family: var(--display); font-size: 1.75rem; font-weight: 500; }
.source-card p { color: var(--muted); font-size: .9rem; }
.source-card a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--blue-deep); font-weight: 900; }
.source-method { margin-top: 1rem; padding: 1.2rem; background: var(--paper-deep); }
.source-method ol { margin: .7rem 0 0 1.1rem; padding: 0; }
.source-method code { padding: .1rem .25rem; background: var(--ink); color: var(--mint); font-size: .82em; }
.chapter-paper .download-row { color: var(--muted); }
.chapter-paper .button-link { border-color: var(--ink); color: var(--ink); }
.chapter-paper .button-link:hover { background: var(--ink); color: var(--white); }

.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.question-grid article { min-height: 10rem; padding: 1.1rem; border: 1px solid rgba(255,250,240,.75); }
.question-grid span { color: var(--yellow); }
.question-grid strong { display: block; margin-top: 2.2rem; font-family: var(--display); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.closing-card { max-width: 48rem; margin-top: 2rem; padding: 1.3rem; background: var(--yellow); color: var(--ink); }
.closing-card strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; line-height: 1; }
.closing-card p { margin: .7rem 0 0; }
.closing-line { margin: 2.5rem 0 0; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.1; }

.site-footer { display: flex; max-width: 1200px; margin: 0 auto; padding: 2rem clamp(1rem, 3vw, 3rem) 3rem; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); background: var(--paper); }
.site-footer > div { display: grid; gap: .35rem; }
.site-footer strong { font-family: var(--display); font-weight: 500; }
.site-footer strong a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.site-footer span { color: var(--muted); font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; font-size: .8rem; }
.site-footer nav a { min-height: 2.75rem; padding-top: .5rem; font-weight: 800; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-ledger { max-width: 680px; width: 100%; justify-self: center; }
  .chapter-grid, .comparison-layout { grid-template-columns: 1fr; }
  .force-picker { max-width: 34rem; }
  .rule-grid, .limits-grid { grid-template-columns: 1fr; }
  .rule-card, .limits-grid article { min-height: auto; }
}
@media (max-width: 700px) {
  .header-note { display: none; }
  .hero { padding-top: 2.4rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.25rem); }
  h2 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .hero-ledger { transform: none; box-shadow: 8px 8px 0 var(--yellow); }
  .answer-stats { grid-template-columns: 1fr; }
  .answer-stat-total { grid-column: auto; }
  .force-list { grid-template-columns: 1fr; }
  .force-row { min-height: 3rem; }
  .denominator-layout { grid-template-columns: 1fr; }
  .denominator-arrow { min-height: 2.5rem; }
  .source-stack, .boundary-grid, .question-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 460px) {
  .ledger-split { grid-template-columns: 1fr; }
  .ledger-cell { min-height: 8.5rem; }
  .bar-row { grid-template-columns: 6.2rem 4.6rem 1fr; gap: .4rem; }
  .bar-row > b { font-size: 1.2rem; }
  .selected-facts { grid-template-columns: 1fr; }
  .selected-facts > div { display: flex; justify-content: space-between; align-items: baseline; }
  .list-heading > span:last-child { grid-template-columns: 4rem 4rem; gap: .35rem; }
  .force-pair { grid-template-columns: 4rem 4rem; gap: .35rem; }
  .download-row { align-items: flex-start; flex-direction: column; }
}
