/* Ultimate Apuração — placar das eleições */
.uap-painel {
    --uap-cor1: #003366;
    --uap-cor2: #ff6600;
    --uap-outros: #8a97a8;
    --uap-texto: #1d2733;
    --uap-suave: #5f6b7a;
    --uap-linha: #e6ebf0;
    --uap-trilho: #eef1f5;
    box-sizing: border-box;
    color: var(--uap-texto);
    background: #fff;
    border: 1px solid var(--uap-linha);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 0 0 24px;
    line-height: 1.35;
    font-size: 15px;
}
.uap-painel *, .uap-painel *::before, .uap-painel *::after { box-sizing: border-box; }

.uap-carregando, .uap-espera {
    color: var(--uap-suave);
    text-align: center;
    padding: 18px 8px;
    margin: 0;
}
.uap-espera { padding: 10px 8px 4px; font-size: 14px; }

/* topo */
.uap-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.uap-titulo { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--uap-suave); }
.uap-local { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; }
.uap-status { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--uap-trilho); color: var(--uap-suave); white-space: nowrap; }
.uap-status-andamento { background: #fff4e5; color: #a34a00; }
.uap-status-final { background: #e7f6ec; color: #1e7e34; }

/* seções totalizadas: cor neutra, não pode lembrar nenhum candidato */
.uap-secoes { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--uap-suave); margin-bottom: 14px; }
.uap-trilho { flex: 1; height: 6px; background: var(--uap-trilho); border-radius: 99px; overflow: hidden; }
.uap-trilho span { display: block; height: 100%; background: #4a5868; transition: width .6s ease; }
.uap-secoes strong { color: var(--uap-texto); }

/* duelo do 2º turno */
.uap-duelo { margin: 4px 0 8px; }
.uap-duelo-nomes { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.uap-duelo-nomes strong { font-size: 20px; }
.uap-duelo-nomes .uap-seq-1 { color: var(--uap-cor1); }
.uap-duelo-nomes .uap-seq-2 { color: var(--uap-cor2); }
.uap-duelo-barra { position: relative; display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--uap-trilho); }
.uap-duelo-barra span { display: block; height: 100%; transition: width .6s ease; }
.uap-duelo-vazio .uap-duelo-barra span { opacity: .18; }
.uap-meio { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; }

/* candidatos */
.uap-painel ul.uap-cands { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.uap-painel .uap-cand {
    list-style: none !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 6px 12px;
    align-items: center;
    padding: 12px 0 !important;
    border-top: 1px solid var(--uap-linha);
    line-height: 1.3 !important; /* o Divi força 26px em todo li */
}
.uap-painel .uap-cand:first-child { border-top: 0; }
.uap-sem-fotos .uap-cand { grid-template-columns: 1fr auto; }
.uap-foto { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--uap-trilho); }
.uap-info { min-width: 0; }
.uap-nome { display: block; font-size: 16px; font-weight: 800; }
.uap-meta { display: block; font-size: 12px; line-height: 1.4; color: var(--uap-suave); margin-top: 2px; }
.uap-num { text-align: right; white-space: nowrap; }
.uap-num strong { display: block; font-size: 20px; line-height: 1.1; }
.uap-num span { font-size: 12px; color: var(--uap-suave); }
.uap-barra { grid-column: 2 / -1; height: 8px; background: var(--uap-trilho); border-radius: 99px; overflow: hidden; }
.uap-sem-fotos .uap-barra { grid-column: 1 / -1; }
.uap-barra span { display: block; height: 100%; background: var(--uap-outros); transition: width .6s ease; }

.uap-cand.uap-seq-1 .uap-barra span, .uap-duelo-barra span.uap-seq-1 { background: var(--uap-cor1); }
.uap-cand.uap-seq-2 .uap-barra span, .uap-duelo-barra span.uap-seq-2 { background: var(--uap-cor2); }

.uap-selo { display: inline-block; vertical-align: 2px; margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--uap-trilho); color: var(--uap-suave); }
.uap-selo-eleito { background: #1e7e34; color: #fff; }

/* rodapé */
.uap-rodape { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--uap-suave); border-top: 1px solid var(--uap-linha); padding-top: 12px; margin-top: 4px; }
.uap-rodape strong { color: var(--uap-texto); }
.uap-fonte { font-size: 12px; color: var(--uap-suave); margin-top: 10px; }
.uap-erro-msg { color: #b32d2e; }

/* faixa compacta */
.uap-painel.uap-compacto { padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.uap-compacto .uap-carregando { padding: 2px 0; text-align: left; font-size: 13px; }
.uap-cc-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: inherit !important; text-decoration: none !important; }
.uap-tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--uap-cor1); padding: 3px 8px; border-radius: 4px; }
.uap-cc-titulo { font-weight: 700; }
.uap-cc b { font-weight: 800; }
.uap-cc.uap-seq-1 b { color: var(--uap-cor1); }
.uap-cc.uap-seq-2 b { color: var(--uap-cor2); }
.uap-cc em { font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #1e7e34; }
.uap-cc-secoes { color: var(--uap-suave); font-size: 13px; }

/* seletor de municípios */
.uap-municipios { margin: 0 0 24px; }
.uap-municipios .uap-painel { margin-bottom: 0; }
.uap-rotulo { display: block; font-weight: 700; margin-bottom: 6px; }
.uap-select { width: 100%; max-width: 380px; font-size: 16px; padding: 8px 10px; margin-bottom: 12px; border: 1px solid #c9d2dc; border-radius: 6px; background: #fff; }

@media (max-width: 480px) {
    .uap-painel { padding: 14px; }
    .uap-local { font-size: 19px; }
    .uap-painel .uap-cand { grid-template-columns: 44px 1fr auto; gap: 4px 10px; }
    .uap-sem-fotos .uap-cand { grid-template-columns: 1fr auto; }
    .uap-foto { width: 44px; height: 44px; }
    .uap-num strong, .uap-duelo-nomes strong { font-size: 17px; }
    .uap-duelo-nomes { font-size: 13px; }
}
