/* Pemilih bahasa di header publik (partials/_lang-switcher.blade.php).
   Warna mengikuti teks header (currentColor) — topbar & bar menu berlatar gelap. */
.ls { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.ls .ls-flag { display: inline-block; width: 1.4em; height: 1.05em; border-radius: 2px; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex-shrink: 0; }
.ls-at-topbar { margin-inline-start: auto; color: #fff; }
/* Di bar menu: warna sama dengan tautan menu (Style A/C: putih 86%; Default/B: putih) */
.ls-at-menu { color: rgba(255, 255, 255, .86); }
.nav-default-scope .ls-at-menu, .nav-b-scope .ls-at-menu { color: #fff; }

/* ── Switch: semua bahasa berjajar ──
   Aktif = berwarna penuh; tidak aktif = abu-abu (bendera grayscale, teks pudar).
   Saat disorot: kembali berwarna + nama bahasa muncul sebagai label di bawahnya. */
.ls .ls-list { display: inline-flex; align-items: center; gap: 4px; }
.ls .ls-globe { font-size: 14px; opacity: .6; margin-inline-end: 2px; }
.ls .ls-opt {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px;
    border-radius: 6px; color: inherit; text-decoration: none;
    transition: color .15s, opacity .15s;
}
/* tidak aktif */
.ls .ls-opt:not(.is-active) { color: rgba(255, 255, 255, .5); }
.ls .ls-opt:not(.is-active) .ls-flag { filter: grayscale(1); opacity: .55; transition: filter .15s, opacity .15s; }
/* aktif */
.ls .ls-opt.is-active { color: #fff; }
.ls .ls-opt.is-active .ls-code { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ls .ls-opt.is-active .ls-flag { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
/* disorot */
.ls .ls-opt:hover { color: #fff; }
.ls .ls-opt:hover .ls-flag { filter: none; opacity: 1; }
.ls .ls-opt:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Label nama bahasa saat disorot (dari data-label) — hanya perangkat dengan hover */
@media (hover: hover) {
    .ls .ls-opt[data-label]::after {
        content: attr(data-label);
        position: absolute; top: calc(100% + 8px); left: 50%;
        transform: translate(-50%, -4px);
        padding: 5px 9px; border-radius: 6px;
        background: #101828; color: #fff;
        font-size: 11.5px; font-weight: 600; letter-spacing: normal; text-transform: none; white-space: nowrap;
        box-shadow: 0 6px 16px rgba(16, 24, 40, .25);
        opacity: 0; visibility: hidden; pointer-events: none; z-index: 1200;
        transition: opacity .15s, transform .15s, visibility .15s;
    }
    .ls .ls-opt[data-label]:hover::after,
    .ls .ls-opt[data-label]:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

/* ── Dropdown: pemicu polos (tanpa bingkai / latar) ── */
.ls .ls-dd-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 2px;
    border: 0; border-radius: 4px; background: transparent;
    color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; transition: opacity .15s;
}
.ls .ls-dd-btn:hover, .ls .ls-dd-btn[aria-expanded="true"] { opacity: .8; }
.ls .ls-dd-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ls .ls-dd-btn .bi-globe2 { font-size: 14px; }
/* Panah sama dengan panah menu utama (.nva-caret / .nvc-caret): 11px, opacity .7, warna teks */
.ls .ls-caret { font-size: 11px; opacity: .7; color: inherit; transition: transform .2s ease; }
.ls .ls-dd-btn[aria-expanded="true"] .ls-caret { transform: rotate(180deg); }
.ls .ls-menu { min-width: 190px; padding: 6px; font-size: 13.5px; letter-spacing: normal; font-weight: 500; text-transform: none; z-index: 1100; }
.ls .ls-menu-item { display: flex !important; align-items: center; gap: 10px; border-radius: 8px; color: #101828; }
.ls .ls-menu-item.is-active { background: #eef4ff; color: #1d4ed8; font-weight: 600; }
.ls .ls-menu-label { flex: 1; }
.ls .ls-menu-code { font-size: 11px; font-weight: 700; color: #98a2b3; letter-spacing: .06em; }
.ls .ls-menu-item.is-active .ls-menu-code { color: #6b8ef0; }
.ls .ls-check { font-size: 15px; }

/* ── Di bar menu utama ── */
.ls-at-menu { margin-inline: 6px; }
li.ls-at-menu { list-style: none; display: flex; align-items: center; }

/* ── Laci menu HP ── */
.ls-at-mobile { color: inherit; }
.ls-at-mobile .ls-opt { height: 30px; padding: 0 8px; }
