.header-inner {
  position: relative;
}

.nav-category {
  position: relative;
  height: 100%;
  flex-shrink: 0;
}

.nav-category > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  color: #536765;
  font-size: 13px;
}

.nav-category > summary::-webkit-details-marker {
  display: none;
}

.nav-category > summary:hover,
.nav-category[open] > summary,
.nav-category.selected > summary {
  color: #116e64;
  font-weight: 650;
}

.nav-category[open] > summary,
.nav-category.selected > summary {
  box-shadow: inset 0 -3px var(--jade);
}

.nav-category-chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-category[open] .nav-category-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-category-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  width: 440px;
  max-height: min(65vh, 390px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  background: #fff;
  border: 1px solid #dcebe6;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 51, 43, .16);
}

.nav-category[open] > .nav-category-panel {
  display: block;
}

.nav-category-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.nav-category-links a,
.nav-category-all {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 7px;
  color: #28574c;
  font-size: 13px;
  white-space: nowrap;
}

.nav-category-links a:hover,
.nav-category-links a[aria-current],
.nav-category-all:hover {
  background: #eaf6f0;
  color: #086957;
}

.nav-category > summary:focus-visible,
.nav-category-panel a:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: -2px;
}

.nav-category-all {
  margin-top: 8px;
  justify-content: space-between;
  border-top: 1px solid #e8efeb;
  border-radius: 0 0 7px 7px;
  font-weight: 650;
}

@media (min-width: 961px) {
  .portal-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1160px) {
  .nav-category > summary {
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .nav-category {
    position: static;
  }

  .nav-category-panel {
    inset-inline: 0;
    width: auto;
  }

  .portal-quick > a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .nav-category-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .nav-category-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
