
/* Private preview: desktop nested navigation only. */
@media (min-width: 1200px) {
  .header .header-menu .menu .subnav {
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  .header .header-menu .menu__nav
  li.menu-item-has-children:hover > .subnav,
  .header .header-menu .menu__nav
  li.menu-item-has-children:focus-within > .subnav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .header .header-menu .menu .subnav .subnav {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 101;
  }
}


/* MCMF FLOATING DROPDOWN V2
   Presentation only. CMS items and links remain dynamic. */
@media (min-width: 1200px) {
  .header .header-menu .menu__nav .subnav {
    min-width: 225px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(22, 38, 88, 0.09);
    border-radius: 14px;
    box-shadow:
      0 14px 36px rgba(16, 28, 64, 0.10),
      0 4px 12px rgba(16, 28, 64, 0.045);
    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      box-shadow 180ms ease;
  }

  .header .header-menu .menu__nav .subnav > li {
    border-radius: 8px;
  }

  .header .header-menu .menu__nav .subnav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 13px;
    border-radius: 8px;
    line-height: 1.5;
    text-decoration: none;
    transition:
      background-color 160ms ease,
      color 160ms ease;
  }

  .header .header-menu .menu__nav .subnav > li > a:hover,
  .header .header-menu .menu__nav .subnav > li > a:focus-visible {
    background-color: rgba(27, 42, 133, 0.055);
  }

  .header .header-menu .menu__nav .subnav .subnav {
    margin-left: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header .header-menu .menu__nav .subnav,
  .header .header-menu .menu__nav .subnav a {
    transition: none !important;
  }
}


/* Nested mobile submenu positioning */
@media (max-width: 1199px) {
  .header .header-menu .menu .subnav .subnav {
    top: 0;
    left: 0;
    width: 100%;
  }
}


/* Desktop nested dropdown overflow */
@media (min-width: 1200px) {
  .header .header-menu .menu .subnav {
    overflow: visible !important;
  }
}
