{# noir override — newsletter-signup; preserves {% signup_form %} wiring verbatim (list/source/submit/success_message/placeholder), layout/title/description. #}
<section data-block-override="noir:newsletter-signup" class="py-12 bg-background text-foreground md:py-16{% if class %} {{ class }}{% endif %}">
<div class="mx-auto max-w-3xl px-4">
<div class="noir-file {% if layout == "inline" %}noir-grain px-6 py-12 md:px-12{% else %}bg-card px-6 py-12 text-card-foreground md:px-10{% endif %} text-center"{% if layout == "inline" %} style="background-color:hsl(var(--primary));color:hsl(var(--primary-foreground));"{% endif %}>
{% if title %}<h2 class="noir-heading text-2xl md:text-3xl">{{ title }}</h2>{% endif %}
{% if description %}<p class="noir-body mx-auto mt-4 max-w-xl {% if layout == "inline" %}text-primary-foreground/80{% else %}text-muted-foreground{% endif %}">{{ description }}</p>{% endif %}
<div class="mx-auto mt-6 max-w-md">{% signup_form list=listSlug source=source submit=submitText success_message=successMessage placeholder=placeholder %}</div>
</div>
</div>
</section>
