/* The language switch ({{LANG_SWITCH}}): a small row of buttons, each language named in itself, the current one
   marked. Owner: 3-01. Logical properties only, so it sits right in a right-to-left page too. Both themes here. */
.lang-sw { display: inline-flex; align-items: center; gap: 2px; padding: 2px; margin: 0;
  border: 1px solid var(--g-edge, #DDE1E3); border-radius: 999px; background: var(--g-pill, #F1F2F3); }
.lang-sw button { font: inherit; font-size: 12px; line-height: 1; padding-block: 6px; padding-inline: 10px;
  border: 0; border-radius: 999px; background: transparent; color: var(--g-cap, #5C6166); cursor: pointer; }
.lang-sw button:hover { background: var(--g-pill-hover, #E8EAEB); color: var(--ink, #0A0A0B); }
.lang-sw button:focus-visible { outline: 2px solid var(--ink, #0A0A0B); outline-offset: 1px; }
.lang-sw button[aria-current="true"] { background: var(--g-solid, #FFFFFF); color: var(--ink, #0A0A0B); font-weight: 600; }

/* the signed-out shells: beside the theme switch, at the top */
.login-body > .lang-sw { position: fixed; inset-block-start: 22px; inset-inline-end: 72px; z-index: 5; }
/* the Account page's Language row (3-16): every width, buttons big enough for a finger */
.ac-lang button { font-size: 14px; min-block-size: 36px; padding-inline: 16px; }
/* the app: in the rail's foot */
.rail-foot .lang-sw { flex-direction: column; border-radius: 14px; }
.rail-foot .lang-sw button { padding-inline: 6px; border-radius: 10px; font-size: 11px; }

:root[data-theme="dark"] .lang-sw { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .lang-sw button { color: #8B9096; }
:root[data-theme="dark"] .lang-sw button:hover { background: rgba(255,255,255,.10); color: #F3F4F5; }
:root[data-theme="dark"] .lang-sw button:focus-visible { outline-color: #F3F4F5; }
:root[data-theme="dark"] .lang-sw button[aria-current="true"] { background: #24272A; color: #F3F4F5; }
