/* Menu UX fixes: add delayed hide class and responsive safeguards */
.header .menu__children.menu--open{
  pointer-events:all !important;
  visibility:visible !important;
  opacity:1 !important;
  max-height:76vh !important;
  transition:opacity .2s ease-in-out,max-height .35s ease-in-out !important;
}
.header .menu__children{box-sizing:border-box}
/* Make top-level submenu more resilient on very large screens and when browser zoom is used */
/* Removed aggressive responsive positioning to avoid breaking current layout.
   Keeping only a minimal override to support the .menu--open class. */
/* keep mobile rules unchanged, only override desktop showing behavior */
@media only screen and (max-width: 1200px){
  .header .menu__children.menu--open{pointer-events:all}
}

@media only screen and (max-width: 1576px) {
  .header .mega-menu [data-depth="0"] .menu__item.menu__item--wide [data-depth="1"] .menu-item.group-title {
    width: auto;
  }
}
.header .menu__children[data-depth="0"] {
  overflow: auto;
}

@media (min-resolution: 144dpi) {
  
}

/* ==========================================
   Fix submenu layout under #item-2368
   Only when zoom / scale is ~150%
   ========================================== */
@media (min-resolution: 144dpi) {

  /* Target only submenu of item-2368 */
  #item-2368 > ul.menu__children {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }

  /* Force 4 items per row */
  #item-2368 > ul.menu__children > li {
    flex: 0 0 calc(25% - 16px);
    max-width: calc(25% - 16px);
    box-sizing: border-box;
  }

  /* Prevent long titles from breaking layout */
  #item-2368 > ul.menu__children a.title {
    display: block;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
  }

  /* Safety: internal wrapper */
  #item-2368 > ul.menu__children .menu__item-wrap {
    width: 100%;
  }
  
 .header .mega-menu [data-depth="0"] {
    left: -17dvw;
  }
  
   .header .mega-menu .group-title .menu__item-wrap a:first-of-type {
         max-width: none;
  }
}
