{# HTMX partial: sandboxed iframe showing a rendered article preview.
   Rendered by POST /admin/articles/preview. #}
{% if preview_doc %}
<iframe
  srcdoc="{{ preview_doc | e }}"
  style="flex:1;width:100%;border:none;display:block;"
  sandbox="allow-same-origin allow-scripts"
  title="Article preview"
></iframe>
{% else %}
<p class="preview-placeholder">Start writing to see a preview.</p>
{% endif %}
