/* Placar 2026. Modelled on the forecast pages of FiveThirtyEight, The Economist and the NYT: one
   dominant topline, rules and whitespace instead of boxes, big serif numerals, candidate colours
   carried through every chart. Candidate hues validated with the dataviz palette checker on both
   page tones (2026-10-04): Lula red #b8322a / #e0645a, Flávio Bolsonaro blue #2a5c9a / #5b8fd6.
   The map's diverging ramp runs light to dark from a neutral gray middle. */

@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url("fonts/sourceserif4-400.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("fonts/sourceserif4-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("fonts/sourcesans3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 500; font-display: swap; src: url("fonts/sourcesans3-500.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("fonts/sourcesans3-600.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --page: #fbfaf7; --panel: #f3f0e9; --ink: #121110; --ink-2: #45403a; --muted: #716a61;
  --hairline: #e2ddd3; --grid: #ece8df; --rule: #121110; --live: #1d7a46; --inv: #121110; --inv-ink: #fbfaf7;
  --lula: #b8322a; --flavio: #2a5c9a; --band-lula: rgba(184, 50, 42, 0.16); --band-flavio: rgba(42, 92, 154, 0.16);
  --l3: #9e2a22; --l2: #c9574b; --l1: #e39a90; --mid: #dcd6cb; --f1: #93b1db; --f2: #5381bf; --f3: #234f88;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0f0e0d; --panel: #1a1816; --ink: #f2ede4; --ink-2: #c8bfb2; --muted: #978e82;
    --hairline: #2c2925; --grid: #221f1c; --rule: #f2ede4; --live: #3fbf75; --inv: #f2ede4; --inv-ink: #0f0e0d;
    --lula: #e0645a; --flavio: #5b8fd6; --band-lula: rgba(224, 100, 90, 0.2); --band-flavio: rgba(91, 143, 214, 0.2);
    --l3: #f08a7f; --l2: #c4554a; --l1: #6e3029; --mid: #37332e; --f1: #2b4468; --f2: #4a76b4; --f3: #8db4ea;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f0e0d; --panel: #1a1816; --ink: #f2ede4; --ink-2: #c8bfb2; --muted: #978e82;
  --hairline: #2c2925; --grid: #221f1c; --rule: #f2ede4; --live: #3fbf75; --inv: #f2ede4; --inv-ink: #0f0e0d;
  --lula: #e0645a; --flavio: #5b8fd6; --band-lula: rgba(224, 100, 90, 0.2); --band-flavio: rgba(91, 143, 214, 0.2);
  --l3: #f08a7f; --l2: #c4554a; --l1: #6e3029; --mid: #37332e; --f1: #2b4468; --f2: #4a76b4; --f3: #8db4ea;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.num, td.num { font-variant-numeric: tabular-nums; }

/* Masthead */
.mast { border-top: 5px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--page); position: sticky; top: 0; z-index: 5; }
.mast-row { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 10px; }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 27px; letter-spacing: -0.015em; white-space: nowrap; }
.brand-name b { font-weight: 600; }
.brand-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.live { color: var(--ink); }
.status.live i { background: var(--live); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .status.live i { animation: none; } }
.theme { font-size: 17px; line-height: 1; color: var(--ink-2); background: none; border: 1px solid var(--hairline); border-radius: 6px; width: 32px; height: 30px; cursor: pointer; }
.nav { display: flex; gap: 22px; border-top: 1px solid var(--hairline); padding-top: 8px; padding-bottom: 9px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav .updated { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .brand-sub { display: none; } .nav .updated { display: none; } }

/* Topline */
.topline { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; padding: 40px 0 36px; border-bottom: 1px solid var(--rule); align-items: start; }
@media (max-width: 900px) { .topline { grid-template-columns: 1fr; gap: 28px; } }
.kicker, .label { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 26px; text-wrap: balance; }
h1 .lula { box-shadow: inset 0 -0.14em 0 var(--band-lula); } h1 .flavio { box-shadow: inset 0 -0.14em 0 var(--band-flavio); }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cand { border-top: 4px solid; padding-top: 10px; }
.cand.lula { border-color: var(--lula); } .cand.flavio { border-color: var(--flavio); text-align: right; }
.cand .who { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.cand .party { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cand .big { font-family: var(--serif); font-size: clamp(54px, 7vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.cand .big small { font-size: 0.36em; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.cand .sub { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.splitbar { position: relative; display: flex; height: 16px; margin: 20px 0 8px; border-radius: 3px; overflow: hidden; }
.splitbar span { display: block; height: 100%; }
.splitbar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--page); }
.compare-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--hairline); }
.compare-row div { padding: 10px 14px 0 0; }
.compare-row div + div { border-left: 1px solid var(--hairline); padding-left: 14px; }
.compare-row .k { font-size: 12.5px; color: var(--muted); }
.compare-row .v { font-family: var(--serif); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.compare-row .v small { font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--muted); }
@media (max-width: 640px) { .compare-row { grid-template-columns: repeat(2, 1fr); } .compare-row div:nth-child(3) { border-left: 0; padding-left: 0; } }
.topline-side { margin: 0; }
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 360px; }
.waffle i { aspect-ratio: 1; border-radius: 3px; display: block; }
.topline-side figcaption { font-size: 14px; color: var(--ink-2); margin-top: 14px; max-width: 360px; line-height: 1.45; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.share span { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.share a, .share button { font: 500 13px var(--sans); color: var(--ink); background: none; border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 12px; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }

/* Sign-up band */
.signup { background: var(--inv); color: var(--inv-ink); border-radius: 4px; padding: 26px 28px; margin: 36px 0 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.signup h2 { font-family: var(--serif); font-size: 25px; margin: 0 0 6px; letter-spacing: -0.01em; }
.signup p { margin: 0; font-size: 15px; opacity: 0.85; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input { flex: 1 1 220px; min-width: 0; font: 16px var(--sans); padding: 11px 14px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--inv-ink) 35%, transparent); background: color-mix(in srgb, var(--inv-ink) 8%, transparent); color: var(--inv-ink); }
.signup input::placeholder { color: color-mix(in srgb, var(--inv-ink) 55%, transparent); }
.signup button { font: 600 15px var(--sans); padding: 11px 18px; border-radius: 4px; border: 0; background: var(--inv-ink); color: var(--inv); cursor: pointer; }
.signup .fine { flex-basis: 100%; font-size: 12.5px; opacity: 0.7; margin: 2px 0 0; }
.signup .msg { flex-basis: 100%; font-size: 14px; font-weight: 600; margin: 0; }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; padding: 22px 18px; } }

/* Blocks */
.block { padding: 40px 0 8px; border-bottom: 1px solid var(--hairline); scroll-margin-top: 104px; }
.block-h { max-width: 760px; margin-bottom: 22px; }
.block h2 { font-family: var(--serif); font-size: clamp(25px, 3vw, 32px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 8px; }
.deck { font-size: 16.5px; color: var(--ink-2); margin: 0; max-width: 70ch; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; margin-bottom: 28px; }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
@media (max-width: 900px) { .cols > div, .cols > aside { grid-column: span 12; } .cols { gap: 28px; } }
.chart-title { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; max-width: 85ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-bottom: 30px; }
.stat { padding: 14px 18px 4px 0; }
.stat + .stat { border-left: 1px solid var(--hairline); padding-left: 18px; }
.stat .k { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.stat .v { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1.05; margin: 6px 0 2px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat .v { font-size: 34px; } }

/* Charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted); font: 12px var(--sans); font-variant-numeric: tabular-nums; }
.chart .axis text.xsub { font-size: 11px; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .ref { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .reftext { fill: var(--ink-2); font: 11.5px var(--sans); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.dash { stroke-dasharray: 2 4; stroke-width: 1.6; }
.chart .lbl { font: 600 12.5px var(--sans); fill: var(--ink); }
.chart .big-lbl { font: 600 15px var(--sans); fill: var(--ink); }
.chart .side { font: 600 11.5px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.chart .cname { font: 600 14px var(--sans); fill: var(--ink); }
.chart .cval { font: 13px var(--sans); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; }
.empty { padding: 44px 16px; color: var(--muted); background: var(--panel); border-radius: 4px; text-align: center; font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); margin: 10px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .ln { width: 18px; height: 0; border-top: 2px solid; }
.legend .ln.dash { border-top-style: dotted; }
.legend .bx { width: 18px; height: 9px; border-radius: 2px; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.6px dashed var(--ink-2); }
.progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.progress { flex: 1; height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--ink); transition: width 0.6s ease; }
.progress-text { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }

/* News rail */
.rail { border-left: 1px solid var(--hairline); padding-left: 28px; }
@media (max-width: 900px) { .rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 16px; } }
.rail-title { font-size: 14px; font-weight: 600; margin: 0 0 6px; display: flex; justify-content: space-between; gap: 8px; }
.rail-title span { font-weight: 400; color: var(--muted); font-size: 12px; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.feed li { padding: 11px 0; border-top: 1px solid var(--hairline); }
.feed li:first-child { border-top: 0; }
.feed a { text-decoration: none; font-family: var(--serif); font-size: 15.5px; line-height: 1.32; display: block; }
.feed a:hover { text-decoration: underline; }
.feed .src { font-size: 12px; color: var(--muted); margin-top: 4px; }
.feed .src b { font-weight: 600; color: var(--ink-2); }

/* Tile map */
.tilemap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 440px; }
.tile { aspect-ratio: 1; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--mid); color: var(--ink); }
.tile small { font-size: 10.5px; font-weight: 500; opacity: 0.92; font-variant-numeric: tabular-nums; }
.tile.dark { color: #fff; }
:root[data-theme="dark"] .tile.dark { color: #0f0e0d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile.dark { color: #0f0e0d; } }
.scale { display: flex; gap: 2px; margin-top: 14px; font-size: 11px; color: var(--muted); flex-wrap: wrap; max-width: 440px; }
.scale span { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; min-width: 44px; }
.scale i { width: 100%; height: 8px; border-radius: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table-wrap.tall { max-height: 500px; overflow-y: auto; }
.table-wrap.tall th { position: sticky; top: 0; background: var(--page); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); padding: 7px 14px 7px 0; white-space: nowrap; vertical-align: bottom; }
table.data td { border-bottom: 1px solid var(--hairline); padding: 9px 14px 9px 0; white-space: nowrap; }
table.data .num { text-align: right; }
table.data tr.ours td { font-weight: 600; }
table.data tr.ours td:first-child { box-shadow: inset 3px 0 0 var(--ink); padding-left: 10px; }
table.data tr.group td { font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding-top: 18px; }
table.data tr.avg td { font-weight: 600; border-top: 1px solid var(--rule); }
table.data .sub { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.vbar { display: inline-block; height: 7px; border-radius: 0 2px 2px 0; vertical-align: middle; margin-right: 6px; }
.vbar.lula { background: var(--lula); } .vbar.flavio { background: var(--flavio); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; padding: 44px 0 24px; scroll-margin-top: 104px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 16px; } }
.about h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 8px; letter-spacing: -0.015em; }
.about .role { font-size: 15px; color: var(--ink-2); margin: 0 0 18px; }
.about blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink); }
.about p.bio { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px var(--sans); padding: 10px 16px; border-radius: 4px; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--page); }
.btn:hover { opacity: 0.88; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

.foot { border-top: 1px solid var(--rule); margin-top: 20px; padding: 18px 0 48px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 6px; max-width: 120ch; }

.tip { position: fixed; z-index: 10; pointer-events: none; background: var(--page); color: var(--ink); border: 1px solid var(--hairline); border-radius: 6px; padding: 8px 10px; font-size: 13px; line-height: 1.45; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14); font-variant-numeric: tabular-nums; max-width: 280px; }
.tip .t { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.tip .r { display: flex; align-items: center; gap: 6px; }

/* Methodology page */
.doc { max-width: 760px; padding: 36px 0 20px; }
.doc h1 { max-width: none; }
.doc h2 { font-family: var(--serif); font-size: 25px; margin: 36px 0 8px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.doc h3 { font-size: 16px; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.doc .eq { font-family: var(--serif); font-size: 17px; background: var(--panel); border-radius: 4px; padding: 12px 16px; overflow-x: auto; color: var(--ink); }
.doc .toc { background: var(--panel); border-radius: 4px; padding: 14px 20px; }
.doc .toc ol { margin: 6px 0; padding-left: 20px; }
.doc table.data { margin: 10px 0; display: block; overflow-x: auto; }
.doc table.data td { white-space: normal; min-width: 120px; }

/* ---- 2026-10-04 evening: scoreboard at the top (Tiago's choice), light sign-up strip, PT/EN ---- */
.lang { font: 600 13px var(--sans); letter-spacing: 0.06em; text-decoration: none; border: 1px solid var(--hairline); border-radius: 6px; padding: 5px 9px; color: var(--ink); }
.status { margin-left: auto; }
.scorebox { padding: 28px 0 30px; border-bottom: 1px solid var(--rule); }
.score { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr) minmax(0, 1fr); border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); }
.side { padding: 18px 24px 16px; color: #fff; position: relative; min-width: 0; }
.side.lula { background: var(--lula); }
.side.flavio { background: var(--flavio); text-align: right; }
.side .nm { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.05; letter-spacing: -0.01em; }
.side .pt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }
.side .pct { font-family: var(--serif); font-weight: 600; font-size: clamp(60px, 7.6vw, 100px); line-height: 0.95; letter-spacing: -0.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.side .pct small { font-size: 0.4em; font-weight: 400; margin-left: 2px; }
.side .ln2 { font-size: 14px; opacity: 0.92; margin-top: 8px; font-variant-numeric: tabular-nums; }
.side .tag { position: absolute; top: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0, 0, 0, 0.22); padding: 3px 8px; border-radius: 2px; }
.side.lula .tag { right: 16px; } .side.flavio .tag { left: 16px; }
.mid { background: var(--page); padding: 18px 20px 16px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.mid .k { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mid .big { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 4.8vw, 66px); line-height: 1; margin: 8px 0 10px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mid .big small { font-size: 0.45em; font-weight: 400; }
.mid .bar { height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.mid .bar i { display: block; height: 100%; background: var(--ink); transition: width 0.8s ease; }
.mid .s { font-size: 13px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .score { grid-template-columns: 1fr 1fr; }
  .mid { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--rule); }
  .side { padding: 14px 16px; }
  .side .tag { position: static; display: inline-block; margin-bottom: 8px; }
}
.scorebox .compare-row { margin-top: 18px; }

/* Sign-up: a light strip in the page's own style */
.signup { background: none; color: var(--ink); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; padding: 26px 0; margin: 40px 0 0; }
.signup h2 { font-size: 24px; }
.signup p { opacity: 1; color: var(--ink-2); }
.signup input { border: 1px solid var(--hairline); background: var(--page); color: var(--ink); }
.signup input::placeholder { color: var(--muted); }
.signup button { background: var(--ink); color: var(--page); }
.signup .fine { opacity: 1; color: var(--muted); }

/* About: bio and leadership */
.about .share { margin-top: 18px; }
.bio p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
.bio p.lead { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink); }
.bio h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.roles { list-style: none; margin: 0 0 6px; padding: 0; border-top: 1px solid var(--hairline); }
.roles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.roles b { font-weight: 600; color: var(--ink); }
.roles .org { color: var(--ink-2); }
.roles .yrs { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.roles .what { grid-column: 1 / -1; font-size: 14.5px; color: var(--ink-2); }
.side { padding-top: 42px; }
@media (max-width: 860px) { .side { padding-top: 14px; } }
@media (max-width: 760px) {
  .mast-row { flex-wrap: wrap; row-gap: 6px; }
  .status { order: 5; flex-basis: 100%; margin-left: 0; }
  .lang { margin-left: auto; }
}

/* Map of Brazil (Natural Earth, public domain), coloured by margin */
.geomap svg { display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto; }
.geomap path { stroke: var(--page); stroke-width: 1.6; stroke-linejoin: round; transition: fill 0.6s ease; cursor: pointer; }
.geomap path:hover { stroke: var(--ink); stroke-width: 2.2; }
.geomap text { font: 600 25px var(--sans); pointer-events: none; letter-spacing: 0.02em; }
.geomap text.sm { font-size: 22px; }
.geomap .mg { font-size: 21px; font-weight: 500; }
#estados .scale { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Scoreboard title and the projection cards below it */
.sb-title { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.sb-title b { color: var(--ink); font-weight: 600; }
.projcards { margin-top: 18px; border: 1px solid var(--hairline); border-radius: 4px; padding: 14px 18px 12px; background: var(--panel); }
.pc-head { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--page); padding: 3px 8px; border-radius: 2px; }
.pc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 12px; }
.pc { padding: 2px 16px 2px 0; }
.pc + .pc { border-left: 1px solid var(--hairline); padding-left: 16px; }
.pc .k { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.pc .v { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pc .s { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.projcards .note { margin-top: 10px; }
@media (max-width: 760px) { .pc-grid { grid-template-columns: repeat(2, 1fr); row-gap: 12px; } .pc:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---- Three questions: numbered blocks, teasers under the scoreboard, chance tables ---- */
.q-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--page); font: 600 12px var(--sans); letter-spacing: 0; margin-right: 8px; flex: none; }
.block.q .label { display: flex; align-items: center; flex-wrap: wrap; color: var(--ink); }
.block.q .label .state { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--hairline); color: var(--muted); }
.block.q { border-bottom: 0; border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 28px; }
#blocks .block.q:first-child { border-top: 0; margin-top: 0; }
.teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.teaser { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; border: 1px solid var(--hairline); border-radius: 4px; text-decoration: none; }
.teaser:hover { border-color: var(--ink); }
.t-top { display: flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.t-kind { font-size: 13px; color: var(--muted); }
.t-body { font-family: var(--serif); font-size: 24px; line-height: 1.2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.t-body b { font-weight: 600; } .t-body i { font-style: normal; color: var(--muted); }
.t-sub { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .teasers { grid-template-columns: 1fr; } .t-body { font-size: 21px; } }
.chance { margin-bottom: 22px; }
.ch-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-title .kind { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 2px; padding: 2px 7px; }
.ch-row { display: grid; grid-template-columns: minmax(0, 1.25fr) 44px minmax(60px, 1fr) 44px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.ch-row.one { grid-template-columns: minmax(0, 1.25fr) minmax(60px, 1fr) 52px; }
.ch-row.head { border-top: 0; padding: 0 0 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ch-src { font-size: 14px; font-weight: 500; min-width: 0; }
.ch-src small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.ch-num { font-size: 15px; text-align: right; }
.ch-num.r { text-align: left; }
.ch-row.head .ch-num { font-size: 11.5px; }
.ch-row.main .ch-num { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.ch-row.main .ch-src { font-weight: 600; }
.ch-bar { display: flex; height: 10px; border-radius: 2px; overflow: hidden; background: var(--grid); gap: 2px; }
.ch-bar span { display: block; height: 100%; }
.ch-bar .l { background: var(--lula); } .ch-bar .f { background: var(--flavio); } .ch-bar .y { background: var(--ink-2); }
.ch-row.main .ch-bar { height: 14px; }
.note.top { margin: -4px 0 12px; }
table.bench tr.grp th { border-bottom: 0; padding-bottom: 2px; color: var(--ink); font-size: 12px; letter-spacing: 0.06em; }
table.bench .gs { border-left: 1px solid var(--hairline); padding-left: 14px; }
table.bench th { white-space: normal; }
#q1-result { margin-bottom: 26px; }

#r2-chance { margin-top: 20px; }

.pc .mini { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; border: 1px solid var(--ink-2); border-radius: 2px; padding: 1px 5px; margin-right: 6px; color: var(--ink); }
.pc .k .swatch { margin-right: 4px; }
.pc-head b { color: var(--ink); }
#top-night { margin-top: 26px; }
#top-night .cols { margin-bottom: 6px; }

.pc-head { display: block; }

[hidden] { display: none !important; }
.sb-title { display: flex; align-items: center; flex-wrap: wrap; }
.pc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pc-group + .pc-group { border-left: 1px solid var(--hairline); padding-left: 28px; }
.pc-groups .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-head { font-size: 13px; }
@media (max-width: 760px) { .pc-groups { grid-template-columns: 1fr; row-gap: 16px; } .pc-group + .pc-group { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 14px; } .pc-groups .pc:nth-child(3) { border-left: 1px solid var(--hairline); } }

.teasers.one { grid-template-columns: 1fr; }
#q3-side .label { display: flex; align-items: center; color: var(--ink); margin-bottom: 14px; }
#q3-side .ch-row { grid-template-columns: minmax(0, 1.1fr) 40px minmax(40px, 0.8fr) 40px; gap: 8px; }
.feed.cols3 { max-height: none; overflow: visible; column-count: 3; column-gap: 40px; margin-bottom: 28px; }
.feed.cols3 li { break-inside: avoid; border-top: 1px solid var(--hairline); }
.feed.cols3 li:first-child { border-top: 1px solid var(--hairline); }
@media (max-width: 900px) { .feed.cols3 { column-count: 1; } }

.sb-title { display: block; }
.sb-title .q-num { vertical-align: middle; }

.pc .v .duo-n { font-size: 26px; white-space: nowrap; }
.pc .v .duo-n i { font-style: normal; color: var(--muted); font-size: 0.7em; }
