:root {
  --paper: #f1ecdf;
  --paper-2: #e7dfcd;
  --ink: #18231c;
  --muted: #535b54;
  --gold-ink: #7d5b00;
  --line: #c8bfa9;
  --green: #19633c;
  --green-2: #49a367;
  --red: #a62f28;
  --red-2: #e55745;
  --gold: #d3a51d;
  --blue: #2c6381;
  --coal: #111914;
  --white: #fffdf6;
  --shadow: 0 20px 60px rgb(27 36 29 / .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wrap.wide { width: min(1440px, calc(100% - 40px)); }
.skip { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

.hero { position: relative; min-height: 820px; overflow: hidden; color: var(--white); background:
  radial-gradient(circle at 76% 34%, rgb(211 165 29 / .2), transparent 24%),
  linear-gradient(135deg, #0c1710 0%, #15281c 52%, #1c3c27 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: repeating-linear-gradient(115deg, transparent 0 17px, #fff 18px, transparent 19px 38px); mix-blend-mode: overlay; }
.hero-map { position: absolute; width: 670px; right: -70px; top: 90px; opacity: .16; }
.hero-map path { fill: none; stroke: #ffe38a; stroke-width: .35; }
.hero-inner { position: relative; z-index: 2; }
.brand { min-height: 82px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgb(255 255 255 / .23); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.brand a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.brand img { width: 33px; height: 33px; object-fit: contain; filter: brightness(0) invert(1); }
.hero-copy { max-width: 885px; padding: 90px 0 44px; }
.eyebrow, .kicker { margin: 0 0 12px; color: var(--gold-ink); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 880px; margin: 0; font-family: var(--serif); font-size: clamp(4rem, 8vw, 7.8rem); font-weight: 400; line-height: .86; letter-spacing: -.055em; }
.hero h1 em { display: block; color: #f7d975; font-weight: 400; }
.deck { max-width: 840px; margin: 36px 0 0; color: rgb(255 253 246 / .83); font-size: clamp(1.06rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 950px; margin-top: 58px; border-top: 1px solid rgb(255 255 255 / .25); border-bottom: 1px solid rgb(255 255 255 / .25); }
.hero-stats div { padding: 22px 26px 24px 0; }
.hero-stats div + div { padding-left: 26px; border-left: 1px solid rgb(255 255 255 / .25); }
.hero-stats b { display: block; color: #f7d975; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 400; line-height: 1; }
.hero-stats span { display: block; margin-top: 8px; color: rgb(255 253 246 / .72); font-size: .82rem; }
.hero-note { width: 410px; margin: 0 0 58px auto; padding: 22px 26px; color: var(--ink); background: #f7d975; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.hero-note b { font-family: var(--serif); font-size: 1.5rem; }
.hero-note p { margin: 8px 0 14px; }
.hero-note a { font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.toc { position: sticky; z-index: 100; top: 0; overflow-x: auto; background: rgb(241 236 223 / .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.toc .wrap { min-height: 54px; display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.toc b { color: var(--red); font-size: .68rem; letter-spacing: .13em; }
.toc a { color: #48534b; font-size: .73rem; font-weight: 700; text-decoration: none; }
.toc a:hover { color: var(--red); }

.chapter { position: relative; scroll-margin-top: 54px; padding: 112px 0; border-bottom: 1px solid var(--line); }
.paper-grid { background-image: linear-gradient(rgb(86 91 72 / .055) 1px, transparent 1px), linear-gradient(90deg, rgb(86 91 72 / .055) 1px, transparent 1px); background-size: 32px 32px; }
.dark { color: var(--white); background: var(--coal); border-color: #344137; }
.chapter-head { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 34px; margin-bottom: 56px; }
.sec-no { margin: 12px 0 0; color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.dark .sec-no { color: #f7d975; }
.chapter h2 { max-width: 930px; margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.chapter h2 em { color: var(--red); font-weight: 400; }
.dark h2 em { color: #f7d975; }
.lead { max-width: 800px; margin: 20px 0 0; color: var(--muted); font-size: 1.1rem; }
.dark .lead { color: #aab5ab; }
.mt { margin-top: 34px; }

.verdict-grid, .grid-3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { min-height: 250px; padding: 25px; background: rgb(255 253 246 / .74); border: 1px solid var(--line); box-shadow: 0 8px 0 rgb(54 65 55 / .06); }
.dark .card { background: #1a261e; border-color: #3c493e; }
.card h3 { margin: 18px 0 8px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.08; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.dark .card p { color: #aab5ab; }
.metric { display: block; color: var(--green); font-family: var(--serif); font-size: 3.15rem; line-height: 1; }
.metric.green { color: var(--green); }.metric.red { color: var(--red); }.metric.gold { color: #b88700; }.metric.ink { color: var(--ink); }
.dark .metric { color: #f7d975; }
.stamp { display: inline-block; padding: 5px 8px; border: 1px solid currentColor; font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.stamp.observed { color: var(--green); }.stamp.estimated { color: #7d5b00; border-style: dashed; }.stamp.limit { color: var(--red); }
.dark .stamp.observed { color: #72c48b; }.dark .stamp.estimated { color: #f7d975; }
.thesis-band { margin-top: 22px; display: grid; grid-template-columns: .7fr 1fr 1fr 2fr; gap: 20px; align-items: center; padding: 25px 28px; color: var(--white); background: var(--ink); }
.thesis-band span { color: #f7d975; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.thesis-band b { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.thesis-band p { margin: 0; color: #b6c0b7; font-size: .85rem; }

.economy-ledger { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #3c493e; }
.economy-ledger div { min-height: 180px; padding: 24px; }
.economy-ledger div + div { border-left: 1px solid #3c493e; }
.economy-ledger span, .economy-ledger small { display: block; color: #aab5ab; }
.economy-ledger b { display: block; margin: 14px 0; color: #f7d975; font-family: var(--serif); font-size: 2.7rem; font-weight: 400; line-height: 1; }
.economy-ledger small { font-size: .72rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-shell { padding: 28px; background: rgb(255 253 246 / .66); border: 1px solid var(--line); }
.dark-card { background: #162119; border-color: #3c493e; }
.chart-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.chart-title h3 { margin: 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.chart-title span { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.bar-chart { min-height: 260px; }
.chart-note, .micro { margin: 18px 0 0; color: var(--muted); font-size: .72rem; }
.dark .chart-note { color: #839087; }
.plain-language { margin-top: 26px; padding: 22px 26px; color: var(--ink); background: #f7d975; font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; }

.bar-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 3fr auto; gap: 12px; align-items: center; margin: 11px 0; }
.bar-row .label { color: inherit; font-size: .8rem; font-weight: 700; }
.bar-track { height: 20px; background: rgb(128 138 129 / .2); }
.bar-fill { display: block; height: 100%; background: var(--gold); }
.bar-row .value { min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 850; }
.bar-row.dual { grid-template-columns: minmax(120px, 1.2fr) 3fr 3fr auto; }
.bar-fill.green { background: var(--green-2); }.bar-fill.red { background: var(--red-2); }.bar-fill.blue { background: var(--blue); }

.map-chapter { overflow: hidden; background: #ddd5c2; }
.map-layout { display: grid; grid-template-columns: 230px minmax(560px, 1fr) 280px; min-height: 730px; background: #e9e2d2; border: 1px solid #b7ac92; box-shadow: var(--shadow); }
.map-controls, .map-readout { padding: 28px 24px; background: #f5f0e5; }
.map-controls { border-right: 1px solid #b7ac92; }
.map-readout { border-left: 1px solid #b7ac92; }
.layer-buttons { display: grid; gap: 8px; }
.layer-buttons button { padding: 10px 12px; color: var(--ink); text-align: left; background: transparent; border: 1px solid #b7ac92; cursor: pointer; }
.layer-buttons button:hover:not(.active) { background: #e2dac8; }
.layer-buttons button.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.map-stage { position: relative; display: grid; place-items: center; min-width: 0; padding: 18px; background: radial-gradient(circle, #f6f1e5 0, #ddd5c2 72%); }
#mg-map { width: 100%; height: 690px; overflow: visible; }
#mg-map path { stroke: rgb(255 255 255 / .8); stroke-width: .22; vector-effect: non-scaling-stroke; transition: fill .18s, opacity .18s; cursor: crosshair; }
#mg-map path:hover, #mg-map path:focus { stroke: var(--ink); stroke-width: 1.5; outline: none; }
.map-tooltip { position: fixed; z-index: 300; width: 270px; padding: 14px 16px; pointer-events: none; color: var(--white); background: rgb(17 25 20 / .94); box-shadow: var(--shadow); }
.map-tooltip b { display: block; font-family: var(--serif); font-size: 1.2rem; }
.map-tooltip span { display: block; color: #c6d0c8; font-size: .75rem; }
.map-legend { margin-top: 26px; }
.legend-item { display: flex; gap: 8px; align-items: center; margin: 7px 0; font-size: .72rem; }
.legend-swatch { width: 18px; height: 12px; border: 1px solid rgb(0 0 0 / .15); }
.map-readout h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
.map-readout p { color: var(--muted); font-size: .88rem; }
.map-readout dl { margin-top: 28px; }
.map-readout dl div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.map-readout dt { color: var(--muted); font-size: .75rem; }.map-readout dd { margin: 0; font-weight: 900; }

.scatter { min-height: 480px; }
.scatter svg { width: 100%; height: 480px; overflow: visible; }
.axis-line { stroke: #8d958d; stroke-width: 1; }
.axis-label { fill: var(--muted); font-size: 11px; }
.region-dot { fill: var(--gold); stroke: var(--ink); stroke-width: 1.3; opacity: .82; }
.region-label { fill: var(--ink); font-size: 10px; font-weight: 800; pointer-events: none; }
.region-table { margin-top: 22px; display: grid; grid-template-columns: repeat(13, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.region-chip { min-height: 145px; padding: 14px; background: rgb(255 253 246 / .65); border: 1px solid var(--line); }
.region-chip b { display: block; min-height: 38px; font-family: var(--serif); line-height: 1.05; }
.region-chip span { display: block; margin-top: 9px; color: var(--muted); font-size: .7rem; }

.route-chapter { color: var(--white); background: #18231c; }
.route-chapter h2 em { color: #f7d975; }
.route-chapter .lead { color: #b0bab1; }
.route-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; }
.route-map { position: relative; min-height: 680px; background: #0f1812; border: 1px solid #405045; }
#route-map { width: 100%; height: 660px; }
#route-map .base { fill: #24342a; stroke: #536256; stroke-width: .25; }
#route-map .route-line { fill: none; stroke-width: 3; stroke-dasharray: 8 6; opacity: .7; }
#route-map .route-dot { stroke: #fff; stroke-width: 1.5; }
#route-map text { fill: #fff; font-size: 10px; font-weight: 800; paint-order: stroke; stroke: #0f1812; stroke-width: 3px; }
.route-legend { position: absolute; left: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; padding: 10px; background: rgb(15 24 18 / .84); }
.route-legend span { font-size: .67rem; }.route-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.route-legend .metro { color: #f0c94c; }.route-legend .oeste { color: #64b77d; }.route-legend .leste { color: #69a7c9; }.route-legend .norte { color: #ed6654; }
.route-copy { align-self: center; }
.route-copy h3 { margin: 0; color: #f7d975; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; line-height: 1.06; }
.route-copy ol { padding-left: 18px; color: #b8c3ba; }
.route-copy li { margin: 16px 0; }.route-copy b { color: var(--white); }
.table-tools { display: flex; align-items: center; gap: 14px; margin-top: 38px; }
.table-tools label { font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.table-tools input { width: min(460px, 60vw); padding: 11px 14px; color: var(--white); background: #0f1812; border: 1px solid #526057; }
.table-tools span { margin-left: auto; color: #a9b5ab; font-size: .75rem; }
.city-table-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid #405045; }
.city-table { width: 100%; border-collapse: collapse; min-width: 880px; font-variant-numeric: tabular-nums; }
.city-table th { padding: 12px 14px; color: #f7d975; text-align: left; background: #0f1812; font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; }
.city-table td { padding: 12px 14px; border-top: 1px solid #3c493e; font-size: .82rem; }
.city-table tbody tr:hover { background: #24342a; }
.city-table .pos { color: #f3a197; }.city-table .neg { color: #78c18e; }

.candidates-chapter { background: #e6deca; }
.candidate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.candidate { position: relative; min-height: 360px; padding: 28px; background: #f8f3e8; border: 1px solid var(--line); overflow: hidden; }
.candidate::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 190px; height: 190px; border: 30px solid rgb(24 35 28 / .05); border-radius: 50%; }
.lead-candidate { color: var(--white); background: var(--green); border-color: var(--green); }
.candidate-no { position: absolute; top: 18px; right: 20px; color: rgb(24 35 28 / .5); font-family: var(--serif); font-size: 4rem; }
.lead-candidate .candidate-no { color: rgb(255 255 255 / .62); }
.candidate h3 { margin: 0 0 16px; max-width: 250px; font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.candidate p { color: var(--muted); }
.lead-candidate p { color: rgb(255 255 255 / .78); }.lead-candidate .kicker { color: #f7d975; }
.candidate dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 0; }
.candidate dl div { padding-top: 12px; border-top: 1px solid var(--line); }
.lead-candidate dl div { border-color: rgb(255 255 255 / .28); }
.candidate dt { color: var(--muted); font-size: .65rem; text-transform: uppercase; }.lead-candidate dt { color: #c9ddce; }
.candidate dd { margin: 3px 0 0; font-weight: 900; }
.minor-candidates { margin-top: 20px; padding: 20px 24px; border: 1px solid var(--line); background: rgb(255 253 246 / .45); }
.minor-candidates summary { cursor: pointer; font-weight: 900; }
.pullers { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1px; margin-top: 20px; color: var(--white); background: #657269; border: 1px solid #657269; }
.puller-copy { padding: 28px; background: var(--ink); }
.puller-copy .kicker { color: #f7d975; }.puller-copy h3 { margin: 6px 0 14px; max-width: 680px; font-family: var(--serif); font-size: 2rem; line-height: 1.05; }.puller-copy p:not(.kicker) { color: #bdc8bf; font-size: .84rem; }
.puller-ledger { display: grid; grid-template-columns: 1fr 1fr; background: #203a2a; }
.puller-ledger div { padding: 24px; border: 1px solid rgb(255 255 255 / .12); }
.puller-ledger span, .puller-ledger small { display: block; color: #b8c9bc; font-size: .68rem; }.puller-ledger span { font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.puller-ledger b { display: block; margin: 6px 0; color: #f7d975; font-family: var(--serif); font-size: 2.1rem; font-weight: 400; line-height: 1; }
.puller-limit { grid-column: 1 / -1; margin: 0; padding: 18px 24px; color: #262a25; background: #f7d975; font-size: .8rem; }

.poll-files { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #3b493e; }
.poll-files article { min-height: 210px; padding: 25px; }
.poll-files article + article { border-left: 1px solid #3b493e; }
.poll-files b { display: block; color: #f7d975; font-family: var(--serif); font-size: 3.3rem; font-weight: 400; }
.poll-files span, .poll-files small { display: block; color: #aab5ab; }.poll-files small { margin-top: 16px; font-size: .72rem; }
.poll-files .pnad-file { color: var(--ink); background: #f7d975; }.poll-files .pnad-file b, .poll-files .pnad-file .kicker { color: var(--ink); }.poll-files .pnad-file span, .poll-files .pnad-file small { color: #4c513f; }

.flow-chapter { background: #eee7d8; }
.flow-toolbar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ink); }
.flow-toolbar label { color: #f7d975; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.flow-toolbar select { min-width: 230px; padding: 9px 12px; color: var(--ink); background: var(--white); border: 0; }
.flow-shell { padding: 18px; background: #fffaf0; border: 1px solid var(--line); }
.flow-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.flow-head p { max-width: 560px; color: var(--muted); font-size: .75rem; text-align: right; }
#flow-chart { width: 100%; min-height: 610px; }
#flow-chart .node { stroke: #101813; stroke-width: 1; }
#flow-chart .node-label { fill: var(--ink); font-size: 13px; font-weight: 800; }
#flow-chart .node-value { fill: var(--muted); font-size: 11px; }
#flow-chart .flow-link { fill: none; stroke-linecap: butt; stroke-dasharray: 5 3; opacity: .3; mix-blend-mode: multiply; }
#flow-chart .flow-link:hover { opacity: .75; }
.flow-notes { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; }
.flow-notes div { padding: 20px; }.flow-notes div + div { border-left: 1px solid var(--line); }
.flow-notes b { font-family: var(--serif); font-size: 1.2rem; }.flow-notes p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }

.senate-toggle { display: flex; gap: 8px; margin: -20px 0 18px; }
.senate-toggle button { padding: 9px 14px; background: transparent; border: 1px solid var(--ink); cursor: pointer; }
.senate-toggle button.active { color: var(--white); background: var(--ink); }
.senate-chart { min-height: 400px; }
.senate-row { display: grid; grid-template-columns: 190px 1fr 1fr; gap: 12px; align-items: center; margin: 12px 0; }
.senate-row .name { font-weight: 800; }
.senate-position { position: relative; height: 28px; background: #ded6c4; }
.senate-position i { display: block; height: 100%; background: var(--green); }
.senate-position.second i { background: var(--gold); }
.senate-position b { position: absolute; top: 4px; left: 6px; padding: 2px 6px; color: var(--ink); background: rgb(255 253 246 / .94); border-radius: 2px; font-size: .75rem; font-weight: 700; }

.agenda-chapter { background: #f5f0e5; }
.agenda-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.agenda-copy article { padding: 20px; background: #e9e1cf; border-top: 5px solid var(--red); }
.agenda-copy b { font-family: var(--serif); font-size: 1.35rem; }.agenda-copy p { color: var(--muted); font-size: .82rem; }
.media-band { margin-top: 26px; display: grid; grid-template-columns: repeat(3, .7fr) 2fr; gap: 20px; align-items: center; padding: 24px; color: var(--white); background: var(--blue); }
.media-band .metric { color: #fff; }.media-band b { display: block; }.media-band p { margin: 0; color: #d1e1e9; }

.strategy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #415045; border: 1px solid #415045; }
.strategy-grid article { min-height: 270px; padding: 26px; background: #18231c; }
.strategy-grid span { color: #f7d975; font-family: var(--serif); font-size: 2.2rem; }
.strategy-grid h3 { margin: 10px 0; font-family: var(--serif); font-size: 1.6rem; }
.strategy-grid p { color: #aab5ab; font-size: .85rem; }
.counterpoint { margin-top: 24px; padding: 24px; border: 1px solid #6e3a34; background: #261b19; }
.counterpoint p { margin: 10px 0 0; color: #c8b5b0; }

.sources-chapter { background: #dcd3bf; }
.methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #b7ac92; }
.methods-grid article { min-height: 190px; padding: 22px; background: rgb(255 253 246 / .45); }
.methods-grid article:nth-child(n+4) { border-top: 1px solid #b7ac92; }.methods-grid article:not(:nth-child(3n+1)) { border-left: 1px solid #b7ac92; }
.methods-grid b { font-family: var(--serif); font-size: 1.3rem; }.methods-grid p { color: var(--muted); font-size: .8rem; }
.source-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.source-links a { padding: 9px 12px; text-decoration: none; background: var(--white); border: 1px solid #b7ac92; font-size: .75rem; font-weight: 800; }
.source-links a:hover { color: var(--white); background: var(--ink); }
.source-note { color: var(--muted); font-size: .78rem; }.source-note code { color: var(--ink); }
.repro { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 30px; padding: 18px; color: var(--white); background: var(--ink); }
.repro span { color: #f7d975; font-size: .68rem; font-weight: 900; }.repro code { font-size: .84rem; }.repro small { color: #aab5ab; }

footer { padding: 30px 0; color: #9da99f; background: #0c130e; }
footer .wrap { display: flex; align-items: center; gap: 20px; }
footer img { width: 34px; filter: brightness(0) invert(1); } footer p { margin: 0; } footer span { margin-left: auto; font-size: .72rem; }

@media (max-width: 1050px) {
  .hero-map { right: -260px; }
  .map-layout { grid-template-columns: 190px 1fr; }
  .map-readout { grid-column: 1 / -1; border: 0; border-top: 1px solid #b7ac92; }
  .verdict-grid, .economy-ledger { grid-template-columns: repeat(2, 1fr); }
  .economy-ledger div:nth-child(3) { border-left: 0; border-top: 1px solid #3c493e; }.economy-ledger div:nth-child(4) { border-top: 1px solid #3c493e; }
  .candidate-grid, .strategy-grid { grid-template-columns: repeat(2, 1fr); }
  .pullers { grid-template-columns: 1fr; }.puller-limit { grid-column: 1; }
  .route-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap, .wrap.wide { width: min(100% - 24px, 1180px); }
  .brand { align-items: flex-start; gap: 14px; padding: 18px 0; }.brand > span { text-align: right; }
  .hero { min-height: auto; }.hero h1 { font-size: clamp(3.5rem, 17vw, 5.7rem); }.hero-copy { padding-top: 64px; }
  .hero-stats { grid-template-columns: 1fr; }.hero-stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / .25); }
  .hero-note { width: auto; margin-left: 0; }
  .chapter { padding: 78px 0; }.chapter-head { grid-template-columns: 1fr; gap: 10px; }.sec-no { margin: 0; }.chapter h2 { font-size: 2.8rem; }
  .verdict-grid, .grid-3, .split, .candidate-grid, .strategy-grid, .poll-files, .methods-grid, .agenda-copy, .puller-ledger { grid-template-columns: 1fr; }
  .thesis-band { grid-template-columns: 1fr; }
  .economy-ledger { grid-template-columns: 1fr; }.economy-ledger div + div { border-left: 0; border-top: 1px solid #3c493e; }
  .map-layout { display: block; }.map-controls { border: 0; border-bottom: 1px solid #b7ac92; }.layer-buttons { grid-template-columns: 1fr 1fr; }.map-stage { padding: 4px; }.map-stage, #mg-map { min-height: 500px; height: 500px; }
  .route-map, #route-map { min-height: 520px; height: 520px; }.route-copy { padding: 0 12px 20px; }
  .poll-files article + article { border-left: 0; border-top: 1px solid #3b493e; }
  .flow-toolbar { align-items: stretch; flex-direction: column; }.flow-toolbar select { min-width: 0; width: 100%; }.flow-head { align-items: flex-start; flex-direction: column; }.flow-head p { text-align: left; }
  #flow-chart { min-height: 520px; }.flow-notes { grid-template-columns: 1fr; }.flow-notes div + div { border-left: 0; border-top: 1px solid var(--line); }
  .senate-row { grid-template-columns: 110px 1fr 1fr; }.senate-row .name { font-size: .72rem; }
  .media-band { grid-template-columns: 1fr 1fr; }.media-band p { grid-column: 1 / -1; }
  .methods-grid article, .methods-grid article:nth-child(n+4), .methods-grid article:not(:nth-child(3n+1)) { border: 0; border-top: 1px solid #b7ac92; }
  .repro { grid-template-columns: 1fr; }
  footer .wrap { align-items: flex-start; flex-direction: column; } footer span { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- camada 2 */
.scroll-x { overflow-x: auto; }

.carrier-ledger { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #3c493e; }
.carrier-ledger div { min-height: 168px; padding: 24px; }
.carrier-ledger div + div { border-left: 1px solid #3c493e; }
.carrier-ledger span, .carrier-ledger small { display: block; color: #b6c0b7; }
.carrier-ledger span { font-size: .78rem; }
.carrier-ledger b { display: block; margin: 14px 0; color: #f7d975; font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: 1; }
.carrier-ledger small { font-size: .72rem; }

.carrier-table { width: 100%; min-width: 760px; border-collapse: collapse; margin-top: 22px; font-variant-numeric: tabular-nums; }
.carrier-table caption { padding-bottom: 12px; color: #c3ccc4; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; text-align: left; }
.carrier-table th { padding: 11px 13px; color: #f7d975; text-align: left; background: #0f1812; font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.carrier-table tbody th { color: var(--white); background: none; font-size: .84rem; font-weight: 600; letter-spacing: 0; text-transform: none; border-top: 1px solid #3c493e; }
.carrier-table td { padding: 11px 13px; border-top: 1px solid #3c493e; font-size: .84rem; color: #dfe6e0; }
.carrier-table td.num { text-align: right; }
.carrier-table tbody tr:hover th, .carrier-table tbody tr:hover td { background: #22322a; }
.carrier-table.compact th, .carrier-table.compact td { padding: 8px 10px; font-size: .78rem; }
.idx-up { color: #7fd3a0; font-weight: 800; }
.idx-dn { color: #a7b1a8; }
.idx-eq { color: #dfe6e0; }
.limit-list p { margin: 0 0 16px; color: #c3ccc4; font-size: .92rem; }
.limit-list b { color: #f7d975; }

.corridors-chapter .corridor { margin-top: 46px; padding: 30px 32px 34px; background: rgb(255 253 246 / .74); border: 1px solid var(--line); box-shadow: 0 8px 0 rgb(54 65 55 / .06); }
.corridor-head { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; align-items: flex-end; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.corridor-head h3 { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(1.9rem, 3.1vw, 2.7rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.corridor-kpi { display: flex; flex-wrap: wrap; gap: 26px; margin: 0; }
.corridor-kpi div { min-width: 92px; }
.corridor-kpi dt { color: var(--muted); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
.corridor-kpi dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.corridor-body { display: grid; grid-template-columns: 1.45fr 1fr; gap: 38px; margin-top: 26px; }
.corridor-body h4 { margin: 26px 0 10px; color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.corridor-body h4:first-child { margin-top: 0; }
.corridor-agenda { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }
.fatos { margin: 0; padding-left: 20px; }
.fatos li { margin-bottom: 12px; font-size: .93rem; }
.fatos cite { display: block; margin-top: 4px; font-size: .74rem; font-style: normal; }
.fatos cite a { color: var(--blue); font-weight: 700; }
.corridor-juizo { margin-top: 22px; padding: 16px 18px; background: #f7d975; font-size: .95rem; }
.corridor-juizo b { text-transform: uppercase; font-size: .68rem; letter-spacing: .09em; }
.idx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.idx-cards div { padding: 14px 10px; text-align: center; border: 1px solid var(--line); background: var(--white); }
.idx-cards b { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.idx-cards.up b, .idx-cards .up b { color: var(--green); }
.idx-cards .dn b { color: var(--muted); }
.idx-cards span { display: block; margin-top: 6px; color: var(--muted); font-size: .7rem; }
table.mini { width: 100%; min-width: 480px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.mini th { padding: 8px 9px; color: var(--ink); text-align: left; background: var(--paper-2); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
table.mini tbody th { background: none; font-size: .8rem; font-weight: 700; letter-spacing: 0; text-transform: none; border-top: 1px solid var(--line); }
table.mini td { padding: 8px 9px; border-top: 1px solid var(--line); font-size: .78rem; }
table.mini td.num { text-align: right; }
.corridor-cities { width: 100%; min-width: 820px; border-collapse: collapse; margin-top: 28px; font-variant-numeric: tabular-nums; }
.corridor-cities caption { padding-bottom: 10px; color: var(--muted); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; text-align: left; }
.corridor-cities th { padding: 10px 12px; color: var(--ink); text-align: left; background: var(--paper-2); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.corridor-cities tbody th { background: none; font-size: .84rem; font-weight: 700; letter-spacing: 0; text-transform: none; border-top: 1px solid var(--line); }
.corridor-cities td { padding: 10px 12px; border-top: 1px solid var(--line); font-size: .82rem; }
.corridor-cities td.num { text-align: right; }
.corridor-cities .idx-up { color: var(--green); }
.corridor-cities .idx-dn { color: var(--muted); }
.corridor-cities tbody tr:hover th, .corridor-cities tbody tr:hover td { background: var(--paper-2); }
.tag-virou { display: inline-block; margin-left: 6px; padding: 2px 6px; color: var(--white); background: var(--red); font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; vertical-align: middle; }

.wave-list { max-width: 900px; margin: 0; padding-left: 26px; counter-reset: none; }
.wave-list li { margin-bottom: 20px; color: #c8d1c9; font-size: 1rem; line-height: 1.6; }
.wave-list li::marker { color: #f7d975; font-family: var(--serif); font-size: 1.3rem; }
.wave-list b { color: var(--white); font-family: var(--serif); font-size: 1.2rem; }

@media (max-width: 1020px) {
  .carrier-ledger { grid-template-columns: repeat(2, 1fr); }
  .carrier-ledger div:nth-child(3) { border-left: none; }
  .corridor-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .carrier-ledger { grid-template-columns: 1fr; }
  .carrier-ledger div + div { border-left: none; border-top: 1px solid #3c493e; }
  .corridors-chapter .corridor { padding: 22px 18px 26px; }
}

/* ------------------------------------------------- contraste medido no pixel */
.hero .eyebrow, .hero .kicker, .dark .eyebrow, .dark .kicker,
.route-chapter .eyebrow, .route-chapter .kicker { color: #f7d975; }
.route-chapter .sec-no { color: #f0a79c; }
.dark .chart-title span, .dark-card .chart-title span { color: #b6c0b7; }
.dark .source-note { color: #b6c0b7; }
.dark .source-note code, .dark .source-note b { color: #f7d975; }
.dark .stamp.limit, .counterpoint .stamp.limit { color: #f0a79c; }
.dark .micro { color: #b6c0b7; }

/* --------------------------------------------------- posicao declarada e palanque */
.stance { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 26px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); }
.stance p { margin: 0; font-size: .95rem; }
.corridor-frase { margin: 18px 0 0; padding-left: 16px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
.corridor-alerta { margin-top: 20px; padding: 14px 16px; background: #f6e4e0; border: 1px solid #d9b3ac; font-size: .93rem; }
.corridor-alerta b { color: #7d201b; text-transform: uppercase; font-size: .68rem; letter-spacing: .09em; }
.eventos { margin: 0; padding-left: 20px; }
.eventos li { margin-bottom: 10px; font-size: .93rem; }
.stake { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 34px; background: #3c493e; border: 1px solid #3c493e; }
.stake div { padding: 20px 22px; background: #162119; }
.stake span { display: block; color: #b6c0b7; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.stake b { display: block; margin-top: 10px; color: #f7d975; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.15; }
.stake p { grid-column: 1 / -1; margin: 0; padding: 18px 22px; color: #c8d1c9; background: #162119; font-size: .92rem; }
.stake p a { color: #9fc6e8; font-weight: 700; }
@media (max-width: 760px) { .stake { grid-template-columns: 1fr; } }
.paradas { min-width: 980px; }
.paradas tbody th small { display: block; margin-top: 3px; color: #b6c0b7; font-size: .68rem; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }
.paradas td:nth-child(5), .paradas td:nth-child(6) { max-width: 300px; white-space: normal; }
