{#- Branded email, in the sender's brand (colours, font, logo, footer). Tables + inline styles so it renders in Outlook and Gmail; the {%- if preheader %}
{{ preheader }}
{% endif %}
{#- header: logo (+ what this is, on the right) #} {% set head_bg = '#FFFFFF' if c.light_header else c.band %} {#- headline figure #} {% if hero %} {% endif %} {#- message #} {#- sign-off and signature #} {#- footer #}
{% if hero and hero.kicker %}{% endif %}
{% if logo %}{{ brand.name }} {%- else %}{{ brand.name }}{% endif %}{{ hero.kicker }}
{% if hero.eyebrow %}
{{ hero.eyebrow }}
{% endif %}
{{ hero.headline }}
{% if hero.sub %}
{{ hero.sub }}
{% endif %}
{% if greeting %}

{{ greeting }}

{% endif %} {% for s in sections %} {% if s.heading %}
{{ s.heading }}
{% endif %} {{ s.html }} {% endfor %} {% if cta %}
{{ cta.label }} →
{% endif %} {#- age bar #} {% if bands %} {{ label("By age") }} {%- for b in bands %}{% endfor -%}
 
{%- for b in bands %}{% endfor -%}
{{ b.label }}
{{ b.text }}
{% endif %} {#- largest balances #} {% if top %} {{ label(top.title) }} {% for r in top.rows %} {% endfor %}
{{ r.name }}
  
{{ r.text }}
{% endif %} {#- the figures #} {% if table %} {{ label(table.title) }} {% for col in table.columns %}{% endfor %} {% for row in table.rows %} {% for cell in row %} {%- set edge = ('padding-left:0;' if loop.first else '') ~ ('padding-right:0;' if loop.last else '') -%} {%- if cell.kind == 'days' -%} {%- set v = cell.value if cell.value is number else 0 -%} {%- set pill = (c.ramp[3], c.on_ramp_dark) if v > 90 else ((c.soft, c.on_soft) if v > 60 else (c.canvas, c.muted)) -%} {%- else -%} {%- endif -%} {% endfor %} {% endfor %} {% if table.totals %} {% for cell in table.totals %}{% endfor %} {% endif %}
{{ col.name }}
{{ cell.text }}{{ cell.text }}
{{ cell.text }}
{% if table.shown < table.total %}

Showing {{ table.shown }} of {{ table.total }}.{% if attachments %} The full list is in the attached {{ 'PDF' if attachments[0].lower().endswith('.pdf') else 'file' }}.{% endif %}

{% endif %} {% endif %} {#- attachments #} {% if attachments %} {% for a in attachments %} {% endfor %}
{{ badge(a) }}
{{ a }}
Attached
{% endif %}
 
{% if copy.sign_off %}

{{ copy.sign_off }}

{% endif %} {% if signature %}
{{ signature }}
{% else %}
{{ sender.name }}
{% if sender.title %}{{ sender.title }} ยท {% endif %}{{ brand.name }}
{% endif %}
{% if brand.website %}{% endif %}
{{ brand.footer or brand.name }}{{ brand.website.replace('https://', '').replace('http://', '').rstrip('/') }}