/* ==========================================================================
   scrollbar.css — site-wide slim scrollbar (linked from every page's <head>).
   Chromium / Edge / WebView2 / Android WebView / Safari: ::-webkit-scrollbar.
   Firefox (no ::-webkit-scrollbar support): standard scrollbar-width/color.
   (The standard props are scoped to Firefox on purpose — in Chromium 121+ they
   would override the ::-webkit-scrollbar rules and make the bar thicker.)
   Page-specific rules (e.g. a hidden toolbar scrollbar) still win because they
   are more specific.
   ========================================================================== */
:root {
  --sb-size: 6px;
  --sb-thumb: rgba(110, 116, 132, 0.38);
  --sb-thumb-hover: rgba(110, 116, 132, 0.62);
  --sb-thumb-active: rgba(90, 96, 112, 0.78);
}

::-webkit-scrollbar {
  width: var(--sb-size);
  height: var(--sb-size);
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: var(--sb-thumb);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--sb-thumb-hover);
}
::-webkit-scrollbar-thumb:active {
  background-color: var(--sb-thumb-active);
}
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

@supports (-moz-appearance: none) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) transparent;
  }
}
