/* Hianma commercial page — canonical phone menu drawer.
   Scope: menu surface and section links on phones only.
   Important: on iOS Safari the header uses backdrop-filter; a fixed descendant can
   then be laid out against the header instead of the viewport. Keep the drawer
   absolute to the sticky header so it expands normally below it. */

@media (max-width: 760px) {
  body .hm-marketing .hm-header {
    overflow: visible !important;
    contain: none !important;
    clip: auto !important;
    clip-path: none !important;
  }

  body .hm-marketing .hm-nav {
    position: absolute !important;
    z-index: 999 !important;
    top: calc(100% + 8px) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(100dvh - var(--commercial-fixed-header-height, 118px) - 28px) !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid #dce5f0 !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .995) !important;
    box-shadow: 0 24px 70px rgba(15, 30, 64, .2), 0 4px 16px rgba(15, 30, 64, .08) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    white-space: normal !important;
    transform: none !important;
  }

  body .hm-marketing .hm-nav:not(.is-open) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body .hm-marketing .hm-nav.is-open {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 4px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Mobile menu intentionally exposes only the six primary commercial destinations:
     Solution, Roles, Features, Setup, FAQ and Contact. */
  body .hm-marketing .hm-nav.is-open > a {
    display: none !important;
  }

  body .hm-marketing .hm-nav.is-open > a:nth-child(1),
  body .hm-marketing .hm-nav.is-open > a:nth-child(3),
  body .hm-marketing .hm-nav.is-open > a:nth-child(8),
  body .hm-marketing .hm-nav.is-open > a:nth-child(10),
  body .hm-marketing .hm-nav.is-open > a:nth-child(11),
  body .hm-marketing .hm-nav.is-open > a:nth-child(13) {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #42536b !important;
    font-size: .92rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
    text-decoration: none !important;
  }

  body .hm-marketing .hm-nav.is-open > a + a {
    border-top: 1px solid #edf1f6 !important;
  }

  body .hm-marketing .hm-nav.is-open > a:hover,
  body .hm-marketing .hm-nav.is-open > a:focus-visible {
    color: #155bd7 !important;
    background: #f3f7ff !important;
    outline: none !important;
  }

  body .hm-marketing .hm-nav.is-open > a.is-active,
  body .hm-marketing .hm-nav.is-open > a[aria-current="location"] {
    color: #155bd7 !important;
    background: #edf4ff !important;
  }

  body .hm-marketing .hm-nav.is-open > a::after {
    display: none !important;
    content: none !important;
  }
}
