/* Language Switcher — shared styles */
.lang-switcher a {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999999;
    text-decoration: none;
    border-radius: 3px;
    transition: color 0.2s, background-color 0.2s;
    line-height: 1;
}

.lang-switcher a:hover {
    color: #ffffff;
}

.lang-switcher a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.lang-switcher .lang-divider {
    color: #555555;
    font-size: 11px;
}

/* Desktop: fixed at top-right corner */
#site-navigation .lang-switcher {
    position: fixed;
    top: 0;
    right: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 10001;
}

/* Mobile dropdown: in-flow inside menu, shifted left to clear X button */
#mobile-dropdown .lang-switcher {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 12px 15px;
    padding-right: 60px;
}

/* Mobile: hide the desktop fixed switcher to avoid overlap with X button */
@media (max-width: 768px) {
    #site-navigation .lang-switcher {
        display: none;
    }
}
