:root {
  --hcm-navy: #0f2740;
  --hcm-navy-2: #183a5a;
  --hcm-gold: #b08d43;
  --hcm-gold-hover: #c7a65c;
  --hcm-ink: #1c2733;
  --hcm-muted: #5b6b7b;
  --hcm-line: #dfe5ec;
  --hcm-soft: #f4f7fa;
  --hcm-white: #ffffff;
}

/* Scoped reset: only the generated HCM navigation is affected. */
body .hcm-header-navigation,
body .hcm-footer-navigation,
body .hcm-footer-shell,
body .hcm-header-navigation *,
body .hcm-footer-navigation *,
body .hcm-footer-shell * {
  box-sizing: border-box;
}

body .hcm-header-navigation,
body .hcm-footer-navigation,
body .hcm-footer-shell {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body .hcm-header-navigation ul,
body .hcm-header-navigation li,
body .hcm-footer-navigation ul,
body .hcm-footer-navigation li {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body .hcm-header-navigation a,
body .hcm-footer-navigation a {
  text-decoration: none !important;
}

body .hcm-header-navigation button.hcm-submenu-toggle {
  font: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* ==================================================
   HEADER BASE
   ================================================== */

body .hcm-header-navigation {
  position: relative !important;
  z-index: 99999 !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  background: var(--hcm-navy) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body .hcm-header-navigation .hcm-header-menu {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

body .hcm-header-navigation .hcm-header-menu li {
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body .hcm-header-navigation .hcm-header-menu a {
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: inherit !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

/* Real chevron buttons generated by the plugin walker. */
body .hcm-header-navigation .hcm-submenu-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: currentColor !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body .hcm-header-navigation .hcm-submenu-toggle .hcm-chevron {
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: translateY(-2px) rotate(45deg) !important;
  transition: transform .18s ease !important;
}

body .hcm-header-navigation .hcm-submenu-toggle[aria-expanded="true"] .hcm-chevron {
  transform: translateY(2px) rotate(225deg) !important;
}

body .hcm-header-navigation .hcm-submenu-toggle:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 2px !important;
}

/* CTA never receives submenu decoration. */
body .hcm-header-navigation .hcm-header-menu > li.hcm-cta > .hcm-submenu-toggle,
body .hcm-header-navigation .hcm-header-menu > li.hcm-cta > a::before,
body .hcm-header-navigation .hcm-header-menu > li.hcm-cta > a::after {
  display: none !important;
  content: none !important;
}

/* ==================================================
   DESKTOP — 1200px+
   ================================================== */

@media (min-width: 1200px) {
  body .hcm-header-navigation .hcm-header-menu {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    min-height: 62px !important;
    padding: 0 18px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
  }

  /* Allows the What We Do mega panel to span the full navigation width. */
  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do {
    position: static !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li > a {
    display: block !important;
    padding: 20px 12px !important;
    color: #e7edf4 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.menu-item-has-children > a {
    padding-right: 5px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li > .hcm-submenu-toggle {
    width: 30px !important;
    height: 30px !important;
    margin-right: 4px !important;
    color: #9fb4cb !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li > a:hover,
  body .hcm-header-navigation .hcm-header-menu > li > a:focus,
  body .hcm-header-navigation .hcm-header-menu > li.is-open > a,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-hover-open > a,
  body .hcm-header-navigation .hcm-header-menu > li.current-menu-item > a,
  body .hcm-header-navigation .hcm-header-menu > li.current-menu-ancestor > a {
    color: var(--hcm-white) !important;
    background: var(--hcm-navy-2) !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li:hover > .hcm-submenu-toggle,
  body .hcm-header-navigation .hcm-header-menu > li:focus-within > .hcm-submenu-toggle,
  body .hcm-header-navigation .hcm-header-menu > li.is-open > .hcm-submenu-toggle,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-hover-open > .hcm-submenu-toggle {
    color: var(--hcm-white) !important;
    background: rgba(255, 255, 255, .08) !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-cta {
    margin-left: auto !important;
  }

  body .hcm-header-navigation .hcm-header-menu .hcm-cta-link {
    margin: 0 !important;
    padding: 11px 18px !important;
    color: #20160a !important;
    background: var(--hcm-gold) !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body .hcm-header-navigation .hcm-header-menu .hcm-cta-link:hover,
  body .hcm-header-navigation .hcm-header-menu .hcm-cta-link:focus {
    color: #20160a !important;
    background: var(--hcm-gold-hover) !important;
  }

  /* Top-level dropdown panels. */
  body .hcm-header-navigation .hcm-header-menu > li > .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 100000 !important;
    display: none !important;
    min-width: 390px !important;
    margin: 0 !important;
    padding: 20px 22px !important;
    background: var(--hcm-white) !important;
    border: 1px solid var(--hcm-line) !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 12px 30px rgba(15, 39, 64, .14) !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li > .sub-menu::before {
    content: "" !important;
    position: absolute !important;
    top: -10px !important;
    right: 0 !important;
    left: 0 !important;
    height: 10px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li:hover > .sub-menu,
  body .hcm-header-navigation .hcm-header-menu > li:focus-within > .sub-menu,
  body .hcm-header-navigation .hcm-header-menu > li.is-open > .sub-menu,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-hover-open > .sub-menu {
    display: grid !important;
  }

  /* What We Do mega menu. */
  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu {
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px 28px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li {
    position: relative !important;
    display: block !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li > a {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 0 8px !important;
    color: var(--hcm-navy) !important;
    border-bottom: 2px solid var(--hcm-line) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    white-space: normal !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li > a:hover,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li > a:focus {
    color: var(--hcm-gold) !important;
  }

  /* Pillar arrow buttons are only needed in the compact accordion. */
  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li > .hcm-submenu-toggle {
    display: none !important;
  }

  /* Hubs stay visible within each desktop pillar column. */
  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li > .sub-menu {
    position: static !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li > .sub-menu a,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-for-employers > .sub-menu a {
    display: block !important;
    padding: 7px 8px !important;
    color: var(--hcm-ink) !important;
    border: 1px solid transparent !important;
    border-radius: 5px !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    white-space: normal !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li > .sub-menu a:hover,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li > .sub-menu a:focus,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-for-employers > .sub-menu a:hover,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-for-employers > .sub-menu a:focus {
    color: var(--hcm-navy) !important;
    background: #f0f4f9 !important;
    border-color: var(--hcm-line) !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-for-employers > .sub-menu {
    width: 390px !important;
    max-width: min(390px, 94vw) !important;
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }

}

/* ==================================================
   TABLET + MOBILE — accordion below 1200px
   ================================================== */

@media (max-width: 1199px) {
  body .hcm-header-navigation {
    padding: 10px !important;
    border-radius: 10px !important;
  }

  body .hcm-header-navigation .hcm-header-menu {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  /* Every top-level row uses a real two-column layout: label + arrow. */
  body .hcm-header-navigation .hcm-header-menu > li {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 0 4px !important;
    border-radius: 8px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li:last-child {
    margin-bottom: 0 !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li > a {
    grid-column: 1 !important;
    display: block !important;
    width: 100% !important;
    padding: 14px 14px !important;
    color: #eef4fb !important;
    border-radius: 7px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    white-space: normal !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li > .hcm-submenu-toggle {
    grid-column: 2 !important;
    position: static !important;
    width: 36px !important;
    height: 36px !important;
    justify-self: center !important;
    color: #d5e0eb !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li > a:hover,
  body .hcm-header-navigation .hcm-header-menu > li > a:focus,
  body .hcm-header-navigation .hcm-header-menu > li.is-open > a,
  body .hcm-header-navigation .hcm-header-menu > li.current-menu-item > a,
  body .hcm-header-navigation .hcm-header-menu > li.current-menu-ancestor > a {
    color: var(--hcm-white) !important;
    background: var(--hcm-navy-2) !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.is-open > .hcm-submenu-toggle {
    color: var(--hcm-white) !important;
    background: rgba(255, 255, 255, .08) !important;
  }

  /* Hide all submenus until the controlling row is open. */
  body .hcm-header-navigation .hcm-header-menu li.menu-item-has-children > .sub-menu {
    grid-column: 1 / -1 !important;
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 12px !important;
    background: var(--hcm-soft) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  body .hcm-header-navigation .hcm-header-menu li.menu-item-has-children.is-open > .sub-menu {
    display: grid !important;
  }

  /* What We Do uses two columns on tablet. */
  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }


  /* Pillar cards: title + compact arrow on one clean row. */
  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px !important;
    align-items: center !important;
    align-content: start !important;
    overflow: hidden !important;
    background: var(--hcm-white) !important;
    border: 1px solid var(--hcm-line) !important;
    border-radius: 8px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > a {
    grid-column: 1 !important;
    display: block !important;
    min-width: 0 !important;
    padding: 13px 12px !important;
    color: var(--hcm-navy) !important;
    border: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    white-space: normal !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > .hcm-submenu-toggle {
    grid-column: 2 !important;
    position: static !important;
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    justify-self: center !important;
    color: var(--hcm-navy) !important;
    background: var(--hcm-white) !important;
    border: 1px solid var(--hcm-line) !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar.is-open > a {
    color: var(--hcm-navy) !important;
    background: #f8fafc !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > .sub-menu {
    grid-column: 1 / -1 !important;
    display: none !important;
    margin: 0 !important;
    padding: 4px 8px 10px !important;
    background: var(--hcm-white) !important;
    border-top: 1px solid var(--hcm-line) !important;
    border-radius: 0 !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar.is-open > .sub-menu {
    display: block !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > .sub-menu a,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-for-employers > .sub-menu a {
    display: block !important;
    padding: 10px 11px !important;
    color: var(--hcm-ink) !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: normal !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > .sub-menu a:hover,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > .sub-menu a:focus,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-for-employers > .sub-menu a:hover,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-for-employers > .sub-menu a:focus {
    color: var(--hcm-navy) !important;
    background: #edf3f8 !important;
  }


  /* For Employers contains direct hub links rather than pillar cards. */
  body .hcm-header-navigation .hcm-header-menu > li.hcm-for-employers > .sub-menu {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-cta {
    display: block !important;
    margin-top: 8px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-cta > a {
    display: block !important;
    width: 100% !important;
    padding: 13px 16px !important;
    color: #20160a !important;
    background: var(--hcm-gold) !important;
    border-radius: 7px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-cta > a:hover,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-cta > a:focus {
    background: var(--hcm-gold-hover) !important;
  }
}

/* Mobile: one pillar card per row and tighter spacing. */
@media (max-width: 767px) {
  body .hcm-header-navigation {
    padding: 8px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li {
    grid-template-columns: minmax(0, 1fr) 42px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li > a {
    padding: 13px 12px !important;
    font-size: 15px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li > .hcm-submenu-toggle {
    width: 34px !important;
    height: 34px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    padding: 9px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar {
    grid-template-columns: minmax(0, 1fr) 40px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > a {
    padding: 12px 11px !important;
    font-size: 15px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > .hcm-submenu-toggle {
    width: 30px !important;
    height: 30px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > .sub-menu a,
  body .hcm-header-navigation .hcm-header-menu > li.hcm-for-employers > .sub-menu a {
    padding: 9px 10px !important;
    font-size: 13.5px !important;
  }
}

@media (max-width: 420px) {
  body .hcm-header-navigation .hcm-header-menu > li > a {
    font-size: 14px !important;
  }

  body .hcm-header-navigation .hcm-header-menu > li.hcm-what-we-do > .sub-menu > li.hcm-pillar > a {
    font-size: 14px !important;
  }
}

/* ==================================================
   FOOTER
   ================================================== */

body .hcm-footer-shell {
  width: 100% !important;
  overflow: hidden !important;
  background: var(--hcm-navy) !important;
  border-radius: 10px !important;
}

body .hcm-footer-navigation {
  width: 100% !important;
  padding: 28px 26px 20px !important;
  background: transparent !important;
}

body .hcm-footer-navigation .hcm-footer-menu {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 26px 22px !important;
}

body .hcm-footer-navigation .hcm-footer-menu h4 {
  margin: 0 0 10px !important;
  color: var(--hcm-gold) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .7px !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

body .hcm-footer-navigation .hcm-footer-menu .sub-menu {
  position: static !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .hcm-footer-navigation .hcm-footer-menu .sub-menu a {
  display: block !important;
  padding: 4px 0 !important;
  color: #c2cfdc !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body .hcm-footer-navigation .hcm-footer-menu .sub-menu a:hover,
body .hcm-footer-navigation .hcm-footer-menu .sub-menu a:focus {
  color: var(--hcm-white) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

body .hcm-footer-navigation .hcm-submenu-toggle {
  display: none !important;
}

body .hcm-footer-shell .hcm-footer-legal {
  margin: 0 26px !important;
  padding: 14px 0 18px !important;
  color: #8ba0b6 !important;
  border-top: 1px solid #294764 !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  body .hcm-footer-navigation .hcm-footer-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body .hcm-footer-navigation {
    padding: 22px 18px 16px !important;
  }

  body .hcm-footer-navigation .hcm-footer-menu {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  body .hcm-footer-shell .hcm-footer-legal {
    margin: 0 18px !important;
  }
}
