:root{--ink:#172d29;--green:#123c36;--accent:#d9eea5;--muted:#67766f;--line:#dce3db;--paper:#f5f6f0;--white:#fff;--orange:#f8ebd5;--radius:18px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}:focus-visible{outline:3px solid #bb791c;outline-offset:3px}header{background:#fff;border-bottom:1px solid var(--line)}.header-inner{max-width:1280px;margin:auto;padding:20px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:10px;align-items:center;font-size:24px;font-weight:800;line-height:1.1;letter-spacing:-1px}.brand img{width:44px;height:44px}.brand-small{display:block;font-size:13px;font-weight:550;letter-spacing:.5px}nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:600}nav a{min-height:44px;display:flex;align-items:center}nav a.active{color:#397759}.admin-link{color:var(--muted)}main{max-width:1280px;margin:auto;padding:38px 32px 64px;min-height:65vh}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:#4d7160;margin:0 0 14px}.hero{display:grid;grid-template-columns:1.6fr 1fr;align-items:center;gap:30px;margin-bottom:36px}.hero h1{font-size:clamp(32px,4vw,54px);line-height:1.1;letter-spacing:-2px;margin:0 0 18px;font-weight:750;max-width:750px}.hero p{color:var(--muted);max-width:620px;font-size:16px}.hero-note{padding:26px;border:1px solid #cad9b8;background:#edf2dd;border-radius:var(--radius);display:flex;align-items:flex-start;gap:15px}.hero-note .symbol{font-size:32px}.hero-note strong{display:block;font-size:18px}.hero-note p{font-size:13px;margin:8px 0 0}.search-panel,.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px}.search-panel{margin-bottom:28px}.search-row{display:flex;gap:12px}.search-input{flex:1;min-width:0;position:relative}.search-input input{width:100%;padding:14px 18px;border:1px solid var(--line);border-radius:10px;background:#fafbf8}.primary{border:0;border-radius:10px;background:var(--green);color:white;padding:12px 22px;font-weight:650;min-height:44px}.secondary{border:1px solid var(--line);border-radius:10px;background:white;padding:10px 16px;min-height:44px}.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}label{display:block;font-size:12px;font-weight:650;color:var(--muted)}input,select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px;color:var(--ink);margin-top:6px}details{margin-top:16px}summary{cursor:pointer;font-size:13px;font-weight:650;padding:6px 0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:26px 0 18px}.section-heading h2{font-size:23px;letter-spacing:-.5px;margin:0}.section-heading p,.small{font-size:13px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .15s,border-color .15s}.card:hover{transform:translateY(-2px);border-color:#9fb4a5}.card-content{padding:22px}.identity{display:flex;align-items:center;gap:15px;min-width:0}.portrait{width:76px;height:86px;object-fit:cover;object-position:top;border-radius:12px;background:#e6ece7;flex-shrink:0}.identity h3{font-size:18px;line-height:1.25;margin:6px 0;overflow-wrap:anywhere}.badge{display:inline-block;font-size:11px;font-weight:700;background:#edf3e7;color:#37563d;border-radius:5px;padding:3px 7px;letter-spacing:.3px}.identity p{font-size:12px;color:var(--muted);margin:5px 0}.card-period{font-size:12px;color:var(--muted);margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.card-stat{margin:12px 0 6px;font-size:23px;font-weight:700;letter-spacing:-.5px}.card-stat small{display:block;font-size:11px;letter-spacing:0;font-weight:500;color:var(--muted)}.card-bottom{display:flex;border-top:1px solid var(--line);align-items:center}.card-bottom a{padding:14px 22px;font-size:13px;font-weight:650;flex:1}.compare-toggle{border:0;border-left:1px solid var(--line);background:#f8faf5;font-size:12px;padding:14px 16px;min-height:47px}.compare-toggle.chosen{background:var(--accent)}.pagination{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:28px}.empty{padding:45px 20px;text-align:center;border:1px dashed #c5d3c4;border-radius:14px;color:var(--muted);background:#fafbf7}.empty strong{display:block;color:var(--ink);font-size:20px;margin-bottom:8px}.notice{padding:14px 18px;background:var(--orange);border-radius:10px;font-size:13px;margin:16px 0;color:#665130}.success{background:#e7f2df;color:#3a5e35}.error{background:#fbe7e2;color:#8c3123}.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:22px}.profile-head{display:flex;align-items:center;gap:26px;padding:28px;background:var(--green);border-radius:20px;color:white}.profile-head .portrait{width:120px;height:140px}.profile-head h1{font-size:clamp(25px,3vw,40px);line-height:1.15;margin:9px 0}.profile-head p{margin:6px 0;color:#d6e2d8}.profile-head .badge{background:var(--accent);color:#23442d}.profile-head a{font-size:13px;color:#dbedb8}.profile-actions{margin-left:auto;align-self:flex-end}.profile-actions button{white-space:nowrap}.toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:24px 0}.toolbar select{min-width:130px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat{border:1px solid var(--line);border-radius:14px;padding:20px;background:white}.stat strong{display:block;font-size:27px;font-weight:700;letter-spacing:-1px;margin:6px 0}.stat span{font-size:12px;color:var(--muted)}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;margin:25px 0;scrollbar-width:thin}.tab{white-space:nowrap;min-height:48px;padding:12px 17px;background:none;border:0;border-bottom:3px solid transparent;color:var(--muted);font-size:14px}.tab.active{border-color:var(--green);color:var(--green);font-weight:700}.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.panel h3{font-size:17px;margin:0 0 15px}.chart-wrap{position:relative;height:300px;min-width:0}.chart-wrap canvas{max-width:100%}.table-wrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:12px;background:white}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#eef2e9;font-size:11px;text-transform:uppercase;letter-spacing:.5px}td a{color:#356b51;text-decoration:underline}.proposal{padding:20px;border-bottom:1px solid var(--line)}.proposal:last-child{border-bottom:none}.proposal h3{margin:0 0 7px;font-size:16px}.proposal p{font-size:14px;color:#51625a}.timeline-item{padding:17px 0;border-bottom:1px solid var(--line)}.timeline-item strong{display:block}.timeline-item a{font-size:12px;color:#3e7255}.party-card{padding:24px;display:flex;justify-content:space-between;align-items:center}.party-card h3{margin:0;font-size:23px}.party-card p{font-size:13px;color:var(--muted);margin:6px 0}.party-circle{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:var(--accent);font-weight:650}.loading{padding:60px;text-align:center;color:var(--muted)}.comparison-selection{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.comparison-pill{padding:12px 16px;background:#e8efdf;border-radius:10px;font-size:14px}.comparison-pill button{background:none;border:0;margin-left:15px;min-height:30px}.compare-table th,.compare-table td{min-width:160px}.admin-form{max-width:800px}.jobs{display:grid;gap:14px}.job{background:white;padding:20px;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}.job strong{display:flex;justify-content:space-between;gap:20px}.job p{font-size:13px;margin:8px 0}.sources{display:grid;gap:15px}.sources a{font-size:13px;color:#367153;overflow-wrap:anywhere}footer{display:flex;max-width:1280px;margin:auto;border-top:1px solid var(--line);padding:30px 32px;gap:30px;justify-content:space-between;font-size:12px;color:var(--muted)}footer strong{color:var(--green)}#toast{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--green);color:white;border-radius:10px;padding:13px 20px;max-width:90vw;z-index:20;font-size:14px}.skip{position:absolute;left:10px;top:-70px;background:white;padding:10px;z-index:30}.skip:focus{top:10px}.hide{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{grid-template-columns:1fr}.hero-note{max-width:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.header-inner{padding:18px 24px}main{padding:28px 24px 44px}nav{gap:18px}}
@media(max-width:640px){.header-inner{padding:14px 16px;flex-wrap:wrap;gap:14px}.brand{font-size:22px}.brand img{width:40px;height:40px}nav{width:100%;justify-content:space-between;gap:8px;font-size:12px}nav a{min-height:36px}main{padding:24px 16px 40px}.hero{gap:15px;margin-bottom:24px}.hero h1{letter-spacing:-1px;font-size:34px}.hero p{font-size:14px}.hero-note{padding:18px}.search-panel,.panel{padding:17px}.search-row{flex-direction:column}.filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cards{grid-template-columns:1fr;gap:14px}.card-content{padding:20px}.section-heading{align-items:flex-start;flex-direction:column;gap:5px}.section-heading h2{font-size:21px}.section-heading p{margin:0}.profile-head{padding:20px;flex-wrap:wrap;gap:16px}.profile-head .portrait{width:82px;height:96px}.profile-head .profile-copy{flex:1;min-width:140px}.profile-head h1{font-size:26px}.profile-head p{font-size:13px}.profile-actions{margin:0;width:100%}.profile-actions button{width:100%}.toolbar{gap:12px;flex-wrap:wrap}.stats{gap:10px}.stat{padding:14px}.stat strong{font-size:23px;overflow-wrap:anywhere}.chart-grid{grid-template-columns:1fr;gap:14px}.chart-wrap{height:260px}.tabs{margin:20px 0}.tab{padding:11px 12px;font-size:13px}th,td{padding:11px 12px}.table-wrap{overscroll-behavior-x:contain}.notice{padding:12px 14px}footer{padding:25px 16px;flex-direction:column;gap:8px}footer p{margin:6px 0}.comparison-pill{width:100%;display:flex;align-items:center;justify-content:space-between}.comparison-pill button{font-size:18px}.pagination{gap:12px}.pagination button{padding:10px 14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.election-filter{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));align-items:end;gap:14px}.election-filter .primary,.election-filter .secondary{white-space:nowrap}.election-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.election-status{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 21px;margin:18px 0;background:#eaf2e7;border:1px solid #cbdcc8;border-radius:14px}.election-status>div{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.election-status .small{width:100%;margin-left:24px}.election-status-dot{display:inline-block;width:11px;height:11px;border-radius:50%;background:#3d8a57;box-shadow:0 0 0 4px #d8ead6}.election-status-dot.pending{background:#b17b2a;box-shadow:0 0 0 4px #f4e7ce;flex:0 0 11px;margin-top:7px}.election-status-dot.live{flex:0 0 11px}.election-unavailable{display:flex;align-items:flex-start;gap:18px;margin:20px 0;padding:30px}.election-unavailable h2{margin:0 0 8px}.election-unavailable p{color:var(--muted)}.election-unavailable a{color:#356b51;text-decoration:underline}.election-stats{margin:18px 0}.election-list{margin-top:18px}.election-list .section-heading{align-items:center}.election-search-label{max-width:520px;margin:4px 0 18px}.election-number{font-variant-numeric:tabular-nums;font-weight:700}.election-candidate-status{display:block;color:var(--muted);font-size:11px;margin-top:3px}.election-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:18px}.election-pagination .small{margin:0}.election-polling{margin:14px 2px}.election-hero .hero-note{display:block}.election-hero .hero-note p{margin:10px 0 0}.election-hero .hero-note a{color:#356b51;text-decoration:underline}
@media(max-width:800px){.election-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.election-filter-actions{justify-content:stretch}.election-filter-actions button{width:auto}}
@media(max-width:640px){.election-filter{grid-template-columns:1fr}.election-status{align-items:flex-start}.election-status>div{flex:1}.election-unavailable{padding:20px}.election-status .secondary{padding:9px 12px}.election-pagination{gap:9px;flex-wrap:wrap}.election-pagination .small{width:100%;text-align:center;order:-1}header nav{justify-content:flex-start;overflow-x:auto;scrollbar-width:thin}header nav a{flex:0 0 auto;padding:0 3px}}
.election-leaders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.election-leader-card{position:relative;min-width:0;padding:23px 25px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 18px #172d290b}.election-leader-card.leader-first{border-top:4px solid #276b4d}.election-leader-card.leader-second{border-top:4px solid #829489}.election-leader-label{display:inline-flex;padding:4px 9px;border-radius:100px;background:#edf3e7;color:#365f43;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.5px}.election-leader-card h2{font-size:clamp(19px,2.6vw,27px);margin:14px 0 2px;line-height:1.2}.election-leader-card p{margin:0;color:var(--muted);font-size:13px}.election-leader-votes{font-size:clamp(27px,4vw,39px);font-weight:780;letter-spacing:-1px;margin:18px 0 11px;font-variant-numeric:tabular-nums}.election-leader-votes small{font-size:13px;font-weight:500;letter-spacing:0;color:var(--muted)}.election-vote-track,.election-state-track{display:block;height:9px;background:#e9eee8;border-radius:20px;overflow:hidden}.election-vote-track span,.election-state-track i{display:block;height:100%;background:#397a58;border-radius:inherit;transition:width .25s}.leader-second .election-vote-track span{background:#77877d}.election-leader-card>strong{display:block;text-align:right;margin-top:8px;font-size:21px;font-variant-numeric:tabular-nums}.election-map-panel{margin:20px 0}.election-state-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.election-state-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;padding:12px;background:#fafbf8;border:1px solid var(--line);border-radius:11px;text-align:left;color:var(--ink)}.election-state-card:hover,.election-state-card.selected{border-color:#6f9b7b;background:#edf4ea}.election-state-card strong{font-size:16px;line-height:1}.election-state-card>span:nth-child(2){font-weight:700;font-variant-numeric:tabular-nums}.election-state-card .election-state-track{width:100%;height:5px}.election-state-card small{color:var(--muted);font-size:10px;line-height:1.2}
@media(max-width:1000px){.election-state-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:720px){.election-state-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:480px){.election-leaders{grid-template-columns:1fr}.election-leader-card{padding:19px}.election-state-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.election-state-card{padding:10px}}
.official-data{margin-top:18px}.official-record{border-top:1px solid var(--line);padding:8px 0}.official-json{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9f5;border:1px solid var(--line);border-radius:8px;padding:14px;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}
.election-candidate-photo{display:block;width:82px;height:96px;object-fit:cover;object-position:center top;border:1px solid var(--line);border-radius:12px;background:#f2f4ef}.election-leader-card>.election-candidate-photo{float:right;margin:0 0 12px 16px}.election-candidate-identity{display:flex;align-items:center;gap:12px;min-width:190px}.election-candidate-photo.compact{width:42px;height:50px;border-radius:7px;flex:0 0 42px}
.header-inner nav a.live-nav-link,.header-inner nav a.live-nav-link.active{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0 14px;border:2px solid #ff665f;border-radius:999px;background:var(--green);color:#fff;text-decoration:none;white-space:nowrap;animation:liveBorderPulse 1.6s ease-in-out infinite}.live-nav-link:hover{background:#1c5148!important;text-decoration:none}.live-nav-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#ff665f;box-shadow:0 0 0 4px #ffffff25}@keyframes liveBorderPulse{0%,100%{border-color:#ff665f;box-shadow:0 0 0 0 #ff665f55,0 0 12px #ff665f22}50%{border-color:#ffb6b1;box-shadow:0 0 0 4px #ff665f33,0 0 18px #ff665f66}}@media(max-width:640px){.header-inner nav{width:100%;justify-content:flex-start;gap:10px;overflow-x:auto;scrollbar-width:thin}.header-inner nav a{flex:0 0 auto;white-space:nowrap;padding:0 4px}.header-inner nav a.live-nav-link{padding:0 10px}}@media(prefers-reduced-motion:reduce){.header-inner nav a.live-nav-link{animation:none}.header-inner nav a.live-nav-link.active{animation:none}}
.election-brazil-map{margin:20px 0}.brazil-map-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);align-items:start;gap:22px}.brazil-results-map{min-height:300px;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:#f8faf6;padding:8px}.brazil-map-svg{width:100%;max-height:620px;display:block}.brazil-map-state{cursor:pointer;transition:fill .2s,stroke .2s,filter .2s}.brazil-map-state:hover,.brazil-map-state:focus-visible{stroke:#173c34!important;stroke-width:3!important;filter:brightness(1.08);outline:none}.brazil-map-state.selected{stroke:#102e28!important;stroke-width:3.5!important;filter:brightness(1.12)}.brazil-map-detail{min-height:300px;padding:19px;background:#f8faf6;border:1px solid var(--line);border-radius:14px}.brazil-map-detail h3{margin:7px 0;font-size:24px}.election-state-tag{display:inline-block;padding:4px 9px;border-radius:100px;background:#e5efe5;color:#235d44;font-size:12px;font-weight:800}.brazil-map-detail>.small{margin:6px 0 15px}.brazil-map-ranking{display:grid;gap:11px;padding:0;margin:15px 0;list-style:none}.brazil-map-ranking li{display:flex;align-items:center;gap:10px;min-width:0}.brazil-map-ranking li>span{display:grid;gap:2px;min-width:0}.brazil-map-ranking strong{font-size:13px;line-height:1.25}.brazil-map-ranking small{color:var(--muted);font-size:11px;line-height:1.35}.brazil-map-detail>p a{color:#356b51;text-decoration:underline}.brazil-map-open-state{display:inline-flex;margin-top:4px}.brazil-map-legend{display:flex;flex-wrap:wrap;gap:9px 15px;padding:14px 2px}.brazil-map-legend-item{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.brazil-map-legend-item i{width:12px;height:12px;flex:0 0 12px;border-radius:3px}.brazil-map-source{margin:8px 0 0}@media(max-width:760px){.brazil-map-layout{grid-template-columns:1fr}.brazil-results-map{min-height:250px}.brazil-map-detail{min-height:0}}
.brazil-result-block{padding:13px 0;border-top:1px solid var(--line)}.brazil-result-block h4{margin:0 0 10px;font-size:15px}.brazil-result-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px}.brazil-result-stats>div{display:grid;gap:3px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}.brazil-result-stats small{color:var(--muted);font-size:11px}.brazil-result-stats strong{font-size:17px;font-variant-numeric:tabular-nums}.brazil-map-ranking li>div{display:grid;gap:3px;min-width:0}.brazil-candidate-color{width:11px;height:11px;flex:0 0 11px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--line)}.brazil-map-ranking .brazil-candidate-pending .brazil-candidate-color{background:#e5ebe5!important}
.election-filter-accordion{margin:0 0 28px;padding:0;overflow:hidden}.election-filter-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 23px;list-style:none;cursor:pointer}.election-filter-accordion>summary::-webkit-details-marker{display:none}.election-filter-accordion>summary::after{content:'+';order:1;width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--green);font-size:21px;line-height:1}.election-filter-accordion[open]>summary{border-bottom:1px solid var(--line)}.election-filter-accordion[open]>summary::after{content:'−'}.election-filter-summary-copy{display:grid;gap:3px}.election-filter-summary-copy strong{font-size:16px;color:var(--ink)}.election-filter-summary-copy small{font-size:12px;font-weight:500;color:var(--muted)}.election-filter-toggle{margin-left:auto;color:var(--muted);font-size:12px;font-weight:650}.election-filter-accordion .election-filter{padding:21px 23px 23px;margin:0}
.election-hero{grid-template-columns:minmax(0,1fr) auto}.election-source-trigger{align-self:center;white-space:nowrap}.election-source-dialog{width:min(540px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);padding:0;border:0;border-radius:var(--radius);background:transparent;color:var(--ink);overflow:visible}.election-source-dialog::backdrop{background:#172d29a8;backdrop-filter:blur(2px)}.election-source-card{position:relative;padding:30px;border:1px solid #cad9b8;border-radius:var(--radius);background:#edf2dd;box-shadow:0 22px 70px #101f1c45}.election-source-card h2{margin:0 42px 12px 0;font-size:23px}.election-source-card p{font-size:14px;color:var(--muted)}.election-source-card a{color:#356b51;text-decoration:underline}.election-source-close{position:absolute;top:12px;right:12px;width:38px;height:38px;padding:0;border:1px solid #cad9b8;border-radius:50%;background:#fff;color:var(--ink);font-size:25px;line-height:1}.election-source-close:hover{background:#f7faf2}@media(max-width:720px){.election-hero{grid-template-columns:1fr}.election-source-trigger{justify-self:start}}
.brazil-capital-races{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.brazil-capital-race{min-width:0;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff}.brazil-capital-office{display:inline-flex;margin-bottom:9px;padding:4px 8px;border-radius:100px;background:#edf3e7;color:#365f43;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.35px}.brazil-capital-stats{display:grid;gap:2px;margin-bottom:9px}.brazil-capital-stats strong{font-size:19px;font-variant-numeric:tabular-nums}.brazil-capital-stats small,.brazil-capital-race>p{font-size:11px;color:var(--muted);line-height:1.45}.brazil-capital-winner{display:flex;align-items:center;gap:9px;min-width:0}.brazil-capital-winner>span{display:grid;gap:2px;min-width:0}.brazil-capital-winner strong{font-size:13px;line-height:1.25;overflow-wrap:anywhere}.brazil-capital-winner small{font-size:10px;line-height:1.35;color:var(--muted)}.brazil-capital-race>p{margin:8px 0 0}.brazil-capital-race>p a{color:#356b51;text-decoration:underline}@media(max-width:560px){.brazil-capital-races{grid-template-columns:1fr}}
.election-filter{grid-template-columns:repeat(3,minmax(160px,1fr))}.election-hero-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.election-hero-actions button{white-space:nowrap}.election-vote-margin{margin-top:10px!important;padding-top:9px;border-top:1px solid var(--line);font-size:12px!important;font-weight:700;color:#285d43!important}.election-progress-track{height:7px;overflow:hidden;border-radius:10px;background:#e8eee8}.election-progress-track i{display:block;height:100%;border-radius:inherit;background:#39845b;transition:width .3s}.election-history{margin:18px 0}.election-history .section-heading{align-items:flex-start}.election-history .section-heading h3{margin:0 0 5px}.election-history-chart{display:block;width:100%;max-height:220px;margin:12px 0}.election-history-chart line{stroke:#dce5dc;stroke-width:1}.election-history-chart text{fill:var(--muted);font:11px sans-serif}.election-history-legend{display:flex;flex-wrap:wrap;gap:9px 18px}.election-history-legend-item{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.election-history-legend-item i{width:11px;height:11px;border-radius:50%}.election-status strong{color:#28533e}.election-status .small{color:var(--muted)}@media(max-width:800px){.election-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.election-filter{grid-template-columns:1fr}.election-hero-actions{justify-content:flex-start}.election-history .section-heading{flex-direction:column;gap:4px}}
.election-turnout-stat{display:flex;flex-direction:column;min-width:0}.election-turnout-rows{display:grid;gap:6px;margin-top:5px}.election-turnout-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:6px;border-top:1px solid var(--line)}.election-turnout-row>span{display:grid;gap:1px}.election-turnout-row>span>small,.election-turnout-note{font-size:10px;line-height:1.25;color:var(--muted)}.election-turnout-row>strong{flex:0 0 auto;margin:0;font-size:16px;letter-spacing:0;font-variant-numeric:tabular-nums}.election-turnout-note{display:block;margin-top:7px}.election-turnout-source{margin-top:auto;padding-top:5px;font-size:11px}.election-turnout-source a{color:#356b51;text-decoration:underline}@media(max-width:640px){.election-turnout-row>strong{font-size:14px}}
.theme-toggle{position:relative;display:inline-flex;align-items:center;justify-content:space-between;flex:0 0 58px;width:58px;height:34px;padding:0 7px;border:0;border-radius:999px;background:#ed990d;color:#fff;transition:background-color .2s ease;vertical-align:middle}.theme-toggle:focus-visible{outline-offset:4px}.theme-toggle-icon{z-index:1;display:grid;place-items:center;width:18px;height:18px}.theme-toggle-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.theme-toggle-sun,.theme-toggle-moon{color:#fff}.theme-toggle-thumb{position:absolute;top:4px;left:4px;width:26px;height:26px;border-radius:50%;background:#fff;transform:translateX(24px);transition:transform .22s ease}.theme-toggle[aria-checked="true"]{background:#303030}.theme-toggle[aria-checked="true"] .theme-toggle-thumb{transform:translateX(0)}.theme-toggle[aria-checked="true"] .theme-toggle-sun,.theme-toggle[aria-checked="false"] .theme-toggle-moon{opacity:0}
html[data-theme="dark"]{color-scheme:dark;--ink:#e9efeb;--green:#b9d894;--accent:#486044;--muted:#a8b7ae;--line:#394841;--paper:#171e1c;--white:#222b28;--orange:#3c3426}html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}html[data-theme="dark"] header,html[data-theme="dark"] footer{background:#202825;border-color:var(--line)}html[data-theme="dark"] .panel,html[data-theme="dark"] .search-panel,html[data-theme="dark"] .card,html[data-theme="dark"] .stat,html[data-theme="dark"] .job,html[data-theme="dark"] .empty,html[data-theme="dark"] .timeline-item,html[data-theme="dark"] .brazil-capital-race,html[data-theme="dark"] .brazil-map-detail,html[data-theme="dark"] .comparison-pill,html[data-theme="dark"] .election-leader-card,html[data-theme="dark"] .profile-head,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .brazil-result-stats>div{background:#222b28;color:var(--ink);border-color:var(--line)}html[data-theme="dark"] .hero-note,html[data-theme="dark"] .notice,html[data-theme="dark"] .election-status,html[data-theme="dark"] .election-capital-summary{background:#2b352d;color:var(--ink);border-color:#4a604a}html[data-theme="dark"] .badge,html[data-theme="dark"] .brazil-capital-office{background:#344238;color:#d9e8d4}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#1b2320;color:var(--ink);border-color:#526159}html[data-theme="dark"] input::placeholder{color:#a8b7ae}html[data-theme="dark"] table{color:var(--ink)}html[data-theme="dark"] th{background:#29332f}html[data-theme="dark"] td,html[data-theme="dark"] th,html[data-theme="dark"] .tabs,html[data-theme="dark"] .tab{border-color:var(--line)}html[data-theme="dark"] .tab.active{color:#c4e59d}html[data-theme="dark"] .secondary,html[data-theme="dark"] .pagination button{background:#252e2b;color:var(--ink);border-color:#526159}html[data-theme="dark"] .skip{background:#222b28;color:var(--ink)}html[data-theme="dark"] .election-state-card{background:#222b28;color:var(--ink);border-color:var(--line)}html[data-theme="dark"] .election-state-card.selected{border-color:#b9d894}html[data-theme="dark"] .election-progress-track,html[data-theme="dark"] .election-vote-track{background:#3b4640}html[data-theme="dark"] .election-turnout-row{border-color:var(--line)}html[data-theme="dark"] a:not(.brand):not(.live-nav-link){color:#a9d5ae}html[data-theme="dark"] .primary,html[data-theme="dark"] .election-filter .primary{background:#b9d894;color:#172d29}html[data-theme="dark"] .live-nav-link{color:#f0a3a0}html[data-theme="dark"] .live-nav-link.active{background:#3c2928}html[data-theme="dark"] .election-source-dialog .election-source-card{background:#2b352d;color:var(--ink);border-color:#4a604a}html[data-theme="dark"] .election-source-dialog .election-source-card a{color:#b9d894}html[data-theme="dark"] .election-source-dialog .election-source-close{background:#222b28;color:var(--ink);border-color:var(--line)}
@media(max-width:1000px){.header-inner nav .theme-toggle{margin-left:auto}}
@media(max-width:640px){.header-inner nav .theme-toggle{position:sticky;right:0;flex:0 0 58px;margin-left:auto;box-shadow:-8px 0 12px var(--paper)}}
@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-toggle-thumb{transition:none}}
html[data-theme="dark"] .brazil-results-map,html[data-theme="dark"] .brazil-map-detail{background:#1b2320;border-color:var(--line)}html[data-theme="dark"] .brazil-map-state:hover,html[data-theme="dark"] .brazil-map-state:focus-visible,html[data-theme="dark"] .brazil-map-state.selected{stroke:#f4f7f4!important}html[data-theme="dark"] .compare-toggle{background:#29332f;color:#e9efeb;border-left-color:var(--line)}html[data-theme="dark"] .compare-toggle:hover{background:#344238;color:#fff}html[data-theme="dark"] .compare-toggle.chosen{background:#486044;color:#f4faef;border-left-color:#526159}html[data-theme="dark"] .comparison-pill button{color:#e9efeb;border-radius:6px}html[data-theme="dark"] .comparison-pill button:hover{background:#394841;color:#fff}
html[data-theme="dark"]{--ink:#f1f1f1;--green:#d6d6d6;--accent:#505050;--muted:#b5b5b5;--line:#484848;--paper:#202020;--white:#2b2b2b;--orange:#353535}
html[data-theme="dark"] body{background:#202020;color:#f1f1f1}html[data-theme="dark"] header,html[data-theme="dark"] footer{background:#292929;border-color:#484848}
html[data-theme="dark"] :is(.panel,.search-panel,.card,.stat,.job,.empty,.timeline-item,.brazil-capital-race,.brazil-map-detail,.comparison-pill,.election-leader-card,.profile-head,.table-wrap,.brazil-result-stats>div){background:#2b2b2b;color:#f1f1f1;border-color:#484848}
html[data-theme="dark"] :is(.hero-note,.notice,.election-status,.election-capital-summary){background:#333;color:#f1f1f1;border-color:#505050}html[data-theme="dark"] :is(.badge,.brazil-capital-office){background:#424242;color:#f1f1f1}
html[data-theme="dark"] :is(input,select,textarea){background:#202020;color:#f1f1f1;border-color:#505050}html[data-theme="dark"] input::placeholder{color:#b5b5b5}html[data-theme="dark"] th{background:#383838;color:#f1f1f1}
html[data-theme="dark"] :is(td,th,.tabs,.tab){border-color:#484848}html[data-theme="dark"] .tab.active{color:#f1f1f1;border-color:#bdbdbd}html[data-theme="dark"] :is(.secondary,.pagination button,.election-state-card){background:#333;color:#f1f1f1;border-color:#505050}
html[data-theme="dark"] .skip{background:#2b2b2b;color:#f1f1f1}html[data-theme="dark"] .election-state-card.selected{border-color:#d6d6d6}html[data-theme="dark"] :is(.election-progress-track,.election-vote-track){background:#484848}html[data-theme="dark"] .election-progress-track i{background:#bdbdbd}html[data-theme="dark"] .election-turnout-row{border-color:#484848}
html[data-theme="dark"] a:not(.brand):not(.live-nav-link){color:#d0d0d0}html[data-theme="dark"] :is(.primary,.election-filter .primary){background:#d6d6d6;color:#202020}html[data-theme="dark"] .live-nav-link.active{background:#3a3030}
html[data-theme="dark"] .election-source-dialog .election-source-card{background:#333;color:#f1f1f1;border-color:#505050}html[data-theme="dark"] .election-source-dialog .election-source-card a{color:#e0e0e0}html[data-theme="dark"] .election-source-dialog .election-source-close{background:#2b2b2b;color:#f1f1f1;border-color:#484848}
html[data-theme="dark"] .brazil-results-map,html[data-theme="dark"] .brazil-map-detail{background:#202020;border-color:#484848}html[data-theme="dark"] .brazil-map-state:hover,html[data-theme="dark"] .brazil-map-state:focus-visible,html[data-theme="dark"] .brazil-map-state.selected{stroke:#f4f4f4!important}
html[data-theme="dark"] .compare-toggle{background:#383838;color:#f1f1f1;border-left-color:#484848}html[data-theme="dark"] .compare-toggle:hover{background:#484848;color:#fff}html[data-theme="dark"] .compare-toggle.chosen{background:#555;color:#fff;border-left-color:#666}html[data-theme="dark"] .comparison-pill button{color:#f1f1f1}html[data-theme="dark"] .comparison-pill button:hover{background:#484848;color:#fff}
html[data-theme="dark"] .header-inner nav a.live-nav-link,html[data-theme="dark"] .header-inner nav a.live-nav-link.active{background:#176344;color:#fff}html[data-theme="dark"] .header-inner nav a.live-nav-link:hover{background:#1d7451!important;color:#fff}
.election-status-copy{display:grid!important;flex:1;min-width:0;gap:6px}.election-status-title,.election-status-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.election-status-title{justify-content:flex-start}.election-status-title strong{color:#28533e}.election-status-meta{font-size:12px;color:var(--muted)}.election-status-meta>strong{flex:none;color:var(--ink);font-size:13px}.election-status-progress{width:100%;margin:1px 0}.election-status-count{font-size:11px;color:var(--muted)}
.election-filter-shell{position:relative;margin-bottom:28px}.election-filter-accordion{margin:0}.election-filter-accordion>summary{padding-right:220px}.election-filter-clear-compact{position:absolute;z-index:2;top:12px;right:62px;min-height:36px;padding:5px 11px;font-size:12px}.election-filter-clear-compact[hidden]{display:none}
@media(min-width:761px){.brazil-map-detail{position:sticky;top:18px}}
@media(max-width:640px){.election-status{flex-wrap:wrap}.election-status-copy{flex-basis:100%}.election-status-meta{align-items:flex-start;flex-direction:column;gap:2px}.election-status>button{margin-left:24px}.election-filter-accordion>summary{padding:14px 17px}.election-filter-clear-compact{position:static;display:flex;margin:8px 17px 0 auto;min-height:34px}.election-filter-clear-compact[hidden]{display:none}}
html[data-theme="dark"] .election-status-title strong{color:#f1f1f1}html[data-theme="dark"] .election-status-dot.pending{background:#ffd166;box-shadow:0 0 0 4px #5b4b28}
.identity-copy{flex:1;min-width:0}.identity-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.identity h3{font-size:20px;font-weight:760;letter-spacing:-.35px}.card-status{display:inline-flex;align-items:center;min-height:22px;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap}.card-status.current{background:#e7f2df;color:#35613f}.card-status.former{background:#eef0ed;color:#58635d}.card-stat.is-unavailable{font-size:17px;letter-spacing:0}.card-bottom>a{display:flex;align-items:center;min-height:48px;color:#285f44;font-weight:750}.compare-toggle{min-width:120px;min-height:48px;text-align:center}.identity-copy>p{line-height:1.4}
html[data-theme="dark"] .card-status.current{background:#424242;color:#f1f1f1;border:1px solid #666}html[data-theme="dark"] .card-status.former{background:#383838;color:#c8c8c8;border:1px solid #505050}html[data-theme="dark"] .card-bottom>a{color:#f1f1f1}html[data-theme="dark"] .card-stat.is-unavailable{color:#f1f1f1}html[data-theme="dark"] .compare-toggle{background:#383838;color:#f1f1f1;border-left-color:#484848}html[data-theme="dark"] .compare-toggle:hover{background:#484848;color:#fff}html[data-theme="dark"] .compare-toggle.chosen{background:#555;color:#fff;border-left-color:#666}
html[data-theme="dark"] .proposal p{color:#d0d0d0}html[data-theme="dark"] .tabs{border-bottom-color:#484848}html[data-theme="dark"] .tab:not(.active){border-color:transparent}html[data-theme="dark"] .tab.active{border-color:transparent;border-bottom-color:#d6d6d6;color:#fff}
@media(max-width:640px){.card-bottom>a{padding:12px 16px}.compare-toggle{min-width:112px;padding:12px 13px}}
.card-activity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}.card-activity>div{min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#f8faf5}.card-activity strong{display:block;overflow-wrap:anywhere;font-size:15px;font-variant-numeric:tabular-nums}.card-activity span{display:block;margin-top:2px;color:var(--muted);font-size:10px;line-height:1.3}html[data-theme="dark"] .card-activity>div{background:#333;border-color:#484848}html[data-theme="dark"] .card-activity strong{color:#f1f1f1}
