.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  background: rgba(250, 248, 244, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.mobile-nav-shell[hidden] {
  display: none;
}

.mobile-nav-shell.is-open {
  pointer-events: auto;
}

.mobile-nav-scrim {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(28, 28, 26, 0.28);
  border: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(82vw, 320px);
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 18px) 20px 24px;
  flex-direction: column;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: 0 20px 54px -28px rgba(28, 28, 26, 0.42);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.mobile-nav-shell.is-open .mobile-nav-scrim {
  opacity: 1;
}

.mobile-nav-shell.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mobile-nav-close {
  position: relative;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mobile-nav-close span,
.mobile-nav-close span::after {
  position: absolute;
  top: 20px;
  left: 12px;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
}

.mobile-nav-close span::after {
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

.mobile-nav-panel a:not(.button) {
  display: flex;
  min-height: 54px;
  align-items: center;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  font-size: 18px;
  font-weight: 700;
}

.mobile-nav-panel .button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .nav-inner {
    min-height: 68px;
    align-items: center;
    flex-direction: row;
    padding: 8px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 681px) {
  .mobile-nav-shell {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-scrim,
  .mobile-nav-panel {
    transition: none;
  }
}
