/* Índice de estados por bandeira — usado em associacoes.html e nas páginas de cada estado */

.assoc-index {
    padding: 40px 0 8px;
}

.assoc-index h2 {
    font-family: var(--mono, monospace);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 15px;
    color: var(--steel, #666);
    margin: 0 0 6px;
}

.assoc-index .lede-sm {
    font-size: 14px;
    color: var(--steel, #666);
    margin: 0 0 22px;
    max-width: 640px;
}

.assoc-region {
    margin-bottom: 32px;
    text-align: center;
}

.assoc-region:last-of-type {
    margin-bottom: 0;
}

.region-title {
    font-family: var(--mono, monospace);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 18px;
    color: var(--steel, #666);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.region-title.regiao-norte { color: #01903F; }
.region-title.regiao-nordeste { color: #218ED1; }
.region-title.regiao-centro-oeste { color: #A1548E; }
.region-title.regiao-sudeste { color: #D12A1F; }
.region-title.regiao-sul { color: #E8BD01; }

.state-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.state-flags .state-flag {
    flex: 0 0 120px;
}

.state-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 10px;
    text-decoration: none;
    background: rgba(0, 0, 0, .02);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.state-flag:hover,
.state-flag:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    border-color: rgba(0, 0, 0, .25);
}

.state-flag img {
    width: 100%;
    max-width: 96px;
    height: auto;
    aspect-ratio: 10 / 7;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
    object-fit: cover;
}

.state-flag span {
    font-family: var(--mono, monospace);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: center;
    color: inherit;
}

.state-flag .flag-count {
    display: block;
    font-size: 10px;
    opacity: .6;
    letter-spacing: 0;
    text-transform: none;
    margin-top: -4px;
}

@media (max-width: 480px) {
    .state-flags {
        gap: 10px;
    }

    .state-flags .state-flag {
        flex: 0 0 96px;
    }
}

.mapa-regioes {
    width: 100%;
    max-width: 528px;
    height: auto;
}
