@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#132e28;--muted:#738079;--line:#e1e8e1;--paper:#f3f5ef;--green:#235a46;--lime:#d6ea8b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,select{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,g:focus-visible{outline:3px solid #80a450;outline-offset:4px}header{height:76px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fafbf7}.brand{display:flex;align-items:center;gap:12px;font-family:Manrope,system-ui;font-size:25px;font-weight:800;letter-spacing:-1px}.brand-icon{background:var(--ink);color:var(--lime);border-radius:12px;padding:3px 10px;font-size:30px}.brand-sub{display:block;font-family:'DM Sans',sans-serif;font-size:10px;font-weight:500;letter-spacing:0}.live{font-size:10px;letter-spacing:1.2px;font-weight:700;display:flex;align-items:center;gap:8px}.live i{height:7px;width:7px;border-radius:50%;background:#72a751;display:inline-block}nav{display:flex;align-items:center;gap:25px;font-size:12px;color:#53665b}.text-button{border:0;background:transparent;color:var(--green);font-size:12px;padding:8px}.map-dashboard{max-width:1700px;margin:auto;padding:24px 32px 105px}.dashboard-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:700;color:var(--green);margin:0 0 8px}h1,h2,h3{font-family:Manrope,system-ui;margin:0}h1{font-size:28px;line-height:1.2;letter-spacing:-1px;font-weight:600}.map-instruction{color:var(--muted);font-size:12px;margin:8px 0 0}.turn-control{width:245px;display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center}.turn-control select{font-size:12px;padding:10px}.turn-control small{grid-column:2}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.map-stage{min-width:0;border:1px solid var(--line);border-radius:16px;position:relative;overflow:hidden;background:radial-gradient(circle,#dce3d6 1px,transparent 1px) 0 0/22px 22px,#fafbf7;padding:20px 24px 18px}.map-topline{display:flex;justify-content:space-between;align-items:center;position:absolute;left:24px;right:24px;top:20px;z-index:1;pointer-events:none}.pill{font-size:10px;padding:7px 10px;border:1px solid var(--line);border-radius:30px;white-space:nowrap;color:var(--muted);background:#ffffffc0}.map-hint{font-size:12px;font-weight:600;background:#ffffffc0;padding:8px 12px;border-radius:7px}.map{height:clamp(340px,calc(100dvh - 430px),720px);min-width:0;display:flex;align-items:center;justify-content:center}.map svg{display:block;height:100%;width:100%;max-width:100%;filter:drop-shadow(0 6px 8px #1938240c)}.map path{fill:#d9e5cd;stroke:#fafbf7;stroke-width:1.4;transition:fill .18s}.map g{cursor:pointer}.map text{font-size:13px;font-weight:600;fill:#496045;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#d9e5cd;stroke-width:2px}.map circle{fill:var(--green);stroke:white;stroke-width:1px}.map g:hover path,.map g:focus path{fill:#a8c78d}.map g.selected path{fill:var(--green)}.map g.selected text{fill:white;stroke:var(--green)}.map-bottom{display:flex;align-items:end;justify-content:space-between;gap:20px;border-top:1px solid #e1e8e1;padding-top:14px}.state-control{width:245px}.state-control label{display:block;margin-bottom:6px}.exterior-button{border:1px solid var(--line);background:white;border-radius:9px;padding:11px 20px;text-align:left;color:var(--ink);font-weight:600;font-size:12px}.exterior-button span{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}.card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.card h2{font-size:21px;font-weight:600;letter-spacing:-.6px}.presidency{min-width:0}.presidency .candidate-list{max-height:clamp(200px,calc(100dvh - 620px),440px);overflow:auto;scrollbar-width:thin}.progress-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin-top:20px}.progress-head strong{font-size:17px;color:var(--green)}.track{height:5px;background:#edf1e9;border-radius:8px;margin:9px 0 7px;overflow:hidden}.track span{display:block;height:100%;background:var(--green);border-radius:8px}.timestamp{font-size:10px;color:var(--muted);line-height:1.6}.candidate{padding:14px 0;border-bottom:1px solid #edf0ea;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:9px;align-items:start}.rank{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#f0f4ea;color:var(--green);font-size:11px;font-weight:600}.candidate strong{display:block;font-size:12px;overflow-wrap:anywhere}.candidate small{display:block;font-size:10px;margin-top:4px}.candidate .percentage{text-align:right;font-size:17px;letter-spacing:-.5px;font-weight:600}.vote-bar{height:3px;background:#edf0ea;margin-top:9px;border-radius:6px;overflow:hidden}.vote-bar span{display:block;background:#709263;height:100%}.badge{display:inline-block!important;background:#e6f2db;color:#385a27;font-size:9px!important;padding:3px 6px;border-radius:4px}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;padding:17px 0 8px}.stats strong{display:block;font-size:14px;overflow-wrap:anywhere}.stats span{font-size:10px;color:var(--muted)}.stats small{display:block;font-size:9px}.sidebar-note{border-top:1px solid var(--line);padding-top:12px;color:var(--muted);font-size:10px;line-height:1.6;margin-top:8px}.external-link{font-size:11px;color:var(--green);display:block;margin-top:6px;padding-left:0}.alert{background:#fff6dd;color:#776136;padding:12px;border-radius:8px;font-size:11px;line-height:1.6;margin:14px 0}.empty{text-align:center;padding:35px 10px;color:var(--muted);line-height:1.6}.empty h3{color:var(--ink);font-size:17px}.empty-icon{font-size:30px;color:#b3c39b;display:block;margin-bottom:8px}.method{display:flex;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted);line-height:1.6;padding:14px 2px}.method p{margin:0}label{font-size:11px;font-weight:600}select,input{border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:10px;font-size:16px;max-width:100%;width:100%}small{font-size:10px;color:var(--muted);line-height:1.5}
/* Resultados abrem sobre o mapa; a página inicial permanece focada no Brasil. */
dialog{border:1px solid var(--line);border-radius:17px;max-width:460px;width:calc(100% - 30px);padding:28px;box-shadow:0 20px 100px #0004;color:var(--ink);max-height:90dvh;overflow:auto}dialog::backdrop{background:#102c2760;backdrop-filter:blur(3px)}dialog h2{font-size:25px}dialog p{color:var(--muted);line-height:1.6}dialog label{display:block;margin:18px 0 8px}dialog small{display:block;margin-top:8px}.primary{padding:12px;border:0;background:var(--green);color:white;border-radius:8px;width:100%;margin-top:14px}.close{float:right;border:0;background:transparent;font-size:24px;color:var(--muted)}dialog a{color:var(--green);font-size:12px}#radio-error{color:#a44135}.state-panel{width:min(760px,calc(100% - 32px));max-width:760px;padding:28px 32px}.state-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:22px}.state-panel-top .eyebrow{margin:0}.back-map{border:1px solid var(--line);background:var(--paper);padding:9px 12px;border-radius:8px;font-size:11px;color:var(--green);white-space:nowrap}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);padding:20px 0 12px;overflow:auto;margin-bottom:16px}.tabs button{border:0;background:transparent;padding:9px;border-radius:7px;white-space:nowrap;color:var(--muted);font-size:11px}.tabs button.active{background:var(--ink);color:white}.tabs button[hidden]{display:none}.search{margin-top:16px}.state-panel .candidate-list{max-height:36dvh;overflow:auto;scrollbar-width:thin}.state-panel .stats{grid-template-columns:repeat(4,minmax(0,1fr))}.senate-summary{background:#f3f7eb;padding:12px;border-radius:8px;font-size:11px;line-height:1.6;margin-top:12px}.result-footnote{font-size:10px;border-top:1px solid var(--line);margin-bottom:0;padding-top:12px}.radio-bar{position:fixed;bottom:0;left:0;right:0;background:#102c27;color:white;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 32px;min-height:76px;box-shadow:0 -8px 32px #132e2810;z-index:5}.radio-brand{display:flex;gap:15px;align-items:center;min-width:200px}.radio-brand strong{font-size:13px}.radio-brand small{display:block;color:#c4d0c5;font-size:10px}.wave{letter-spacing:2px;color:var(--lime);font-size:25px}.radio-controls{display:flex;align-items:center;gap:18px}.radio-controls button{border:0;background:var(--lime);color:var(--ink);border-radius:7px;padding:10px 17px;font-size:12px}.radio-controls .secondary{background:#ffffff12;color:white;border:1px solid #ffffff20}.radio-bar>a{font-size:12px;color:#d8e5cf;white-space:nowrap}.volume{font-size:10px;color:#c4d0c5;display:flex;align-items:center;gap:8px}.volume input{width:80px;padding:0;accent-color:var(--lime)}button:disabled{opacity:.5;cursor:wait}
@media(min-width:1500px){.dashboard-grid{grid-template-columns:minmax(0,1fr) 350px}.map-dashboard{padding-left:40px;padding-right:40px}}
@media(max-width:1000px){header{padding:0 22px}nav{gap:14px}.map-dashboard{padding:20px 22px 110px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 295px;gap:16px}.map-stage{padding:18px 16px}.map-topline{left:16px;right:16px}.map{height:clamp(340px,calc(100dvh - 430px),600px)}.map-bottom{gap:12px}.state-control{width:190px}.exterior-button{padding:10px;font-size:11px}.card{padding:18px}.volume{display:none}.radio-bar{padding:15px 22px}}
@media(max-width:760px){header{height:70px;padding:0 16px}.brand{font-size:23px}.brand-icon{font-size:27px}nav{gap:5px}nav .text-button{font-size:10px;padding:6px}nav a,.live{display:none}.map-dashboard{padding:20px 16px 140px}.dashboard-toolbar{display:block;margin-bottom:16px}h1{font-size:26px}.map-instruction{font-size:11px}.turn-control{width:100%;max-width:330px;margin-top:14px;grid-template-columns:48px 1fr}.dashboard-grid{grid-template-columns:minmax(0,1fr);gap:18px}.map{height:clamp(350px,60dvh,520px);padding-top:22px}.map-stage{padding:18px 14px 14px}.map-topline{left:14px;right:14px;top:14px}.map-topline .pill{font-size:9px}.map-hint{font-size:10px}.map-bottom{align-items:stretch}.state-control{width:auto;flex:1;min-width:0}.state-control label{font-size:10px}.state-control select{font-size:16px}.exterior-button{align-self:end;padding:10px;font-size:10px}.exterior-button span{font-size:9px}.presidency .candidate-list{max-height:240px}.presidency .stats{grid-template-columns:repeat(4,minmax(0,1fr))}.presidency .stats strong{font-size:12px}.presidency .stats small{font-size:8px}.method{display:block;font-size:9px}.method p{margin-top:6px}.state-panel{width:calc(100% - 20px);padding:20px 16px;max-height:90dvh}.state-panel-top{gap:8px;padding-bottom:14px;margin-bottom:16px}.state-panel-top .eyebrow{font-size:8px;letter-spacing:1px}.back-map{padding:8px;font-size:10px}.state-panel .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.radio-bar{padding:12px 16px;flex-wrap:wrap;gap:8px;min-height:85px}.radio-brand{min-width:130px;gap:10px}.radio-brand small{display:none}.radio-controls{gap:7px;margin-left:auto}.radio-controls button{padding:9px 10px;font-size:11px}.radio-controls #play span{display:none}.radio-bar>a{font-size:10px;margin-left:auto}.radio-bar .wave{font-size:20px}}
.radio-controls #radio-select{width:155px;background:#ffffff0f;color:white;border-color:#ffffff25;font-size:12px;padding:9px}.radio-controls #radio-select option{background:#102c27;color:white}.radio-select-label{color:#c4d0c5;font-size:10px}.rank{font-size:9px}
@media(max-width:1000px){.radio-select-label{display:none}.radio-brand small{display:none}.radio-controls{gap:10px}}
@media(max-width:760px){.radio-bar{min-height:106px}.radio-brand{min-width:auto}.radio-controls{gap:6px}.radio-controls #radio-select{width:112px;font-size:11px}.radio-controls .secondary{display:none}.radio-bar>a{width:100%;text-align:right}.map-dashboard{padding-bottom:150px}}
#radio-options{margin-top:12px;max-height:270px;overflow:auto}.radio-choice{width:100%;display:block;text-align:left;background:#f6f8f2;color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:11px 13px;margin-bottom:7px}.radio-choice:hover{background:#e8f0de}.radio-choice strong{font-size:12px}.radio-choice small{margin-top:3px}.catalog-status{font-size:10px!important}.radio-controls #radio-select{width:190px}@media(max-width:760px){.radio-controls #radio-select{width:155px}.radio-brand .wave{display:none}.radio-brand strong{font-size:11px}}
.radio-brand{min-width:0}.radio-brand strong{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:760px){.radio-brand strong{max-width:108px}.radio-controls #radio-select{width:140px}}@media(max-width:350px){.radio-brand strong{max-width:82px}.radio-controls #radio-select{width:125px}}
.presidential-highlights{margin-bottom:22px}.highlights-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.highlights-heading .eyebrow{font-size:9px;margin-bottom:4px}.highlights-heading h2{font-size:20px;letter-spacing:-.6px}.highlights-heading>span{font-size:10px;color:var(--muted);text-align:right}.top-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.top-candidate{min-width:0;background:var(--ink);color:white;border-radius:13px;padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:15px;position:relative;overflow:hidden}.top-identity{display:flex;gap:13px;align-items:center;min-width:0}.candidate-number{font-size:16px;font-weight:700;background:#ffffff12;border:1px solid #ffffff20;border-radius:10px;width:44px;height:44px;display:grid;place-items:center;flex-shrink:0}.top-identity h3{font-size:18px;overflow-wrap:anywhere}.top-identity small{color:#d2ddcd;margin-top:4px;display:block}.top-votes{text-align:right;flex-shrink:0}.top-votes strong{display:block;font-size:27px;letter-spacing:-1px;color:var(--lime)}.top-votes>span{font-size:11px;color:#d2ddcd}.top-vote-track{position:absolute;bottom:0;left:0;right:0;height:4px;background:#ffffff10}.top-vote-track span{display:block;height:100%;background:var(--lime)}.top-candidate.placeholder{min-height:86px;color:#d2ddcd;font-size:12px}.map{height:clamp(320px,calc(100dvh - 590px),600px)}
@media(max-width:1000px){.top-identity h3{font-size:15px}.top-votes strong{font-size:24px}.top-candidate{padding:16px;gap:10px}.candidate-number{width:35px;height:35px;font-size:13px}}
@media(max-width:760px){.highlights-heading{display:block}.highlights-heading>span{display:block;text-align:left;margin-top:7px;line-height:1.5}.highlights-heading h2{font-size:19px}.top-two{gap:10px}.top-candidate{display:block;padding:14px 12px}.top-identity{gap:8px}.candidate-number{width:27px;height:27px;font-size:11px;border-radius:7px}.top-identity h3{font-size:13px}.top-identity small{font-size:9px}.top-votes{text-align:left;margin-top:12px}.top-votes strong{font-size:25px}.top-votes>span{font-size:10px}.top-candidate.placeholder{min-height:92px}.presidential-highlights{margin-bottom:22px}.map{height:clamp(350px,60dvh,520px);padding-top:22px}}
@media(min-width:761px){.presidency .candidate-list{max-height:clamp(130px,calc(100dvh - 810px),300px)}}
