{#
  garden-badge.njk — Digital Garden stage indicator
  Usage (post page):  {% include "components/garden-badge.njk" %}
  Usage (list page):  {% set gardenStage = post.data.gardenStage %}{% include "components/garden-badge.njk" %}
  Resolves from: gardenStage (direct) or post.data.gardenStage (list context)
  Renders a coloured pill badge linking to /garden/#<stage>
#}
{% set _stage = gardenStage or (post.data.gardenStage if post else null) %}
{% if _stage %}
{% set _stageInfo = _stage | gardenStageInfo %}
{% if _stageInfo %}
<a href="/garden/#{{ _stage }}"
   class="garden-badge garden-badge--{{ _stage }}"
   title="{{ _stageInfo.description }}"
   aria-label="Garden stage: {{ _stageInfo.label }}">
  <span aria-hidden="true">{{ _stageInfo.emoji }}</span>
  <span>{{ _stageInfo.label }}</span>
</a>
{% endif %}
{% endif %}
