{{/* FAQ shortcode — renders as expandable details + outputs FAQPage schema for AI search */}}
{{ $raw := .Inner }}
{{ $items := split $raw "~~~" }}
<div class="faq-section">
{{ range $items }}
{{ $trimmed := trim . "\n\r\t " }}
{{ if $trimmed }}
{{ $parts := split $trimmed "?" }}
{{ if gt (len $parts) 1 }}
<details class="faq-item" style="margin-bottom: 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0;">
  <summary style="padding: 0.75rem 1rem; cursor: pointer; font-weight: 600; list-style: none;">{{ index $parts 0 | markdownify }}?</summary>
  <div style="padding: 0 1rem 0.75rem; color: #4a5568;">{{ index $parts 1 | markdownify }}</div>
</details>
{{ end }}
{{ end }}
{{ end }}
</div>
