{% load brickwork_icons i18n %} {% comment %} Stat (VIZ-001/002/017): the KPI tile. Structural, consumed via {% include %}. Stacks an overline label, a tabular-numeral value (font-variant-numeric: tabular-nums via bw-stat__value, so a column of tiles never jitters as digits change width; AC-BW-075) and an optional trend caption. Trend accessibility (BR-BW-TPL-007, AC-BW-073/074): whenever ``trend`` is set the template ALWAYS renders a directional glyph (arrow-up / arrow-down / minus, decorative) PLUS a visually hidden text fallback ("increased" / "decreased" / "unchanged"), so the direction never rides on colour alone by construction, even when the caller supplies no ``trend_label``. ``trend_label``, when given, refines the accessible text (e.g. "12% up on last month") and renders visibly beside the glyph. Colour (success or danger ink on the trend row) is reinforcement only, never the sole signal. Required context: label: the metric's name (rendered in the overline voice). value: the metric's value, pre-formatted by the caller (tabular numerals). Optional: trend ("up" | "down" | "flat"): the direction of change (VIZ-002). Any other value takes the flat treatment. trend_label (str): the visible delta text beside the glyph. icon (registry name): a leading flat glyph for the tile (VIZ-018). href: wraps the tile in an anchor (VIZ-024) which takes the interactive card's shadow raise. Omitted renders a plain non-interactive