.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; }
.mark { width: 36px; height: 36px; border-radius: 8px; display: block; object-fit: cover; }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.nav-links a, .nav-links button.nav-btn {
  color: var(--muted); text-decoration: none; background: transparent; border: 0; font: inherit;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.nav-links a.active, .nav-links button.nav-btn.active { color: var(--ink); background: #fff; }
.nav-split { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 20;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.dropdown-menu a:hover { background: var(--paper); }
.hamburger { display: none; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; padding: 6px; }
@media (max-width: 767px) {
  .hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px; flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-split { display: none; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}
