.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  color: #525252;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
  transition: background 150ms ease, color 150ms ease;
}

.dropdown-trigger:hover,
.dropdown-trigger.active,
.nav-dropdown:focus-within .dropdown-trigger {
  color: #171717;
  background: #f5f5f5;
}

.dropdown-chevron {
  display: inline-block;
  font-size: 0.78rem;
  transition: transform 180ms ease;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  z-index: 60;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu {
  padding: 8px;
  border: 1px solid rgba(229, 229, 229, 0.9);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.links .dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: #404040;
  font-size: 0.88rem;
  white-space: nowrap;
}

.links .dropdown-menu a:hover {
  color: #171717;
  background: #f7f7f7;
}

@media (max-width: 760px) {
  .nav-dropdown {
    display: none;
  }
}
