/*
 * Corrections to the vendored legacy sheet, loaded AFTER legacy.css.
 *
 * legacy.css is regenerated wholesale by `python tools/extract_css.py`, so a
 * fix written into it is lost on the next extraction. Anything that corrects
 * the theme rather than reproducing it lives here instead, one rule at a time,
 * each with its decision record in docs/decisions/.
 */

/*
 * The dead first scroll step: docs/decisions/2026-10-12-scroll-overflow-clip.md
 *
 * legacy.css sets `overflow-x:hidden` on both `html` and `body`. Any
 * non-`visible` overflow-x makes the other axis compute to `auto`, so <body>
 * became its own scroll container carrying the 10px by which the page overflows
 * it. The first wheel notch scrolled the body by 10px and window.scrollY stayed
 * at 0, so the page looked frozen for one step.
 *
 * `clip` keeps the horizontal clipping the theme relies on (nothing scrolls
 * sideways) without creating a scroll container, so the wheel goes to the
 * window from the first notch. `overflow-y` is left alone: with `clip`, it stays
 * `visible` instead of being forced to `auto`.
 */
html,
body {
  overflow-x: clip;
}
