/* v6.4.8: stop the first wheel/touch tick from being eaten by a nested body scroller.

   Root cause: footer.site-foot > .site-foot-inner.m2-rv sits offscreen in its
   pre-reveal state (translateY ~24px, opacity ~0). That transform extends
   body's scrollable overflow by ~24px. Combined with
   `html, body { overflow-x: hidden }` (which computes overflow-y to auto),
   body becomes a 24px-tall scroll container and steals the first wheel or
   fling. The reverse gesture then starts one tick late (~45–80ms) — the
   hitch vs live and vs v6.4.2.

   Fix is CSS only. No scroll listeners.
*/

/* Clip the unrevealed footer transform so it cannot inflate body scrollHeight.
   IntersectionObserver reveals the footer (rootMargin 200px) before it enters
   the viewport, so the rest-state layout is not clipped. */
footer.site-foot,
footer.footer.site-foot {
  overflow: hidden;
}

/* overflow-x: hidden forces overflow-y: auto whenever scrollHeight exceeds
   the box. clip clips horizontal overflow (tickers, glows) without creating
   a nested Y scroller if a 1px leak returns. */
html, body {
  overflow-x: clip;
}
