/* Wildcard identity: outlined lettering remains crisp without loading a font. */
.brand { display: block; width: 100%; max-width: 192px; line-height: 0; }
.brand-logo { display: block; width: 100%; height: auto; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
.brand-caption { margin-top: 12px; letter-spacing: 1px; }
.footer-brand { display: block; flex-shrink: 0; width: 146px; line-height: 0; }
.about-brand-mark { display: block; width: 70px; height: auto; margin-bottom: 24px; }
.mobile-search-toggle { display: none; }
.inline-arrow { width: 16px; height: 16px; flex-shrink: 0; }
.text-button, .page-footer button { display: inline-flex; align-items: center; gap: 6px; }
.hero-arrows svg { width: 16px; height: 16px; }
.hero-arrows .arrow-prev { transform: rotate(180deg); }

@media(max-width:700px) {
  .sidebar { column-gap: 16px; grid-template-columns: minmax(0,1fr) auto; }
  .brand { max-width: 210px; align-self: center; }
  .mobile-search-toggle { display: grid; place-items: center; grid-column: 2; grid-row: 1; justify-self: end; align-self: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: transparent; }
  .mobile-search-toggle svg { width: 20px; height: 20px; }
  .mobile-search-toggle:hover { background: #f3f5f8; }
  [data-theme="dark"] .mobile-search-toggle:hover { background: #303030; }
  .sidebar .search-box { display: none; grid-column: 1 / -1; grid-row: 2; width: 100%; height: 44px; margin-top: 14px; padding: 0 12px; gap: 10px; }
  .sidebar.search-open .search-box { display: flex; }
  .sidebar .search-box input { font-size: 16px; }
  .sidebar .search-box svg { width: 18px; height: 18px; }
  .sidebar .search-box kbd { display: none; }
  .sidebar.search-open .primary-nav { grid-row: 3; }
}
@media(max-width:440px) {
  .sidebar { column-gap: 12px; }
  .brand { max-width: 190px; }
}
