// FAQ accordion — CSS-only height animation (grid-template-rows 0fr/1fr
// trick) so opening/closing doesn't need JS to measure content height.
function FAQItem({ item, isOpen, onToggle }) {
return (
);
}
function FAQ() {
const items = window.SITE_DATA.faq;
const [openIndex, setOpenIndex] = React.useState(0);
return (
/ FAQ
{items.map((item, i) => (
setOpenIndex(openIndex === i ? -1 : i)}
/>
))}
);
}
window.FAQ = FAQ;