.language-switch {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(45, 80, 22, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 2px 8px rgba(34, 65, 18, 0.08);
}

.language-switch button {
    min-width: 34px;
    height: 28px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #46613a;
    font: 700 0.78rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.language-switch button:hover {
    color: #244e17;
    background: #edf4e9;
}

.language-switch button[aria-pressed="true"] {
    color: #fff;
    background: #39731f;
    box-shadow: 0 1px 5px rgba(45, 80, 22, 0.25);
}

.language-switch button:focus-visible {
    outline: 3px solid rgba(74, 124, 44, 0.3);
    outline-offset: 2px;
}

.navbar-language-switch {
    position: absolute;
    top: 50%;
    right: 0;
    margin-left: 0;
    transform: translateY(-50%);
}

.standalone-language-switch {
    position: fixed;
    z-index: 10000;
    top: 14px;
    right: 14px;
    backdrop-filter: blur(8px);
}

@media (max-width: 991.98px) {
    .navbar-language-switch {
        position: static;
        margin: 0.7rem 0 0.35rem;
        align-self: flex-start;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .language-switch button {
        transition: none;
    }
}
