/* Neutralize legacy Digital header/footer rules when BESONG Group chrome is present. */
.site-header[data-header] {
  height: auto;
  position: relative;
  background: #fff;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header[data-header] .brand img {
  width: 190px;
  max-height: none;
  height: auto;
}

.site-header[data-header] .nav-link,
.site-header[data-header] .nav-button {
  min-height: 0;
  padding: 10px 8px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #202B3C;
  background: transparent;
  white-space: nowrap;
}

.site-header[data-header] .nav-link:hover,
.site-header[data-header] .nav-link.is-active,
.site-header[data-header] .nav-link[aria-current="page"],
.site-header[data-header] .nav-button:hover,
.site-header[data-header] .nav-item.is-open .nav-button {
  color: #0062FE;
  background: #EFF7FE;
}

.site-header[data-header] .mega-menu {
  max-height: none !important;
  overflow: visible !important;
}

/* Legacy Digital CSS opens .mega-menu on hover; Group chrome uses .is-open only. */
.site-header[data-header] .nav-item:hover > .mega-menu:not(.is-open),
.site-header[data-header] .nav-item:focus-within > .mega-menu:not(.is-open),
.site-header[data-header] .nav-item.is-open > .mega-menu:not(.is-open) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, 10px) !important;
  max-height: none !important;
}

.site-header[data-header] .mega-menu.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.site-footer .footer-grid,
.site-footer .footer-bottom.shell {
  position: relative;
  z-index: 1;
}

.site-footer::before {
  display: none;
}

.back-to-top[data-back-to-top] {
  border-radius: 12px;
}

/* Digital local navigation — keeps Static_Website inner pages reachable */
.digital-subnav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #07152E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.digital-subnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  flex-wrap: wrap;
}

.digital-subnav__brand {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.digital-subnav__brand:hover {
  color: #F36434;
}

.digital-subnav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
}

.digital-subnav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.digital-subnav__links a:hover,
.digital-subnav__links a.is-active,
.digital-subnav__links a[aria-current="page"] {
  color: #fff;
  background: rgba(0, 98, 255, 0.28);
}

@media (max-width: 980px) {
  .site-header[data-header] .mega-menu {
    position: absolute;
    max-height: none !important;
    overflow: visible !important;
  }

  .digital-subnav__inner {
    min-height: 0;
    padding-block: 10px;
  }

  .digital-subnav__links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .digital-subnav__links a {
    flex: 0 0 auto;
  }
}
