:root{color-scheme:dark;--bg:#07121e;--panel:#0d1d2c;--line:#22394b;--text:#ecf5fc;--muted:#9cafbf;--cyan:#41e3ca;--coral:#ff929e}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 80% 0%,#0d2b37 0%,var(--bg) 50%);color:var(--text);font:16px/1.5 system-ui,sans-serif}header{padding:20px 4vw;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:13px;align-items:center}.brandmark{display:grid;place-items:center;width:42px;height:42px;background:var(--cyan);color:#06241f;font-weight:800;border-radius:12px;font-size:26px}.brand strong{font-size:14px;letter-spacing:2px}.brand small{display:block;font-size:12px;color:var(--muted);letter-spacing:1px}.snapshot{color:var(--cyan);font-size:14px}main{max-width:1600px;margin:auto;padding:25px 4vw}.intro{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:8px 0 30px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--cyan);margin:0 0 8px}h1{font-size:clamp(26px,3vw,42px);letter-spacing:-1.4px;margin:0}p.muted{margin:4px 0}.muted{color:var(--muted)}.totals{display:flex;gap:35px}.totals small,.city-values small{display:block;color:var(--muted);font-size:12px;letter-spacing:1px}.totals b{font-size:26px;font-variant-numeric:tabular-nums}.growth b{color:var(--cyan)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}.toolbar{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px}.modes{display:flex;background:#102334;padding:5px;border-radius:12px;border:1px solid var(--line)}button{font:inherit;cursor:pointer;color:var(--text);border:0;background:transparent;padding:10px 16px;border-radius:8px;min-height:44px}.modes button.active{background:var(--cyan);color:#082c29;font-weight:700}.search{display:flex;align-items:center;gap:8px;position:relative;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:0 12px;min-width:210px}.search span{font-size:24px;color:var(--cyan)}input{font:inherit}.search input{width:100%;background:none;border:0;color:var(--text);padding:10px 0;outline:none}#results{position:absolute;left:0;right:0;top:55px;max-height:300px;overflow:auto;z-index:5;background:#112839;border:1px solid var(--line);border-radius:10px}#results button{display:block;width:100%;text-align:left;font-size:14px}#results button:hover{background:#1b3a50}.map-shell{position:relative;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#122c3b, #091723 68%);height:min(75vh,850px);min-height:520px}.map-meta{position:absolute;top:18px;left:22px;right:22px;display:flex;justify-content:space-between;color:var(--muted);font-size:11px;letter-spacing:1px;pointer-events:none}.map-meta span:first-child{color:var(--cyan)}#map{width:100%;height:100%;touch-action:none;cursor:grab}#map path{stroke:#80b7c0;stroke-width:.65;vector-effect:non-scaling-stroke;transition:fill .3s;cursor:pointer}#map path:hover{stroke:#fff;stroke-width:2}#map path.selected{stroke:#fff;stroke-width:2.4}#map path:focus-visible{stroke:#fff;stroke-width:4}#labels text,#selected-label text{fill:#fff;paint-order:stroke;stroke:#06121b;stroke-linejoin:round;stroke-width:3px;text-anchor:middle;cursor:pointer;font-family:system-ui,sans-serif;font-weight:600}.map-controls{position:absolute;right:16px;top:55px;display:grid;gap:6px}.map-controls button{background:#132c3c;border:1px solid #395769;width:44px;padding:0;font-size:23px}.map-hint{position:absolute;bottom:75px;left:20px;color:var(--muted);font-size:12px;pointer-events:none}.legend{position:absolute;bottom:12px;left:20px;right:80px;font-size:12px;color:var(--muted);pointer-events:none}#legend-swatches{display:flex;gap:2px;width:220px}#legend-swatches i{height:9px;flex:1}#legend-text{margin:4px 0}.below{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:13px;margin:12px 0}.below label{color:var(--text)}.detail,.state-summary{background:linear-gradient(140deg,#142c3d,#0c1b29);border:1px solid var(--line);border-radius:18px;padding:23px}.detail h2{font-size:28px;margin:0 0 3px;line-height:1.2}.detail .muted{font-size:12px}.city-values{display:flex;justify-content:space-between;margin:26px 0 20px}.city-values b{font-size:30px;font-variant-numeric:tabular-nums}.mini-chart{display:grid;grid-template-columns:45px 1fr;gap:10px;font-size:12px;color:var(--muted)}.mini-chart div{background:#193447;height:12px;margin-top:4px;border-radius:3px;overflow:hidden}.mini-chart i{height:100%;display:block;transition:width .3s;background:#839fb6}#bar26{background:var(--cyan)}.delta-card{display:flex;flex-direction:column;margin-top:26px;padding:16px;background:#071a25;border-radius:12px}.delta-card small{font-size:11px;color:var(--muted);letter-spacing:1px}.delta-card strong{font-size:37px;color:var(--cyan)}.delta-card span{font-size:14px}.status{font-size:14px;color:var(--muted);margin-bottom:0}.state-summary{margin-top:18px}.state-summary h3{margin:0 0 18px;font-size:18px}.state-summary div{display:flex;justify-content:space-between;gap:5px;margin:12px 0;font-size:14px}.cyan{color:var(--cyan)}.coral{color:var(--coral)}hr{border:0;border-top:1px solid var(--line);margin:22px 0}.state-summary p{font-size:12px;color:var(--muted)}footer{margin:28px 0;color:var(--muted);font-size:12px;max-width:1000px}footer a{color:var(--cyan)}@media(max-width:800px){main{padding:18px 15px}header{padding:15px}.intro{display:block;margin-bottom:20px}.totals{gap:22px;margin-top:18px}.totals b{font-size:24px}.workspace{display:block}.toolbar{flex-wrap:wrap;gap:10px}.modes{width:100%}.modes button{flex:1;padding:10px}.search{width:100%;height:46px}.map-shell{height:64vh;min-height:460px}.map-meta span:last-child{display:none}.below{display:block}.below span{display:block;margin-top:5px}aside{display:grid;grid-template-columns:1fr;gap:15px;margin-top:18px}.detail{padding:20px}.state-summary{margin:0}.detail h2{font-size:26px}.city-values{margin-top:16px}.brand strong{font-size:12px}.snapshot{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Identidade azul e marinho do SIC, adaptada ao atlas noturno. */
.brandmark{background:linear-gradient(145deg,#4f8df0,#1d55b3);color:#fff;font-family:Georgia,serif}.brand strong{letter-spacing:1px}.snapshot{color:#9fc4e8}.modes button.active{background:#4f8df0;color:#fff}.detail,.state-summary{background:linear-gradient(140deg,#142c4d,#0c1b29)}

#legend-swatches{width:auto;display:flex;flex-wrap:wrap;gap:6px 13px}#legend-swatches span{display:flex;align-items:center;gap:5px;color:#e4edf8;font-size:11px}#legend-swatches i{height:12px;width:15px;flex:none;border-radius:2px}.legend{right:18px}#context path{pointer-events:none;stroke-width:1!important}#context text{pointer-events:none;paint-order:stroke;stroke:#07121e;stroke-width:2px;font-weight:700}.map-hint{bottom:112px}@media(max-width:800px){.map-hint{bottom:125px;font-size:11px}.legend{left:12px;right:12px}#legend-text{font-size:10px}}

.candidate-panel{margin:0 0 25px;padding:20px;border:1px solid var(--line);border-radius:18px;background:#0c1c2c}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-heading h2{margin:0;font-size:23px}.roster-note{font-size:14px;margin:10px 0 18px}.candidate-panel h3{font-size:14px;color:#a8c9ee;margin:15px 0 9px}.candidate-roster{display:flex;gap:8px;overflow-x:auto;padding:3px 2px 10px;scrollbar-color:#4f8df0 #102334}.candidate-chip{border:1px solid #2b4764;background:#11253a;min-width:185px;text-align:left;padding:12px 14px;white-space:nowrap}.candidate-chip strong{display:block;font-size:14px}.candidate-chip span{display:block;font-size:12px;margin-top:5px;color:#aabed2}.candidate-chip.active{background:#204d88;border-color:#6ba6ff;box-shadow:0 0 0 1px #6ba6ff}.candidate-chip.active span{color:#e6f0ff}.analysis-link{color:#9fc4ff;font-size:14px}.comparison-note{color:#f9db90;background:#3b321b;padding:10px;border-radius:8px;font-size:14px;max-width:700px}.analysis-section{margin:35px 0;scroll-margin-top:15px}.analysis-header h2{font-size:27px;margin:4px 0}.analysis-header p:last-child{color:var(--muted);font-size:14px}.analysis-card{padding:24px;background:linear-gradient(140deg,#142c4d,#0c1b29);border:1px solid var(--line);border-radius:16px;margin:16px 0}.analysis-card h3{font-size:20px;margin:0 0 12px}.analysis-card p{font-size:16px;color:#c3d2e0}.analysis-card strong{color:#fff}.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.analysis-grid .analysis-card{min-width:0;margin:0}.analysis-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:20px}.analysis-metrics b{font-size:30px;color:var(--cyan);display:block}.analysis-metrics span{font-size:14px;color:#aabed2}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:right;padding:12px 10px;border-bottom:1px solid #2b4258;white-space:nowrap}th:first-child,td:first-child{text-align:left}th{font-weight:600;color:#a8c9ee}.city-analysis-button{padding:0;color:#dcecff;min-height:30px;font-size:14px;text-align:left;text-decoration:underline;text-decoration-color:#4f8df0;text-underline-offset:4px}.analysis-note{color:var(--muted)}.analysis-card p.analysis-note{font-size:14px}@media(max-width:800px){.candidate-panel{padding:15px}.panel-heading{align-items:flex-start}.panel-heading h2{font-size:20px}.analysis-link{max-width:105px;text-align:right}.candidate-chip{min-width:185px}.analysis-grid{grid-template-columns:1fr;gap:15px}.analysis-header h2{font-size:23px}.analysis-card{padding:18px}.analysis-metrics{grid-template-columns:1fr}.analysis-metrics div{display:flex;align-items:center;gap:18px}.analysis-metrics b{min-width:95px}th,td{padding:10px 8px}.intro{margin-top:25px}}

.compare-link{display:flex;align-items:center;justify-content:center;padding:10px 12px;border-radius:8px;color:#c5ddff;border:1px solid #41618a;text-decoration:none;font-size:14px;white-space:nowrap;margin-left:5px}.compare-link:hover{background:#244672}.pair-heading{margin:4px 0 25px}.pair-heading h1{font-size:clamp(25px,3vw,38px);line-height:1.2;max-width:1000px;margin:8px 0 10px}.back-link{display:inline-block;color:#9fc4ff;margin-bottom:20px;font-size:14px}.pair-selectors{display:grid;grid-template-columns:1fr 1.3fr 1.3fr .7fr;gap:14px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#0c1c2c}.pair-selectors label,.table-filters label{display:grid;gap:8px;font-size:14px}.pair-selectors select,.table-filters select,.table-filters input{width:100%;border:1px solid #38516c;background:#142b42;color:#eef5ff;border-radius:9px;padding:12px;font:inherit;min-height:46px}.candidate-a{color:#8ebcff}.candidate-b{color:#ffb576}.pair-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0 25px}.pair-totals small{display:block;font-size:14px;color:#a9bfd5}.pair-totals b{display:block;font-size:30px;font-variant-numeric:tabular-nums}.pair-totals div:first-child b{color:#8ebcff}.pair-totals div:nth-child(2) b{color:#ffb576}.table-filters{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}.pair-table{max-height:70vh;overflow:auto;border:1px solid var(--line);border-radius:12px}.pair-table th{position:sticky;top:0;background:#11263c;z-index:1;white-space:normal;min-width:105px}.pair-table th:first-child{min-width:180px}.pair-table td{background:#0c1c2c}.pair-table-section{padding:20px;border:1px solid var(--line);border-radius:16px}.pair-table-section h2{font-size:24px;margin:5px 0}body:has(.pair-selectors) #bar22{background:#3b82ff}body:has(.pair-selectors) #bar26{background:#ff922b}body:has(.pair-selectors) .city-values small{max-width:130px;letter-spacing:0;font-size:14px}body:has(.pair-selectors) .map-hint{bottom:135px}@media(max-width:800px){.pair-selectors{grid-template-columns:1fr 1fr;padding:15px;gap:12px}.pair-selectors label:nth-child(2),.pair-selectors label:nth-child(3){grid-column:1/-1}.pair-selectors label:first-child{grid-column:1}.pair-selectors label:last-child{grid-column:2;grid-row:1}.pair-totals{grid-template-columns:1fr 1fr;gap:12px}.pair-totals div:last-child{grid-column:1/-1}.pair-totals b{font-size:26px}.pair-totals small{font-size:13px}.pair-table-section{padding:15px}.table-filters{grid-template-columns:1fr}.compare-link{font-size:12px;padding:9px 7px}.modes:has(.compare-link) button{font-size:13px;padding:10px 5px}.modes:has(.compare-link){width:100%}.toolbar:has(.compare-link){display:block}.toolbar:has(.compare-link) .search{margin-top:10px}}

.table-key{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:14px}.pair-table th{position:static}body:has(.pair-selectors) .city-values{gap:12px}body:has(.pair-selectors) .city-values>div{min-width:0;flex:1}@media(max-width:800px){.pair-table table{table-layout:fixed;font-size:13px;width:100%}.pair-table th{min-width:0;padding:10px 4px}.pair-table th:first-child{min-width:0;width:40%;font-size:12px}.pair-table th:nth-child(2),.pair-table th:nth-child(3),.pair-table th:nth-child(4){width:20%;font-size:0}.pair-table th:nth-child(2):after{content:'A';font-size:14px;color:#8ebcff}.pair-table th:nth-child(3):after{content:'B';font-size:14px;color:#ffb576}.pair-table th:nth-child(4):after{content:'A − B';font-size:12px}.pair-table td{padding:12px 4px;white-space:normal;overflow-wrap:break-word}.pair-table .city-analysis-button{font-size:13px;white-space:normal;line-height:1.35}.pair-table{max-height:75vh}.pair-table-section{padding:12px}.pair-table td:nth-child(n+2){font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}}
/* Catálogo completo e filtros das quatro eleições. */
.atlas-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.atlas-filters label{display:grid;gap:6px;font-size:13px;color:var(--muted)}.atlas-filters select,.atlas-filters input{width:100%;min-height:48px;border:1px solid var(--line);background:#102334;color:var(--text);border-radius:10px;padding:10px;font:inherit}.atlas-roster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:390px;overflow:auto;padding:4px}.atlas-roster .candidate-card{display:flex;flex-direction:column;text-align:left;gap:3px;min-width:0;width:100%;background:#102334;border:1px solid var(--line)}.atlas-roster .candidate-card.active{border-color:#4f8df0;background:#193759}.candidate-card span,.candidate-card small{color:var(--muted);font-size:12px}.roster-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px}.roster-navigation button{border:1px solid var(--line)}button:disabled,select:disabled{opacity:.55;cursor:default}.baseline{grid-template-columns:1fr 1fr 2fr}.baseline p{font-size:13px;align-self:center}#load-status{padding:12px;border:1px solid #4f8df0;border-radius:10px;background:#132b48}.mini-chart{grid-template-columns:minmax(50px,100px) 1fr}.mini-chart span{overflow-wrap:anywhere}.city-values>div{max-width:48%}.pair-selectors{grid-template-columns:repeat(5,minmax(0,1fr))}.modes{flex-wrap:wrap}.modes button{max-width:100%;overflow-wrap:anywhere}.table-scroll th{white-space:normal}.analysis-section h3{margin-top:28px}.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}a[hidden],[hidden]{display:none!important}@media(max-width:1000px){.atlas-roster{grid-template-columns:repeat(3,minmax(0,1fr))}.pair-selectors{grid-template-columns:1fr 1fr}}@media(max-width:650px){.atlas-filters,.baseline{grid-template-columns:1fr 1fr}.atlas-roster{grid-template-columns:1fr 1fr}.baseline p{grid-column:1/-1}.roster-navigation{flex-wrap:wrap}.analysis-grid{grid-template-columns:1fr}.snapshot{font-size:11px}.totals{flex-wrap:wrap}.map-hint{bottom:120px}}

.pair-selectors input{width:100%;background:#102334;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:10px;min-height:44px;font:inherit}

/* Crédito e contato do desenvolvedor, visíveis em todas as páginas do atlas. */
.creator-top{display:flex;justify-content:center;align-items:center;gap:28px;padding:12px 20px;background:linear-gradient(100deg,#0b2140,#123451,#0b2140);border-bottom:1px solid #2b5680;text-align:center;color:#c9ddf2;font-size:14px}.creator-top strong{color:#fff;font-size:17px;letter-spacing:.2px}.creator-contact{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:7px 12px;border:1px solid #3e9275;border-radius:9px;color:#d7f7e9;background:#153b38;text-decoration:none;font-size:13px;min-height:40px}.creator-contact b{color:#75ffc2}.creator-contact:hover,.creator-contact:focus-visible{background:#20594a;border-color:#75ffc2;outline:2px solid #75ffc2;outline-offset:2px}@media(max-width:650px){.creator-top{flex-direction:column;gap:8px;padding:10px 15px;font-size:13px}.creator-top strong{font-size:16px}.creator-contact{font-size:12px}}

/* Barra compacta persistente e repetição do contato ao final. */
body>.creator-top{position:sticky;top:0;z-index:50;box-shadow:0 3px 14px #020b1880}.creator-top{padding:5px 15px;gap:20px;font-size:12px;line-height:1.3}.creator-top strong{font-size:14px}.creator-contact{min-height:32px;padding:4px 10px;font-size:12px}.creator-bottom{position:static;margin-top:24px;border:1px solid #2b5680;border-radius:12px;box-shadow:none}html{scroll-padding-top:64px}#analysis,#comparison-table,#developer-contact{scroll-margin-top:64px}@media(max-width:650px){.creator-top{flex-direction:row;justify-content:center;gap:14px;padding:5px 10px;font-size:10px}.creator-top>span{display:grid;gap:1px;text-align:left}.creator-top strong{font-size:13px;white-space:nowrap}.creator-contact{flex-direction:column;gap:1px;line-height:1.2;font-size:10px;padding:4px 9px;min-height:34px}.creator-contact b{font-size:12px}}
