/* Keep native links and the existing menu controller; only mobile presentation changes. */
@media (max-width: 900px) {
  .site-header .menu-toggle {
    align-items: center;
    gap: 4.5px;
  }
  .site-header .menu-toggle > span {
    flex: 0 0 1.5px;
    height: 1.5px;
    border-radius: 2px;
  }
  .site-header .mobile-menu {
    top: calc(100% + 12px);
    padding: 10px;
    border: 1px solid #ffffff33;
    border-radius: 28px;
    background: #121412ed;
    color: #edf1e6;
    box-shadow: 0 10px 30px #0002;
    backdrop-filter: blur(15px);
    /* Leave room for the fixed header and consultation dock, including iOS safe area. */
    max-height: calc(100dvh - 180px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    scroll-padding-block: 10px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #656e60 transparent;
  }
  .site-header .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  body .mobile-menu .action-link.action-link--menu {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 7px 8px 7px 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #edf1e6;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    transition: background-color 180ms ease, color 180ms ease;
  }
  body .mobile-menu .action-link.action-link--menu::after { content: none; }
  body .mobile-menu .action-link.action-link--menu[aria-current="location"] {
    background: #edf1e6;
    color: #242923;
  }
  .mobile-menu-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f4f4f0;
    color: #242923;
    box-shadow: 0 2px 5px #15231512;
    visibility: hidden;
  }
  .mobile-menu-arrow svg { width: 18px; height: 18px; }
  [aria-current="location"] > .mobile-menu-arrow { visibility: visible; }
  .mobile-menu:not([hidden]) > a {
    animation: mobile-menu-fade-up 400ms cubic-bezier(.22,.7,.25,1) both;
  }
  .mobile-menu > a:nth-child(2) { animation-delay: 60ms; }
  .mobile-menu > a:nth-child(3) { animation-delay: 120ms; }
  .mobile-menu > a:nth-child(4) { animation-delay: 180ms; }
  .mobile-menu > a:nth-child(5) { animation-delay: 240ms; }
  .mobile-menu > a:nth-child(6) { animation-delay: 300ms; }
  .mobile-menu > a:nth-child(7) { animation-delay: 360ms; }
  @media (hover: hover) {
    body .mobile-menu .action-link.action-link--menu:not([aria-current="location"]):hover {
      background: #3a4235;
    }
  }
}
@media (max-width: 370px) {
  body .mobile-menu .action-link.action-link--menu { padding-left: 16px; font-size: 14px; }
}
@keyframes mobile-menu-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu:not([hidden]) > a { animation: none; }
  body .mobile-menu .action-link.action-link--menu { transition: none; }
}
