/* UAPP — language picker, every page (home canvas, mobile, interior, blog).

   A native <details>: it opens and closes by mouse, touch and keyboard with no
   script; site.js/page.js only close it on an outside click or Esc. Logical
   properties, so it mirrors on Arabic pages by itself. The summary shows the
   CURRENT language; the menu holds the other one. */
.lang{position:relative;display:inline-block;color:inherit}
.lang>summary{
  list-style:none;display:flex;align-items:center;gap:7px;cursor:pointer;
  padding:8px 14px;border-radius:100px;color:inherit;font:inherit;line-height:1.3;
  transition:background-color .2s;user-select:none;-webkit-user-select:none;
}
.lang>summary::-webkit-details-marker{display:none}
/* .08, not .12: on the interior header's teal corner .12 took white text to 4.3:1 */
.lang>summary:hover,.lang[open]>summary{background:rgba(255,255,255,.08)}
.lang>summary:focus-visible{outline:2px solid #28bebc;outline-offset:2px}
/* teal ring on the teal header gradient was 2.3:1; white clears 5:1 there */
.hdr nav .lang>summary:focus-visible{outline-color:#fff}
/* the canvas zoom (0.99) rounds a 2px ring down to 1 device pixel */
#page .lang>summary:focus-visible{outline-width:3px}
/* interior headers: match `.hdr nav a` (16px, its padding and leading) so the
   picker sits on the same centre line as Contact instead of 3px above it */
.hdr nav .lang>summary{font-size:16px;line-height:inherit;padding:9px 15px}
.lang__code{font-weight:600;letter-spacing:.02em}
.lang__chev,#mobile .lang__chev{display:block;width:12px;height:12px;flex:none;transition:transform .2s}
.lang[open] .lang__chev{transform:rotate(180deg)}

.lang .lang__menu{
  position:absolute;top:calc(100% + 8px);inset-inline-end:0;z-index:200;
  min-width:100%;padding:6px;background:#fff;border-radius:14px;
  box-shadow:0 12px 32px rgba(1,14,13,.28),0 0 0 1px rgba(1,14,13,.06);
}
/* (0,2,1) beats the interior header's `.hdr nav a` pill style; the #mobile
   twin beats app.css's white header links (EN was white on white). */
.lang .lang__menu a,#mobile .lang .lang__menu a{
  display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:9px;
  color:#12091e;background:none;text-decoration:none;font-size:15px;white-space:nowrap;min-height:44px;
}
.lang .lang__menu a:hover,.lang .lang__menu a:focus-visible,
#mobile .lang .lang__menu a:hover,#mobile .lang .lang__menu a:focus-visible{background:rgba(40,190,188,.14);color:#12091e;outline:none}
/* the tint alone is 1.1:1 on white; keyboard focus needs a real ring */
.lang .lang__menu a:focus-visible,#mobile .lang .lang__menu a:focus-visible{outline:2px solid #0b7f79;outline-offset:-2px}

/* Flags keep their own proportions (US 19:10, UAE 2:1) at one height. The
   #mobile twin outranks app.css's `#mobile img{height:auto;display:block}`,
   which otherwise blew the flag up to the SVG's default 300x150. */
.lang__flag,#mobile .lang__flag{
  display:inline-block;height:14px;width:auto;flex:none;border-radius:2px;
  vertical-align:-2px;box-shadow:0 0 0 1px rgba(255,255,255,.28);
}
.lang__menu .lang__flag{box-shadow:0 0 0 1px rgba(1,14,13,.14)}
/* footer / menu-panel links: flag, then the language's name */
[data-lang-switch] > .lang__flag + .lang__name{margin-inline-start:7px}

/* phones: the picker sits in the top bar, pushed to the end beside the burger */
#mobile .hdr .lang{margin-inline-start:auto;font-size:15px;color:#fff}
#mobile .hdr .lang + .burger{margin-inline-start:0}
#mobile .hdr .lang>summary{padding:8px 12px;border:1px solid rgba(255,255,255,.22);border-radius:12px;min-height:44px}
