/* Load after header-scroll-20261114.css. Preserve the header disk/clear-center layout. */
@media (min-width: 1024px) {
  .header .header-menu .header-menu-list > li.dropdown {
    position: relative;
    top: 0;
    height: 56px;
    align-items: center;
  }
  .header .header-menu .header-menu-list > li.dropdown > ul.header-menu-subs {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: auto;
    bottom: auto;
    width: clamp(320px, 30vw, 380px);
    min-width: 0;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 144px);
    max-height: calc(100dvh - 144px);
    margin: 0;
    padding: 16px 18px;
    border: 1px solid rgba(139,223,255,.24);
    border-radius: 18px;
    box-sizing: border-box;
    background: #1a2b4f;
    color: #fff;
    box-shadow: 0 12px 32px rgba(9,20,39,.2);
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #6cd3ff #1a2b4f;
    transform: none;
    z-index: 10;
  }
  /* Keep Services aligned to its own word, even if it later becomes the last item. */
  .header .header-menu .header-menu-list > li.item-178 > ul.header-menu-subs { left: 0; right: auto; }
  .header .header-menu .header-menu-list > li.dropdown:not(.item-178):last-child > ul.header-menu-subs,
  .header .header-menu .header-menu-list > li.item-223 > ul.header-menu-subs { left: auto; right: 0; }
  /* A pointer bridge spans the gap without opening an invisible area when closed. */
  .header .header-menu .header-menu-list > li.dropdown:has(> a[aria-expanded="true"])::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: clamp(320px, 30vw, 380px);
    max-width: calc(100vw - 40px);
    height: 13px;
    background: transparent;
    pointer-events: auto;
  }
  .header .header-menu .header-menu-list > li.dropdown:not(.item-178):last-child:has(> a[aria-expanded="true"])::after,
  .header .header-menu .header-menu-list > li.item-223:has(> a[aria-expanded="true"])::after { left: auto; right: 0; }
  .header .header-menu .header-menu-subs > li { width: 100%; margin: 0; line-height: 1.4; }
  .header .header-menu .header-menu-subs > li > a { display: flex; width: 100%; padding: 10px 6px; box-sizing: border-box; white-space: normal; overflow-wrap: break-word; }
  .header .header-menu .header-menu-subs > li.tg-menu-all {
    position: sticky;
    bottom: -16px;
    z-index: 1;
    width: calc(100% + 36px);
    margin: 14px -18px -16px;
    padding: 12px 18px 14px;
    border-top: 1px solid rgba(139,223,255,.22);
    background: #1a2b4f;
  }
  .header .header-menu .header-menu-subs > li.tg-menu-all > a { color: #8bdfff; font-weight: 600; justify-content: space-between; gap: 16px; }
}
@media (max-width: 1023.98px) {
  .header .header-menu .header-menu-subs > li.tg-menu-all { margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(139,223,255,.22); }
  .header .header-menu .header-menu-subs > li.tg-menu-all > a { display: flex; justify-content: space-between; gap: 16px; color: #8bdfff; font-weight: 600; }
}
