/* Scroll indicator (shared/scroll-toc.js): a hairline on the right edge, a glowing
   brand-blue dot that follows the scroll, and a faint tick where each section starts.
   Labels only appear on hover/focus, so it stays out of the way. Hidden on small screens. */
.toc {
  position: fixed; right: clamp(14px, 1.8vw, 28px); top: 50%; z-index: var(--sc-z-chrome, 40);
  height: min(46vh, 420px); width: 18px; transform: translateY(-50%);
  opacity: 0; transition: opacity .4s ease;
}
.toc.is-on { opacity: 1; }
.toc__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(242, 248, 252, .10); }
.toc__dot {
  position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--brand-blue); box-shadow: 0 0 8px 2px rgba(12, 163, 239, .55), 0 0 18px 4px rgba(12, 163, 239, .18);
  pointer-events: none; will-change: transform;
}
.toc a {
  position: absolute; left: 0; width: 18px; height: 18px; margin-top: -9px; display: grid; place-items: center;
}
.toc a::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: rgba(242, 248, 252, .28); transition: background .25s, transform .25s; }
.toc a.is-active::before { background: rgba(242, 248, 252, .7); transform: scale(1.3); }
.toc a span {
  position: absolute; right: 22px; white-space: nowrap; pointer-events: none;
  font-family: var(--sc-font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-foreground);
  opacity: 0; transform: translateX(4px); transition: opacity .25s, transform .25s;
}
.toc:hover a span, .toc a:focus-visible span { opacity: 1; transform: none; }
.toc a.is-active span { color: var(--foreground); }
@media (max-width: 900px) { .toc { display: none; } }
@media (prefers-reduced-motion: reduce) { .toc, .toc a::before, .toc a span { transition: none; } }
