.teamMenu {
  position: relative;
}

.teamMenu summary {
  cursor: pointer;
  color: inherit;
  font-weight: 600;
}

.teamMenu summary:hover,
.teamMenu[open] summary {
  color: var(--gold);
}

.teamMenuLinks {
  display: grid;
  gap: 4px;
  min-width: max-content;
  padding: 6px;
  border: 1px solid var(--line);
  background: #1b1521;
}

.teamMenu:not([open]) .teamMenuLinks {
  display: none;
}

.teamMenuLinks a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 10px;
}

@media (min-width: 801px) {
  .navWrap nav[aria-label="Main navigation"] {
    order: 0;
    width: auto;
    justify-content: flex-end;
  }

  .navWrap nav[aria-label="Main navigation"] a,
  .teamMenu summary {
    font-size: 14px;
  }

  .teamMenuLinks {
    position: absolute;
    z-index: 1;
    top: calc(100% + 12px);
    right: 0;
    box-shadow: 0 10px 24px #0007;
  }
}

@media (max-width: 800px) {
  .teamMenu summary {
    font-size: 14px;
  }

  .teamMenuLinks {
    margin-top: 8px;
  }

  .navWrap nav.open {
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
}
