/* One native disclosure, grouped links and the same Lucide cues as Services. */
.hc-site .hc-header__inner {
  position: relative;
}
/* Older target styles position list items; anchor only this flyout to the shell. */
.hc-site .hc-nav .hc-menu > li:has(> .hc-mega-menu) {
  position: static;
}
.hc-site .hc-service-menu.hc-mega-menu {
  position: static;
}
.hc-site .hc-mega-menu > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--hc-ink);
  list-style: none;
  cursor: pointer;
}
.hc-mega-menu > summary::-webkit-details-marker {
  display: none;
}
.hc-site .hc-mega-menu .hc-icon {
  display: block;
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}
.hc-site .hc-mega-menu > summary > .hc-icon {
  width: 16px;
  height: 16px;
}
.hc-mega-menu[open] > summary > .hc-icon {
  transform: rotate(180deg);
}
.hc-site .hc-service-menu.hc-mega-menu[open] > .hc-mega-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  box-sizing: border-box;
  width: auto;
  max-height: calc(100dvh - 160px);
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--hc-dark-line);
  border-radius: 0 0 20px 20px;
  background: var(--hc-white);
  box-shadow: 0 22px 48px rgba(16, 33, 44, 0.16);
  color: var(--hc-ink);
}
.hc-site .hc-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.hc-site .hc-mega-group__title {
  margin: 0 0 10px;
  padding-inline: 12px;
  color: var(--hc-campaign-blue-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hc-site .hc-mega-group > ul {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hc-site .hc-mega-panel a.hc-mega-service {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  box-sizing: border-box;
  min-height: 72px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--hc-ink);
  text-decoration: none;
}
.hc-site .hc-mega-panel a::after {
  content: none;
}
.hc-site .hc-mega-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--hc-ice-soft);
  color: var(--hc-campaign-blue-deep);
}
.hc-site .hc-mega-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.hc-site .hc-mega-title {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}
.hc-site .hc-mega-description {
  color: var(--hc-on-light-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.hc-site .hc-mega-panel a:hover,
.hc-site .hc-mega-panel a[aria-current="page"] {
  border-color: var(--hc-dark-line);
  background: var(--hc-ice-soft);
}
.hc-site .hc-mega-menu :focus-visible {
  outline: 3px solid var(--hc-campaign-blue-deep);
  outline-offset: 3px;
}
.hc-site .hc-mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hc-dark-line);
}
.hc-site .hc-mega-panel a.hc-mega-diagnostic {
  min-width: 0;
}
.hc-site .hc-mega-panel a.hc-mega-overview {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--hc-dark-line);
  border-radius: 12px;
  color: var(--hc-campaign-blue-deep);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}
@media (max-width: 1080px) {
  /* Keep the open menu clear; settings remain reachable after closing it. */
  body:has(.hc-mobile-menu[open]) .hc-consent-trigger {
    display: none;
  }
  .hc-site .hc-mobile-menu .hc-service-menu.hc-mega-menu > summary {
    display: flex;
    justify-content: space-between;
    width: auto;
    height: auto;
    min-height: 48px;
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid var(--hc-dark-line);
    border-radius: 0;
    font-size: 18px;
    line-height: 1.4;
  }
  .hc-site .hc-mobile-menu .hc-service-menu.hc-mega-menu[open] > .hc-mega-panel {
    position: static;
    width: auto;
    max-height: none;
    padding: 20px 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .hc-site .hc-mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .hc-site .hc-mega-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .hc-site .hc-mega-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hc-site .hc-mega-panel a.hc-mega-service {
    padding: 10px 4px;
  }
  .hc-site .hc-mega-panel a.hc-mega-overview {
    justify-content: space-between;
    width: 100%;
  }
}
