@font-face{font-family:Manrope;src:url('/assets/fonts/manrope-medium.ttf') format('truetype');font-weight:400 500;font-display:swap}@font-face{font-family:Manrope;src:url('/assets/fonts/manrope-bold.ttf') format('truetype');font-weight:600 800;font-display:swap}
:root{color-scheme:dark;--bg:#060e1b;--panel:#101c2c;--paper:#f2f5fb;--muted:#a8b8cc;--red:#ef756c;--blue:#79a9f0;--line:#9fbbdc24;--amber:#eacb8d;--peek:146px;--ease:cubic-bezier(.22,1,.36,1)}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--paper);font-family:Manrope,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}body{overflow:hidden}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:#8ebeff25;touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-underline-offset:4px}button{border:0;background:none}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;flex:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,#map:focus-visible,summary:focus-visible{outline:2px solid #f6dba6;outline-offset:4px}::selection{background:#86abdc;color:#071224}input{caret-color:var(--blue)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance;letter-spacing:-.025em}button:hover{color:white}button.active{color:var(--paper)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:absolute;top:-100px;left:20px;z-index:100;background:white;color:#081322;padding:12px}.skip:focus{top:15px}.noscript{position:absolute;top:25%;padding:30px;z-index:100;background:var(--panel)}
#experience{position:relative;height:100svh;height:100dvh;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 54% 40%,#142b443e,transparent 64%),#060e1b}.chrome{opacity:0;transition:opacity .6s var(--ease)}.revealed .chrome{opacity:1}.masthead{position:absolute;inset:max(22px,env(safe-area-inset-top)) 32px auto;z-index:30;display:flex;align-items:center;gap:20px}.brand{font-size:28px;line-height:1;font-weight:800;letter-spacing:-.04em;text-decoration:none}.brand span{color:var(--red)}.edition{font-size:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:20px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:28px}.year select{width:78px;background:#15253a;color:var(--paper);border:1px solid #6983a333;border-radius:22px;padding:9px 13px;font-size:12px;min-height:40px}.text-button{font-size:12px;color:#c0cbdb;min-height:44px;padding:0}.territory{position:absolute;top:92px;left:32px;z-index:20;font-size:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:350px;color:#e2e8f1}.source-dot{background:#99b9d7;width:5px;height:5px;border-radius:50%}.territory-divider{color:#5b738c}.territory small{flex-basis:100%;color:var(--muted);font-size:11px;margin-left:15px;margin-top:-4px}.search{position:absolute;z-index:35;top:155px;left:32px;width:300px;display:flex;align-items:center;gap:10px;background:#26375085;backdrop-filter:blur(20px);border-radius:25px;border:1px solid #c3d9f42b;box-shadow:0 6px 20px #0002;padding:0 16px;height:48px;color:#b7c9df}.search svg{width:18px;height:18px}.search input{width:100%;min-width:0;background:none;border:0;height:100%;font-size:12px}.search input::placeholder{color:#b8c6d8;opacity:1}.search input:focus-visible{outline:0}.search:focus-within{outline:2px solid #a2c4e7;outline-offset:3px}.search input::-webkit-search-cancel-button{display:none}.search>button{font-size:23px;width:30px;flex:none}.search-results{position:absolute;top:57px;left:0;right:0;background:#152437;border:1px solid #a0bbd62e;border-radius:18px;overflow:hidden;box-shadow:0 15px 35px #0006;max-height:50vh;overflow-y:auto}.search-results button{display:block;text-align:left;width:100%;padding:13px 17px;min-height:47px;font-size:13px}.search-results button+button{border-top:1px solid var(--line)}.search-results button:hover,.search-results button:focus-visible{background:#30465f}.search-results small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.search-results p{padding:16px;font-size:12px}
.map-stage{position:absolute;inset:68px 12% 228px 23%;z-index:1}.map-stage #map{width:100%;height:100%;stroke:none;touch-action:none;cursor:grab;display:block;outline-offset:-3px}.map-stage #map:active{cursor:grabbing}.map-message{position:absolute;inset:42% 12% auto;text-align:center;font-size:12px;color:var(--muted)}.map-meta{position:absolute;right:32px;top:102px;z-index:2;text-align:right;font-size:11px;color:#d2ddea}.map-meta small{display:block;color:#93a7bf;font-size:10px;margin-top:4px}.map-tools{position:absolute;right:32px;top:40%;z-index:20;display:flex;flex-direction:column;gap:3px;background:#1c2e4473;backdrop-filter:blur(16px);border:1px solid #aec7e32b;border-radius:24px;padding:4px}.map-tools button{width:40px;height:40px;border-radius:19px;font-size:23px;display:grid;place-items:center;color:#dce8f8}.map-tools button:hover{background:#526e8b5c}.map-tools svg{width:18px;height:18px}.map-caption{position:absolute;top:239px;left:32px;max-width:240px;color:#d7e2ef;font-size:15px;line-height:1.5}.map-caption small{display:block;color:var(--muted);font-size:11px;margin-top:10px;max-width:195px;line-height:1.65}
.candidates{position:absolute;bottom:calc(var(--peek) + 86px);left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:32px;width:650px;z-index:10}.candidate{display:flex;text-align:left;align-items:center;min-width:0;gap:12px;padding:0;position:relative;opacity:.92;transition:opacity .25s,transform .25s var(--ease)}.candidate:hover,.candidate[aria-pressed=true]{opacity:1;transform:translateY(-3px)}.candidate[aria-pressed=true] .portrait{filter:grayscale(0)}.candidate.is-dimmed{opacity:.35}.portrait{width:83px;height:112px;position:relative;display:block;overflow:hidden;filter:grayscale(1);mask-image:linear-gradient(#000 73%,transparent);flex:none}.portrait img{width:100%;height:100%;object-fit:cover;object-position:center 12%;mix-blend-mode:luminosity}.candidate-info{display:block;min-width:0}.candidate-name{display:block;font-size:13px;font-weight:700;white-space:nowrap}.candidate-name small{font-size:9px;display:block;margin-top:4px;color:var(--muted);font-weight:500}.candidate-name i{display:inline-block;width:6px;height:6px;margin-right:7px;background:var(--red);border-radius:50%;vertical-align:middle}.candidate--bolsonaro .candidate-name i{background:var(--blue)}.candidate-info strong{font-size:31px;letter-spacing:-.03em;line-height:1.2;display:block;margin:7px 0 4px;font-weight:700;font-variant-numeric:tabular-nums}.candidate-votes{display:block;color:var(--muted);font-size:10px;white-space:nowrap}.versus{color:#8499b2;text-align:center;min-width:35px}.versus span{font-size:13px}.versus small{display:block;font-size:9px;margin-top:3px}.turn-controls{position:absolute;bottom:calc(var(--peek) + 22px);left:50%;transform:translateX(-50%);z-index:25;display:flex;align-items:center;gap:3px;padding:5px;background:#2a3b528f;backdrop-filter:blur(20px);border-radius:30px;border:1px solid #c4d9f039;box-shadow:0 8px 24px #0003}.turn-controls button{border-radius:25px;padding:12px 23px;min-height:44px;font-size:12px;white-space:nowrap;color:#b9c8da;display:flex;align-items:center;gap:7px;transition:background .3s,color .3s}.turn-controls button.active{background:#e4edf8;color:#16263b;box-shadow:0 3px 10px #0002}.turn-controls button:hover:not(.active){background:#7189a52e}.turn-controls svg{width:16px;height:16px}.skip-intro{position:absolute;right:24px;bottom:24px;font-size:11px;z-index:50;min-height:44px;color:var(--muted)}.revealed .skip-intro{display:none}
.sheet{position:absolute;z-index:40;bottom:0;left:0;right:0;height:76%;transform:translateY(calc(100% - var(--peek)));transition:transform .48s var(--ease),opacity .6s;background:linear-gradient(180deg,#122136,#0e1a2b 140px);border-top:1px solid #b9d4ee30;border-radius:24px 24px 0 0;box-shadow:0 -12px 45px #0003;overflow:hidden;padding-bottom:env(safe-area-inset-bottom)}.sheet[data-position=mid]{transform:translateY(42%)}.sheet[data-position=full]{transform:translateY(0)}.sheet-handle{height:22px;position:relative;touch-action:none;cursor:ns-resize}.sheet-handle>button{position:absolute;top:0;left:calc(50% - 35px);height:22px;width:70px;display:flex;justify-content:center;align-items:center}.sheet-handle span{width:30px;height:3px;background:#8ba3bd8c;border-radius:3px}.sheet-scroll{height:calc(100% - 22px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#58738b transparent;padding:0 40px 35px;max-width:1180px;margin:auto}.sheet[data-position=peek] .sheet-scroll{overflow:hidden}.radar-heading{display:flex;justify-content:space-between;gap:15px;align-items:start}.radar-heading h2{font-size:17px;font-weight:700;line-height:1.3}.radar-heading p{color:var(--muted);font-size:10px;margin-top:5px}.sheet-actions{display:flex;gap:5px;margin-top:-6px}.icon-button{height:40px;width:40px;border-radius:50%;display:grid;place-items:center;color:#b6c7db}.icon-button:hover{background:#5a738c2a}.sheet[data-position=peek] #sheetClose{display:none}.radar-peek{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:10px}.radar-total{display:flex;align-items:center;text-align:left;gap:14px;padding:0;min-height:48px}.radar-total>strong{font-size:31px;line-height:1;font-variant-numeric:tabular-nums;font-weight:700;letter-spacing:-.03em}.radar-total>span{color:#d8e4f3;font-size:11px}.radar-total small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.radar-total svg{width:18px;height:18px;margin-left:20px;color:#b7c9dd}.peek-directions{display:flex;gap:38px;color:#c2d1e3;font-size:11px}.peek-directions b{font-size:17px;font-weight:600;margin-right:5px;font-variant-numeric:tabular-nums}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px}.red{background:var(--red)}.blue{background:var(--blue)}.sheet-content{padding-top:22px}.breadcrumbs{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:17px}.breadcrumbs button{font-size:11px;color:#d1dff0;padding:6px 0;min-height:32px}.breadcrumbs span{font-size:11px;color:#8eabc9}.radar-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line)}.radar-tabs button{padding:8px 0 13px;min-height:44px;color:var(--muted);font-size:13px;border-bottom:2px solid transparent}.radar-tabs button.active{border-color:#e0ebf7;color:#eef4fd}.definition{font-size:12px;line-height:1.7;color:var(--muted);max-width:75ch;margin:16px 0}.secondary-stats{display:flex;gap:30px;padding:8px 0 22px;border-bottom:1px solid var(--line)}.secondary-stats div{min-width:0;flex:1}.secondary-stats strong{font-size:22px;letter-spacing:-.02em;display:block;font-variant-numeric:tabular-nums}.secondary-stats span{display:block;font-size:10px;line-height:1.6;color:#b0c2d6;margin-top:4px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.filters label{flex:1;min-width:110px;font-size:10px;color:var(--muted)}.filters select{display:block;width:100%;margin-top:6px;min-height:44px;border:1px solid #8aa6c52e;background:#1c3048;border-radius:10px;padding:8px 12px;font-size:12px;color:#e3edf9}.list-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:24px 0 12px;border-bottom:1px solid var(--line)}.list-heading h3{font-size:13px;font-weight:600}.list-heading select{background:#14273d;border:1px solid #7898ba33;color:#d7e5f8;padding:8px;border-radius:10px;font-size:10px;max-width:160px;min-height:36px}.event{display:grid;grid-template-columns:1fr auto;gap:12px;width:100%;text-align:left;padding:16px 0;border-bottom:1px solid var(--line);min-height:70px;transition:background .2s}.event:hover,.event:focus-visible{background:#6585a51a}.event-title{font-size:13px;font-weight:600;display:block;overflow-wrap:anywhere}.event small{font-size:10px;color:#9fb5d0;display:block;margin-top:5px;line-height:1.6}.event-val{font-size:16px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;align-self:center;white-space:nowrap}.event-val small{font-size:9px;font-weight:500;max-width:130px}.event .direction{color:var(--blue);font-size:10px;display:block;margin-top:6px}.event .direction.to-lula{color:#f39990}.more{border:1px solid #6d8dad55;border-radius:20px;min-height:44px;padding:10px 20px;display:block;margin:20px auto;font-size:12px}.empty{color:var(--muted);font-size:12px;line-height:1.8;padding:25px 0}.detail{padding-top:23px}.detail h3{font-size:18px;margin-bottom:5px}.detail>.subtitle{font-size:11px;color:var(--muted);line-height:1.8}.results-table{width:100%;border-collapse:collapse;margin:15px 0;font-size:12px;font-variant-numeric:tabular-nums}.results-table th{font-size:10px;color:var(--muted);font-weight:500;text-align:right;padding:10px 5px}.results-table th:first-child{text-align:left}.results-table td{text-align:right;padding:9px 5px;border-top:1px solid var(--line)}.results-table td:first-child{text-align:left;color:#d4e2f3}.results-table .emphasis{font-weight:700;color:white}.swing{font-size:12px;line-height:1.7;margin:18px 0}.calculation{margin:18px 0;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.calculation h4{margin:0 0 12px;font-size:14px;font-weight:600}.calculation strong{color:var(--amber)}.calculation p{font-size:12px;line-height:1.85;color:#c4d1e2;max-width:70ch}.calculation details{font-size:11px;color:var(--muted);margin-top:16px}.calculation summary{cursor:pointer;min-height:32px;color:var(--amber)}.formula{font-size:clamp(18px,3.3vw,25px);letter-spacing:-.025em;color:#e0cda6;padding:20px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.methodology{padding:20px 0 30px;max-width:75ch}.methodology h3{font-size:18px;margin:20px 0 13px}.methodology p{font-size:12px;color:#b3c4d9;line-height:1.9;margin:10px 0}.methodology a{color:#d2e4fa}.methodology .credits{font-size:10px;color:#9fb3ca}.toast{position:absolute;bottom:calc(var(--peek) + 14px);left:50%;transform:translateX(-50%);z-index:100;background:#d8e8fa;color:#17283d;padding:12px 20px;border-radius:25px;box-shadow:0 6px 20px #0005;font-size:12px;max-width:90%;white-space:nowrap}
@media(min-width:1000px){.sheet[data-position=mid]{transform:translateY(24%)}.sheet[data-position=full]{width:510px;right:24px;left:auto;border-radius:24px;height:calc(100% - 92px);bottom:16px}.sheet[data-position=full] .sheet-scroll{padding:0 25px 30px}.sheet[data-position=full] .radar-peek{display:block}.sheet[data-position=full] .peek-directions{margin-top:14px;gap:20px}.sheet[data-position=full] .secondary-stats{gap:18px}.sheet[data-position=full] .filters{gap:8px}.sheet[data-position=full] .event-val{font-size:14px}body:has(.sheet[data-position=full]) .map-stage{right:36%;left:5%;bottom:170px}body:has(.sheet[data-position=full]) .candidates{left:32%;width:580px;bottom:90px}body:has(.sheet[data-position=full]) .turn-controls{left:32%;bottom:24px}body:has(.sheet[data-position=full]) .map-meta,body:has(.sheet[data-position=full]) .map-tools{right:550px}}
@media(max-width:900px){:root{--peek:158px}.masthead{inset:max(20px,env(safe-area-inset-top)) 20px auto;gap:10px}.edition{display:none}.brand{font-size:26px}.header-actions{gap:15px}.text-button{font-size:10px}.year select{width:78px;font-size:11px;min-height:36px;padding:8px 10px}.territory{top:76px;left:20px;font-size:11px;gap:8px;right:20px;max-width:none}.territory small{flex-basis:auto;margin:0 0 0 auto;font-size:9px}.search{top:110px;left:20px;right:20px;width:auto;height:44px;padding:0 14px}.search input{font-size:12px}.map-stage{inset:166px 5px calc(var(--peek) + 170px)}.map-meta{top:168px;left:21px;right:auto;text-align:left;font-size:9px;pointer-events:none}.map-meta small{font-size:8px}.map-tools{right:14px;top:35%;padding:3px;border-radius:22px}.map-tools button{width:34px;height:36px;font-size:20px}.map-caption{display:none}.candidates{bottom:calc(var(--peek) + 74px);width:calc(100% - 34px);gap:12px;justify-content:space-between}.candidate{gap:7px;flex:1}.portrait{width:58px;height:82px}.candidate-info strong{font-size:23px;margin:6px 0 3px}.candidate-name{font-size:11px}.candidate-name small{font-size:8px;margin-top:3px}.candidate-name i{width:5px;height:5px;margin-right:4px}.candidate-votes{font-size:8px}.versus{min-width:14px;font-size:9px;display:none}.candidate--bolsonaro{justify-content:end}.turn-controls{bottom:calc(var(--peek) + 13px);padding:4px;gap:2px;max-width:calc(100% - 40px)}.turn-controls button{padding:10px 17px;font-size:11px;min-height:40px}.turn-controls svg{width:14px;height:14px}.sheet{height:76%;border-radius:23px 23px 0 0}.sheet-scroll{padding:0 20px 30px}.radar-heading h2{font-size:15px}.radar-heading p{font-size:9px}.radar-peek{margin-top:9px;gap:10px;display:block}.radar-total{min-height:40px;gap:10px;width:100%}.radar-total>strong{font-size:27px}.radar-total>span{font-size:10px}.radar-total small{font-size:9px;margin-top:3px}.radar-total svg{margin-left:auto;width:16px;height:16px}.peek-directions{font-size:8px;gap:22px;margin-top:10px;justify-content:space-between}.peek-directions b{font-size:12px;margin-right:3px}.peek-directions .dot{width:5px;height:5px;margin-right:4px}.sheet-content{padding-top:18px}.secondary-stats{gap:15px}.secondary-stats strong{font-size:20px}.secondary-stats span{font-size:9px}.radar-tabs{gap:20px}.radar-tabs button{font-size:12px}.filters{gap:8px}.filters label{min-width:100px}.filters select{font-size:11px;padding:7px}.event{gap:10px}.event-title{font-size:12px}.event small{font-size:9px}.event-val{font-size:14px}.list-heading h3{font-size:12px}.list-heading select{font-size:9px;max-width:145px}.definition{font-size:11px}.sheet-actions{margin-top:-9px}.icon-button{width:34px;height:34px}.sheet-handle{height:20px}.sheet-scroll{height:calc(100% - 20px)}.sheet[data-position=mid]{transform:translateY(38%)}.sheet[data-position=full]{transform:translateY(0)}.credits{overflow-wrap:anywhere}}
@media(max-width:390px){.masthead{left:16px;right:16px}.territory{left:16px;right:16px}.search{left:16px;right:16px}.candidate-info strong{font-size:22px}.portrait{width:53px;height:79px}.candidates{gap:8px;width:calc(100% - 28px)}.candidate{gap:5px}.candidate-votes{font-size:7.5px}.candidate-name{font-size:10px}.sheet-scroll{padding-left:16px;padding-right:16px}.turn-controls button{padding-left:16px;padding-right:16px}}
@media(max-height:700px) and (max-width:900px){.map-stage{top:150px;bottom:295px}.search{top:102px}.candidates{bottom:calc(var(--peek) + 62px)}.portrait{height:65px;width:48px}.candidate-info strong{font-size:20px}.turn-controls{bottom:calc(var(--peek) + 9px)}.turn-controls button{min-height:35px;padding-top:8px;padding-bottom:8px}.map-meta{top:156px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.chrome{opacity:1}.skip-intro{display:none}}

@media(min-width:1000px){body:has(.sheet[data-position=peek]) .candidates,body:has(.sheet[data-position=mid]) .candidates{left:32px;top:342px;bottom:auto;transform:none;flex-direction:column;align-items:flex-start;width:290px;gap:18px}body:has(.sheet[data-position=peek]) .candidate,body:has(.sheet[data-position=mid]) .candidate{width:100%;gap:15px}body:has(.sheet[data-position=peek]) .portrait,body:has(.sheet[data-position=mid]) .portrait{width:88px;height:112px}body:has(.sheet[data-position=peek]) .versus,body:has(.sheet[data-position=mid]) .versus{display:none}.map-stage{left:28%}}

.municipal-list-heading{font-size:12px;color:#a8b8cc;font-weight:500;margin:25px 0 4px}

/* Three answers first; section filters remain one deliberate step deeper. */
.insight-context{font-size:10px;color:var(--muted);margin:0 0 6px}
.deep-insight{padding:16px 0;border-bottom:1px solid var(--line)}
.deep-insight h3{font-size:17px;display:flex;align-items:center;gap:12px}
.insight-summary{display:block;cursor:pointer;list-style:none;min-height:44px}.insight-summary::-webkit-details-marker{display:none}.insight-summary h3>i{font-size:17px;font-style:normal;color:var(--muted);margin-left:auto}.deep-insight[open]>.insight-summary h3>i{transform:rotate(180deg)}
.deep-insight h3>span{font-size:10px;font-weight:500;letter-spacing:.06em;color:var(--muted)}
.insight-conclusion{font-size:14px;line-height:1.7;margin-top:11px;color:var(--paper)}
.insight-observation,.insight-note,.insight-empty{font-size:11px;line-height:1.8;color:var(--muted);margin-top:8px}
.insight-list{list-style:none;padding:0;margin:13px 0 0}
.insight-list button{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;width:100%;min-height:55px;padding:10px 0;border-bottom:1px solid #9fbbdc14;font-size:12px}
.insight-list button>span{min-width:0;overflow-wrap:anywhere}.insight-list small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.6}
.insight-list strong{font-size:13px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums;flex:none}.insight-list strong>span{color:var(--muted);font-size:12px}
.insight-explanation{font-size:11px;color:var(--muted);margin-top:12px}.insight-explanation summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:4px}.insight-explanation p{line-height:1.9;padding:0 0 8px;max-width:75ch}
.advanced-analysis{padding-top:20px;margin-top:8px}.advanced-analysis>summary{font-size:12px;min-height:48px;cursor:pointer;color:#c6d8ee;display:list-item;list-style-position:inside;padding:12px 0}.advanced-analysis[open]>summary{font-weight:700}.advanced-analysis .definition{margin-top:8px}
@media(max-width:390px){.deep-insight h3{font-size:16px}.insight-conclusion{font-size:13px}.insight-list button{gap:10px}.insight-list strong{font-size:12px}}

.motion-preference{display:flex;align-items:center;gap:8px;font-size:12px;color:#c7d7ea;min-height:44px}.motion-preference input{accent-color:#9dc1eb;width:18px;height:18px}.motion-reduced *,.motion-reduced *::before,.motion-reduced *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.motion-reduced .chrome{opacity:1}
/* The unit of analysis stays visible on mobile: municipal totals differ from section events. */
.change-legend{position:absolute;left:32px;top:224px;width:285px;z-index:24;font-size:11px;color:#c0cfe2}.change-legend select{background:#17283b;border:1px solid #7998b444;border-radius:12px;padding:8px 10px;min-height:40px;max-width:100%;font-size:12px}.change-legend p{font-size:10px;line-height:1.65;margin:8px 0}.change-directions{display:flex;flex-wrap:wrap;gap:4px}.change-directions button{padding:6px 8px;min-height:36px;border-radius:10px;background:#17283b;font-size:9px;border:1px solid #58718c55}.change-directions button[aria-pressed=true]{background:#dbe7f8;color:#15263c;border-color:#dbe7f8}.change-directions .dot{width:5px;height:5px;margin-right:3px}.change-counts{color:#d7e4f5}.list-scope{font-size:10px;line-height:1.7;color:var(--muted);margin:10px 0}.view-changes .map-meta{display:none}
@media(min-width:1000px){.view-changes:not(:has(.sheet[data-position=full])) .candidates{top:440px}.change-legend{max-width:25vw}}
@media(max-width:900px){.change-legend{left:20px;right:20px;top:164px;width:auto;max-width:none;display:grid;grid-template-columns:1fr auto;gap:0 8px;pointer-events:none}.change-legend label,.change-directions{pointer-events:auto}.change-legend select{font-size:10px;min-height:32px;padding:5px 7px;border-radius:9px}.change-legend p{font-size:8px;margin:3px 0;grid-column:1/-1;max-width:100%;line-height:1.5}.change-directions{justify-content:end;align-items:center;gap:3px}.change-directions button{font-size:8px;min-height:32px;padding:5px}.change-directions button:first-child{display:none}.view-changes .map-stage{top:240px}.change-legend .change-counts{font-size:8px}.change-legend .dot{display:none}}
@media(max-width:390px){.change-legend{left:16px;right:16px;gap:0 4px}.change-directions button{font-size:7.5px;padding:4px}.change-legend select{font-size:9px}}
@media(max-width:900px){.change-legend{grid-template-columns:auto 1fr;gap:3px 8px}.change-legend label{grid-column:1;grid-row:1}.change-legend select{font-size:10px;min-height:36px}.change-legend .change-counts{grid-column:2;grid-row:1;font-size:10px;line-height:1.5;align-self:center;margin:0}.change-directions{grid-column:1/-1;grid-row:2;justify-content:start}.change-directions button:first-child{display:block}.change-directions button{font-size:10px;min-height:36px;padding:6px 9px}.change-legend #changeExplanation{grid-column:1/-1;grid-row:3;font-size:10px;line-height:1.5;margin:0}.view-changes .map-stage{top:262px;bottom:calc(var(--peek) + 160px)}}


/* S02: one official vote split, with a fixed halfway mark. */
.contest{position:absolute;left:0;right:0;top:calc(100% + 9px);pointer-events:none;color:var(--muted)}
.contest-track{height:10px;border-radius:9px;background:#26394e;position:relative;box-shadow:0 0 0 1px #aac5e322}
.contest-fill{position:absolute;inset:0 auto 0 0;border-radius:9px 0 0 9px;display:none}
.contest[data-state=ready] .contest-track{background:var(--blue)}
.contest[data-state=ready] .contest-fill{display:block;background:var(--red);transition:width .55s var(--ease)}
.contest-half{position:absolute;left:50%;top:-4px;bottom:-4px;width:2px;transform:translateX(-50%);background:#f2f5fb;box-shadow:0 0 0 1px #06101b66;display:none}
.contest[data-state=ready] .contest-half{display:block}
.contest-label{text-align:center;font-size:10px;line-height:1.4;margin-top:8px;white-space:normal;text-wrap:balance}
.contest[data-state=first-round] .contest-label{margin-top:0}
.candidates{bottom:calc(var(--peek) + 118px)}
.map-stage{bottom:260px}
.view-changes .contest{display:none}
@media(max-width:900px){
 .candidates{bottom:calc(var(--peek) + 106px)}.map-stage{bottom:calc(var(--peek) + 202px)}
 .contest{top:calc(100% + 7px)}.contest-track{height:9px}.contest-label{font-size:9px;margin-top:7px}
 .view-changes .candidates{bottom:calc(var(--peek) + 74px)}.view-changes .map-stage{bottom:calc(var(--peek) + 160px)}
}
@media(max-height:700px) and (max-width:900px){
 .candidates{bottom:calc(var(--peek) + 94px)}.map-stage{bottom:327px}.map-tools{top:calc(150px + max(0px,(100dvh - 600px)/2))}
 .view-changes .candidates{bottom:calc(var(--peek) + 62px)}
 .view-changes .map-tools{top:auto;bottom:calc(var(--peek) + 145px);flex-direction:row}
}
@media(min-width:1000px){
 body:has(.sheet[data-position=peek]) .candidates,body:has(.sheet[data-position=mid]) .candidates{flex-direction:row;align-items:start;justify-content:space-between;width:300px;gap:16px}
 body:has(.sheet[data-position=peek]) .candidate,body:has(.sheet[data-position=mid]) .candidate{flex-direction:column;align-items:start;width:142px;gap:8px;flex:1}
 body:has(.sheet[data-position=peek]) .candidate--bolsonaro,body:has(.sheet[data-position=mid]) .candidate--bolsonaro{align-items:end;text-align:right}
 body:has(.sheet[data-position=full]) .candidates{bottom:122px}
 body:has(.sheet[data-position=full]) .map-stage{bottom:202px}
}
@media(min-width:1000px) and (max-height:800px){
 body:has(.sheet[data-position=peek]) .candidate,body:has(.sheet[data-position=mid]) .candidate{flex-direction:row;align-items:center;gap:5px}
 body:has(.sheet[data-position=peek]) .portrait,body:has(.sheet[data-position=mid]) .portrait{width:48px;height:68px}
 body:has(.sheet[data-position=peek]) .candidate-info strong,body:has(.sheet[data-position=mid]) .candidate-info strong{font-size:22px}
 body:has(.sheet[data-position=peek]) .candidate-name,body:has(.sheet[data-position=mid]) .candidate-name{font-size:10px}
 body:has(.sheet[data-position=peek]) .candidate-votes,body:has(.sheet[data-position=mid]) .candidate-votes{font-size:7px}
}
/* S03: the mesh is always drawn; only arrived municipalities receive election colors. */
.map-stage{contain:layout paint}
.formation-note{display:none}
body:has(#map[data-presentation=formation]) .formation-note{display:inline}
.replay-start{pointer-events:auto;display:block;min-height:36px;padding:7px 0;font-size:10px;color:#d9e7f6;text-decoration:underline;text-underline-offset:4px}
.view-changes .map-meta{display:block}
.view-changes .map-meta #mapCount,.view-changes .map-meta small{display:none}
.view-changes .map-meta{top:180px}
.replay-panel{padding:16px 24px;max-width:700px;margin:auto}
.replay-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.replay-heading h2{font-size:12px;color:var(--amber);font-weight:700;white-space:nowrap}
.replay-heading h2 span{font-size:10px;color:#c6d6e7;margin-left:8px}
.replay-heading p{font-size:10px;color:#d6e5f6;font-variant-numeric:tabular-nums}
.replay-controls{display:flex;align-items:center;gap:8px}
.replay-controls button,.replay-controls select{min-height:44px;border:1px solid #7b9abb44;border-radius:16px;background:#21354d;padding:9px 14px;font-size:12px}
.replay-controls #pauseReplay{background:#e2ebf7;color:#17283c;min-width:86px}
.replay-controls #restartReplay{font-size:22px;width:44px;padding:0}
.replay-controls #stopReplay{margin-left:auto}
.replay-disclaimer{font-size:10px;color:#b7c8dd;margin-top:9px;line-height:1.5}
.is-replaying #sheet .sheet-scroll,.is-replaying #sheet .sheet-handle{display:none}
.is-replaying #startReplay{visibility:hidden}
.motion-reduced .map-flash{display:none}
@media(prefers-reduced-motion:reduce){.map-flash{display:none}}
@media(max-width:900px){
 .territory{top:66px}.search{top:96px}.map-stage{top:148px;bottom:calc(var(--peek) + 182px)}
 .map-meta{top:150px}.portrait{height:68px}
 .replay-panel{padding:14px 16px}.replay-heading{display:block;margin-bottom:8px}
 .replay-heading h2{font-size:12px}.replay-heading p{font-size:10px;margin-top:3px}
 .replay-controls{gap:6px}.replay-controls button,.replay-controls select{font-size:11px;padding:8px 11px}
 .replay-controls #pauseReplay{min-width:78px}.replay-disclaimer{font-size:9px;margin-top:7px}
 .view-changes .map-meta{top:258px;left:auto;right:20px}
 .view-changes .replay-start{font-size:9px;min-height:32px;padding:4px 0}
}
@media(max-height:700px) and (max-width:900px){
 .map-stage{top:144px;bottom:329px}.map-meta{top:146px}.portrait{height:65px}
 .view-changes .map-stage{top:262px;bottom:calc(var(--peek) + 160px)}
 .view-changes .map-meta{top:258px}
}
.replay-start{background:#14283de8;border:1px solid #8eb4d438;border-radius:18px;padding:7px 12px;text-decoration:none;margin-top:7px;margin-left:auto;min-height:40px}
@media(max-width:900px){.map-meta{left:20px;right:20px;width:auto;display:grid;grid-template-columns:1fr auto;gap:1px 12px;pointer-events:none}.map-meta #mapCount,.map-meta small{grid-column:1}.map-meta .replay-start{grid-column:2;grid-row:1 / span 2;align-self:start;margin:0;font-size:10px;min-height:40px}.view-changes .map-meta{left:auto;width:auto;display:block}.view-changes .map-meta .replay-start{font-size:9px;min-height:36px}}


/* 2022 R2 replay: the same probability capsule, fed only by arrived municipalities. */
.is-replaying:has(#replayChance:not([hidden])){--peek:228px}
.replay-chance{border:1px solid #aabbd52b;background:#182b42;border-radius:14px;padding:8px 10px;margin:7px 0}
.replay-chance-title{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#dce7f5}
.replay-chance-title small{font-size:8px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.replay-chance-values{display:flex;justify-content:space-between;gap:20px;margin-top:4px}
.replay-chance-values span{display:flex;align-items:baseline;gap:7px}.replay-chance-values span:last-child{text-align:right}
.replay-chance-values small{font-size:9px;color:var(--muted)}.replay-chance-values strong{font-size:20px;font-variant-numeric:tabular-nums}
#replayChanceLula{color:#c7afff}#replayChanceBolsonaro{color:#63dfd0}
.replay-chance>p{font-size:8px;color:var(--muted);margin-top:2px}
@media(max-width:900px){.is-replaying:has(#replayChance:not([hidden])){--peek:234px}.replay-chance{padding:7px 9px;margin:6px 0}.replay-chance-values strong{font-size:18px}}
@media(max-height:700px) and (max-width:900px){.is-replaying:has(#replayChance:not([hidden])){--peek:222px}.replay-chance-title small{display:none}.replay-chance-values{margin-top:2px}.replay-chance>p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
