/* English / Arabic switch: a pill with a sliding white thumb (home page and sign-in pages). */
.lswitch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 3px; border-radius: 999px;
  background: rgba(10, 10, 10, .06); box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .05); isolation: isolate; flex: none; }
.lswitch__thumb { position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(10, 10, 10, .14), 0 4px 12px -6px rgba(10, 10, 10, .28);
  transition: transform 340ms cubic-bezier(.22, 1, .36, 1), box-shadow 200ms ease; }
.lswitch[data-active="ar"] .lswitch__thumb { transform: translateX(100%); }
.lswitch a { position: relative; min-width: 46px; height: 32px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px;
  font: 600 13px/1 "Host Grotesk", system-ui, sans-serif; letter-spacing: .04em; color: #6b6b67; text-decoration: none;
  transition: color 200ms ease; -webkit-tap-highlight-color: transparent; }
.lswitch a.lswitch__ar { font: 600 14px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: 0; padding-bottom: 2px; }
/* The pill stays 38px tall; each option's tap area reaches 44px (touch target guidance) without changing the look. */
.lswitch a::after { content: ""; position: absolute; inset: -6px 0; }
.lswitch a[aria-current="true"] { color: #0a0a0a; }
.lswitch a:hover:not([aria-current="true"]) { color: #0a0a0a; }
.lswitch a:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.lswitch.is-pending .lswitch__thumb { box-shadow: 0 1px 2px rgba(10, 10, 10, .14), 0 0 0 3px rgba(10, 10, 10, .08); }
.lswitch .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .lswitch__thumb { transition: none; } }
/* Home page header: one switch in the actions (desktop), one beside the menu button (phones). */
.lswitch--phone { display: none; }
@media (max-width: 1023px) { .lswitch--phone { display: inline-grid; margin-inline-start: auto; } .nav.is-open .nav__actions .lswitch { display: none; } }
