.mobile-menu-toggle { display: none; }
#mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(340px, 88vw);
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0 1rem 1rem 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 12px 0 48px #103c2f30;
  overflow-y: auto;
}
#mobile-menu::backdrop { background: #071f19a6; }
.mobile-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; font-size: 1.25rem; }
.mobile-menu-close, .mobile-menu-toggle {
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cedfd4;
  border-radius: .65rem;
  background: var(--mist);
  color: var(--forest);
  cursor: pointer;
}
.mobile-menu-close { display: inline-flex; font: 400 1.8rem/1 system-ui, sans-serif; }
.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.mobile-menu-toggle span { position: relative; }
.mobile-menu-toggle span::before, .mobile-menu-toggle span::after { content: ""; position: absolute; left: 0; }
.mobile-menu-toggle span::before { top: -6px; }
.mobile-menu-toggle span::after { top: 6px; }
.mobile-menu-open { overflow: hidden; }
#mobile-menu nav { display: flex; flex-direction: column; gap: .35rem; }
#mobile-menu nav a { display: flex; align-items: center; min-height: 48px; padding: .65rem .8rem; border-radius: .65rem; text-decoration: none; font-weight: 650; }
#mobile-menu nav a:hover { background: var(--mist); }
#mobile-menu nav a[aria-current="page"] { color: var(--forest); background: #def5e9; }
#mobile-menu .site-languages { justify-content: flex-start; flex-wrap: wrap; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid #dce8e0; }
#mobile-menu .site-languages a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 850px) {
  header .nav { flex-wrap: nowrap; justify-content: flex-start; gap: .75rem; padding-block: .7rem; }
  header .nav > .brand { min-width: 0; }
  header .nav .brand-logo { max-width: min(210px, 48vw); }
  header .nav .brand-suffix { font-size: clamp(.85rem, 3vw, 1.25rem); }
  .mobile-menu-toggle:not([hidden]) { display: inline-flex; }
}
