{# Reusable bento card macro. FlexiHub style: dark navy2 surface, decorative watermark number, gradient icon corner. `span` controls column span via a static lookup table (Tailwind's content scanner only sees literal class strings, so dynamic `col-span-{{ span }}` would produce dead classes — the lookup keeps the utilities discoverable). `icon` is rendered via `| safe` so callers can pass either inline SVG markup (preferred) or a plain string. The default is a small inline sparkle SVG to avoid any emoji fallback. #} {% macro bento_card(number, title, description, icon=None, span='1') %} {%- set span_classes = {'1': 'col-span-1', '2': 'sm:col-span-2', '3': 'sm:col-span-2 md:col-span-3'} -%} {%- set default_icon = '' -%}
{{ description | safe }}