@media (max-width: 1000px) {
  .global-site-header.has-mobile-menu {
    --menu-surface: #fffcf7;
    --menu-edge: #e7dbcf;
    --menu-muted: #685e54;
    z-index: 50;
  }
  :root[data-theme=dark] .global-site-header.has-mobile-menu {
    --menu-surface: #2b211c;
    --menu-edge: #59473b;
    --menu-muted: #dccabe;
  }
  .has-mobile-menu .global-site-header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: calc(5px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 5px max(16px, env(safe-area-inset-left, 0px));
  }
  .has-mobile-menu .global-site-brand { min-width: 0; }
  .global-site-header.has-mobile-menu .global-site-brand span { display: inline; }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    flex: none;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
  }
  .mobile-menu-icon { position: relative; width: 17px; height: 12px; }
  .mobile-menu-icon::before, .mobile-menu-icon::after {
    content: "";
    position: absolute;
    left: 0; top: 2px;
    width: 17px; height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .mobile-menu-icon::after { top: 8px; }
  [aria-expanded=true] > .mobile-menu-icon::before { top: 5px; transform: rotate(45deg); }
  [aria-expanded=true] > .mobile-menu-icon::after { top: 5px; transform: rotate(-45deg); }
  #mobile-menu-panel[hidden] { display: none; }
  #mobile-menu-panel {
    position: absolute;
    inset: 100% max(8px,env(safe-area-inset-right,0px)) auto auto;
    width: min(340px, calc(100% - 16px));
    max-height: calc(100vh - var(--menu-top, 56px) - 8px);
    max-height: calc(100dvh - var(--menu-top, 56px) - 8px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 16px max(12px,env(safe-area-inset-bottom,0px));
    background: var(--menu-surface);
    border: 1px solid var(--menu-edge);
    border-radius: 15px;
    box-shadow: 0 12px 32px #291c1629;
  }
  #mobile-menu-panel .global-site-nav, #mobile-menu-panel .global-site-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%; height: auto;
    margin: 0; padding: 0;
    overflow: visible;
    mask-image: none; -webkit-mask-image: none;
  }
  #mobile-menu-panel .global-site-nav a {
    display: flex;
    align-items: center;
    padding: 0 4px;
    min-height: 44px;
    font-size: 15px;
    color: inherit !important;
  }
  #mobile-menu-panel .global-site-actions {
    border-top: 1px solid var(--menu-edge);
    padding-top: 7px;
    margin-top: 4px;
  }
  #mobile-menu-panel label {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; height: auto; min-height: 44px;
    padding: 0 4px;
    font: inherit;
    background: none; border: 0; border-radius: 0;
    color: var(--menu-muted);
  }
  #mobile-menu-panel label::after { content: none; }
  #mobile-menu-panel label .sr-only {
    position: static; width: auto; height: auto; margin: 0; padding: 0;
    clip: auto; clip-path: none; overflow: visible;
    font-size: 14px;
  }
  #mobile-menu-panel label select {
    position: static; transform: none; opacity: 1;
    width: auto; max-width: 65%; min-width: 0; height: 44px;
    margin: 0; padding: 0 3px; border: 0; background: transparent;
    color: inherit; appearance: auto; -webkit-appearance: menulist;
    font-family: inherit; font-size: 16px;
  }
  #mobile-menu-panel .global-site-cta {
    min-height: 44px; margin: 6px 0 0;
    font-size: 14px; justify-content: center;
  }
  .mobile-menu-toggle:focus-visible, #mobile-menu-panel :focus-visible {
    outline: 2px solid #d4522b; outline-offset: 1px;
  }
}

@media (max-width: 700px) {
  .hero.wrap[aria-labelledby="hero-title"] { padding-top: 32px; }
  .hero-copy .hero-buttons { flex-wrap: wrap; }
}
