/* Mobile navigation: below 900px the top menu collapses into a Menu button on its own
   row instead of wrapping the brand. Loaded last so it wins over each page's inline styles. */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; align-items: center; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 46px; height: 46px; margin-left: auto; padding: 11px 10px;
    background: transparent; border: 1px solid currentColor; border-radius: 8px;
    cursor: pointer; color: inherit; flex: 0 0 auto;
  }
  .nav-toggle-bar { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    flex: 1 1 100%; width: 100%; margin: 10px 0 0; padding: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: flex; align-items: center; width: 100%;
    min-height: 46px; padding: 10px 0; font-size: 17px; line-height: 1.3;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
  }
  .nav-links a:last-child { border-bottom: 0; }
}
