/* Shared navigation: keep page links tucked away on smaller screens. */
.mobile-menu-toggle { display: none; }
@media (max-width: 820px) {
  .topbar .topbar-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
  }
  .topbar .brand-lockup { display: flex; flex-direction: row; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; }
  .topbar .brand-mark { display: block; flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
  .topbar .brand-wordmark b { font-size: 20px; line-height: 1.1; }
  .topbar .brand-wordmark span { font-size: 10px; letter-spacing: .08em; line-height: 1.4; margin-top: 5px; }
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 6px;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }
  .mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; }
  .mobile-menu-toggle:hover, .mobile-menu-toggle[aria-expanded="true"] { background: rgba(255,255,255,.12); }
  .mobile-menu-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
  .topbar .top-actions { display: none; }
  .topbar .top-actions.mobile-menu-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.2);
    overflow: visible;
  }
  .topbar .top-actions > a, .topbar .top-actions > button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    text-align: left;
    white-space: normal;
  }
}

/* Use the same menu when desktop navigation no longer fits. */

  .topbar .topbar-inner.nav-collapsed {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
  }
  .topbar .topbar-inner.nav-collapsed .brand-lockup { display: flex; flex-direction: row; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; }
  .topbar .topbar-inner.nav-collapsed .brand-mark { display: block; flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
  .topbar .topbar-inner.nav-collapsed .brand-wordmark b { font-size: 20px; line-height: 1.1; }
  .topbar .topbar-inner.nav-collapsed .brand-wordmark span { font-size: 10px; letter-spacing: .08em; line-height: 1.4; margin-top: 5px; }
  .topbar-inner.nav-collapsed .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 6px;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }
  .topbar-inner.nav-collapsed .mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; }
  .topbar-inner.nav-collapsed .mobile-menu-toggle:hover, .topbar-inner.nav-collapsed .mobile-menu-toggle[aria-expanded="true"] { background: rgba(255,255,255,.12); }
  .topbar-inner.nav-collapsed .mobile-menu-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
  .topbar .topbar-inner.nav-collapsed .top-actions { display: none; }
  .topbar .topbar-inner.nav-collapsed .top-actions.mobile-menu-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.2);
    overflow: visible;
  }
  .topbar .topbar-inner.nav-collapsed .top-actions > a, .topbar .topbar-inner.nav-collapsed .top-actions > button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    text-align: left;
    white-space: normal;
  }
