/* Desktop navigation row: top-level links, separators and dropdown affordances. */

.top-menu-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.28vw, 30px);
  overflow: visible;
}

.top-menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

.top-menu-item + .top-menu-item::before {
  content: "";
  position: absolute;
  left: calc(clamp(18px, 1.28vw, 30px) / -2);
  top: 50%;
  width: 2px;
  height: 31px;
  background: linear-gradient(180deg, transparent, rgba(244, 241, 223, .30), var(--tech-line), rgba(244, 241, 223, .18), transparent);
  opacity: .80;
  translate: 0 -50%;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(245, 242, 223, .12);
}

.top-menu-item + .top-menu-item:nth-child(odd)::before { opacity: .52; }

.top-menu-link,
.top-menu-nav > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 0 6px 14px;
  margin-bottom: -14px;
  color: rgba(255, 248, 232, .94);
  font-family: var(--font-menu);
  font-size: clamp(.92rem, .82vw, 1.04rem);
  font-weight: 500;
  letter-spacing: .012em;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition: color .22s var(--ease), text-shadow .22s var(--ease);
}

.top-menu-link::before,
.top-menu-nav > a::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -6px;
  bottom: -22px;
  z-index: 0;
  pointer-events: auto;
}

.top-menu-link > *,
.top-menu-nav > a > * {
  position: relative;
  z-index: 1;
}

.top-menu-link:hover,
.top-menu-link:focus-visible,
.top-menu-nav > a:hover,
.top-menu-nav > a:focus-visible,
.top-menu-item:focus-within > .top-menu-link,
.top-menu-item.is-dropdown-open > .top-menu-link {
  color: #fffbea;
  text-shadow: 0 0 18px rgba(245, 242, 223, .34);
}

.top-menu-link,
.top-menu-nav > a {
  --ui-underline-bottom: 18px;
}

.top-menu-item:focus-within > .top-menu-link,
.top-menu-item.is-dropdown-open > .top-menu-link {
  --ui-underline-opacity: 1;
}

.top-menu-chevron,
.top-menu-mobile-trigger i {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  rotate: 45deg;
  opacity: .74;
  transition: opacity .2s var(--ease), rotate .2s var(--ease);
}

.top-menu-item:focus-within .top-menu-chevron,
.top-menu-item.is-dropdown-open .top-menu-chevron,
.top-menu-mobile-trigger[aria-expanded="true"] i {
  opacity: 1;
  rotate: 225deg;
}

.top-menu.is-hover-suppressed .top-menu-link,
.top-menu.is-hover-suppressed .top-menu-nav > a { --ui-underline-opacity: 0; }
