.ghm-shell {
  --ghm-bg: #06213a;
  --ghm-text: #fff;
  --ghm-hover-bg: #27c8ff;
  --ghm-hover-text: #06213a;
  position: relative;
  z-index: 60;
  width: 100%;
  background: var(--ghm-bg);
  color: var(--ghm-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.ghm-shell--sticky {
  position: sticky;
  top: 0;
}

.ghm-menu {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

.ghm-shell--full .ghm-menu {
  max-width: none;
}

.ghm-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ghm-list--root {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 52px;
}

.ghm-item {
  position: relative;
  margin: 0;
}

.ghm-item__row {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.ghm-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 52px;
  padding: .85rem 1.05rem;
  color: var(--ghm-text) !important;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}

.ghm-link--heading {
  cursor: default;
}

.ghm-item:hover > .ghm-item__row > .ghm-link,
.ghm-item:focus-within > .ghm-item__row > .ghm-link,
.ghm-item--current > .ghm-item__row > .ghm-link {
  background: var(--ghm-hover-bg);
  color: var(--ghm-hover-text) !important;
}

.ghm-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-size: 1.05em;
}

.ghm-submenu-toggle {
  display: none;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ghm-text);
  cursor: pointer;
}

.ghm-submenu-toggle > span {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.ghm-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 80;
  display: block;
  min-width: 230px;
  padding: .35rem 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  background: var(--ghm-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ghm-submenu .ghm-submenu {
  top: -.35rem;
  left: 100%;
}

.ghm-list--root > .ghm-item:last-child > .ghm-submenu {
  right: 0;
  left: auto;
}

.ghm-list--root > .ghm-item:last-child > .ghm-submenu .ghm-submenu {
  right: 100%;
  left: auto;
}

.ghm-item:hover > .ghm-submenu,
.ghm-item:focus-within > .ghm-submenu,
.ghm-item.ghm-item--open > .ghm-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.ghm-submenu .ghm-link {
  width: 100%;
  min-height: 42px;
  padding: .7rem 1rem;
  font-weight: 500;
}

.ghm-mobile-toggle {
  display: none;
  align-items: center;
  gap: .7rem;
  width: 100%;
  min-height: 52px;
  padding: .7rem .2rem;
  border: 0;
  background: transparent;
  color: var(--ghm-text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ghm-mobile-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.ghm-mobile-toggle__icon span {
  display: block;
  width: 23px;
  height: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

@media (max-width: 991px) {
  .ghm-shell--sticky {
    position: relative;
  }

  .ghm-menu {
    padding: 0 15px;
  }

  .ghm-mobile-toggle {
    display: flex;
  }

  .ghm-mobile-toggle[aria-expanded="true"] .ghm-mobile-toggle__icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .ghm-mobile-toggle[aria-expanded="true"] .ghm-mobile-toggle__icon span:nth-child(2) {
    opacity: 0;
  }

  .ghm-mobile-toggle[aria-expanded="true"] .ghm-mobile-toggle__icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .ghm-list--root {
    display: none;
    min-height: 0;
    padding: 0 0 .65rem;
  }

  .ghm-menu.ghm-menu--open .ghm-list--root {
    display: block;
  }

  .ghm-item__row {
    min-height: 46px;
  }

  .ghm-link {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    padding: .7rem .8rem;
    white-space: normal;
  }

  .ghm-submenu-toggle {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
  }

  .ghm-item--open > .ghm-item__row > .ghm-submenu-toggle > span {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .ghm-submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0 .8rem;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: rgba(255, 255, 255, .05);
    box-shadow: none;
    transition: none;
  }

  .ghm-item.ghm-item--open > .ghm-submenu {
    display: block;
  }

  .ghm-submenu .ghm-submenu {
    position: static;
  }

  .ghm-submenu .ghm-link {
    min-height: 42px;
    padding: .65rem .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghm-link,
  .ghm-submenu,
  .ghm-submenu-toggle > span,
  .ghm-mobile-toggle__icon span {
    transition: none;
  }
}
