📄 Astro Pages & Template Rules
- Role: Static Site Generation (SSG) routing hub for
company/, products/, and root templates.
- Strict Separation (Script/Style):
- Absolute ban on inline JavaScript (e.g.,
onclick attributes). All events must be bound via native event listeners inside scoped Astro <script> blocks.
- Absolute ban on inline CSS (
<style> blocks prohibited inside Astro template files).
- Nano-Markup: Keep markup templates under 150-200 lines. Abstract dense logic into sub-components.
- Don’ts: Never process raw API data shaping inside sub-components; fetch and normalize at the page/layout level.