{#
/**
 * @file
 * Elected candidates table for a single area vote.
 *
 * Matches the structure and styling of the summary_table display in
 * localgov_election_results — same columns (Party, Candidate, Votes),
 * same classes and data-label mobile pattern — but without the area
 * grouping row since we are already on the area page.
 */
#}
<table{{ attributes.addClass('table-election-areas') }}>
  <thead>
    <tr>
      {% for key, column in header %}
        <th{{ column.attributes }}>{{ column.content }}</th>
      {% endfor %}
    </tr>
  </thead>
  <tbody>
    {% for row in rows %}
      <tr{{ row.attributes }}>
        {% for key, column in row.columns %}
          <td{{ column.attributes }}{% if not loop.first %} data-label="{{ header[key].content|render|striptags|trim }}"{% endif %}>{{ column.content }}</td>
        {% endfor %}
      </tr>
    {% endfor %}
  </tbody>
</table>
