{% if messages %}
{% for message in messages %}
{# Transient Brief-styled banner — no DB row, no FYI/square. #}
{# Slides in under the navbar h2 w. the same Gaussian-glass #}
{# look as the Brief notification banner; NVM dismisses. #}
{{ message }}
{% endfor %}
{% endif %}
{# Anchor for Brief.showBanner — banner inserts as nextSibling so #}
{# it lands at the top of page content on every base.html-extending #}
{# page, regardless of where (or whether)
{% include "core/_partials/_footer.html" %}
{% if user.is_authenticated %}
{% endif %}
{% block scripts %}
{% endblock scripts %}
{# Cross-page @mailman Brief surface — bud landing page sprint #}
{# 2026-05-27. Server-side context processor injects mail_ #}
{# brief_payload on every authenticated response when the user #}
{# has an unread MAIL_ACCEPTANCE Brief; banner auto-fires here #}
{# (note.js is included by pages that need Brief earlier; this #}
{# loads it if no page-block scripts pulled it in already). #}
{% if mail_brief_payload %}
{{ mail_brief_payload|json_script:"id_mail_brief_payload" }}
{% endif %}