/* Language switcher (PT / EN / ES), always in the header bar of every public page.
   Desktop: last item of the menu. Phones: in the bar next to the menu button
   (the menu itself is hidden behind the button there). Pages without a header
   bar: top-right corner. */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    background: #fff;
    white-space: nowrap;
    list-style: none;
}
.lang-switch > a,
.nav-links > li.lang-switch > a {
    display: inline-block;
    min-width: 34px;
    padding: 4px 8px;
    border-radius: 30px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--azul-brand, #103855) !important;
}
.lang-switch > a:hover,
.nav-links > li.lang-switch > a:hover { color: var(--laranja-brand, #e75c3f) !important; }
.lang-switch > a.lang-active,
.lang-switch > a.lang-active:hover,
.nav-links > li.lang-switch > a.lang-active,
.nav-links > li.lang-switch > a.lang-active:hover {
    background: var(--azul-brand, #103855);
    color: #fff !important;
}

/* copy for phones: hidden on desktop */
.lang-switch-mobile { display: none; }

@media (max-width: 991px) {
    .nav-links > li.lang-switch { display: none !important; }
    .navbar > .lang-switch-mobile {
        display: inline-flex;
        order: 2;
        margin-left: auto;
        margin-right: 14px;
    }
    .navbar > .hamburger { order: 3; }
}

/* pages without a header bar */
.lang-switch-float {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 2147483000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

@media print { .lang-switch { display: none !important; } }
