{# heading override — typed case-file header. Fields mirror builtin: text, level, textClass. #}
{% if level == 1 %}<h1 data-block-override="noir:heading" class="noir-heading text-4xl md:text-5xl mb-5 flex-1 {{ textClass }}" style="color:hsl(var(--foreground));">{{ text }}</h1>
{% elif level == 3 %}<h3 data-block-override="noir:heading" class="noir-heading text-2xl md:text-3xl mb-3 flex-1 {{ textClass }}" style="color:hsl(var(--foreground));">{{ text }}</h3>
{% elif level == 4 %}<h4 data-block-override="noir:heading" class="noir-heading text-xl md:text-2xl mb-2 flex-1 {{ textClass }}" style="color:hsl(var(--foreground));">{{ text }}</h4>
{% elif level == 5 %}<h5 data-block-override="noir:heading" class="noir-heading text-lg md:text-xl mb-2 flex-1 {{ textClass }}" style="color:hsl(var(--foreground));">{{ text }}</h5>
{% elif level == 6 %}<h6 data-block-override="noir:heading" class="noir-heading text-base md:text-lg mb-2 flex-1 {{ textClass }}" style="color:hsl(var(--foreground));">{{ text }}</h6>
{% else %}<h2 data-block-override="noir:heading" class="noir-heading text-3xl md:text-4xl mb-4 flex-1 {{ textClass }}" style="color:hsl(var(--foreground));">{{ text }}</h2>{% endif %}
