/* NEREMAI — language switch. Shown on every page of both language builds.
 * "العربية" and "English" are language names in their own script and are never
 * translated. Logical offsets keep the pill mirrored under dir="rtl". */
.lang-switch {
  position: fixed;
  z-index: 45;
  inset-inline-end: 1.25rem;
  top: 5.5rem;
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .22rem;
  border: 1px solid rgba(1, 66, 86, .22);
  border-radius: 99px;
  background: rgba(251, 248, 241, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(1, 66, 86, .14);
  font: 500 .78rem/1 "Instrument Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  border-radius: 99px;
  padding: .42rem .78rem;
  background: transparent;
  color: #014256;
  font: inherit;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease;
}

.lang-switch__btn:hover { background: rgba(1, 66, 86, .08); }

.lang-switch__btn[aria-current="true"] {
  background: #014256;
  color: #fbf8f1;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid #014256;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .lang-switch {
    inset-inline-end: 1rem;
    top: 4.125rem;
    padding: .18rem;
  }
  .lang-switch__btn { padding: .38rem .62rem; font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch__btn { transition: none; }
}
