{# ============================================================================ molecules.html — Jinja macros for molecule-level components Molecules are small combinations of atoms that appear inside organisms. Import: `{% from 'molecules.html' import nav_links, inline_form, faq_row %}` ============================================================================ #} {% from 'atoms.html' import input, arrow, wordmark, glyph %} {# nav-links — horizontal list of links with optional active index #} {% macro nav_links(items, active_index=-1) -%} {%- endmacro %} {# inline-form — email + optional icon block + submit. Used in subnav and footer #} {% macro inline_form(placeholder='Enter Email to receive a sample report', with_icon=true, submit_label='Submit') -%}
{{ input(placeholder=placeholder, type='email') }} {% if with_icon %}{% endif %} {{ submit_label }} {{ arrow('→▪') }}
{%- endmacro %} {# faq-row — accordion question with red + toggle. `question_html` may contain for bold inline terms #} {% macro faq_row(question_html) -%}
+
{{ question_html|safe }}
{%- endmacro %} {# feature-card — column in a feature-strip. title + 1-line body #} {% macro feature_card(title, body) -%}

{{ title }}

{{ body }}

{%- endmacro %} {# testimonial-card — quote_html may contain inline wordmark glyphs #} {% macro testimonial_card(quote_html, name, title_company) -%}

{{ quote_html|safe }}

{{ name }} {{ title_company }}
{%- endmacro %} {# product-panel — dark (or light) product-module card. variant: dark (default) | light | dark-sm link_label: the "LEARN MORE" CTA label #} {% macro product_panel(name_html, desc_html, variant='dark', link_label='Learn more', screen_variant='dark') -%} {% set classes = 'wf-product-panel' %} {% if variant == 'light' %}{% set classes = classes + ' light' %}{% endif %} {% if 'sm' in variant %}{% set classes = classes + ' sm' %}{% endif %}
{{ name_html|safe }}

{{ desc_html|safe }}

{%- endmacro %} {# publication-card — article teaser with meta-col + body-col #} {% macro publication_card(tag, date_meta, title, excerpt) -%}
{{ tag }} {{ date_meta }}
{{ title }}

{{ excerpt }}

{%- endmacro %} {# process-step — numbered step in a horizontal sequence #} {% macro process_step(num_label, title, body) -%}
{{ num_label }}

{{ title }}

{{ body }}

{%- endmacro %} {# compliance-pills — row of pills aligned right #} {% macro compliance_pills(pills) -%}
{% for p in pills -%} {{ p.text }} {% endfor -%}
{%- endmacro %} {# sequencing-step — one step in the supporting-statement flow (not a hero step) #} {% macro sequencing_step(label, body) -%}
{{ label }}

{{ body }}

{%- endmacro %} {# partner-card — partner / collaboration block (used in partner-grid) #} {% macro partner_card(title, body_html) -%}

{{ title }}

{{ body_html|safe }}

{%- endmacro %} {# reason-card — one reason in the why-grid #} {% macro reason_card(title, body) -%}

{{ title }}

{{ body }}

{%- endmacro %}