{# kindergarten card — crayon-bordered sticker panel; new builtin fields layout / link / media / title / text / linkLabel (reconciled from legacy body/image). #}
{% with layout=layout|default:"vertical" %}<article class="bn-card kg-crayon-shadow overflow-hidden rounded-3xl border-[3px] border-primary/40 bg-card text-card-foreground {% if layout == "horizontal" %}flex flex-col sm:flex-row{% endif %}{% if class %} {{ class }}{% endif %}">{% if link %}<a href="{{ link }}" class="contents">{% endif %}{% if media %}<div class="overflow-hidden bg-muted {% if layout == "horizontal" %}sm:w-2/5 sm:shrink-0{% endif %}">{% if layout == "horizontal" %}{% img media alt=title|default:"" class="h-full w-full object-cover" %}{% else %}{% img media alt=title|default:"" class="aspect-video h-full w-full object-cover" %}{% endif %}</div>{% endif %}<div class="flex flex-col gap-2 p-6 {% if layout == "horizontal" %}justify-center{% endif %}">{% if title %}<h3 class="kg-display text-lg font-bold tracking-tight text-foreground">{{ title }}</h3>{% endif %}{% if text %}<div class="kg-body text-sm leading-relaxed text-muted-foreground">{{ text|safe }}</div>{% endif %}{% if linkLabel and link %}<span class="kg-display mt-2 inline-flex items-center gap-1 text-sm font-bold text-primary">{{ linkLabel }}<svg class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></span>{% endif %}</div>{% if link %}</a>{% endif %}</article>{% endwith %}
