/* MuADMINS - css/lang-switch.css (2026-10-31, session s20261031-i18n)
   The language switcher (services/I18n.php switcher / langBar): the footer row, bottom right, the current language
   with a small list of native names that opens upwards. Linked from includes/head.php on every public page (never
   in the admin panel). Colours come from the site tokens (--mx-*, css/mugps-pro.css) with dark fallbacks for the
   pages that do not load mugps-pro.css. */
.mu-langbar {
  display: flex; justify-content: flex-end; align-items: center;
  max-width: 1240px; width: 100%; box-sizing: border-box; margin: 0 auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  position: relative; z-index: 30;
}
.mu-lang { position: relative; display: inline-block; font: 500 13px/1.2 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; }
.mu-lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 8px 12px; box-sizing: border-box;
  border: 1px solid var(--mx-line, rgba(255, 255, 255, .22)); border-radius: 6px;
  color: var(--mx-ink, #e8eef8); background: var(--mx-solid, #0f1726);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .45);
  -webkit-user-select: none; user-select: none;
}
.mu-lang summary::-webkit-details-marker { display: none; }
.mu-lang summary:hover, .mu-lang[open] summary { border-color: var(--mx-accent, #7fb2ff); }
.mu-lang summary:focus-visible, .mu-lang a:focus-visible { outline: 2px solid var(--mx-accent, #7fb2ff); outline-offset: 2px; }
.mu-lang-list {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 1000;
  margin: 0; padding: 6px; list-style: none; min-width: 200px; max-height: min(70vh, 460px); overflow: auto;
  background: var(--mx-solid, #0f1726); border: 1px solid var(--mx-line, rgba(255, 255, 255, .16)); border-radius: 8px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5);
}
.mu-lang-list li { margin: 0; padding: 0; }
.mu-lang-list a { display: block; padding: 9px 11px; border-radius: 5px; color: var(--mx-ink, #e8eef8); text-decoration: none; white-space: nowrap; }
.mu-lang-list a:hover { background: rgba(127, 140, 160, .16); }
.mu-lang-list a[aria-current] { font-weight: 700; color: var(--mx-accent, #7fb2ff); }
/* the homepage puts the switcher in its own footer (index.php .site-footer) */
.footer-lang { display: flex; justify-content: flex-end; margin-top: 16px; }

/* (2026-11-02, owner) the top bar copy: a small globe button left of Sign in (includes/topnav.php); the list opens
   downwards. Pages with it hide the footer copies. */
.mu-lang-code { display: none; }
/* (2026-11-03, owner) the top button shows the language code, e.g. EN, and a small arrow instead of the globe */
.mu-lang-top summary { min-height: 34px; padding: 0 9px; gap: 5px; justify-content: center; box-shadow: none; background: transparent; }
.mu-lang-top summary > svg:first-child, .mu-lang-top .mu-lang-name { display: none; }
.mu-lang-top .mu-lang-code { display: inline; font: 700 12px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; }
.mu-lang-top summary > svg:last-child { width: 9px; height: 9px; transform: rotate(180deg); opacity: .8; }
.mu-lang-top[open] summary > svg:last-child { transform: none; }
.mu-lang-top .mu-lang-list { top: calc(100% + 8px); bottom: auto; right: 0; }
body:has(.mu-lang-top) .mu-langbar, body:has(.mu-lang-top) .footer-lang { display: none; }
