/* Shared navigation behavior for the static pages. */
.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.mobile-nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .topnav,
  .site-nav { padding-left: 16px; padding-right: 16px; }

  .mobile-nav-toggle { display: inline-flex; margin-left: auto; flex-shrink: 0; }

  .topnav-inner > .mobile-nav-toggle { margin-left: auto; }

  .topnav .nav-right,
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 10px 16px 14px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .1);
  }

  .topnav.nav-open .nav-right,
  .site-nav.nav-open .nav-links { display: grid; gap: 2px; }

  .topnav .nav-right { margin-left: 0; }

  .topnav .nav-right a,
  .site-nav .nav-links a {
    display: block;
    padding: 10px 8px;
    font-size: 15px;
    border-radius: 4px;
  }

  .topnav .nav-right .theme-toggle { justify-self: start; margin: 4px 0 0 4px; }
  .site-nav .nav-spacer { display: none; }
  .site-nav > .theme-toggle { margin-left: 2px; }

  [data-theme="dark"] .mobile-nav-toggle {
    background: #1e2030;
    border-color: #2d3148;
    color: #e2e8f0;
  }

  [data-theme="dark"] .topnav .nav-right,
  [data-theme="dark"] .site-nav .nav-links {
    background: #13141c;
    border-color: #2d3148;
  }
}

