/* ==========================================================================
   NAUE 2030 — lang-switch.css
   Seletor de idioma (bandeiras PT | EN) no header. Arquivo novo e isolado:
   não altera nenhuma regra existente. Carregado nas páginas PT e EN.
   ========================================================================== */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--paper-2);
    flex: 0 0 auto;
}

.lang-switch .lang-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono, "IBM Plex Mono", monospace);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--ink-soft, #5a6b62);
    padding: 6px 11px 6px 7px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.lang-switch .lang-flag {
    width: 20px;
    height: 14px;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(13, 20, 16, 0.18);
    flex: 0 0 auto;
}

.lang-switch a.lang-opt:hover,
.lang-switch a.lang-opt:focus-visible {
    background: var(--green-soft);
    color: var(--green);
}

.lang-switch .lang-opt.is-current {
    background: var(--green);
    color: #fff;
    cursor: default;
}

.lang-switch .lang-opt.is-current .lang-flag {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

/* Mobile: a nav vira gaveta em coluna — o seletor centraliza e ganha respiro. */
@media (max-width: 920px) {
    .lang-switch {
        margin-left: 0;
        margin-top: var(--sp-3, 20px);
        align-self: center;
    }

    .lang-switch .lang-opt {
        font-size: 0.8rem;
        padding: 9px 16px 9px 10px;
    }

    .lang-switch .lang-flag {
        width: 24px;
        height: 17px;
    }
}
