/* Shared sidebar: full navigation on desktop, a compact disclosure on phones. */
.sb-navigation { display: flex; flex: 1 0 auto; flex-direction: column; }
.sb-mobile-toggle { display: none; }
@media (max-width: 768px) {
  .ticker, .content-topbar { position: relative; top: auto; }
  .site-workspace { grid-template-rows: auto minmax(0, 1fr); align-content: start; }
  .site-workspace > aside.site-sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    align-self: start;
    overflow: visible;
    border-bottom-width: 1px;
  }
  .sb-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
  }
  .sb-mobile-header .sb-brand { min-width: 0; padding: 13px 0; border: 0; }
  .sb-mobile-header .brand-en-title { font-size: 20px; }
  .sb-mobile-header .brand-cn-row { margin-top: 4px; }
  .sb-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 64px;
    padding: 8px 12px;
    border: 1px solid rgba(var(--ink-rgb), .25);
    background: transparent;
    color: var(--ink);
    font: 400 14px/1.5 var(--font-display), sans-serif;
    cursor: pointer;
  }
  .sb-mobile-toggle:hover { background: var(--paper-dim); }
  .sb-mobile-toggle[aria-expanded="true"] { color: var(--heat); }
  .sb-navigation { display: none; }
  .site-sidebar[data-navigation-open="true"] .sb-navigation {
    display: flex;
    max-height: 70vh;
    max-height: 70dvh;
    overflow-y: auto;
    border-top: 1px solid rgba(var(--ink-rgb), .18);
    padding-bottom: 8px;
  }
  .sb-navigation .sb-section-title { padding-top: 14px; }
}
