:root {
  --network-height: 0px;
  --header-height: 82px;
  --rmg-menu-shell: 1380px;
  --rmg-menu-ink: #07151d;
  --rmg-menu-brand: #08749f;
  --rmg-menu-cyan: #55cfe0;
  --rmg-menu-line: #d9e2e6;
  --rmg-menu-paper: #fff;
  --rmg-menu-text: #243943;
  --rmg-menu-mist: #f4f8f9;
}

.site-header,
.site-header.is-compact {
  position: sticky !important;
  z-index: 100 !important;
  top: 0 !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  border-bottom: 1px solid var(--rmg-menu-line) !important;
  background: var(--rmg-menu-paper) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.admin-bar .site-header,
body.admin-bar .site-header.is-compact {
  top: 32px !important;
}

.site-header .header-inner {
  position: relative !important;
  display: grid !important;
  width: min(var(--rmg-menu-shell), calc(100% - 64px)) !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  grid-template-columns: 260px minmax(0, 1fr) 220px !important;
  align-items: center !important;
  gap: 32px !important;
}

.site-header .brand.unified-brand {
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  gap: 14px !important;
  color: var(--rmg-menu-ink) !important;
  text-decoration: none !important;
}

.site-header .brand.unified-brand img {
  display: block !important;
  width: 152px !important;
  max-width: 152px !important;
  height: auto !important;
  flex: 0 0 152px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.site-header .unified-brand__context {
  display: flex !important;
  min-height: 32px;
  padding-left: 14px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--rmg-menu-line);
  line-height: 1.05;
}

.site-header .unified-brand__context small {
  color: var(--rmg-menu-brand) !important;
  font-size: 8px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-transform: uppercase;
}

.site-header .unified-brand__context strong {
  max-width: 104px !important;
  margin-top: 4px;
  color: var(--rmg-menu-ink) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
}

.site-header .header-action {
  display: inline-flex !important;
  width: 220px !important;
  min-width: 220px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  align-items: center !important;
  justify-content: space-between !important;
  justify-self: end !important;
  gap: 18px !important;
  border: 1px solid var(--rmg-menu-ink) !important;
  border-radius: 4px !important;
  color: #fff !important;
  background: var(--rmg-menu-ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease !important;
}

.site-header .header-action:hover,
.site-header .header-action:focus-visible {
  border-color: var(--rmg-menu-brand) !important;
  color: #fff !important;
  background: var(--rmg-menu-brand) !important;
  box-shadow: none !important;
  transform: none !important;
}

.site-header .menu-toggle {
  display: none !important;
}

.ecosystem-menu.main-nav {
  position: static !important;
  display: flex !important;
  width: auto !important;
  min-width: 0;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  align-self: stretch;
  justify-content: center !important;
  justify-self: center !important;
  gap: clamp(20px, 2vw, 30px) !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.ecosystem-menu .ecosystem-menu-item {
  position: static;
  flex: 0 0 auto;
}

.ecosystem-menu .ecosystem-menu-item > summary {
  position: relative;
  display: flex;
  min-height: var(--header-height);
  padding: 0;
  align-items: center;
  gap: 8px;
  color: var(--rmg-menu-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  white-space: nowrap;
}

.ecosystem-menu .ecosystem-menu-item > summary::-webkit-details-marker {
  display: none;
}

.ecosystem-menu .ecosystem-menu-item > summary::before {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--rmg-menu-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.ecosystem-menu .ecosystem-menu-item > summary::after {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease, margin 160ms ease;
}

.ecosystem-menu .ecosystem-menu-item > summary:hover::before,
.ecosystem-menu .ecosystem-menu-item > summary:focus-visible::before,
.ecosystem-menu .ecosystem-menu-item[open] > summary::before {
  transform: scaleX(1);
}

.ecosystem-menu .ecosystem-menu-item[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.ecosystem-menu .ecosystem-panel {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  min-width: 720px;
  max-height: calc(100dvh - var(--header-height) - 24px);
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--rmg-menu-line);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: var(--rmg-menu-paper);
  box-shadow: 0 22px 48px rgba(7, 21, 29, .2);
}

.ecosystem-menu .ecosystem-menu-item[data-align="left"] .ecosystem-panel,
.ecosystem-menu .ecosystem-menu-item[data-align="right"] .ecosystem-panel {
  right: 0;
  left: 0;
  transform: none;
}

.ecosystem-menu .ecosystem-panel-grid {
  display: grid;
  gap: 0;
}

.ecosystem-menu .ecosystem-panel-grid--links {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ecosystem-menu .ecosystem-panel-grid--services {
  grid-template-columns: minmax(260px, .5fr);
}

.ecosystem-menu .ecosystem-panel-grid--products {
  grid-template-columns: repeat(2, minmax(190px, 1fr)) minmax(340px, 1.45fr);
}

.ecosystem-menu .ecosystem-panel-grid--prices {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.ecosystem-menu .ecosystem-panel-grid--info {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.ecosystem-menu .ecosystem-group {
  min-width: 0;
  padding: 2px 20px 4px;
  border-left: 1px solid #dbe5e8;
}

.ecosystem-menu .ecosystem-group:first-child {
  padding-left: 0;
  border-left: 0;
}

.ecosystem-menu .ecosystem-group:last-child {
  padding-right: 0;
}

.ecosystem-menu .ecosystem-subhead {
  display: block;
  margin: 0 0 8px;
  color: var(--rmg-menu-brand);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ecosystem-menu .ecosystem-panel a {
  position: relative;
  display: flex !important;
  width: 100% !important;
  min-height: 40px;
  padding: 9px 8px !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0 !important;
  border-top: 1px solid #e2eaed !important;
  color: var(--rmg-menu-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  white-space: normal;
}

.ecosystem-menu .ecosystem-panel-grid--links > a:first-child,
.ecosystem-menu .ecosystem-children > a:first-child {
  border-top-color: transparent !important;
}

.ecosystem-menu .ecosystem-panel--knowledge a {
  border-top: 0 !important;
}

.ecosystem-menu .ecosystem-panel--knowledge .ecosystem-panel-grid--links > a::after {
  display: none !important;
  content: none !important;
}

.ecosystem-menu .ecosystem-panel-grid--links > a::after,
.ecosystem-menu .ecosystem-parent-link::after {
  position: static;
  display: block !important;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  content: "→" !important;
  background: none;
  color: var(--rmg-menu-brand);
  transform: none;
}

.ecosystem-menu .ecosystem-group > .ecosystem-parent-link {
  min-height: 44px !important;
  padding: 8px 0 12px !important;
  border-top: 0 !important;
  border-bottom: 1px solid #cddbe0 !important;
  color: var(--rmg-menu-ink) !important;
  font-size: 14px !important;
  font-weight: 780 !important;
}

.ecosystem-menu .ecosystem-children {
  margin-top: 4px;
}

.ecosystem-menu .ecosystem-children--columns {
  columns: 2;
  column-gap: 18px;
}

.ecosystem-menu .ecosystem-children a {
  break-inside: avoid;
  min-height: 34px !important;
  padding: 7px 0 !important;
  font-size: 12px !important;
  font-weight: 560 !important;
}

.ecosystem-menu .ecosystem-children a::after {
  display: none !important;
}

.ecosystem-menu .ecosystem-panel a:hover,
.ecosystem-menu .ecosystem-panel a:focus-visible {
  color: var(--rmg-menu-brand) !important;
  background: var(--rmg-menu-mist);
  outline: none;
}

.site-header .ecosystem-menu > .ecosystem-direct {
  display: flex !important;
  min-height: var(--header-height);
  padding: 0 !important;
  align-items: center;
  border: 0 !important;
  color: var(--rmg-menu-ink) !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

@media (max-width: 1240px) {
  :root {
    --header-height: 70px;
  }

  .site-header,
  .site-header.is-compact {
    top: 0 !important;
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
  }

  .site-header .header-inner {
    width: min(var(--rmg-menu-shell), calc(100% - 32px)) !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    gap: 16px !important;
  }

  .site-header .brand.unified-brand img {
    width: 132px !important;
    max-width: 132px !important;
    flex-basis: 132px !important;
  }

  .site-header .unified-brand__context,
  .site-header .header-action {
    display: none !important;
  }

  .site-header .menu-toggle {
    position: relative !important;
    display: grid !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-content: center !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    border: 1px solid var(--rmg-menu-line) !important;
    border-radius: 4px !important;
    color: var(--rmg-menu-ink) !important;
    background: #fff !important;
  }

  .site-header .menu-toggle::before,
  .site-header .menu-toggle::after {
    position: absolute !important;
    left: 13px !important;
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 1px;
    content: "" !important;
    background: currentColor !important;
    transition: top 180ms ease, bottom 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  }

  .site-header .menu-toggle::before {
    top: 14px !important;
    box-shadow: 0 8px 0 currentColor;
  }

  .site-header .menu-toggle::after {
    top: auto !important;
    bottom: 14px !important;
  }

  .site-header .menu-toggle[aria-expanded="true"]::before {
    top: 23px !important;
    box-shadow: none;
    transform: rotate(45deg);
  }

  .site-header .menu-toggle[aria-expanded="true"]::after {
    bottom: 23px !important;
    transform: rotate(-45deg);
  }

  .site-header .ecosystem-menu.main-nav {
    position: absolute !important;
    z-index: 120 !important;
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100dvh - var(--header-height));
    margin: 0 !important;
    padding: 12px 18px 20px !important;
    flex: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start;
    gap: 0 !important;
    overflow-y: auto;
    border-top: 1px solid var(--rmg-menu-line) !important;
    border-bottom: 1px solid var(--rmg-menu-line) !important;
    background: #fff !important;
    box-shadow: 0 20px 40px rgba(7, 21, 29, .14) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease !important;
  }

  .site-header.nav-active .ecosystem-menu.main-nav,
  body.nav-open .site-header .ecosystem-menu.main-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .ecosystem-menu .ecosystem-menu-item {
    width: 100%;
    border-bottom: 1px solid #dbe5e8;
  }

  .ecosystem-menu .ecosystem-menu-item > summary {
    min-height: 49px;
    padding: 13px 0;
    justify-content: space-between;
    font-size: 14px;
    white-space: normal;
  }

  .ecosystem-menu .ecosystem-menu-item > summary::before {
    display: none;
  }

  .ecosystem-menu .ecosystem-panel,
  .ecosystem-menu .ecosystem-menu-item[data-align="left"] .ecosystem-panel,
  .ecosystem-menu .ecosystem-menu-item[data-align="right"] .ecosystem-panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: 10px 12px 14px;
    overflow: visible;
    border: 0;
    border-top: 0;
    border-radius: 0;
    background: #f6f9fa;
    box-shadow: none;
    transform: none;
  }

  .ecosystem-menu .ecosystem-panel-grid,
  .ecosystem-menu .ecosystem-panel-grid--services,
  .ecosystem-menu .ecosystem-panel-grid--products,
  .ecosystem-menu .ecosystem-panel-grid--prices,
  .ecosystem-menu .ecosystem-panel-grid--info {
    grid-template-columns: 1fr;
  }

  .ecosystem-menu .ecosystem-group,
  .ecosystem-menu .ecosystem-group:first-child,
  .ecosystem-menu .ecosystem-group:last-child {
    padding: 14px 0 8px;
    border-top: 1px solid #dbe5e8;
    border-left: 0;
  }

  .ecosystem-menu .ecosystem-group:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .ecosystem-menu .ecosystem-children--columns {
    columns: 1;
  }

  .ecosystem-menu .ecosystem-panel a {
    min-height: 42px !important;
    padding: 10px 6px !important;
    border-bottom: 0 !important;
    font-size: 13px !important;
  }

  .ecosystem-menu .ecosystem-parent-link {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .site-header .ecosystem-menu > .ecosystem-direct {
    min-height: 49px !important;
    padding: 13px 0 !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header,
  body.admin-bar .site-header.is-compact {
    top: 46px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-menu .ecosystem-menu-item > summary::before,
  .ecosystem-menu .ecosystem-menu-item > summary::after {
    transition: none;
  }
}
