/*
 * Mobile menu as a left sidebar.
 * Same look as the original panel (colours, type, spacing): only its position and the slide-in change.
 * Loaded after main.css, which stays exactly as designed.
 */
html.menu-open,
html.menu-open body {
  overflow: hidden;
}
.nav-mobile-backdrop {
  display: none;
}
@media (max-width: 760px) {
  .nav-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: oklch(0 0 0 / 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-mobile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-mobile {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    z-index: 1001;
    width: min(86vw, 22rem);
    max-height: none;
    height: 100vh;
    height: 100dvh;
    padding: 1rem 1.25rem 2rem;
    border-radius: 0 1.5rem 1.5rem 0;
    box-shadow: 30px 0 60px oklch(0 0 0 / 0.45);
    animation: none;
    transform: translateX(-102%);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
  }
  .nav-mobile.is-open {
    transform: none;
  }
  .nav-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid oklch(1 0 0 / 0.12);
  }
  .nav-mobile-top .brand-mark img {
    display: block;
    height: 2rem;
    width: auto;
  }
  .nav-mobile-top .nav-burger {
    display: grid;
  }
}
@media (min-width: 761px) {
  .nav-mobile,
  .nav-mobile-backdrop {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-mobile,
  .nav-mobile-backdrop {
    transition: none;
  }
}
