/**
 * Band Apuração — estilos isolados do shortcode.
 * Todas as regras ficam dentro de .band-ap para não interferir no tema do site.
 */

.band-ap {
    --band-ap-primary: #dc2626;
    --band-ap-bg: #ffffff;
    --band-ap-text: #0f172a;
    box-sizing: border-box;
    background: var(--band-ap-bg);
    color: var(--band-ap-text);
    border-radius: 18px;
    padding: 22px 22px 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.35;
}

.band-ap,
.band-ap * {
    box-sizing: border-box;
}

.band-ap-title {
    margin: 0 0 18px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.band-ap-list {
    display: grid;
    gap: 18px;
}

.band-ap-cand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.band-ap-photo-wrap {
    flex: 0 0 auto;
    width: 56px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, .06);
}

.band-ap-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.band-ap-body {
    flex: 1 1 auto;
    min-width: 0;
}

.band-ap-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.band-ap-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.band-ap-name {
    min-width: 0;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.band-ap-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--band-ap-primary);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.band-ap-cand--eleito .band-ap-name {
    font-weight: 900;
}

.band-ap-cand--eleito .band-ap-photo-wrap {
    box-shadow: 0 0 0 2px var(--band-ap-primary);
}

.band-ap-pct {
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 800;
    color: var(--band-ap-primary);
    font-variant-numeric: tabular-nums;
}

.band-ap-bar {
    margin-top: 8px;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .10);
    overflow: hidden;
}

.band-ap-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--band-ap-primary);
    transition: width .7s cubic-bezier(.22, 1, .36, 1);
}

.band-ap-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    font-size: .8rem;
    opacity: .72;
}

.band-ap-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, .10);
    font-size: .78rem;
    opacity: .85;
}

.band-ap-source a {
    color: var(--band-ap-primary);
    font-weight: 600;
    text-decoration: none;
}

.band-ap-source a:hover {
    text-decoration: underline;
}

.band-ap-empty {
    padding: 8px 0 14px;
    font-size: .92rem;
    opacity: .7;
}

@media (max-width: 480px) {
    .band-ap {
        padding: 18px 16px 14px;
        border-radius: 16px;
    }
    .band-ap-photo-wrap {
        width: 48px;
        height: 62px;
    }
    .band-ap-title {
        font-size: 1.15rem;
    }
}
