/* ==========================================================================
   Apuração do 2º turno (/eleicoes-2026/apuracao) — Pages/Eleicoes/Apuracao.cshtml + frontend/ferramentas/apuracao-2026.ts
   Faixa escura no topo (igual nos dois temas), placar com foto e barra "cabo de guerra", mapa com a malha do IBGE e
   lista por estado. Tons NEUTROS (violeta e âmbar, os mesmos das pesquisas), nunca ligados a partido: o tom 1 é de quem
   vem primeiro na ordem alfabética. Contraste AA conferido: textos claros sobre #0f1e33 (≥ 8:1), #c4b5fd e #fcd34d
   sobre a faixa (≥ 9:1), #6d28d9/#a16207 sobre branco (≥ 4.8:1) e #c4b5fd/#facc15 sobre #18181f (≥ 9:1).
   Celular primeiro; animações só com prefers-reduced-motion: no-preference.
   ========================================================================== */
.apuracao {
    --ap-tom-1: #6d28d9; --ap-tom-2: #a16207;
    --ap-mapa-vazio: #e7e7ef; --ap-mapa-linha: var(--fundo);
    --ap-1-1: #e4dcfd; --ap-1-2: #c4b2fb; --ap-1-3: #9a7af5; --ap-1-4: #6d28d9;
    --ap-2-1: #fbe7b4; --ap-2-2: #f4c75e; --ap-2-3: #d69a1c; --ap-2-4: #a16207;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-tema="claro"]) .apuracao {
        --ap-tom-1: #c4b5fd; --ap-tom-2: #facc15; --ap-mapa-vazio: #2a2a35;
        --ap-1-1: #3a2d66; --ap-1-2: #5640a3; --ap-1-3: #8566e6; --ap-1-4: #c4b5fd;
        --ap-2-1: #463818; --ap-2-2: #75561a; --ap-2-3: #b8891a; --ap-2-4: #facc15;
    }
}
:root[data-tema="escuro"] .apuracao {
    --ap-tom-1: #c4b5fd; --ap-tom-2: #facc15; --ap-mapa-vazio: #2a2a35;
    --ap-1-1: #3a2d66; --ap-1-2: #5640a3; --ap-1-3: #8566e6; --ap-1-4: #c4b5fd;
    --ap-2-1: #463818; --ap-2-2: #75561a; --ap-2-3: #b8891a; --ap-2-4: #facc15;
}
.apuracao [data-tom="1"] { --ap-tom: var(--ap-tom-1); }
.apuracao [data-tom="2"] { --ap-tom: var(--ap-tom-2); }

/* ---------------------------------------------------------------- faixa (hero) */
.ap-hero {
    --hero-texto: #f4f6fb; --hero-suave: #b9c4d6; --hero-linha: rgba(255, 255, 255, 0.14);
    --hero-tom-1: #c4b5fd; --hero-tom-2: #fcd34d; --hero-barra-1: #a78bfa; --hero-barra-2: #f5b51b;
    position: relative; color: var(--hero-texto);
    background: radial-gradient(120% 90% at 50% 0%, #1b3050 0%, #0f1e33 55%, #0a1526 100%);
    border-bottom: 1px solid #22344f; padding: 4px 0 22px; font-family: var(--fonte-texto);
}
.ap-hero [data-tom="1"] { --ap-tom: var(--hero-tom-1); --ap-barra: var(--hero-barra-1); }
.ap-hero [data-tom="2"] { --ap-tom: var(--hero-tom-2); --ap-barra: var(--hero-barra-2); }
.ap-hero a { color: var(--hero-texto); }
.ap-hero__migalhas { margin: 12px 0 14px; color: var(--hero-suave); font-size: 0.82rem; }
.ap-hero__migalhas a { color: var(--hero-suave); }
.ap-hero__migalhas a:hover { color: var(--hero-texto); }
.ap-hero__linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 26px; }
.ap-hero__selo {
    display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 10px; border-radius: 999px;
    background: #c81e1e; color: #ffffff; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    white-space: nowrap; line-height: 1.2; --ap-vermelho: #ffffff;
}
.ap-hero__selo .chamada-apuracao__ponto { width: 8px; height: 8px; }
.ap-hero[data-fase="antes"] .ap-hero__selo, .ap-hero[data-fase="aguardando"] .ap-hero__selo { background: #3a1416; color: #ffc2c2; --ap-vermelho: #ff6b6f; }
.ap-hero[data-fase="antes"] .chamada-apuracao__ponto { background: transparent; box-shadow: inset 0 0 0 2px var(--ap-vermelho); }
.ap-hero[data-fase="final"] .ap-hero__selo { background: #e8edf5; color: #0f1e33; --ap-vermelho: #0f1e33; }
@media (prefers-reduced-motion: no-preference) {
    .ap-hero[data-fase="apurando"] .chamada-apuracao__ponto::after, .ap-hero[data-fase="aguardando"] .chamada-apuracao__ponto::after {
        animation: chamada-apuracao-pulso 1.6s ease-out infinite;
    }
}
.ap-hero__atualizado { color: var(--hero-suave); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.ap-hero__titulo { margin: 10px 0 14px; color: var(--hero-texto); font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.7rem); line-height: 1.05; }
.ap-hero__manchete { margin: -6px 0 16px; color: #fcd34d; font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem); font-weight: 700; }
.ap-hero__nota { margin: 10px 0 0; color: var(--hero-suave); font-size: 0.88rem; }
.ap-hero__fonte { margin: 16px 0 0; color: var(--hero-suave); font-size: 0.8rem; }
.ap-hero__fonte a { color: var(--hero-texto); text-underline-offset: 3px; }
.ap-hero a:focus-visible, .ap-hero__botao:focus-visible { outline: 3px solid #fcd34d; outline-offset: 2px; }

/* Progresso das seções */
.ap-progresso { margin: 0 0 18px; }
.ap-progresso__numero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 8px; }
.ap-progresso__numero strong { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ap-progresso__numero span { color: var(--hero-suave); font-size: 1rem; font-weight: 600; }
.ap-progresso__barra { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.ap-progresso__barra > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #dbe4f3, #ffffff); }
.ap-progresso__detalhe { margin: 6px 0 0; color: var(--hero-suave); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* Contagem regressiva (antes da liberação) */
.ap-contagem { margin: 0 0 18px; }
.ap-contagem__quando { margin: 0 0 12px; color: var(--hero-suave); font-weight: 600; }
.ap-contagem__relogio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.ap-contagem__relogio div {
    display: flex; flex-direction: column; align-items: center; padding: 10px 4px 8px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid var(--hero-linha);
}
.ap-contagem__relogio span { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ap-contagem__relogio small { margin-top: 4px; color: var(--hero-suave); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ap-contagem__texto { margin: 10px 0 0; color: var(--hero-suave); font-size: 0.9rem; min-height: 1.4em; }
.ap-contagem__relogio:not([hidden]) + .ap-contagem__texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.ap-contagem__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; color: var(--hero-suave); font-size: 0.85rem; }
.ap-hero__botao {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
    background: #ffffff; color: #0f1e33 !important; font-weight: 700; font-size: 0.95rem; text-decoration: none;
}
.ap-hero__botao:hover { background: #e8edf5; }
.ap-hero__botao .icone { width: 18px; height: 18px; }

/* Placar */
.ap-placar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-cand {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "foto id numeros"; align-items: center; gap: 12px;
    padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hero-linha);
    border-top: 4px solid var(--ap-barra, #94a3b8); position: relative;
}
.ap-cand__foto { grid-area: foto; width: 64px; height: 80px; border-radius: 12px; overflow: hidden; background: #22344f; }
.ap-cand__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-cand__iniciais { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--fonte-titulo); font-size: 1.6rem; color: var(--ap-tom); background: linear-gradient(160deg, #22344f, #16263e); }
.ap-cand__id { grid-area: id; min-width: 0; }
.ap-cand__nome { margin: 0; color: var(--hero-texto); font-size: 1.15rem; line-height: 1.15; overflow-wrap: anywhere; }
.ap-cand__partido { margin: 3px 0 0; color: var(--hero-suave); font-size: 0.8rem; line-height: 1.3; }
.ap-cand__numeros { grid-area: numeros; text-align: right; }
.ap-cand__pct { margin: 0; color: var(--ap-tom); font-size: 2.5rem; font-weight: 800; line-height: 0.95; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; white-space: nowrap; }
.ap-cand__pct small { font-size: 0.5em; font-weight: 700; margin-left: 1px; letter-spacing: 0; }
.ap-cand__votos { margin: 4px 0 0; color: var(--hero-suave); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-cand__eleito {
    display: inline-flex; align-items: center; gap: 5px; margin: 0 0 5px; padding: 3px 10px 3px 7px; border-radius: 999px;
    background: #fcd34d; color: #1c1405; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.ap-cand__eleito[hidden] { display: none; }
.ap-cand__eleito .icone { width: 15px; height: 15px; }
.ap-hero[data-eleito] .ap-cand[data-eleito] { background: rgba(255, 255, 255, 0.11); border-color: rgba(252, 211, 77, 0.55); box-shadow: 0 0 0 1px rgba(252, 211, 77, 0.35), 0 14px 40px rgba(0, 0, 0, 0.35); }
.ap-hero[data-eleito] .ap-cand:not([data-eleito]) { opacity: 0.78; }

/* Barra "cabo de guerra": um lado por candidato (na ordem do placar) e o marcador de 50% */
.ap-cabo { position: relative; display: flex; height: 18px; margin: 14px 0 0; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ap-cabo__lado { height: 100%; width: 0; background: var(--ap-barra); }
.ap-cabo__lado:last-of-type { margin-left: auto; }
.ap-cabo__meio { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: #ffffff; box-shadow: 0 0 0 2px #0f1e33; }
.ap-cabo__legenda { margin: 5px 0 0; text-align: center; color: var(--hero-suave); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.ap-hero[data-fase="antes"] .ap-cand__pct, .ap-hero[data-fase="aguardando"] .ap-cand__pct { color: var(--hero-suave); font-size: 2rem; font-weight: 600; }
.ap-hero[data-fase="antes"] .ap-cabo, .ap-hero[data-fase="aguardando"] .ap-cabo,
.ap-hero[data-fase="antes"] .ap-cabo__legenda, .ap-hero[data-fase="aguardando"] .ap-cabo__legenda { display: none; }

/* Números secundários */
.ap-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.ap-chips > div { min-width: 0; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hero-linha); }
.ap-chips > div:first-child { grid-column: 1 / -1; }
.ap-chips dt { color: var(--hero-suave); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ap-chips dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ap-chips dd small { display: block; white-space: nowrap; color: var(--hero-suave); font-size: 0.8rem; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
    .ap-progresso__barra > span, .ap-cabo__lado, .ap-uf__barra > span { transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
    .ap-mapa__uf path, .ap-uf__sigla { transition: fill 0.5s ease, background-color 0.5s ease; }
}

@media (min-width: 720px) {
    .ap-hero { padding-bottom: 28px; }
    .ap-placar { grid-template-columns: 1fr 1fr; gap: 16px; }
    .ap-cand {
        grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "foto id" "foto numeros"; align-items: end;
        padding: 16px; gap: 6px 16px;
    }
    .ap-cand__foto { width: 96px; height: 120px; }
    .ap-cand__numeros { text-align: left; }
    .ap-cand__pct { font-size: clamp(3rem, 1.6rem + 3.4vw, 4.4rem); }
    .ap-cand__votos { font-size: 0.9rem; }
    .ap-cand__nome { font-size: 1.35rem; }
    /* Segundo colocado espelhado: foto à direita, números alinhados à direita (placar de TV). */
    .ap-cand:last-child { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "id foto" "numeros foto"; text-align: right; }
    .ap-cand:last-child .ap-cand__numeros { text-align: right; }
    .ap-cabo { height: 22px; }
    .ap-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .ap-chips > div:first-child { grid-column: auto; }
    .ap-chips dd small { display: inline; margin-left: 6px; }
}

/* ---------------------------------------------------------------- simulação (só Development) */
.ap-simulacao { margin: 16px 0 0; padding: 8px 12px; border-radius: 10px; border: 2px dashed var(--borda-forte); font-weight: 700; font-size: 0.9rem; }

/* ---------------------------------------------------------------- por estado */
.ap-secao-titulo { margin: 0 0 14px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
.ap-estados { margin-top: 28px; }
.ap-estados__grade { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
    .ap-estados__grade { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 32px; }
}

/* Mapa */
.ap-mapa { position: relative; margin: 0; }
@media (min-width: 960px) {
    /* O mapa acompanha a rolagem da lista (27 linhas) no computador, abaixo do cabeçalho fixo do site (64px).
       Fica depois do .ap-mapa base: com a mesma especificidade, a regra que vem por último vence. */
    .ap-mapa { position: sticky; top: 84px; }
}
.ap-mapa__svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; aspect-ratio: 610 / 628; }
.ap-mapa__uf path { fill: var(--ap-mapa-vazio); stroke: var(--ap-mapa-linha); stroke-width: 1.2; stroke-linejoin: round; }
.ap-mapa__uf[data-tom="1"][data-forca="1"] path { fill: var(--ap-1-1); }
.ap-mapa__uf[data-tom="1"][data-forca="2"] path { fill: var(--ap-1-2); }
.ap-mapa__uf[data-tom="1"][data-forca="3"] path { fill: var(--ap-1-3); }
.ap-mapa__uf[data-tom="1"][data-forca="4"] path { fill: var(--ap-1-4); }
.ap-mapa__uf[data-tom="2"][data-forca="1"] path { fill: var(--ap-2-1); }
.ap-mapa__uf[data-tom="2"][data-forca="2"] path { fill: var(--ap-2-2); }
.ap-mapa__uf[data-tom="2"][data-forca="3"] path { fill: var(--ap-2-3); }
.ap-mapa__uf[data-tom="2"][data-forca="4"] path { fill: var(--ap-2-4); }
.ap-mapa__uf:hover path, .ap-mapa__uf:focus-visible path, .ap-mapa__uf[data-ativo] path { stroke: var(--texto); stroke-width: 2.4; }
.ap-mapa__uf:focus { outline: none; }
.ap-mapa__uf:hover, .ap-mapa__uf:focus-visible, .ap-mapa__uf[data-ativo] { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.ap-mapa__dica {
    position: absolute; z-index: 2; left: 0; top: 0; min-width: 190px; max-width: 240px; padding: 10px 12px; border-radius: 12px;
    background: var(--superficie); color: var(--texto); border: 1px solid var(--borda-forte); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    font-size: 0.85rem; line-height: 1.35; pointer-events: none; font-variant-numeric: tabular-nums;
}
.ap-mapa__dica strong { display: block; font-size: 0.95rem; }
.ap-mapa__dica p { margin: 2px 0 0; color: var(--texto-suave); }
.ap-mapa__dica ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.ap-mapa__dica li { display: flex; align-items: center; gap: 6px; }
.ap-mapa__dica li b { margin-left: auto; padding-left: 10px; }
.ap-mapa__dica i, .ap-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--ap-tom, var(--ap-mapa-vazio)); }
.ap-legenda { margin-top: 10px; font-size: 0.85rem; color: var(--texto-suave); }
.ap-legenda ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; list-style: none; margin: 0; padding: 0; color: var(--texto); }
.ap-legenda li { display: flex; align-items: center; gap: 6px; }
.ap-legenda p { margin: 6px 0 0; text-align: center; }
.ap-legenda__escala { display: inline-flex; gap: 2px; }
.ap-legenda i[data-forca="0"] { background: var(--ap-mapa-vazio); border: 1px solid var(--borda-forte); }
.ap-legenda__escala[data-tom="1"] i[data-forca="1"] { background: var(--ap-1-1); }
.ap-legenda__escala[data-tom="1"] i[data-forca="2"] { background: var(--ap-1-2); }
.ap-legenda__escala[data-tom="1"] i[data-forca="3"] { background: var(--ap-1-3); }
.ap-legenda__escala[data-tom="1"] i[data-forca="4"] { background: var(--ap-1-4); }
.ap-legenda__escala[data-tom="2"] i[data-forca="1"] { background: var(--ap-2-1); }
.ap-legenda__escala[data-tom="2"] i[data-forca="2"] { background: var(--ap-2-2); }
.ap-legenda__escala[data-tom="2"] i[data-forca="3"] { background: var(--ap-2-3); }
.ap-legenda__escala[data-tom="2"] i[data-forca="4"] { background: var(--ap-2-4); }

/* Lista por estado */
.ap-lista { min-width: 0; }
.ap-lista__ferramentas { display: flex; gap: 8px; margin: 0 0 10px; }
.ap-lista__busca { position: relative; flex: 1; min-width: 0; }
.ap-lista__busca .icone { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--texto-suave); pointer-events: none; }
.ap-lista__busca input.ap-lista__campo, .ap-lista__ordem select.ap-lista__seletor {
    width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--borda-forte); background: var(--superficie);
    color: var(--texto); font: inherit; font-size: 0.95rem;
}
.ap-lista__busca input.ap-lista__campo { padding: 0 12px 0 38px; }
.ap-lista__ordem select.ap-lista__seletor { padding: 0 10px; width: auto; }
.ap-lista__busca input:focus-visible, .ap-lista__ordem select:focus-visible { outline: 3px solid var(--primaria); outline-offset: 1px; }
.ap-lista__cabecalho, .ap-uf { display: grid; grid-template-columns: 42px minmax(0, 1fr) 64px 64px; align-items: center; column-gap: 10px; }
.ap-lista__cabecalho { align-items: end; padding: 0 10px 6px; border-bottom: 2px solid var(--borda); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-suave); }
.ap-lista__cabecalho span:first-child { grid-column: 1 / 3; }
.ap-lista__cabecalho span[data-tom] { text-align: right; color: var(--ap-tom); line-height: 1.2; }
.ap-regiao__titulo { margin: 14px 0 4px; padding: 0 10px; font-family: var(--fonte-texto); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-suave); }
.ap-regiao[hidden] { display: none; }
.ap-ufs { list-style: none; margin: 0; padding: 0; }
.ap-uf { grid-template-rows: auto auto; row-gap: 5px; padding: 9px 10px; border-bottom: 1px solid var(--borda); scroll-margin-top: 90px; }
.ap-uf:target, .ap-uf[data-ativo] { background: var(--superficie-2); border-radius: 10px; }
.ap-uf[hidden] { display: none; }
.ap-uf__sigla {
    grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 34px; border-radius: 8px; font-size: 0.8rem; font-weight: 800;
    letter-spacing: 0.02em; background: var(--ap-mapa-vazio); color: var(--texto);
}
.ap-uf__sigla[data-tom="1"][data-forca="1"] { background: var(--ap-1-1); }
.ap-uf__sigla[data-tom="1"][data-forca="2"] { background: var(--ap-1-2); }
.ap-uf__sigla[data-tom="1"][data-forca="3"] { background: var(--ap-1-3); color: #111118; }
.ap-uf__sigla[data-tom="1"][data-forca="4"] { background: var(--ap-1-4); color: #ffffff; }
.ap-uf__sigla[data-tom="2"][data-forca="1"] { background: var(--ap-2-1); }
.ap-uf__sigla[data-tom="2"][data-forca="2"] { background: var(--ap-2-2); }
.ap-uf__sigla[data-tom="2"][data-forca="3"] { background: var(--ap-2-3); color: #111118; }
.ap-uf__sigla[data-tom="2"][data-forca="4"] { background: var(--ap-2-4); color: #ffffff; }
.ap-uf__nome { min-width: 0; font-weight: 650; font-size: 0.95rem; line-height: 1.2; overflow-wrap: anywhere; }
.ap-uf__nome small { display: block; margin-top: 1px; color: var(--texto-suave); font-weight: 400; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.ap-uf__pct { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.92rem; color: var(--texto-suave); white-space: nowrap; }
.ap-uf__pct[data-lider] { color: var(--ap-tom); font-weight: 800; }
.ap-uf__barra { grid-column: 2 / 5; display: flex; height: 6px; border-radius: 999px; background: var(--superficie-2); overflow: hidden; }
.ap-uf__barra > span { height: 100%; width: 0; background: var(--ap-tom); }
.ap-uf__barra > span:last-child { margin-left: auto; }
.ap-lista__vazia { padding: 14px 10px; color: var(--texto-suave); }
.ap-exterior { margin-top: 22px; }
@media (prefers-color-scheme: dark) {
    :root:not([data-tema="claro"]) .ap-uf__sigla[data-forca="4"] { color: #111118; }
}
:root[data-tema="escuro"] .ap-uf__sigla[data-forca="4"] { color: #111118; }

/* ---------------------------------------------------------------- sobre os dados (rodapé discreto) */
.ap-sobre { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--borda); color: var(--texto-suave); font-size: 0.88rem; }
.ap-sobre .ap-secao-titulo { font-size: 1.1rem; color: var(--texto); }
.ap-sobre ul { margin: 0; padding-left: 18px; max-width: 820px; }
.ap-sobre li { margin: 6px 0; overflow-wrap: anywhere; }
.ap-sobre strong { color: var(--texto); }
