:root {
  --jci-header-mega-border: rgba(17, 24, 39, 0.1);
  --jci-header-mega-border-strong: rgba(17, 24, 39, 0.14);
  --jci-header-mega-muted: #687181;
  --jci-header-mega-muted-strong: #8a93a3;
  --jci-header-mega-accent: #1f6bff;
  --jci-header-mega-surface: #ffffff;
  --jci-header-mega-surface-alt: #f7f9fc;
  --jci-header-divider-offset: 12px;
}

.jci-header-mega-menu {
  position: fixed;
  top: calc(var(--jci-header-offset, 124px) + var(--jci-header-divider-offset, 12px));
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  padding: 0;
  pointer-events: none;
}

.jci-header-mega-menu[hidden] {
  display: none;
}

.jci-header-mega-menu__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.jci-header-mega-menu__surface {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100dvh - var(--jci-header-offset, 124px) - var(--jci-header-divider-offset, 12px));
  min-height: calc(100dvh - var(--jci-header-offset, 124px) - var(--jci-header-divider-offset, 12px));
  margin: 0 auto;
  background: var(--jci-header-mega-surface);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

body .jci-header-mega-menu .jci-header-mega-menu__frame.container-menu-inside {
  max-width: var(--layout-max-width, 1280px);
  width: 100%;
  margin: 0 auto !important;
  height: auto;
  min-height: 0;
  align-self: stretch !important;
  padding: 0 var(--layout-gutter, 20px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch !important;
  box-sizing: border-box;
}

.jci-header-mega-menu__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 8px;
}

.jci-header-mega-menu__eyebrow,
.jci-header-mega-menu__kicker,
.jci-header-mega-menu__mobile-kicker {
  margin: 0;
  color: var(--jci-header-mega-muted-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.jci-header-mega-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bs-body-color);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.jci-header-mega-menu__desktop,
.jci-header-mega-menu__primary-list,
.jci-header-mega-menu__mobile-list,
.jci-header-mega-menu__links,
.jci-header-mega-menu__mobile-links,
.jci-header-mega-menu__noscript ul {
  margin: 0;
  padding: 0;
}

.jci-header-mega-menu__primary-list,
.jci-header-mega-menu__mobile-list,
.jci-header-mega-menu__links,
.jci-header-mega-menu__mobile-links,
.jci-header-mega-menu__noscript ul {
  list-style: none;
}

.jci-header-mega-menu__close:focus-visible,
.jci-header-mega-menu__primary-link:focus-visible,
.jci-header-mega-menu__mobile-link:focus-visible,
.jci-header-mega-menu__mobile-toggle:focus-visible,
.jci-header-mega-menu__search-submit:focus-visible,
.jci-header-mega-menu__advisor-link:focus-visible,
.jci-header-mega-menu__title a:focus-visible,
.jci-header-mega-menu__links a:focus-visible,
.jci-header-mega-menu__mobile-links a:focus-visible,
.jci-header-mega-menu__cta:focus-visible,
.jci-header-mega-menu__mobile-cta:focus-visible {
  outline: 2px solid var(--jci-header-mega-accent);
  outline-offset: 3px;
}

.jci-header-mega-menu__desktop {
  display: grid;
  grid-template-columns: clamp(248px, 21vw, 320px) minmax(0, 1fr);
  gap: clamp(28px, 3.8vw, 58px);
  align-items: start;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  padding: clamp(40px, 5.6vh, 54px) 0 0;
}

.jci-header-mega-menu__primary {
  min-height: 0;
  max-height: 100%;
  padding: 0 clamp(30px, 3.2vw, 42px) 20px 0;
  border-right: 1px solid var(--jci-header-mega-border);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.jci-header-mega-menu__primary-item + .jci-header-mega-menu__primary-item {
  margin-top: clamp(8px, 1vh, 12px);
}

.jci-header-mega-menu__primary-item,
.jci-header-mega-menu__mobile-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.jci-header-mega-menu__primary-link,
.jci-header-mega-menu__mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  color: var(--bs-body-color);
  font-size: clamp(26px, 2.35vw, 36px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 0.96;
  text-decoration: none;
  opacity: 0.46;
  transform: translateX(0);
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.jci-header-mega-menu__primary-link .jci-header-mega-menu__arrow {
  font-size: 0.46em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.jci-header-mega-menu__primary-link:hover,
.jci-header-mega-menu__primary-link:focus-visible,
.jci-header-mega-menu__primary-item.is-active .jci-header-mega-menu__primary-link {
  color: var(--bs-body-color);
  opacity: 1;
  transform: translateX(6px);
  text-decoration: none;
}

.jci-header-mega-menu__primary-link:hover .jci-header-mega-menu__arrow,
.jci-header-mega-menu__primary-link:focus-visible .jci-header-mega-menu__arrow,
.jci-header-mega-menu__primary-item.is-active .jci-header-mega-menu__primary-link .jci-header-mega-menu__arrow {
  opacity: 1;
  transform: translateX(0);
}


.jci-header-mega-menu__panel {
  display: none;
  min-width: 0;
  min-height: 0;
  align-content: start;
  padding-right: clamp(8px, 1vw, 18px);
  overflow-y: auto;
  scrollbar-width: none;
}

.jci-header-mega-menu__panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.jci-header-mega-menu .jci-header-mega-menu__panel[hidden],
.jci-header-mega-menu .jci-header-mega-menu__panel:not(.is-v2-active) {
  display: none !important;
}

.jci-header-mega-menu .jci-header-mega-menu__panel.is-v2-active:not([hidden]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: min-content;
  align-content: start;
  min-height: 0;
}

.jci-header-mega-menu__title {
  margin: 0 0 24px;
  color: var(--bs-body-color);
  font-size: clamp(34px, 2.7vw, 42px);
  font-weight: 650;
  letter-spacing: -0.058em;
  line-height: 0.98;
  max-width: 760px;
}


.jci-header-mega-menu__title a {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.jci-header-mega-menu__intro,
.jci-header-mega-menu__mobile-intro {
  max-width: 560px;
  margin: 0 0 clamp(22px, 3vh, 36px);
  color: #6d7685;
  font-size: clamp(14px, 0.92vw, 17px);
  font-weight: 400;
  line-height: 1.45;
}

.jci-header-mega-menu__intro--with-subtitle {
  margin-bottom: 8px;
}

.jci-header-mega-menu__subtitle {
  max-width: 460px;
  margin: 0 0 clamp(22px, 3vh, 36px);
  color: #6d7685;
  font-size: clamp(14px, 0.92vw, 17px);
  line-height: 1.45;
}

.jci-header-mega-menu__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  min-width: 0;
}

.jci-header-mega-menu__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3.6vw, 56px);
  min-width: 0;
}

.jci-header-mega-menu__subhead,
.jci-header-mega-menu__mobile-subhead {
  margin: 0 0 16px;
  color: var(--bs-body-color);
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

.jci-header-mega-menu__links {
  display: grid;
  gap: 10px;
}

.jci-header-mega-menu__links li,
.jci-header-mega-menu__mobile-links li {
  margin: 0;
}

.jci-header-mega-menu__links a,
.jci-header-mega-menu__mobile-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0;
  max-width: 100%;
  color: var(--jci-header-mega-muted);
  font-size: clamp(14px, 0.96vw, 18px);
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
}

.jci-header-mega-menu__link-icon {
  display: none;
}

.jci-header-mega-menu__link-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.jci-header-mega-menu__link-label {
  color: inherit;
}

.jci-header-mega-menu__link-label::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.48em;
  color: var(--jci-header-mega-accent);
  font-size: 0.82em;
  line-height: 1;
  vertical-align: 0.02em;
  transition: transform 180ms ease;
}

/* In the two-column right-hand block, the first column stays quiet while
 * the second column keeps the standard directional arrow. */
@media (min-width: 1025px) {
  .jci-header-mega-menu__panel--has-utility .jci-header-mega-menu__column--primary .jci-header-mega-menu__link-label::after {
    content: none;
  }
}

.jci-header-mega-menu__link-description {
  color: #7d8798;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.jci-header-mega-menu__links a .jci-header-mega-menu__arrow,
.jci-header-mega-menu__mobile-links a .jci-header-mega-menu__arrow {
  display: none;
}

.jci-header-mega-menu__links a:hover,
.jci-header-mega-menu__links a:focus-visible,
.jci-header-mega-menu__mobile-links a:hover,
.jci-header-mega-menu__mobile-links a:focus-visible,
.jci-header-mega-menu__title a:hover,
.jci-header-mega-menu__title a:focus-visible,
.jci-header-mega-menu__cta:hover,
.jci-header-mega-menu__cta:focus-visible,
.jci-header-mega-menu__mobile-cta:hover,
.jci-header-mega-menu__mobile-cta:focus-visible,
.jci-header-mega-menu__advisor-link:hover,
.jci-header-mega-menu__advisor-link:focus-visible {
  color: var(--jci-header-mega-accent);
  text-decoration: none;
}

.jci-header-mega-menu__links a:hover .jci-header-mega-menu__link-label::after,
.jci-header-mega-menu__links a:focus-visible .jci-header-mega-menu__link-label::after,
.jci-header-mega-menu__mobile-links a:hover .jci-header-mega-menu__link-label::after,
.jci-header-mega-menu__mobile-links a:focus-visible .jci-header-mega-menu__link-label::after {
  transform: translateX(5px);
}

.jci-header-mega-menu__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--jci-header-mega-accent);
  line-height: 1;
  transition: transform 180ms ease, opacity 160ms ease;
}

.jci-header-mega-menu a:hover .jci-header-mega-menu__arrow,
.jci-header-mega-menu a:focus-visible .jci-header-mega-menu__arrow,
.jci-header-mega-menu__search-submit:hover .jci-header-mega-menu__arrow,
.jci-header-mega-menu__search-submit:focus-visible .jci-header-mega-menu__arrow {
  transform: translateX(5px);
}

.jci-header-mega-menu__feature {
  min-width: 0;
}

.jci-header-mega-menu__feature-card {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bs-body-color);
  text-decoration: none;
}

.jci-header-mega-menu__feature-icon {
  display: none;
}

.jci-header-mega-menu__feature-copy {
  display: grid;
  gap: 8px;
}

.jci-header-mega-menu__feature-copy small {
  display: none;
}

.jci-header-mega-menu__feature-copy strong {
  color: var(--bs-body-color);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.jci-header-mega-menu__feature-copy span {
  color: #6d7685;
  font-size: 13px;
  line-height: 1.5;
}


.jci-header-mega-menu__cta-row,
.jci-header-mega-menu__mobile-cta-row {
  margin: 18px 0 0;
}

.jci-header-mega-menu__cta,
.jci-header-mega-menu__mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bs-body-color);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.jci-header-mega-menu__mobile {
  display: none;
}

.jci-header-mega-menu__footer {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin-top: auto;
  padding: 10px 0 20px;
  border-top: 1px solid rgba(7, 31, 69, 0.08);
  background: #fff;
}

.jci-header-mega-menu__search {
  width: min(680px, 58vw);
}

.jci-header-mega-menu__search-label {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--jci-form-height);
  min-height: 0;
  margin: 0 0 8px;
  padding: 0 18px;
  color: #6f7a8b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.jci-header-mega-menu__search-form {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
}

.jci-header-mega-menu__search-form .jci-header-mega-menu__search-input {
  width: 100%;
  height: var(--jci-form-height);
  min-height: var(--jci-form-height);
  padding: 0 18px;
  line-height: var(--jci-form-height);
  border: 1px solid var(--jci-form-border);
  border-radius: var(--jci-form-radius);
  background: #fff;
  color: var(--jci-form-text);
  font-size: 15px;
  box-shadow: none;
  transition: border-color 140ms ease, background-color 140ms ease, transform 180ms ease;
}

.jci-header-mega-menu__search-form .jci-header-mega-menu__search-input:hover {
  background: #fff;
  border-color: var(--jci-form-border-hover);
}

.jci-header-mega-menu__search-form .jci-header-mega-menu__search-input:focus-visible {
  background: #fff;
  border-color: var(--jci-form-border-focus);
  box-shadow: var(--jci-form-focus-ring);
  transform: translateY(-1px);
}

.jci-header-mega-menu__search-submit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--jci-form-radius);
  white-space: nowrap;
}

.jci-header-mega-menu__search-submit span,
.jci-header-mega-menu__search-submit .jci-header-mega-menu__arrow {
  color: inherit;
}

.jci-header-mega-menu__search .jci-predictive-search {
  position: absolute;
  top: auto;
  right: 0;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 25;
  width: 100%;
  min-width: 0;
  max-width: min(100%, 720px);
}

.jci-header-mega-menu__search .jci-predictive-search__panel {
  max-height: min(56vh, 520px);
}

.jci-header-mega-menu__search .jci-predictive-search__loading {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 18px;
  background: linear-gradient(90deg, #e3eaf6 20%, #f5f8fc 50%, #e3eaf6 80%) 0 0 / 220% 100%;
  color: #6f7a8b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.jci-header-mega-menu__advisor {
  display: none;
}

.jci-header-mega-menu__advisor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(17, 85, 204, 0.08);
  color: var(--bs-body-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.jci-header-mega-menu__noscript {
  padding: 12px 20px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

.jci-header-mega-menu__noscript li + li {
  margin-top: 8px;
}

.jci-header-mega-menu__noscript a {
  color: var(--bs-body-color);
  font-weight: 600;
  text-decoration: none;
}

body.jci-header-mega-menu-open {
  overflow: hidden;
}

.jci-header-mega-menu.is-opening,
.jci-header-mega-menu.is-open,
.jci-header-mega-menu.is-closing {
  pointer-events: auto;
}

.jci-header-mega-menu.is-opening .jci-header-mega-menu__backdrop,
.jci-header-mega-menu.is-closing .jci-header-mega-menu__backdrop {
  opacity: 0;
}

.jci-header-mega-menu.is-open:not(.is-opening):not(.is-closing) .jci-header-mega-menu__backdrop {
  opacity: 1;
}

.jci-header-mega-menu.is-opening .jci-header-mega-menu__surface,
.jci-header-mega-menu.is-closing .jci-header-mega-menu__surface {
  opacity: 0;
  transform: translateY(-16px);
}

.jci-header-mega-menu.is-open:not(.is-opening):not(.is-closing) .jci-header-mega-menu__surface {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1025px) {
  .site-wrapper > .site-header,
  .site-wrapper > header.site-header,
  body header.site-header {
    z-index: 1200 !important;
  }

  .jci-header-mega-menu__toolbar {
    display: none;
  }

  body .jci-header-mega-menu .jci-header-mega-menu__frame.container-menu-inside {
    height: calc(100dvh - var(--jci-header-offset, 124px) - var(--jci-header-divider-offset, 12px)) !important;
    min-height: calc(100dvh - var(--jci-header-offset, 124px) - var(--jci-header-divider-offset, 12px)) !important;
    max-height: calc(100dvh - var(--jci-header-offset, 124px) - var(--jci-header-divider-offset, 12px)) !important;
  }

  .jci-header-mega-menu__panel--has-featured .jci-header-mega-menu__content {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  }

  .jci-header-mega-menu__panel--columns-1 .jci-header-mega-menu__columns {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
  }

  .jci-header-mega-menu__panel--columns-2 .jci-header-mega-menu__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jci-header-mega-menu__panel--columns-3 .jci-header-mega-menu__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jci-header-mega-menu__panel--columns-4plus .jci-header-mega-menu__columns {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .jci-header-mega-menu__panel--has-utility .jci-header-mega-menu__column--utility {
    margin-top: 0;
  }


  .jci-header-mega-menu__panel--has-featured .jci-header-mega-menu__feature {
    justify-self: start;
  }
}

@media (min-width: 1440px) {
  /* Keep every desktop option on the same scale. Panels without a utility
   * column must not grow beyond the size used by the rest of the menu. */
  .jci-header-mega-menu__links a {
    font-size: 14px;
  }
}

@media (min-width: 1025px) and (max-width: 1320px) {
  .jci-header-mega-menu__surface {
    width: 100%;
  }

  .jci-header-mega-menu__desktop {
    grid-template-columns: clamp(250px, 23vw, 300px) minmax(0, 1fr);
    gap: clamp(28px, 3vw, 40px);
  }


  .jci-header-mega-menu__feature-card {
    max-width: 240px;
  }
}

@media (max-width: 1024px) {
  .jci-header-mega-menu {
    top: var(--jci-header-visual-offset, var(--jci-header-offset, 96px));
  }

  .jci-header-mega-menu__backdrop {
    background: rgba(8, 15, 28, 0.32);
  }

  .jci-header-mega-menu__surface {
    width: 100%;
    height: calc(100dvh - var(--jci-header-visual-offset, var(--jci-header-offset, 96px)));
    min-height: 0;
    margin: 0;
    border-top: 1px solid var(--jci-header-mega-border);
    background: #fff;
    grid-template-rows: minmax(0, 1fr);
    overflow: auto;
  }

  .jci-header-mega-menu.is-opening .jci-header-mega-menu__surface,
  .jci-header-mega-menu.is-closing .jci-header-mega-menu__surface {
    transform: translateY(-28px);
  }

  .jci-header-mega-menu.is-open:not(.is-opening):not(.is-closing) .jci-header-mega-menu__surface {
    transform: translateY(0);
  }

  .jci-header-mega-menu__toolbar {
    display: none;
  }

  .jci-header-mega-menu__desktop {
    display: none;
  }

  body .jci-header-mega-menu .jci-header-mega-menu__frame.container-menu-inside {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 var(--layout-gutter, 20px) 8px !important;
    display: block !important;
    align-self: auto !important;
  }

  .jci-header-mega-menu__mobile {
    display: block;
    padding: 0 0 8px;
  }

  .jci-header-mega-menu__mobile-item {
    padding: 0;
    border-bottom: 1px solid rgba(7, 31, 69, 0.13);
  }

  .jci-header-mega-menu__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 58px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bs-body-color);
    font-size: clamp(18px, 4.7vw, 21px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
  }

  .jci-header-mega-menu__mobile-toggle[aria-expanded="true"] {
    color: var(--jci-header-mega-accent);
  }

  .jci-header-mega-menu__mobile-toggle-label {
    min-width: 0;
  }

  .jci-header-mega-menu__mobile-chevron {
    width: 12px;
    height: 12px;
    margin-right: 3px;
    border-right: 2px solid var(--jci-header-mega-accent);
    border-bottom: 2px solid var(--jci-header-mega-accent);
    border-radius: 2px;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
    flex: 0 0 auto;
  }

  .jci-header-mega-menu__mobile-toggle[aria-expanded="true"] .jci-header-mega-menu__mobile-chevron {
    transform: rotate(-135deg) translateY(1px);
  }

  /* Keep keyboard focus visible without leaving a full blue rectangle after
   * tapping a disclosure on touch browsers such as iOS WebKit. */
  .jci-header-mega-menu__mobile-toggle:focus-visible {
    outline: 0;
    outline-offset: 0;
    box-shadow: inset 3px 0 0 var(--jci-header-mega-accent);
  }

  .jci-header-mega-menu__mobile-toggle:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: none;
  }

  .jci-header-mega-menu__mobile-panel {
    margin: 0 0 12px;
    padding: 4px 0 14px 14px;
    border-left: 1px solid rgba(31, 107, 255, 0.22);
  }

  .jci-header-mega-menu__mobile-overview-row {
    margin: 0 0 12px;
  }

  .jci-header-mega-menu__mobile-overview-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 46px;
    padding: 6px 0;
    color: var(--jci-header-mega-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
  }

  .jci-header-mega-menu__mobile-overview-link:hover,
  .jci-header-mega-menu__mobile-overview-link:focus-visible {
    color: var(--jci-header-mega-accent);
    text-decoration: none;
  }

  .jci-header-mega-menu__mobile-overview-link:focus-visible {
    outline: 2px solid var(--jci-header-mega-accent);
    outline-offset: 3px;
  }

  .jci-header-mega-menu__mobile-subhead {
    margin: 20px 0 7px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .jci-header-mega-menu__mobile-links {
    display: grid;
    gap: 0;
  }

  .jci-header-mega-menu__mobile-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 6px 0;
    color: #344054;
    font-size: clamp(14px, 3.65vw, 15px);
    font-weight: 500;
    line-height: 1.32;
  }

  .jci-header-mega-menu__mobile-links--utility {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(7, 31, 69, 0.1);
  }

  .jci-header-mega-menu__mobile-cta-row {
    margin-top: 12px;
  }

  .jci-header-mega-menu__mobile-cta {
    min-height: 44px;
    font-size: 14px;
  }

  .jci-header-mega-menu__search .jci-predictive-search {
    top: calc(100% + 10px);
    right: 0;
    bottom: auto;
    left: 0;
    max-width: 100%;
  }

  .jci-header-mega-menu__search .jci-predictive-search__panel {
    max-height: min(52vh, 440px);
    padding: 12px;
  }

  .jci-header-mega-menu__footer {
    margin: 8px calc(-1 * var(--layout-gutter, 20px)) 0;
    padding: 18px var(--layout-gutter, 20px) calc(24px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(7, 31, 69, 0.08);
    background: #f7f9fc;
  }

  .jci-header-mega-menu__search {
    width: 100%;
  }

  .jci-header-mega-menu__advisor {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid var(--jci-header-mega-border);
    border-radius: 22px;
    background: #fff;
  }

  .jci-header-mega-menu__advisor-label {
    color: var(--bs-body-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .jci-header-mega-menu__advisor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .jci-header-mega-menu__title {
    font-size: 30px;
  }

  .jci-header-mega-menu__content,
  .jci-header-mega-menu__columns {
    grid-template-columns: 1fr;
  }

  .jci-header-mega-menu__mobile-toggle {
    min-height: 58px;
  }

  .jci-header-mega-menu__mobile-panel {
    padding-bottom: 16px;
  }
}

.menu-toggle .icon-menu,
.menu-toggle .icon-menu::before,
.menu-toggle .icon-menu::after,
.menu-toggle .icon-menu span {
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease;
}

.menu-toggle .icon-menu {
  position: relative;
}

.menu-toggle[aria-expanded="true"] .icon-menu span {
  opacity: 0;
  transform: scaleX(0.35);
}

.menu-toggle[aria-expanded="true"] .icon-menu::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .icon-menu::after {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile advisor bar: reuses the canonical header CTA data outside the menu.
 * Keep the fixed layer untransformed so iOS WebKit anchors it to the visual viewport bottom. */
.jci-mobile-advisor-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Keep the viewport scroll container intact while the fixed mobile menu is
   * open. `overflow: hidden` on body breaks the in-flow sticky header in
   * iOS/WebKit after the page has already been scrolled. The menu surface
   * covers the viewport and owns its own contained scrolling instead. */
  body.jci-header-mega-menu-open {
    overflow: visible;
  }

  @supports (overflow: clip) {
    body.jci-header-mega-menu-open {
      overflow-x: clip;
    }
  }

  .jci-header-mega-menu__surface {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .jci-mobile-advisor-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1300;
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) repeat(3, minmax(0, 0.54fr));
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: 0;
    padding-left: env(safe-area-inset-left, 0px);
    border-top: 1px solid #9aa3b2;
    background: #d2d8e3;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 180ms ease-out, visibility 180ms ease-out;
  }

  body.jci-new-header-scrolled:not(.jci-header-mega-menu-open):not(.jci-filter-panel-open) .jci-mobile-advisor-bar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.jci-new-header-scrolled:not(.jci-header-mega-menu-open):not(.jci-filter-panel-open) {
    padding-bottom: 0;
  }

  body.jci-new-header-scrolled:not(.jci-header-mega-menu-open):not(.jci-filter-panel-open) .site-footer {
    padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }

  body.jci-header-mega-menu-open .jci-mobile-advisor-bar,
  body.jci-filter-panel-open .jci-mobile-advisor-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .jci-mobile-advisor-bar__label {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 64px;
    padding: 0 18px;
    box-sizing: border-box;
    color: var(--bs-body-color);
    font-size: clamp(13px, 3.8vw, 16px);
    font-weight: 700;
    line-height: 1.1;
  }

  .jci-mobile-advisor-bar__action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 64px;
    padding-bottom: 0;
    box-sizing: border-box;
    border-left: 1px solid #9aa3b2;
    color: var(--bs-body-color);
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1;
    text-decoration: none;
  }

  .jci-mobile-advisor-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    color: inherit;
  }

  .jci-mobile-advisor-bar__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
  }

  .jci-mobile-advisor-bar__action:hover,
  .jci-mobile-advisor-bar__action:focus-visible {
    color: var(--color-blue);
    text-decoration: none;
  }

  .jci-mobile-advisor-bar__action:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: -3px;
  }

  .jci-header-mega-menu__advisor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jci-header-mega-menu__backdrop,
  .jci-header-mega-menu__surface {
    transition: none;
  }

  .jci-header-mega-menu.is-opening .jci-header-mega-menu__surface,
  .jci-header-mega-menu.is-open .jci-header-mega-menu__surface,
  .jci-header-mega-menu.is-closing .jci-header-mega-menu__surface {
    transform: none;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .jci-mobile-advisor-bar {
    transition: none;
  }
}
