/* Mobile-first responsive enhancements */
/* Collapse nav into a togglable panel on small screens */
.navbar { position: relative; }
.menu-toggle {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  width: 40px; height: 40px;
  border-radius: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 .4rem;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: #334155; }

.nav-links {
  display: none;
  gap: .6rem;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: .5rem 1rem 1rem;
  flex-direction: column;
}
.nav-links.open { display: flex; }
/* Mobile: dropdown becomes flat list */
.nav-dropdown-menu { display: block !important; position: static; border: 0; box-shadow: none; min-width: 0; padding: 0 0 0 1rem; background: transparent; }
.nav-dropdown-menu a { padding: .4rem .8rem; font-size: .85rem; }
.nav-dropdown-toggle { pointer-events: none; }

/* Desktop overrides */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-links { display: flex; position: static; background: transparent; border: 0; padding: 0; flex-direction: row; }
  .nav-dropdown-menu { display: none !important; position: absolute !important; border: 1px solid #e2e8f0; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 220px; padding: .4rem 0; background: #fff; }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: block !important; }
  .nav-dropdown-toggle { pointer-events: auto; }
}
