/* Language switcher EN | کوردی | عربي (MT-020 polish of the MT-019 baseline). Logical properties only, so RTL pages mirror with no extra rules.
   Active = a thin, recessed brushed-brass groove under the label (never a gold block, never type colour). Inactive = #E4E4E4 on charcoal (>= 11:1), hover/focus = white.
   Touch target: 32px high in the desktop nav / footer (pointer devices), 44px in the drawer. Brass line is <= 2px (BRAND-GUIDELINES s8: thin recessed accent). */
.langs{display:inline-flex;align-items:center;gap:0;margin-inline:clamp(8px,1.4vw,22px);font-size:.82rem;font-weight:600;line-height:1}
.langs a{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-inline-size:36px;padding:0 .7em;color:#E4E4E4;letter-spacing:.06em;white-space:nowrap;transition:color .25s}
/* hairline separators between languages (inline-start edge of every item but the first) */
.langs a+a::before{content:"";position:absolute;inset-inline-start:0;inset-block:11px;width:1px;background:rgba(255,255,255,.28)}
.langs a[lang="ckb"],.langs a[lang="ar"]{font-family:'Josefin Sans',var(--font-ar),'Geeza Pro',Tahoma,sans-serif;letter-spacing:0;font-size:1rem;font-weight:600;padding-block-end:.1em}
.langs a:hover,.langs a:focus-visible{color:#fff}
.langs a:focus-visible{outline:3px solid #fff;outline-offset:-3px;box-shadow:none}
.langs a[aria-current="true"]{color:#fff;font-weight:700}
.langs a[aria-current="true"]::after{content:"";position:absolute;inset-inline:.7em;inset-block-end:5px;height:2px;border-radius:1px;
  background:linear-gradient(90deg,#8A6A26,#E6C879 48%,#A8832F);
  box-shadow:0 -1px 0 rgba(0,0,0,.6),0 1px 0 rgba(255,255,255,.14)} /* inset groove: dark lip above, faint highlight below */
.langs a[aria-current="true"]:hover{cursor:default}

/* drawer: three equal 44px+ targets, full width, hairline frame */
.langs--drawer{display:flex;width:100%;margin:0 0 18px;border:1px solid rgba(255,255,255,.28)}
.langs--drawer a{flex:1 1 0;min-height:48px;min-inline-size:44px;padding:0 .4em;font-size:1rem}
.langs--drawer a[lang="ckb"],.langs--drawer a[lang="ar"]{font-size:1.1rem}
.langs--drawer a+a::before{inset-block:12px;background:rgba(255,255,255,.28)}
.langs--drawer a[aria-current="true"]::after{inset-inline:22%;inset-block-end:8px}

/* footer base row: sits at the inline-end, quiet */
.langs--foot{margin-inline:0}
.langs--foot a{min-height:44px;color:#E4E4E4}
.foot__base{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
@media (max-width:480px){
  .foot__base{flex-direction:column;align-items:flex-start;gap:6px}
  .langs--foot{align-self:stretch;border-block-start:1px solid rgba(255,255,255,.18)}
  .langs--foot a{flex:1 1 0}
}
/* the nav switcher hides below 1000px (the drawer carries it) so it can never crowd the logo/menu button at 390px */
@media (max-width:1000px){.langs--nav{display:none}}
@media (prefers-reduced-motion:reduce){.langs a{transition:none}}

/* MT-020 R3: on English pages the Arabic-script switcher labels do not request Vazirmatn during first paint. Stack = system Arabic face until html.ar-font
   (added by lang-switch.js after load + idle) swaps in the same Vazirmatn the ku/ar pages use. ku/ar pages are untouched (their stack still lists Vazirmatn). */
html[lang="en"] .langs a[lang="ckb"],html[lang="en"] .langs a[lang="ar"]{font-family:'Josefin Sans','Geeza Pro','Segoe UI',Tahoma,sans-serif}
html[lang="en"].ar-font .langs a[lang="ckb"],html[lang="en"].ar-font .langs a[lang="ar"]{font-family:'Josefin Sans',var(--font-ar),'Geeza Pro','Segoe UI',Tahoma,sans-serif}
