/* ==========================================================================
   LANGUAGE SWITCH  — the  EN | ع | کو  pill in the navbar and mobile menu
   The orange sliding marker (.lang__marker) is moved by js/core/language.js
   ========================================================================== */

.lang {
  position: relative; display: inline-flex; padding: 3px;
  border-radius: 999px; border: 1px solid var(--line-on-dark);
  direction: ltr;                      /* keep the button order the same in every language */
}
.nav.is-light .lang { border-color: var(--line-on-light); }

.lang button {
  position: relative; z-index: 1;
  min-width: 38px; height: 30px; padding: 0 8px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; opacity: .75;
  transition: color .4s var(--ease), opacity .4s;
}
.lang button[lang="ar"],
.lang button[lang="ckb"] { font-family: var(--font-headings-arabic); font-size: .9rem; }
.lang button:hover       { opacity: 1; }
.lang button.is-active   { color: var(--navy); opacity: 1; }

/* Orange marker behind the active language */
.lang__marker {
  position: absolute; top: 3px; left: 0; width: 38px; height: 30px; border-radius: 999px;
  background: var(--orange);
  transition: transform .55s var(--ease), width .55s var(--ease);
}
