/* Apuração das Eleições 2026 (/politica/eleicoes/2026/apuracao/) */
.apuracao { padding-top: 24px; padding-bottom: 48px; max-width: 1100px; }
.apu-header { margin-bottom: 18px; }
.apu-kicker { display: inline-block; color: #e00000; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.apu-header h1 { font-size: 38px; line-height: 1.1; margin: 6px 0 8px; color: #111; letter-spacing: -1px; }
.apu-header p { color: #555; font-size: 17px; margin: 0; max-width: 720px; }
.apu-filtro { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.apu-filtro label { font-weight: 700; color: #002452; }
.apu-filtro select { font: inherit; padding: 8px 12px; border: 1px solid #c9d3e0; border-radius: 8px; background: #fff; min-width: 220px; }
.apu-auto { color: #666; font-size: 13px; margin: 10px 0 16px; }
.apu-auto::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e00000; margin-right: 6px; vertical-align: 1px; animation: apu-pulse 1.6s infinite; }
@keyframes apu-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .apu-auto::before { animation: none; } }

.apu-race { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.apu-destaque { border-top: 4px solid #002452; }
.apu-estado { border-top: 4px solid #5b7db1; }
.apu-race-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.apu-race-head h2 { margin: 0; font-size: 22px; color: #002452; }
.apu-destaque .apu-race-head h2 { font-size: 28px; }
.apu-badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: #eef2f7; color: #4a5a70; }
.apu-apurando .apu-badge { background: #fff1f1; color: #c00000; }
.apu-encerrada .apu-badge { background: #e8f6ee; color: #146c3a; }
.apu-progress { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; margin: 14px 0 6px; }
.apu-progress span { display: block; height: 100%; background: #002452; transition: width .6s ease; }
.apu-secoes { margin: 0 0 6px; color: #444; font-size: 14px; }

.apu-cands { list-style: none; margin: 10px 0 0; padding: 0; }
.apu-cand { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #f0f2f5; }
.apu-cand:first-child { border-top: 0; }
.apu-cand img, .apu-foto-vazia { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #e3e8ef; display: block; }
.apu-cand-info b { display: block; font-size: 18px; color: #111; }
.apu-cand-info small { color: #666; font-size: 13px; }
.apu-bar { height: 10px; background: #eef2f7; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.apu-bar span { display: block; height: 100%; background: #5b7db1; transition: width .6s ease; }
.apu-cand:first-child .apu-bar span { background: #002452; }
.apu-cand.is-eleito .apu-bar span { background: #146c3a; }
.apu-cand-num { text-align: right; min-width: 110px; }
.apu-cand-num b { display: block; font-size: 26px; color: #111; letter-spacing: -.5px; }
.apu-destaque .apu-cand-num b { font-size: 32px; }
.apu-cand-num small { color: #666; font-size: 13px; }
.apu-eleito { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #146c3a; color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; vertical-align: 3px; }

.apu-totais { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #f0f2f5; }
.apu-totais div { background: #f7f9fc; border-radius: 8px; padding: 8px 10px; }
.apu-totais dt { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: .04em; }
.apu-totais dd { margin: 2px 0 0; font-weight: 700; color: #222; font-size: 15px; }
.apu-totais dd small { font-weight: 400; color: #666; }
.apu-upd { color: #777; font-size: 12px; margin: 10px 0 0; }

.apu-secao { font-size: 24px; color: #111; margin: 30px 0 12px; }
.apu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.apu-grid .apu-cand-num b { font-size: 22px; }
.apu-grid .apu-cand { grid-template-columns: 52px 1fr auto; }
.apu-grid .apu-cand img, .apu-grid .apu-foto-vazia { width: 52px; height: 52px; }
.apu-grid .apu-totais { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 760px) {
    .apu-header h1 { font-size: 30px; }
    .apu-grid { grid-template-columns: 1fr; }
    .apu-race { padding: 14px; }
    .apu-cand { grid-template-columns: 48px 1fr auto; gap: 10px; }
    .apu-cand img, .apu-foto-vazia { width: 48px; height: 48px; }
    .apu-cand-info b { font-size: 16px; }
    .apu-cand-num { min-width: 80px; }
    .apu-cand-num b, .apu-destaque .apu-cand-num b { font-size: 22px; }
    .apu-totais { grid-template-columns: repeat(2, 1fr); }
    .apu-filtro select { width: 100%; }
}

/* Mapa da apuração por município (/politica/eleicoes/2026/apuracao/mapa-da-apuracao/) */
.apu-voltar { margin-top: 10px; font-size: 14px; }
.apu-voltar a, .apu-link-mapa a { color: #002452; font-weight: 700; }
.apu-link-mapa { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #002452; color: #fff; border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; text-decoration: none; }
.apu-link-mapa b { font-size: 18px; display: block; }
.apu-link-mapa span { color: #c9d6ea; font-size: 14px; }
.apu-link-mapa em { font-style: normal; background: #fff; color: #002452; font-weight: 700; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.apu-link-mapa:hover em { background: #eef2f7; }
.apu-mapa { position: relative; }
.apu-mapa-cargos, .apu-mapa-ufs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.apu-mapa-ufs[hidden] { display: none; }
.apu-mapa-cargos button, .apu-mapa-ufs button { font: inherit; font-weight: 700; border: 1px solid #c9d3e0; background: #fff; color: #002452; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.apu-mapa-ufs button { padding: 6px 12px; font-size: 14px; }
.apu-mapa-cargos button.on, .apu-mapa-ufs button.on { background: #002452; color: #fff; border-color: #002452; }
.apu-mapa-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.apu-mapa-svg { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 10px; min-height: 300px; }
.apu-mapa-svg svg { display: block; width: 100%; height: auto; max-height: 78vh; }
.apu-mapa-svg path { fill-rule: evenodd; }
.apu-mapa-svg path[data-c] { fill: #d3d8df; stroke: #fff; stroke-width: .15; cursor: pointer; }
.apu-mapa-svg svg.is-estado path[data-c] { stroke-width: .05; }
.apu-mapa-svg path[data-c]:hover { stroke: #111; stroke-width: .6; }
.apu-mapa-svg svg.is-estado path[data-c]:hover { stroke-width: .15; }
.apu-mapa-ufs-borda path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; pointer-events: none; }
.apu-mapa-svg svg.is-estado .apu-mapa-ufs-borda path { stroke-width: .6; }
.apu-mapa-legenda { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 14px 16px; }
.apu-mapa-legenda h2 { font-size: 18px; color: #002452; margin: 0 0 10px; }
.apu-mapa-legenda p { margin: 0 0 10px; line-height: 1.3; }
.apu-mapa-legenda i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: -2px; }
.apu-mapa-legenda small { color: #666; }
.apu-mapa-legenda span { display: block; color: #555; font-size: 13px; margin-left: 22px; }
.apu-mapa-sem i { background: #d3d8df; }
.apu-mapa-sem { color: #666; font-size: 13px; }
.apu-mapa-tip { position: absolute; z-index: 5; background: #111; color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 13px; line-height: 1.4; pointer-events: none; max-width: 260px; }
.apu-mapa-tip small { color: #cbd5e1; }
@media (max-width: 860px) {
    .apu-mapa-corpo { grid-template-columns: 1fr; }
    .apu-mapa-svg { padding: 4px; }
}

/* Mapa: Brasil (só cores) → clique no estado → zoom com a porcentagem por cidade */
.apu-mapa-dica { color: #555; font-size: 14px; margin: 0 0 8px; }
.apu-mapa-zoom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.apu-mapa-zoom[hidden], .apu-mapa-dica[hidden] { display: none; }
.apu-mapa-voltar { font: inherit; font-weight: 700; border: 1px solid #002452; background: #fff; color: #002452; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.apu-mapa-voltar:hover { background: #002452; color: #fff; }
.apu-mapa-estado { font-size: 18px; color: #111; }
.apu-mapa-svg svg.is-brasil path[data-c] { cursor: pointer; }
.apu-mapa-svg svg.is-brasil path[data-c]:hover { stroke: #fff; stroke-width: .15; }
.apu-mapa-svg svg.is-brasil .apu-mapa-ufs-borda path.is-hover { stroke: #111; stroke-width: 3.2; }
.apu-mapa-svg path.is-fora { opacity: .12; pointer-events: none; }
.apu-mapa-svg .apu-mapa-ufs-borda path.is-fora { opacity: 0; }

/* Compartilhar (mesmos botões das matérias) */
.apu-share { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.apu-share > span { font-size: 13px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .04em; }
.apu-share .artigo-share { margin: 0; }
