Scripts
Authoring principles
- Keep scripts component-agnostic and reusable.
- Use explicit data attributes prefixed with `data-js-` for configuration.
- Prefer progressive enhancement so markup still works without JavaScript.
- Document every behavior with a live example and attribute reference.