/* AEX staging 1.0.3 — mobile navigation; desktop navigation is unchanged. */
body.aex-glass .site-header .mobile-menu-toggle { display: none; }
html.aex-mobile-menu-open { overflow: hidden; overscroll-behavior: none; }
body.aex-glass dialog.aex-mobile-menu:not([open]) { display: none; }

@media (max-width: 760px) {
  body.aex-glass .site-header {
    height: 76px;
    min-height: 76px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  body.aex-glass .site-header .brand { display: block; flex: 0 1 auto; min-width: 0; }
  body.aex-glass .site-header .brand img { display: block; width: 152px; height: auto; max-width: 100%; }
  body.aex-glass .site-header .main-nav { display: none; }
  body.aex-glass .site-header .header-actions { flex: 0 0 auto; gap: 6px; margin-left: auto; }
  body.aex-glass .site-header .language {
    display: flex;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    gap: 5px;
    padding: 0;
    font-size: 10px;
  }
  body.aex-glass .site-header .language > svg { display: none; }
  body.aex-glass .site-header .profile-button,
  body.aex-glass .site-header .mobile-menu-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0;
    padding: 0 !important;
    border: 1px solid #e1e8f0;
    border-radius: 50%;
    color: var(--ink);
    background: #eaf0f6;
    box-shadow: none;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
  }
  body.aex-glass .site-header .mobile-menu-toggle { background: var(--brand); color: #fff; border-color: var(--brand); }
  body.aex-glass .site-header .mobile-menu-toggle svg,
  body.aex-glass .aex-mobile-menu svg {
    display: block;
    flex: none;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.aex-glass dialog.aex-mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, calc(100% - 24px));
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 20px;
    border: 0;
    border-radius: 26px 0 0 26px;
    background: #f4f6f9;
    color: var(--ink);
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: -18px 0 70px #0c234030;
  }
  body.aex-glass dialog.aex-mobile-menu[open] { display: block; animation: aex-mobile-menu-in 180ms ease-out; }
  body.aex-glass dialog.aex-mobile-menu::backdrop { background: #081a365e; backdrop-filter: blur(6px); }
  body.aex-glass .aex-mobile-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
  body.aex-glass .aex-mobile-menu-heading h2 { margin: 0; padding: 0; font: 700 26px/1.2 var(--font); letter-spacing: -.6px; color: var(--ink); }
  body.aex-glass .aex-mobile-menu-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe3ec;
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    box-shadow: none;
    appearance: none;
  }
  body.aex-glass .aex-mobile-menu-nav { display: grid; gap: 8px; width: 100%; }
  body.aex-glass .aex-mobile-menu-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    margin: 0;
    padding: 17px 16px !important;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    text-align: left;
    font-family: var(--font);
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    box-shadow: none;
    appearance: none;
  }
  body.aex-glass .aex-mobile-menu-nav .nav-item:hover { border-color: #c8d4e3; background: #eaf0f6; color: var(--ink); }
  body.aex-glass .aex-mobile-menu-nav .nav-item.is-active { background: var(--brand); color: #fff; }
  body.aex-glass .aex-mobile-menu-nav .aex-menu-arrow { margin-left: auto; width: 18px; height: 18px; }
  body.aex-glass .aex-mobile-menu :focus-visible,
  body.aex-glass .site-header :is(.mobile-menu-toggle, .profile-button, .language):focus-visible {
    outline: 3px solid #ed8b43;
    outline-offset: 3px;
  }
}

@media (max-width: 360px) {
  body.aex-glass .site-header { gap: 6px; }
  body.aex-glass .site-header .brand img { width: 132px; }
  body.aex-glass .site-header .header-actions { gap: 4px; }
  body.aex-glass dialog.aex-mobile-menu { width: calc(100% - 16px); padding-inline: 16px; }
}

@keyframes aex-mobile-menu-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  body.aex-glass dialog.aex-mobile-menu[open] { animation: none; }
}
@media print {
  body.aex-glass dialog.aex-mobile-menu { display: none !important; }
}
