/* Language switcher — drops into the existing dark nav. */
.lang-switcher{
  position:relative;
  display:inline-flex;
  align-items:center;
  margin-right:14px;
  font-family:'IBM Plex Mono', ui-monospace, monospace;
}
.lang-switcher__btn{
  display:inline-flex;align-items:center;gap:6px;
  height:32px;padding:0 10px;
  background:transparent;color:#c8d0e8;
  border:1px solid #242a45;border-radius:16px;
  font:inherit;font-size:12px;font-weight:500;letter-spacing:0.04em;
  cursor:pointer;transition:all .18s ease;
}
.lang-switcher__btn:hover{color:#e0e8ff;border-color:#3d4468;background:rgba(79,110,247,0.06)}
.lang-switcher__btn[aria-expanded="true"]{color:#e0e8ff;border-color:#4f6ef7;background:rgba(79,110,247,0.1)}
.lang-switcher__current{font-weight:600}
.lang-switcher__menu{
  position:absolute;top:calc(100% + 6px);right:0;z-index:200;
  list-style:none;margin:0;padding:6px;
  min-width:120px;
  background:rgba(13,16,24,0.95);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:1px solid #242a45;border-radius:10px;
  box-shadow:0 12px 32px rgba(0,0,0,0.45);
  opacity:0;transform:translateY(-4px);pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
}
.lang-switcher--open .lang-switcher__menu{opacity:1;transform:translateY(0);pointer-events:auto}
.lang-switcher__item{
  display:flex;align-items:center;justify-content:space-between;
  padding:8px 12px;border-radius:6px;
  color:#c8d0e8;text-decoration:none;
  font-size:12px;font-weight:500;letter-spacing:0.04em;
  transition:background .15s ease,color .15s ease;
}
.lang-switcher__item:hover{background:rgba(79,110,247,0.12);color:#e0e8ff}
.lang-switcher__item--active{color:#4f6ef7;background:rgba(79,110,247,0.08)}
.lang-switcher__item--active::after{content:"\2713";margin-left:12px;font-weight:700}

@media (max-width: 720px){
  .lang-switcher{margin-right:8px}
  .lang-switcher__btn{height:30px;padding:0 8px;font-size:11px}
}

/* ─────────────────────────────────────────────────────────────
   Mobile nav menu — shared across all site pages.
   The base templates ship a hamburger button + an empty
   `<div class="mobile-menu" style="display:none">` placeholder.
   This stylesheet (a) hides the placeholder cleanly on desktop,
   (b) renders a proper slide-down panel when JS adds `.show`
   on mobile, and (c) overrides the inline `display:none` so the
   class toggle actually works.
   ───────────────────────────────────────────────────────────── */
.mobile-menu{
  display:none !important;
  position:fixed;top:64px;left:0;right:0;z-index:99;
  flex-direction:column;
  padding:18px 24px 28px;
  background:rgba(7,9,15,0.96);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid #242a45;
  box-shadow:0 18px 40px rgba(0,0,0,0.5);
  font-family:'IBM Plex Mono', ui-monospace, monospace;
  max-height:calc(100vh - 64px);
  overflow-y:auto;
}
@media (max-width: 768px){
  .mobile-menu.show{display:flex !important}
}
.mobile-menu a,
.mobile-menu .mobile-menu__link{
  display:block;
  padding:14px 4px;
  font-size:15px;font-weight:500;letter-spacing:0.02em;
  color:#c8d0e8;text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,0.06);
  transition:color .15s ease;
}
.mobile-menu a:hover,
.mobile-menu .mobile-menu__link:hover,
.mobile-menu a.active{color:#ffffff}
.mobile-menu .nav-cta,
.mobile-menu .mobile-menu__cta{
  margin:18px 0 0;
  width:100%;
  height:44px;
  border:none;border-radius:22px;
  background:#4f6ef7;color:#ffffff;
  font-family:'IBM Plex Mono', ui-monospace, monospace;
  font-size:14px;font-weight:500;
  cursor:pointer;
  transition:background .15s ease;
}
.mobile-menu .nav-cta:hover,
.mobile-menu .mobile-menu__cta:hover{background:#5d7af8}
