/* PUDDLE - language switcher (sidebar, bottom) */
.lang-group { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.lang-toggle { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; }
.lang-toggle .nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-chev { margin-left: auto; opacity: .7; transition: transform .18s ease; flex: none; }
.lang-group.open .lang-chev { transform: rotate(180deg); }
.lang-list { margin: 4px 0 6px 20px; padding-left: 4px; border-left: 1px solid var(--line, rgba(255,255,255,.14)); max-height: 440px; overflow-y: auto; overscroll-behavior: contain; }
.lang-list[hidden] { display: none; }
.lang-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; padding: 11px 12px 11px 16px; background: none; border: 0; color: inherit; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; border-radius: 8px; text-align: left; }
.lang-opt:hover { background: rgba(255,255,255,.05); }
.lang-radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); position: relative; transition: border-color .15s, background .15s; }
.lang-opt.on .lang-radio { border-color: #1f8bff; background: #1f8bff; box-shadow: inset 0 0 0 4px var(--surface, #12202c); }
html.nav-collapsed .lang-toggle .nav-label, html.nav-collapsed .lang-chev, html.nav-collapsed .lang-list { display: none; }
/* right-to-left (Arabic) */
html.is-rtl .lang-toggle, html.is-rtl .lang-opt { text-align: right; }
html.is-rtl .lang-chev { margin-left: 0; margin-right: auto; }
html.is-rtl .lang-list { margin: 4px 20px 6px 0; padding-left: 0; padding-right: 4px; border-left: 0; border-right: 1px solid var(--line, rgba(255,255,255,.14)); }
html.is-rtl .lang-opt { padding: 11px 16px 11px 12px; }
