.nav { align-items: center; }

.nav-dropdown { position: relative; }

.nav-dropdown__toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: none; font-family: inherit;
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; padding: 0; line-height: 1.4;
  transition: color 0.2s;
}
.nav-dropdown__toggle:hover,
.nav-dropdown.is-open .nav-dropdown__toggle { color: var(--primary); }

.nav-dropdown__toggle svg {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform 0.2s;
}
.nav-dropdown.is-open .nav-dropdown__toggle svg { transform: rotate(180deg); }

.nav-dropdown__menu {
  display: none; position: absolute; top: calc(100% + 0.75rem); left: 50%;
  transform: translateX(-50%);
  min-width: 196px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 0.4rem; list-style: none; z-index: 110;
}
.nav-dropdown.is-open .nav-dropdown__menu { display: block; }

.nav-dropdown__menu a {
  display: block; padding: 0.625rem 0.85rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
  color: var(--text-secondary); transition: background 0.15s, color 0.15s;
}
.nav-dropdown__menu a:hover {
  background: var(--primary-soft); color: var(--primary);
}
.nav-dropdown__menu a.is-active {
  background: var(--primary-soft); color: var(--primary); font-weight: 600;
}

.mobile-menu__group { display: flex; flex-direction: column; gap: 0.15rem; }

.mobile-menu__toggle {
  width: 100%; text-align: left; padding: 0.75rem 1rem;
  background: none; border: none; font-family: inherit;
  font-size: inherit; font-weight: 500; color: var(--text-secondary);
  border-radius: 10px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu__toggle:hover { background: var(--bg-soft); color: var(--primary); }
.mobile-menu__toggle svg {
  width: 16px; height: 16px; flex-shrink: 0;
  transition: transform 0.2s;
}
.mobile-menu__group.is-open .mobile-menu__toggle svg { transform: rotate(180deg); }

.mobile-menu__sub {
  display: none; flex-direction: column; gap: 0.1rem;
  padding: 0 0 0.25rem 0.75rem;
}
.mobile-menu__group.is-open .mobile-menu__sub { display: flex; }

.mobile-menu__sub a {
  padding: 0.55rem 1rem; font-size: 0.9375rem;
}
