/* NABWORK v63 — structural mobile menu correction.
   The real toggle is now the FOURTH child of the header grid in index.html.
   No absolute positioning: logo, EN, account, menu align by one row's center.
   Do not alter approved mobile hero / category / discover-more cards.
*/
@media (max-width:1399px) {
  .nab-header .nab30-header-inner {
    display:grid!important;
    grid-template-areas:"brand tools account menu"!important;
    grid-template-columns:minmax(0,1fr) auto auto 44px!important;
    grid-template-rows:minmax(48px,auto)!important;
    align-items:center!important;
    column-gap:8px!important;
    row-gap:0!important;
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:66px!important;
    margin:0!important;
    padding:9px 20px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  .nab-header .nab30-leading {
    grid-area:brand!important;
    align-self:center!important;
    min-width:0!important;
  }
  .nab-header .nab30-controls {
    grid-area:tools!important;
    align-self:center!important;
    width:auto!important;
    min-width:0!important;
    gap:0!important;
  }
  .nab-header .nab30-account {
    grid-area:account!important;
    align-self:center!important;
    justify-self:end!important;
    width:auto!important;
    min-width:0!important;
    border:0!important;
    margin:0!important;
    padding:0!important;
  }
  .nab-header .nab-mobile-navigation {
    grid-area:menu!important;
    display:flex!important;
    position:static!important;
    align-self:center!important;
    justify-self:center!important;
    align-items:center!important;
    justify-content:center!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    overflow:visible!important;
  }
  .nab-header #nab29MobileToggle {
    position:static!important;
    inset:auto!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 44px!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    z-index:auto!important;
    font-size:0!important;
    border-radius:12px!important;
    border:1px solid #dceafa!important;
    background:#fff!important;
    color:#193b65!important;
    box-shadow:0 2px 8px rgba(10,59,111,.04)!important;
  }
  .nab-header #nab29MobileToggle::before {
    content:none!important;
    display:none!important;
  }
  .nab-header #nab29MobileToggle :is(.nw-v62-menu-icon,.nw-v62-close-icon) {
    width:21px!important;
    height:21px!important;
    flex:0 0 21px!important;
    stroke:currentColor!important;
  }
  .nab-header #nab29MobileToggle[aria-expanded="false"] .nw-v62-menu-icon,
  .nab-header #nab29MobileToggle[aria-expanded="true"] .nw-v62-close-icon {display:block!important;}
  .nab-header #nab29MobileToggle[aria-expanded="false"] .nw-v62-close-icon,
  .nab-header #nab29MobileToggle[aria-expanded="true"] .nw-v62-menu-icon {display:none!important;}
  /* Dropdown is positioned relative to the WHOLE header grid, not
     the 44px menu slot. This is why it remains full-width on phones. */
  .nab-header #mobileMenu {
    position:absolute!important;
    top:calc(100% + 5px)!important;
    left:auto!important;
    right:12px!important;
    z-index:22!important;
    width:min(420px,calc(100% - 24px))!important;
    max-width:calc(100% - 24px)!important;
    max-height:calc(100dvh - 85px - env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;
    margin:0!important;
    padding:12px!important;
    border:1px solid #dfeafa!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 20px 42px rgba(16,44,85,.18)!important;
  }
  .nab-header #mobileMenu.hidden {display:none!important;}
  .nab-header #mobileMenu:not(.hidden) {display:grid!important;}
}
@media (min-width:601px) and (max-width:1399px) {
  .nab-header .nab30-controls > :not(#langBtn) {display:none!important;}
  .nab-header .nab30-controls #langBtn {
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:44px!important;min-width:44px!important;height:44px!important;
    border:1px solid #dceafa!important;border-radius:12px!important;
    background:#f8fbff!important;
  }
  .nab-header .nab30-account {max-width:180px!important;}
  .nab-header .nab30-account > div {max-width:100%!important;min-width:0!important;}
  .nab-header .nab30-account > div > button:first-child {min-width:0!important;max-width:135px!important;}
}
@media (max-width:600px) {
  .nab-header .nab30-header-inner {
    grid-template-columns:minmax(0,1fr) 37px auto 41px!important;
    grid-template-rows:minmax(41px,auto)!important;
    min-height:64px!important;
    padding:10px 11px!important;
    column-gap:7px!important;
  }
  .nab-header .nab30-controls,
  .nab-header .nab30-controls #langBtn {
    width:37px!important;min-width:37px!important;max-width:37px!important;
    height:41px!important;min-height:41px!important;flex-basis:37px!important;
  }
  .nab-header .nab30-account {
    max-width:90px!important;
    min-height:41px!important;
    padding:0!important;
  }
  .nab-header .nab-mobile-navigation,
  .nab-header #nab29MobileToggle {
    width:41px!important;min-width:41px!important;max-width:41px!important;
    height:41px!important;min-height:41px!important;max-height:41px!important;
    flex-basis:41px!important;
  }
  .nab-header #mobileMenu {
    right:11px!important;
    width:calc(100% - 22px)!important;
    max-width:min(420px,calc(100% - 22px))!important;
  }
}
@media (max-width:359px) {
  .nab-header .nab30-header-inner {
    grid-template-columns:minmax(0,1fr) 34px auto 37px!important;
    gap:4px!important;
    padding:9px!important;
  }
  .nab-header .nab30-controls,
  .nab-header .nab30-controls #langBtn {
    width:34px!important;min-width:34px!important;max-width:34px!important;
  }
  .nab-header .nab30-account > button {
    min-width:67px!important;
    font-size:11px!important;
  }
  .nab-header .nab-mobile-navigation,
  .nab-header #nab29MobileToggle {
    width:37px!important;min-width:37px!important;max-width:37px!important;
    height:40px!important;min-height:40px!important;max-height:40px!important;
    flex-basis:37px!important;
  }
}
