"""Jinja2 rendering for notification emails. `render_email()` turns a template name + context into a `(subject, html, text)` bundle. HTML is authored as Jinja templates under ``templates/email/`` that extend ``base.html``; the plain-text twin is taken from an optional ``