/* Seletor de idioma da barra superior do cabeçalho.
   Arquivo nosso — as regras do tema sobre main.css não se aplicam aqui. */

.tg-header__top-right .cr-idiomas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tg-header__top-right .cr-idiomas > i {
    opacity: .75;
    margin-right: 2px;
}

.tg-header__top-right .cr-idiomas a {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.5;
    opacity: .7;
    transition: opacity .2s ease, background .2s ease;
}

.tg-header__top-right .cr-idiomas a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .12);
}

/* O idioma em uso fica marcado: sem isso não dá para saber onde você está. */
.tg-header__top-right .cr-idiomas a.ativo {
    opacity: 1;
    background: rgba(255, 255, 255, .18);
    cursor: default;
}

@media (max-width: 991px) {
    /* A barra superior some no mobile junto com o resto do .tg-header__top;
       o seletor volta dentro do menu off-canvas. */
    .tgmobile__menu .cr-idiomas-mobile {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 18px;
    }
}

.tgmobile__menu .cr-idiomas-mobile a {
    padding: 6px 14px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.tgmobile__menu .cr-idiomas-mobile a.ativo {
    background: var(--tg-theme-primary);
    border-color: var(--tg-theme-primary);
    color: #fff;
}
