/* The regular navigation remains available until the drawer is ready. */
.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d1d1f;
  overflow: hidden;
}

.mobile-menu[open] {
  display: flex;
  justify-content: flex-end;
}

.mobile-menu::backdrop {
  background: transparent;
}

.mobile-menu-scrim {
  position: absolute;
  inset: 0;
  background: rgb(29 29 31 / 38%);
  opacity: 1;
}

.mobile-menu-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(380px, 88vw);
  height: 100%;
  padding: max(22px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate3d(0, 0, 0);
  contain: layout paint;
}

.mobile-menu[open] .mobile-menu-panel {
  will-change: transform;
}

.mobile-menu[open] .mobile-menu-scrim {
  will-change: opacity;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mobile-menu-top > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #6e6e73;
}

.menu-toggle,
.menu-close {
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid #e5e5e7;
  border-radius: 50%;
  background: #fff;
  color: #1d1d1f;
  cursor: pointer;
}

.menu-close {
  display: inline-flex;
}

.menu-toggle:hover,
.menu-close:hover {
  background: #f5f5f7;
}

.menu-toggle svg,
.menu-close svg {
  width: 22px;
  height: 22px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 40px 0;
  color: #1d1d1f;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e7;
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.mobile-menu nav a[aria-current="page"],
.mobile-menu nav a:hover {
  color: #0071e3;
}

.mobile-menu nav a span {
  font-size: 20px;
  font-weight: 400;
}

.mobile-menu-note {
  margin: auto 0 0;
  padding-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #6e6e73;
}

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

html.mobile-nav-open #people .minute {
  animation-play-state: paused !important;
}

@media (max-width: 800px) {
  html.has-mobile-menu {
    scrollbar-gutter: stable;
  }

  .has-mobile-menu .site-header {
    min-height: 84px;
    padding: 16px 6%;
  }

  .has-mobile-menu .site-header > nav,
  .has-mobile-menu .site-header > .navcta {
    display: none;
  }

  .has-mobile-menu .menu-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }
}

