/* ============================================================
   Open Vista — language switcher (header + footer) — 2026-10-20
   ============================================================ */
.ov-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(15, 23, 42, .18);
    border-radius: 999px;
    padding: 2px;
    background: #fff;
    line-height: 1;
    vertical-align: middle;
}
.ov-lang-switch .ov-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #0f172a;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.ov-lang-switch .ov-lang-link:hover,
.ov-lang-switch .ov-lang-link:focus {
    background: #eef2f7;
    color: #024bb7;
    text-decoration: none;
}
.ov-lang-switch .ov-lang-link.is-active {
    background: #024bb7;
    color: #fff;
}
.navbar-nav.toolbar .ov-lang-nav {
    display: flex;
    align-items: center;
}
/* Footer variant: dark background */
.ov-footer .ov-lang-switch,
.ov-lang-switch-footer {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    margin-right: 14px;
}
.ov-footer .ov-lang-switch .ov-lang-link,
.ov-lang-switch-footer .ov-lang-link {
    color: #fff;
}
.ov-footer .ov-lang-switch .ov-lang-link:hover,
.ov-footer .ov-lang-switch .ov-lang-link:focus,
.ov-lang-switch-footer .ov-lang-link:hover,
.ov-lang-switch-footer .ov-lang-link:focus {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}
.ov-footer .ov-lang-switch .ov-lang-link.is-active,
.ov-lang-switch-footer .ov-lang-link.is-active {
    background: #ffc107;
    color: #0f172a;
}
@media (max-width: 767.98px) {
    .ov-lang-switch .ov-lang-link { min-width: 30px; height: 26px; padding: 0 7px; font-size: 11px; }
}
/* RTL: keep the pill order when the document direction flips */
html[dir="rtl"] .ov-lang-switch { direction: ltr; }
