#!/usr/bin/env node // check-overlap.mjs — the single-rule rendered overlap gate. // // RULE: flatten every layer except the background onto one plane (ignore // z-index / stacking entirely) — no two foreground paint atoms may intersect. // // A "paint atom" is an element that actually puts pixels on screen: // - a text block (the nearest block-level ancestor of a non-whitespace // text node — inline spans are attributed to their block) // - a media box ( /