@hubpav/hwio-web-runtime
Framework-free browser behaviours for the HARDWARIO websites, one ES module per concern
(/consent, /forms, /turnstile, /attribution, /theme, /track, /reveal,
/counter, /nav, /dropdown, /iso, /accordion) plus /inline (static bootstrap scripts with their
SHA-256 hashes for CSP). Every behaviour registers through hwioMount(), so it binds on
astro:page-load and cleans up on astro:before-swap when Astro's ClientRouter is present
and binds once otherwise. Pure logic lives in *-core modules and is unit-tested with
node --test. /popup is the one-popup-at-a-time protocol (hwio:popupopen) through which
/nav (mega panels, drawer) and /dropdown (details[data-hwio-dropdown]) close each other.
Motion is fail-safe: /reveal hides content waiting for its reveal only after it has started
(class hwio-reveal-on on <html>), /counter and /iso change nothing until they run, and all
three show the final state at once under prefers-reduced-motion.