{# divider override — folds in the old divider_fan: gold geometric rules. Fields mirror builtin: variant (line|ornament|spacer-rule), weight, width, icon. ornament renders a sunburst fan crest; spacer-rule a short centred gold rule; line a hairline gold rule. #}
{% with variant=variant|default:"line" weight=weight|default:"thin" width=width|default:"full" %}
{% if variant == "ornament" %}
{% set dicon = icon|default:"lucide:diamond" %}
<div data-block-override="gotham:divider" class="bn-divider mx-auto my-12 flex items-center justify-center gap-4 {% if width == "narrow" %}max-w-[200px]{% elif width == "wide" %}max-w-3xl{% else %}w-full{% endif %}{% if class %} {{ class }}{% endif %}" role="separator">
  <span class="reel-rule w-14 sm:w-24" aria-hidden="true"></span>
  <span class="shrink-0" style="color:hsl(var(--primary));"><svg class="h-3.5 w-3.5" width="14" height="14" aria-hidden="true"><use href="/icons/{{ dicon|split:":"|first }}.svg#{{ dicon|split:":"|last }}"></use></svg></span>
  <span class="reel-rule w-14 sm:w-24" aria-hidden="true"></span>
</div>
{% elif variant == "spacer-rule" %}
<div data-block-override="gotham:divider" class="bn-divider mx-auto py-10 flex justify-center {% if width == "narrow" %}max-w-[200px]{% elif width == "wide" %}max-w-3xl{% else %}w-full{% endif %}{% if class %} {{ class }}{% endif %}" role="separator"><span class="{% if weight == "thick" %}reel-rule-thick{% else %}reel-rule{% endif %} w-16"></span></div>
{% else %}
<div data-block-override="gotham:divider" class="bn-divider mx-auto my-8 flex justify-center {% if width == "narrow" %}max-w-[200px]{% elif width == "wide" %}max-w-3xl{% else %}w-full{% endif %}{% if class %} {{ class }}{% endif %}" role="separator"><span class="{% if weight == "thick" %}reel-rule-thick{% else %}reel-rule{% endif %} w-full"></span></div>
{% endif %}
{% endwith %}
