/* Language dropdown (see lang.js). Uses a.css tokens. */
.lm { position: relative; display: inline-block; }
.lm-btn {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px;
  background: transparent; color: var(--paper, #f3f0ea); border: 1px solid var(--hair, rgba(243,240,234,.14)); border-radius: 2px;
  font: 600 14px/1 var(--text, 'Space Grotesk', sans-serif); letter-spacing: .1em; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.lm-btn:hover, .lm.is-open .lm-btn { border-color: rgba(243,240,234,.42); background: rgba(243,240,234,.05); }
.lm-btn:focus-visible { outline: 2px solid var(--red, #ff2d20); outline-offset: 2px; }
.lm-ico, .lm-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lm-chev { width: 14px; height: 14px; opacity: .7; transition: transform .25s var(--ease, ease); }
.lm.is-open .lm-chev { transform: rotate(180deg); }
.lm-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 176px; margin: 0; padding: 6px; list-style: none;
  background: #0b0c15; border: 1px solid rgba(243,240,234,.16); box-shadow: 0 18px 44px rgba(0,0,0,.5);
  transform-origin: 100% 0; animation: lmIn .18s var(--ease, ease);
}
.lm-up .lm-list { top: auto; bottom: calc(100% + 8px); transform-origin: 100% 100%; }
.lm-list[hidden] { display: none; }
.lm-list button {
  appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 14px; min-height: 44px; background: transparent; border: 0; color: var(--dim, rgba(243,240,234,.68));
  font: 500 17px/1 var(--text, 'Space Grotesk', sans-serif); text-align: left; cursor: pointer;
}
.lm-list button:hover, .lm-list button:focus-visible { background: rgba(243,240,234,.07); color: var(--paper, #f3f0ea); outline: none; }
.lm-list button[aria-checked="true"] { color: var(--paper, #f3f0ea); }
.lm-list i { width: 8px; height: 8px; background: var(--red, #ff2d20); flex: none; }
@keyframes lmIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.lm-up .lm-list { animation-name: lmUp; }
@keyframes lmUp { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lm-list, .lm-chev { animation: none; transition: none; } }
