{#
/**
 * @file
 * Election notice detail page.
 *
 * Available variables:
 * - notice: Single notice with:
 *   - title: Notice title string.
 *   - date: Formatted date string (e.g. "17 March 2026").
 *   - date_attr: Machine date string for datetime attribute (e.g. "2026-03-17").
 *   - content: Rendered paragraph content.
 */
#}
{% if notice %}
  <article class="election-notice-detail">
    <div class="election-notice-detail__header">
      <h2 class="election-notice-detail__title">{{ notice.title }}</h2>
      <time class="election-notice-detail__date" datetime="{{ notice.date_attr }}">{{ notice.date }}</time>
    </div>
    {% if notice.content %}
      <div class="election-notice-detail__content">
        {{ notice.content }}
      </div>
    {% endif %}
  </article>
{% endif %}
