.alj-lang-switch {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    box-sizing: border-box;
    width: auto;
    min-width: 7.5rem;
    padding: 3px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 9999px;
    background: rgba(8, 20, 18, 0.92);
    font-family: Orbitron, ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1;
    flex-shrink: 0;
    isolation: isolate;
}

.alj-lang-switch button {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 3.25rem;
    min-height: 2rem;
    margin: 0;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: #d1d5db;
    font: inherit;
    font-weight: 700;
    letter-spacing: inherit;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.alj-lang-switch button[aria-pressed="true"] {
    color: #030807;
}

.alj-lang-switch button[aria-pressed="false"]:hover {
    color: #10b981;
}

.alj-lang-switch button[aria-pressed="true"]:hover {
    color: #030807;
}

.alj-lang-switch__slider {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 0;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    border-radius: 9999px;
    background: #10b981;
    pointer-events: none;
    transition: transform 0.22s ease;
    transform: translateX(0);
}

.alj-lang-switch[data-alj-locale-active="bm"] .alj-lang-switch__slider {
    transform: translateX(100%);
}

/* Drone Ops — amber accent to match nav / CTA */
.alj-lang-switch--amber {
    border-color: rgba(245, 158, 11, 0.45);
}

.alj-lang-switch--amber .alj-lang-switch__slider {
    background: #f59e0b;
}

.alj-lang-switch--amber button[aria-pressed="false"]:hover {
    color: #f59e0b;
}

.alj-lang-switch--compact {
    min-width: 7rem;
    font-size: 10px;
}

.alj-lang-switch--compact button {
    min-width: 2.75rem;
    min-height: 1.75rem;
    padding: 0.35rem 0.5rem;
}

/* Header bar — visible beside hamburger on mobile/tablet */
.nav-actions .alj-lang-switch--compact {
    min-width: 6.5rem;
}

.nav-actions .alj-lang-switch--compact button {
    min-width: 2.5rem;
    min-height: 1.625rem;
}

.legal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gateway-lang-switch {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20;
}

@media (min-width: 768px) {
    .gateway-lang-switch {
        top: 1.5rem;
        right: 3rem;
    }
}
