/* ==========================================================================
mai-kit.js v1.0 — Mission Acts International side-element kit
Pairs with mai-kit.css. No dependencies, no tracking, no network calls.
LOAD: (after the page's own script)
WHAT IT DOES (each piece is opt-in by markup; nothing happens without it)
1. Theme & motion sync — reads the same localStorage keys the pages use
("mai-theme", "mai-motion"), follows changes made in other tabs, and
tells embedded iframes the current theme via postMessage. Pages that
already run the FluidSite script keep full control; the kit only
applies the stored value when the page didn't.
2. Forms [data-maik-validate] — inline, accessible validation using the
browser's own rules (required, type=email, pattern, min/maxlength),
error summary, busy submit button, character counters, honeypot check.
3. Embeds [data-maik-embed] — loading veil, slow-load fallback link,
lazy loading of data-src iframes.
4. Strips [data-maik-dismiss] — dismissible notices remembered per id.
5. Dialogs [data-maik-open] — open/close native