/**
 * Site-wide custom scrollbars (frontend) — neutral gray tones
 */
:root {
  --wa-scrollbar-size: 8px;
  --wa-scrollbar-track: transparent;
  --wa-scrollbar-thumb: rgba(0, 0, 0, 0.18);
  --wa-scrollbar-thumb-hover: rgba(0, 0, 0, 0.32);
  --wa-scrollbar-thumb-active: rgba(0, 0, 0, 0.45);
}

html.uc-dark {
  --wa-scrollbar-thumb: rgba(255, 255, 255, 0.16);
  --wa-scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);
  --wa-scrollbar-thumb-active: rgba(255, 255, 255, 0.4);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--wa-scrollbar-thumb) var(--wa-scrollbar-track);
}

/* Chromium, Safari, Edge */
*::-webkit-scrollbar {
  width: var(--wa-scrollbar-size);
  height: var(--wa-scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--wa-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--wa-scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--wa-scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
  background-color: var(--wa-scrollbar-thumb-active);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

/* Keep hidden scrollbars where the layout explicitly asks for it */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Grid cols missing from main.min.purge.css (used by API docs sidebar) */
@media (min-width: 768px) {
  .md\:col-3 {
    --grid-total: 12;
    --grid-count: 3;
    flex: 0 0 auto;
    width: 25%;
  }

  .md\:col-9 {
    --grid-total: 12;
    --grid-count: 9;
    flex: 0 0 auto;
    width: 75%;
  }
}
