/* Shared navigation: one panel, clear groups, no per-link card borders. */
site-header {
  --nav-ink: #26251e;
  --nav-muted: #59616a;
  --nav-blue: #0066cc;
  --nav-line: #e2e6e9;
  --nav-shell: min(1120px, calc(100% - 64px));
  --nav-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-font: "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: block;
  background: #f7f7f4;
  border-bottom: 1px solid var(--nav-line);
  color: var(--nav-ink);
  font: 14px/1.5 var(--nav-font);
  -webkit-font-smoothing: antialiased;
}

site-header *,
site-header ::before,
site-header ::after {
  box-sizing: border-box;
  letter-spacing: 0;
}
site-header a {
  color: inherit;
  text-decoration: none;
}
site-header button {
  font: inherit;
  cursor: pointer;
}
site-header :focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 4px;
}
site-header ::selection {
  background: #d9eaff;
  color: #173759;
}
site-header img,
site-header svg {
  display: block;
}

site-header .cx-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--nav-ink);
  color: #fff;
  transform: translateY(-180%);
}
site-header .cx-skip:focus {
  transform: none;
}

site-header .header-navigation-container {
  position: relative;
  display: flex;
  align-items: center;
  width: var(--nav-shell);
  min-height: 60px;
  gap: 30px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--nav-font);
}
site-header .header-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
site-header .header-logo img {
  width: auto;
  height: 23px;
  max-width: none;
  object-fit: contain;
}
site-header .navigation-menu-container {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 22px;
}
site-header .cx-nav-group {
  position: static;
  display: block;
  flex: 0 0 auto;
}
site-header .cx-nav-trigger,
site-header .cx-nav-direct {
  position: relative;
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--nav-ink);
  font: 500 13px/1.4 var(--nav-font);
  white-space: nowrap;
}
site-header .cx-nav-trigger::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--nav-blue);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms var(--nav-ease);
}
site-header .cx-nav-trigger:hover,
site-header .cx-nav-direct:hover,
site-header .is-open > .cx-nav-trigger {
  color: var(--nav-blue);
}
site-header .is-open > .cx-nav-trigger::after {
  transform: scaleX(1);
}
site-header .cx-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
site-header .cx-nav-trigger .cx-nav-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  transition: transform 180ms var(--nav-ease);
}
site-header .is-open > .cx-nav-trigger .cx-nav-icon {
  transform: rotate(180deg);
}

site-header .cx-mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  width: min(900px, 100%);
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b6c3d0 #f5f8fa;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 54px -12px rgb(20 40 60 / 24%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -5px);
  transition:
    opacity 160ms var(--nav-ease),
    transform 160ms var(--nav-ease),
    visibility 160ms;
}
/* Keep the pointer inside the menu across the small gap below the header. */
site-header .cx-nav-group.is-open::before {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 9px;
  content: "";
}
site-header .is-open > .cx-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
site-header .cx-mega-body {
  display: grid;
  min-width: 0;
}
site-header .cx-platform-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
site-header .cx-menu-list {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 24px;
}
site-header .cx-menu-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: 0;
  border-radius: 5px;
  background: none;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    background 140ms,
    color 140ms;
}
site-header .cx-menu-name {
  color: var(--nav-ink);
  font: 600 16px/1.35 var(--nav-font);
}
site-header .cx-menu-description {
  color: var(--nav-muted);
  font: 400 13px/1.5 var(--nav-font);
}
site-header .cx-menu-link:hover,
site-header .cx-menu-link:focus-visible {
  background: #f0f6fc;
}
site-header .cx-menu-link:hover .cx-menu-name,
site-header .cx-menu-link:focus-visible .cx-menu-name {
  color: var(--nav-blue);
}

site-header .cx-menu-feature {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  background: #eaf2fb;
  color: #173759;
  text-decoration: none;
  overflow-wrap: anywhere;
}
site-header .cx-menu-preview {
  width: 100%;
  height: auto;
  margin: 0 0 8px;
  border-radius: 4px;
  aspect-ratio: 1080 / 518;
  object-fit: contain;
}
site-header .cx-feature-title {
  font: 600 22px/1.25 var(--nav-font);
}
site-header .cx-feature-description {
  max-width: 32ch;
  color: #405b76;
  font: 400 14px/1.5 var(--nav-font);
}
site-header .cx-feature-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font: 600 13px/1.5 var(--nav-font);
}
site-header .cx-feature-cta .cx-nav-icon {
  transition: transform 160ms var(--nav-ease);
}
site-header .cx-menu-feature:hover .cx-feature-cta {
  text-decoration: underline;
  text-underline-offset: 4px;
}
site-header .cx-menu-feature:hover .cx-feature-cta .cx-nav-icon {
  transform: translateX(3px);
}
site-header .cx-menu-feature:focus-visible {
  outline-offset: -5px;
}
site-header .cx-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 36px;
  border-top: 1px solid var(--nav-line);
  color: var(--nav-muted);
  font-size: 13px;
}
site-header .cx-menu-footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nav-blue);
  font-weight: 600;
}
site-header .cx-menu-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
site-header .resources > .cx-mega-menu {
  width: min(740px, 100%);
}
site-header .cx-resources-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}
site-header .cx-menu-guide {
  background: #e8f3ef;
  color: #214c40;
}
site-header .cx-menu-guide .cx-feature-description {
  color: #466359;
}

site-header .solutions > .cx-mega-menu {
  width: min(1280px, calc(100vw - 48px));
}
site-header .solutions .cx-menu-section .cx-menu-link {
  padding-block: 8px;
}
site-header .cx-solutions-layout {
  grid-template-columns:
    minmax(0, 1.05fr) minmax(0, 1fr)
    minmax(0, 1.65fr) minmax(0, 0.8fr);
}
site-header .cx-menu-codecortex {
  border-left: 1px solid var(--nav-line);
}
site-header .cx-menu-section {
  min-width: 0;
  margin: 0;
  padding: 28px 16px 24px;
}
site-header .cx-menu-section h2 {
  margin: 0 12px 14px;
  padding: 0;
  color: var(--nav-muted);
  font: 600 12px/1.5 var(--nav-font);
  text-align: left;
}
site-header .cx-menu-section .cx-menu-link {
  padding-block: 10px;
}
site-header .cx-menu-section .cx-menu-name {
  font-size: 14px;
}
site-header .cx-menu-section .cx-menu-description {
  font-size: 12px;
}
site-header .cx-menu-stack {
  min-width: 0;
}
site-header .cx-menu-stack .cx-menu-section:not(:last-child) {
  padding-bottom: 12px;
}
site-header .cx-menu-stack .cx-menu-section + .cx-menu-section {
  padding-top: 12px;
}
/* By Use Case: compact, name-only links in labelled sub-groups */
site-header .cx-menu-subgroups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 8px;
}
site-header .cx-menu-subgroup {
  display: grid;
  align-content: start;
  min-width: 0;
}
site-header .cx-menu-subgroup h3 {
  margin: 0 12px 2px;
  padding: 0;
  color: var(--nav-ink);
  font: 600 12px/1.5 var(--nav-font);
  /* Solution pages set .ri-page h3 { font-size: ... !important }. */
  font-size: 12px !important;
  text-align: left;
}
site-header .cx-menu-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 8px;
}
site-header .solutions :is(.cx-menu-usecases, .cx-menu-sources) .cx-menu-link {
  padding-block: 6px;
}
site-header :is(.cx-menu-usecases, .cx-menu-sources) .cx-menu-name {
  font-weight: 500;
}
site-header .cx-menu-roles {
  padding-inline: 22px;
  background: #f0f5fb;
}
site-header .cx-menu-roles .cx-menu-name {
  font-size: 16px;
}
site-header .cx-menu-roles .cx-menu-description {
  font-size: 13px;
}
site-header .cx-menu-roles .cx-menu-link + .cx-menu-link {
  margin-top: 12px;
}
site-header .about > .cx-mega-menu {
  width: min(640px, 100%);
}
site-header .cx-about-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
site-header .cx-about-layout .cx-menu-section {
  padding-inline: 24px;
}
site-header .cx-menu-legal {
  background: #f5f7f9;
}

site-header .action-bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
site-header .action-bar a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #c9cdd2;
  border-radius: 100px;
  font: 600 12px/1.4 var(--nav-font);
  white-space: nowrap;
}
site-header .action-bar .cx-header-demo {
  background: #fff;
  color: var(--nav-ink);
}
site-header .action-bar .cx-header-start {
  background: var(--nav-blue);
  border-color: var(--nav-blue);
  color: #fff;
}
site-header .cx-header-start .cx-nav-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  filter: invert(1);
}
site-header .action-bar a:hover {
  background: #eaf2fb;
  border-color: var(--nav-blue);
  color: var(--nav-blue);
}
site-header .action-bar .cx-header-start:hover {
  background: #004b99;
  border-color: #004b99;
  color: #fff;
}
site-header .hamburger-menu,
site-header .cx-drawer-heading {
  display: none;
}

@media (max-width: 1080px) {
  site-header .header-navigation-container {
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
  }
  site-header .hamburger-menu,
  site-header .close-button {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--nav-ink);
  }
  site-header .hamburger-menu:hover,
  site-header .close-button:hover {
    background: #eaf2fb;
  }
  site-header .navigation-menu-container {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1100;
    display: flex;
    width: min(440px, 92vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 16px 24px max(24px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: -16px 0 48px -18px rgb(20 40 60 / 28%);
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(16px);
    transition:
      opacity 160ms,
      transform 200ms var(--nav-ease),
      visibility 200ms;
  }
  site-header .navigation-menu-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  site-header .navigation-menu-container:not(.active) * {
    visibility: hidden;
  }
  site-header .cx-drawer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--nav-muted);
    font-size: 13px;
  }
  site-header .cx-nav-group {
    border-bottom: 1px solid var(--nav-line);
  }
  site-header .cx-nav-group.is-open::before {
    display: none;
  }
  site-header .cx-nav-trigger,
  site-header .cx-nav-direct {
    width: 100%;
    min-height: 54px;
    justify-content: space-between;
    font-size: 16px;
  }
  site-header .cx-nav-direct {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--nav-line);
  }
  site-header .cx-nav-trigger::after {
    display: none;
  }
  site-header .cx-nav-trigger .cx-nav-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  site-header .cx-nav-group > .cx-mega-menu {
    position: static;
    display: none;
    width: 100%;
    max-height: none;
    padding-bottom: 16px;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
  }
  site-header .cx-nav-group.is-open > .cx-mega-menu {
    display: block;
  }
  site-header .cx-mega-body {
    grid-template-columns: minmax(0, 1fr);
  }
  site-header .cx-menu-list {
    gap: 2px;
    padding: 0;
  }
  site-header .cx-menu-link {
    padding: 10px 8px;
  }
  site-header .cx-menu-name {
    font-size: 15px;
  }
  site-header .cx-menu-description {
    font-size: 13px;
  }
  site-header .cx-menu-feature {
    gap: 8px;
    margin-top: 14px;
    padding: 20px;
    border-radius: 6px;
  }
  site-header .cx-menu-preview {
    display: none;
  }
  site-header .cx-feature-title {
    font-size: 18px;
  }
  site-header .cx-feature-description {
    font-size: 13px;
  }
  site-header .cx-menu-footer {
    gap: 10px;
    padding: 16px 8px 0;
    margin-top: 16px;
  }
  site-header .cx-menu-section,
  site-header .cx-about-layout .cx-menu-section {
    padding: 12px 0;
  }
  site-header .cx-menu-section h2 {
    margin: 0 8px 8px;
  }
  site-header .cx-menu-section .cx-menu-name {
    font-size: 15px;
  }
  site-header .cx-menu-section .cx-menu-description {
    font-size: 13px;
  }
  site-header .cx-menu-roles,
  site-header .cx-menu-legal {
    background: none;
  }
  site-header .cx-menu-roles .cx-menu-link + .cx-menu-link {
    margin-top: 0;
  }
  site-header .cx-menu-codecortex {
    border-left: 0;
  }
  site-header .cx-menu-subgroups {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  site-header .cx-menu-subgroup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }
  site-header .cx-menu-subgroup h3 {
    grid-column: 1 / -1;
    margin: 0 8px 2px;
  }
  site-header .cx-menu-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  site-header .solutions .cx-menu-section .cx-menu-link {
    padding-block: 10px;
  }
  site-header .action-bar {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
  }
  site-header .action-bar a {
    width: 100%;
    min-height: 46px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  site-header {
    --nav-shell: calc(100% - 40px);
  }
  site-header .navigation-menu-container {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  site-header *,
  site-header ::before,
  site-header ::after {
    transition: none !important;
  }
}
