:root{--ink:#161512;--paper:#f4f1eb;--muted:#817d75;--line:#dfdbd2;--red:#d92d29;--map-empty:#ddd8cf;--map-stroke:#f4f1eb;--map-low:#e9aaa1;--map-mid:#df6e61;--map-high:#bd312c}html[data-theme=dark]{--ink:#edf0ed;--paper:#181d20;--muted:#adb5b8;--line:#41494d;--red:#ff8178;--map-empty:#354046;--map-stroke:#1c2327;--map-low:#734b4b;--map-mid:#c66b61;--map-high:#ff8178}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:'DM Sans',sans-serif}a{color:inherit}.topbar{height:72px;background:#161512;color:#f4f1eb;padding:0 clamp(18px,3vw,44px);display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font:700 18px 'Space Grotesk',sans-serif;text-decoration:none;letter-spacing:-.045em}.brand strong,.brand-mark{color:#f24a3e}.brand-mark{margin-right:9px}.header-actions{display:flex;gap:20px;align-items:center}.header-actions a{font-size:12px;text-decoration:none}.header-actions a:hover,.map-method a:hover{color:var(--red)}.theme-toggle{flex:none}.urnas-page{max-width:1550px;padding:32px clamp(18px,4vw,64px) 44px;margin:auto}.intro{display:flex;justify-content:space-between;align-items:end;gap:20px;border-bottom:1px solid var(--line);padding:25px 0 26px}.eyebrow{color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.16em}.intro h1{font:700 clamp(35px,4.8vw,64px)/1 'Space Grotesk',sans-serif;letter-spacing:-.065em;margin:11px 0 12px}.intro h1 span{color:var(--red)}.intro p{font-size:13px;color:var(--muted);max-width:550px;line-height:1.5;margin:0}.intro-stat{text-align:right;white-space:nowrap;display:flex;flex-direction:column;gap:3px}.intro-stat strong{font:700 42px/1 'Space Grotesk',sans-serif;letter-spacing:-.07em}.intro-stat span{font-size:12px}.intro-stat small{font-size:10px;color:var(--muted)}.map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 0}.map-toolbar label{font-size:12px;font-weight:700}.map-toolbar select{margin-left:12px;font:inherit;background:var(--paper);color:var(--ink);border:1px solid var(--line);padding:9px;min-width:160px}.legend{display:flex;gap:13px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.legend span{display:flex;gap:5px;align-items:center}.swatch{display:inline-block;width:10px;height:10px;background:var(--map-empty)}.swatch.low{background:var(--map-low)}.swatch.middle{background:var(--map-mid)}.swatch.high{background:var(--map-high)}.map-grid{display:grid;grid-template-columns:1.16fr 1fr;gap:28px}.map-panel{min-width:0;border-top:2px solid var(--ink);padding-top:17px}.map-title{display:flex;justify-content:space-between;align-items:end}.map-title h2{font:600 23px 'Space Grotesk',sans-serif;letter-spacing:-.05em;margin:4px 0}.map-title strong{font-size:12px;white-space:nowrap}.map-stage{height:clamp(400px,42vw,580px);position:relative;overflow:hidden}.map-stage svg{width:100%;height:100%;display:block}.map-loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;color:var(--muted)}.map-stage.ready .map-loading{display:none}.map-shape{fill:var(--map-empty);stroke:var(--map-stroke);stroke-width:.18;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .18s}.map-shape[data-density=low]{fill:var(--map-low)}.map-shape[data-density=middle]{fill:var(--map-mid)}.map-shape[data-density=high]{fill:var(--map-high)}.map-shape:hover,.map-shape.selected{stroke:var(--ink);stroke-width:1.3;filter:brightness(.9)}.map-hint{font-size:11px;color:var(--muted);margin:4px 0 0}.detail-bar{margin-top:28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;display:flex;justify-content:space-between;align-items:center;gap:20px}.detail-bar h3{font:600 20px 'Space Grotesk',sans-serif;margin:4px 0}.detail-bar p{font-size:11px;color:var(--muted);margin:0}.detail-bar strong{font:600 28px 'Space Grotesk',sans-serif;white-space:nowrap}.map-method{display:flex;gap:50px;color:var(--muted);font-size:11px;line-height:1.55}.map-method p{max-width:650px}.map-method strong{color:var(--ink)}.map-method a{font-weight:700;text-decoration:none;color:var(--red)}.page-footer{border-top:1px solid var(--line);padding:18px clamp(18px,4vw,64px);display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}@media(max-width:760px){.topbar{height:60px}.brand{font-size:14px}.header-actions a{font-size:10px}.urnas-page{padding-top:10px}.intro{align-items:start;flex-direction:column;padding-top:16px}.intro h1{font-size:42px}.intro-stat{text-align:left}.intro-stat strong{font-size:32px}.map-toolbar{align-items:start;flex-direction:column}.map-grid{grid-template-columns:1fr;gap:24px}.map-stage{height:410px}.map-method{display:block}.page-footer{display:block}.page-footer span{display:block;margin:6px 0}}@media(max-width:360px){.brand{font-size:12px}.brand-mark{margin-right:4px}.header-actions{gap:5px}.intro h1{font-size:35px}.legend{gap:7px}}
.place-search{position:relative;flex:1;max-width:330px}.place-search input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);font:500 12px 'DM Sans',sans-serif}.place-results{position:absolute;left:0;right:0;top:100%;background:var(--paper);border:1px solid var(--line);z-index:5;max-height:230px;overflow:auto;box-shadow:0 10px 24px #0002}.place-results button{display:block;width:100%;padding:10px 12px;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:500 12px 'DM Sans',sans-serif;cursor:pointer}.place-results button:hover,.place-results button:focus{color:var(--red);background:var(--map-empty)}.place-results small{float:right;color:var(--muted)}@media(max-width:760px){.place-search{max-width:none;width:100%}}
.bulletin-list{padding:12px 0 20px;border-bottom:1px solid var(--line)}.bulletin-list>strong{font-size:11px;letter-spacing:.1em;text-transform:uppercase}.bulletin-list a{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px;text-decoration:none}.bulletin-list a:hover{color:var(--red)}.bulletin-list a span:last-child{color:var(--red);white-space:nowrap}
.vote-overview{padding:18px 0 20px;border-bottom:1px solid var(--line)}
.vote-overview-heading{display:flex;justify-content:space-between;align-items:end;gap:24px}
.vote-overview h2{font:600 24px 'Space Grotesk',sans-serif;letter-spacing:-.05em;margin:7px 0 5px}
.vote-overview-heading p,.official-general,.country-votes p{font-size:11px;line-height:1.5;color:var(--muted);margin:0}
.vote-totals{text-align:right;display:flex;flex-direction:column;gap:3px;min-width:170px}
.vote-totals>strong{font:700 39px/1 'Space Grotesk',sans-serif;letter-spacing:-.06em}
.vote-totals span{font-size:11px}.vote-totals small{font-size:10px;color:var(--muted)}
.vote-list{margin-top:17px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:30px}
.vote-column{width:100%;border-collapse:collapse;table-layout:fixed;align-self:start;font-size:11px}
.vote-column thead th{font-size:9px;color:var(--muted);font-weight:600;text-align:right;padding:0 0 9px}
.vote-column thead th:first-child{text-align:left;width:62%}.vote-column thead th:last-child{width:16%}
.vote-row th,.vote-row td{border-top:1px solid var(--line);padding:11px 0;text-align:right;vertical-align:top}
.vote-row th{text-align:left;font-weight:600;padding-right:12px;overflow-wrap:anywhere}.vote-row td:nth-child(2){font-weight:700}.vote-row td:last-child{color:var(--muted)}
.vote-empty{font-size:11px;color:var(--muted)}.official-general{padding-top:10px}
.country-votes{padding:20px 0;border-bottom:1px solid var(--line)}.country-votes[hidden]{display:none}.country-votes-heading{display:flex;justify-content:space-between;align-items:baseline;gap:15px}.country-votes-heading strong{font:600 22px 'Space Grotesk',sans-serif}.country-votes .vote-list{margin-top:10px}
@media(max-width:760px){.vote-overview-heading{display:block}.vote-overview h2{font-size:21px}.vote-totals{text-align:left;min-width:0;margin-top:15px}.vote-totals>strong{font-size:32px}.vote-list{grid-template-columns:1fr;row-gap:12px}.country-votes-heading strong{font-size:18px}}
.map-zoom{position:absolute;right:12px;top:16px;z-index:2;display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line)}
.map-zoom button{width:40px;height:40px;border:0;background:transparent;color:var(--ink);font:500 24px 'DM Sans',sans-serif;cursor:pointer;touch-action:manipulation}.map-zoom button+button{border-top:1px solid var(--line)}.map-zoom button:hover:not(:disabled){background:var(--line)}.map-zoom button:disabled{opacity:.3;cursor:default}.map-zoom button:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.map-stage svg{touch-action:pan-y}.map-stage.zoomed svg{touch-action:none;cursor:grab}.map-stage.zoomed svg:active{cursor:grabbing}
.map-shape[data-leader=flavio],.swatch.flavio{fill:#397dcc;background:#397dcc}
.map-shape[data-leader=lula],.swatch.lula{fill:#d53f3a;background:#d53f3a}
.map-shape[data-leader=renan],.swatch.renan{fill:#e5bb36;background:#e5bb36}
.map-shape[data-leader=other],.swatch.other{fill:#59616a;background:#59616a}
html[data-theme=dark] .map-shape[data-leader=flavio],html[data-theme=dark] .swatch.flavio{fill:#65a5ed;background:#65a5ed}
html[data-theme=dark] .map-shape[data-leader=lula],html[data-theme=dark] .swatch.lula{fill:#f06c64;background:#f06c64}
html[data-theme=dark] .map-shape[data-leader=renan],html[data-theme=dark] .swatch.renan{fill:#edca55;background:#edca55}
html[data-theme=dark] .map-shape[data-leader=other],html[data-theme=dark] .swatch.other{fill:#7c8792;background:#7c8792}
.intro-stat{white-space:normal;max-width:350px}.intro-stat small{line-height:1.4}@media(max-width:760px){.intro-stat{max-width:100%}}
