/* KINUVIA V39 — scrollbar transparente + progresso de leitura */
/* V39 — the scrollbar rail is transparent; only the thin graphite thumb remains. */
:root {
  --kinuvia-thumb: #242424;
  --kinuvia-thumb-hover: #080808;
}

/* Do not reserve a separate vertical strip for the scroll track. */
html { scrollbar-gutter: auto; }

/* Chrome, Edge, Safari: native vertical thumb, transparent track and corners. */
html::-webkit-scrollbar {
  width: 9px;
  background: transparent;
}
html::-webkit-scrollbar-track,
html::-webkit-scrollbar-track-piece {
  background: transparent;
  box-shadow: none;
  border: 0;
}
html::-webkit-scrollbar-thumb {
  background-color: var(--kinuvia-thumb);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
  min-height: 46px;
}
html::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:active {
  background-color: var(--kinuvia-thumb-hover);
  border-width: 1px;
}
html::-webkit-scrollbar-corner,
html::-webkit-scrollbar-button {
  background: transparent;
  display: none;
}

/* Firefox uses its native thin scrollbar with a transparent track. */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: #242424 transparent; }
}

/* Black hairline indicating progress through the vertical document. */
.kinuvia-page-progress {
  position: fixed;
  z-index: 70;
  inset: 0 0 auto 0;
  height: 3px;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}
.kinuvia-page-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: #111;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
@media (max-width: 800px) {
  /* Mobile browsers usually draw their own overlay scrollbar. */
  html { scrollbar-gutter: auto; }
  .kinuvia-page-progress { height: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
