/* ---------------------------------------------------------------------------
   Language switcher — shared by the English, Arabic and French builds.
   Kept in its own file so the per-page <style> blocks stay untouched.
--------------------------------------------------------------------------- */
.langswitch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: 10px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.16);     /* the bar is transparent over the hero film */
  border-radius: 999px;
  font-family: var(--mono, inherit);
  line-height: 1;
  white-space: nowrap;
}
.langswitch a {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: background 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}
.langswitch a:hover { opacity: 1; }
.langswitch a[aria-current="true"] {
  background: #FFFFFF;
  color: var(--orange, #F05323);
  opacity: 1;
}
/* once the bar sticks it sits on white, so the chrome has to flip */
.navbar.is-stuck .langswitch { border-color: rgba(20, 22, 26, 0.18); background: transparent; }
.navbar.is-stuck .langswitch a[aria-current="true"] { background: var(--orange, #F05323); color: #FFFFFF; }

/* the pill hides its links on narrow screens: the switcher moves into the
   slide-down panel, where it sits on its own line */
@media (max-width: 1200px) {
  .navpill .langswitch { display: none; }
}
.menu-panel .langswitch {
  /* the panel drops over the orange bar, so the chrome matches the pill */
  margin: 14px 0 0;
  width: fit-content;
  border-color: rgba(255, 255, 255, 0.35);
  align-self: flex-start;
}
.menu-panel .langswitch a { color: #FFFFFF; }
.menu-panel .langswitch a[aria-current="true"] { background: #FFFFFF; color: var(--orange, #F05323); }
