FAQ_ITEMS = [ ( "Why do I need to be part of a team?", "Team-based participation lets us track contributions accurately and avoids duplicate submissions from the same group.", ), ( "Can I be on more than one team?", "Yes, but creating a second team requires a written justification.", ), ( "How do I submit my team's work?", "Use the submission portal on the dashboard. Make sure all team members are listed before submitting.", ), ] def build_faq_html(items: list[tuple[str, str]]) -> str: toggle_js = """ var a = this.querySelector('.faq-answer'); var c = this.querySelector('.faq-chevron'); if (a.style.display === 'none') { a.style.display = 'block'; c.style.transform = 'rotate(180deg)'; } else { a.style.display = 'none'; c.style.transform = 'rotate(0deg)'; } """ cards = "" for i, (question, answer) in enumerate(items): collapsed = 'style="display:none;"' chevron_style = 'style="transform: rotate(180deg);"' if i == 0 else "" cards += f"""