.mobile-site-menu {
  display: none;
}

@media (max-width: 900px) {
  .mobile-site-menu {
    display: block;
    margin-inline-start: auto;
  }

  .site-header .nav-wrap > .mobile-site-menu + .site-nav {
    display: none;
  }

  .mobile-site-menu > summary {
    list-style: none;
  }

  .mobile-site-menu > summary::-webkit-details-marker {
    display: none;
  }

  html:has(.mobile-site-menu[open]),
  html:has(.mobile-site-menu[open]) body {
    overflow: hidden;
  }

  .mobile-site-menu[open] .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-site-menu[open] .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-site-menu[open] .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-site-menu[open] > .mobile-nav-links {
    position: absolute;
    z-index: 90;
    inset-inline: 0;
    top: calc(100% - 1px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #dfe8f1;
    border-top: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 22px 42px rgba(14, 64, 110, .18);
  }

  .mobile-nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #172033;
    text-decoration: none;
  }

  .mobile-nav-links a:not(.nav-cta):is(:hover, :focus-visible) {
    background: #edf6ff;
    color: #0d4f8f;
  }

  .mobile-nav-links a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
  }

  .mobile-nav-links .nav-cta {
    justify-content: center;
    margin-top: 4px;
    background: #f5a623;
    color: #172033 !important;
  }
}

@media (max-width: 560px) {
  .mobile-site-menu[open] > .mobile-nav-links {
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
  }
}
