/* Banner das Eleições 2026 abaixo do topo (25 e 26/10/2026) — app/apuracao.php → apuracao_banner() */
.apu-banner { display: block; position: relative; overflow: hidden; color: #fff; text-decoration: none;
    background: radial-gradient(120% 180% at 100% 0, rgba(255, 210, 0, .16), transparent 46%), linear-gradient(100deg, #001a3d 0%, #002f6c 55%, #0a3f8a 100%);
    border-top: 4px solid #e00000; box-shadow: 0 6px 18px rgba(0, 20, 60, .28); }
.apu-banner::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .09) 50%, transparent 60%); transform: translateX(-100%); animation: apu-banner-shine 6s ease-in-out infinite 1.5s; }
@keyframes apu-banner-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.apu-banner:hover .apu-banner-cta, .apu-banner:focus-visible .apu-banner-cta { background: #fff; transform: translateY(-1px); }
.apu-banner-in { display: flex; align-items: center; gap: 20px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; position: relative; z-index: 1; }
.apu-banner-tag { display: flex; flex-direction: column; line-height: 1.2; padding-right: 18px; border-right: 1px solid rgba(255, 255, 255, .22); flex: 0 0 auto; }
.apu-banner-live { align-self: flex-start; background: #e00000; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px 2px 18px; border-radius: 4px; margin-bottom: 5px; position: relative; }
.apu-banner-live::before { content: ''; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; animation: apu-banner-pulse 1.4s infinite; }
.apu-banner-tag b { color: #ffd200; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.apu-banner-tag > span:not(.apu-banner-live) { color: #fff; font-weight: 800; font-size: 17px; }
.apu-banner-race { display: flex; align-items: center; justify-content: center; gap: 16px; flex: 1 1 auto; min-width: 0; }
.apu-banner-c { display: flex; align-items: center; gap: 10px; min-width: 0; }
.apu-banner-c2 { flex-direction: row-reverse; text-align: right; }
.apu-banner-c img { width: 38px; height: auto; flex: 0 0 38px; border-radius: 4px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); } /* foto como vem do TSE, sem recorte */
.apu-banner-nome { display: flex; flex-direction: column; font-weight: 800; font-size: 16px; line-height: 1.15; white-space: nowrap; min-width: 0; }
.apu-banner-nome, .apu-banner-nome small { overflow: hidden; text-overflow: ellipsis; }
.apu-banner-nome small { font-weight: 500; color: #b9cbe6; font-size: 12px; }
.apu-banner-c.is-eleito .apu-banner-nome small { color: #7dffb0; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.apu-banner-pct { font-size: 28px; letter-spacing: -.5px; color: #fff; }
.apu-banner-c2 .apu-banner-pct { color: #ffd200; }
.apu-banner-vs { color: #ffd200; font-size: 20px; font-weight: 800; }
.apu-banner-st { font-size: 12px; color: #d6e2f5; white-space: nowrap; margin-top: 3px; }
.apu-banner-apurando .apu-banner-st::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; margin-right: 6px; vertical-align: 1px; animation: apu-banner-pulse 1.6s infinite; }
@keyframes apu-banner-pulse { 50% { opacity: .25; } }
.apu-banner-cd { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; }
.apu-banner-cd small { font-size: 11px; font-weight: 700; color: #ffd200; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.apu-banner-cd-n { display: flex; gap: 6px; }
.apu-banner-cd-n > span { display: flex; align-items: baseline; gap: 2px; background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px; padding: 4px 8px; }
.apu-banner-cd-n b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.apu-banner-cd-n i { font-style: normal; font-size: 11px; color: #b9cbe6; }
.apu-banner-cta { background: #ffd200; color: #001a3d; font-weight: 800; font-size: 15px; padding: 11px 18px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; box-shadow: 0 4px 14px rgba(255, 210, 0, .35); transition: background .15s, transform .15s; }
.apu-banner-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #ffd200; z-index: 1; }
.apu-banner-bar i { display: block; height: 100%; background: #fff; transition: width .6s ease; }
/* Uma faixa por disputa (Presidente e Governadores); a cada 8 s a próxima entra pela esquerda e a atual sai pela direita. */
.apu-slides { display: block; position: relative; }
.apu-slide { display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; position: absolute; left: 0; right: 0; top: 0; transform: translateX(-100%); visibility: hidden; transition: transform .6s ease; }
.apu-slide.is-on { position: relative; transform: none; visibility: visible; }
.apu-slide.is-out { transform: translateX(100%); visibility: visible; }
@media (prefers-reduced-motion: reduce) { .apu-banner::after, .apu-banner-live::before, .apu-banner-apurando .apu-banner-st::before { animation: none; } .apu-slide { transition: none; } }

@media (max-width: 1100px) {
    .apu-banner-cta { display: none; }
}
@media (max-width: 760px) {
    .apu-banner-in { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
    .apu-banner-tag { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; align-items: center; border-right: 0; padding-right: 0; width: 100%; }
    .apu-banner-live { margin: 0; }
    .apu-banner-tag > span:not(.apu-banner-live) { font-size: 14px; }
    .apu-banner-st { margin: 0 0 0 auto; }
    .apu-banner-race { width: 100%; justify-content: space-between; gap: 8px; }
    .apu-banner-c img { width: 28px; flex-basis: 28px; }
    .apu-banner-vs { font-size: 16px; }
    .apu-banner-nome { font-size: 14px; white-space: normal; min-width: min-content; } /* quebra no espaço, mas a palavra inteira (ex.: Lula) não some */
    /* Celular: foto ao lado; nome em cima e porcentagem embaixo (nomes longos como "Professora Maria do Carmo" cabem) */
    .apu-banner-c { display: grid; grid-template-columns: 28px auto; column-gap: 7px; row-gap: 1px; align-items: center; min-width: 0; }
    .apu-banner-c img { grid-row: 1 / 3; grid-column: 1; }
    .apu-banner-c .apu-banner-nome, .apu-banner-c .apu-banner-pct { grid-column: 2; }
    .apu-banner-c2 { grid-template-columns: auto 28px; }
    .apu-banner-c2 img { grid-column: 2; }
    .apu-banner-c2 .apu-banner-nome, .apu-banner-c2 .apu-banner-pct { grid-column: 1; text-align: right; justify-self: end; }
    .apu-banner-pct { line-height: 1.1; }
    .apu-banner-pct { white-space: nowrap; }
    .apu-banner-nome small { display: none; }
    .apu-banner-c.is-eleito .apu-banner-nome small { display: block; }
    .apu-banner-pct { font-size: 21px; }
    .apu-banner-cd { width: 100%; flex-direction: row; justify-content: center; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .18); }
    .apu-banner-cd-n b { font-size: 19px; }
    .apu-banner-cta { display: block; width: 100%; text-align: center; padding: 9px 14px; font-size: 14px; }
}

/* Chamada nas matérias sobre a eleição (app/apuracao.php → apuracao_post_call) */
.apu-chamada { display: flex; flex-direction: column; gap: 6px; margin: 26px 0; padding: 18px 20px; border-radius: 12px; background: #002452; color: #fff; border-left: 6px solid #e00000; }
.apu-chamada-tag { color: #ff9b9b; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.apu-chamada b { font-size: 21px; line-height: 1.2; }
.apu-chamada-txt { color: #c9d6ea; font-size: 15px; line-height: 1.45; }
.apu-chamada-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.apu-chamada .apu-chamada-btn { background: #fff; color: #002452; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 8px; text-decoration: none; }
.apu-chamada .apu-chamada-btn2 { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.apu-chamada .apu-chamada-btn:hover { opacity: .9; text-decoration: underline; }
@media (max-width: 600px) { .apu-chamada { padding: 16px; } .apu-chamada b { font-size: 19px; } .apu-chamada-btn { flex: 1 1 auto; text-align: center; } }
