{% extends "_base.html" %} {% block extra_css %} /* Due Diligence Report — multi-section with TOC and numbered headings */ .dd-section-number { font-family: 'Bebas Neue', sans-serif; color: var(--ds-muted); margin-right: 8px; } {% endblock %} {% block content %} {# ── Table of Contents ── #} {% set ns = namespace(counter=0) %}

Table of Contents

{% for name in section_order %} {% if sections[name] is defined and sections[name]|length > 0 %} {% set ns.counter = ns.counter + 1 %} {{ ns.counter }}. {{ labels[name] }} {% endif %} {% endfor %}
{# ── Report Sections ── #} {% set ns.counter = 0 %} {% for name in section_order %} {% if sections[name] is defined and sections[name]|length > 0 %} {% set ns.counter = ns.counter + 1 %}

{{ ns.counter }}. {{ labels[name] }}

{% for entry in sections[name] %}

{{ entry.title }}

{{ entry.html|safe }}
{% endfor %}
{% endif %} {% endfor %} {% endblock %}