---
/**
 * ToTop — fixed scroll-to-top button. Becomes visible after 600 px of scroll.
 * Lives in its own component because inline `<script>` blocks inside .mdx
 * files are parsed by MDX, which trips on object-literal braces.
 */
---
<button class="to-top" id="toTop" aria-label="Back to top" type="button">
  <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
    <path d="M12 19V5M5 12l7-7 7 7"/>
  </svg>
</button>

