/* Give category pills breathing room without changing their single-row flow. */
.typechips { gap: 14px; padding: 6px 4px 10px; }
.catrow { gap: 14px; padding: 15px 18px 16px; }

/* Native scrolling, styled to match the archive's dark violet surfaces. */
:where(html, body, body *) {
  scrollbar-width: thin;
  scrollbar-color: #7180a6 #101421;
}

/* Chromium/WebKit: use the rounded native thumb rather than its square
   standards fallback. Low specificity preserves mobile scrollbar hiding. */
@supports selector(::-webkit-scrollbar) {
  :where(html, body, body *) {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  @media (min-width: 861px) {
    .typechips { scrollbar-width: auto; }
  }

  ::-webkit-scrollbar { width: 4px; height: 4px; }
  ::-webkit-scrollbar-track {
    background: rgba(9, 11, 18, .35);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb {
    min-height: 32px;
    min-width: 32px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, #687797, #8273ad) padding-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8c9bbd, #a78bda) padding-box;
  }
  ::-webkit-scrollbar-thumb:active { background: #b3a0e3 padding-box; }
  ::-webkit-scrollbar-corner { background: transparent; }
}

/* Respect Windows high contrast instead of retaining decorative colors. */
@media (forced-colors: active) {
  :where(html, body, body *), .typechips {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  ::-webkit-scrollbar-track { background: Canvas; }
  ::-webkit-scrollbar-thumb,
  ::-webkit-scrollbar-thumb:hover,
  ::-webkit-scrollbar-thumb:active { background: ButtonText padding-box; }
}
