<div class="c-election-table c-election-table--{{name}}">
  <table class="c-election-table__table">
    <thead>
      <tr class="c-election-table__head-row">
        {{#each headings}}
          <th class="c-election-table__head-cell c-election-table__head-cell--{{this.class}}" scope="col">
            <span class="c-election-table__head-cell-content">{{this.label}}</span>
          </th>
        {{/each}}
      </tr>
    </thead>
    <tbody>
      {{#each rows}}
        <tr class="c-election-table__body-row c-election-table__body-row--{{this.class}}">
          {{#each this.items}}
            <td class="c-election-table__body-cell
              {{~#each ../../headings~}}
                {{#ifCond @index "==" @../index}}
                  c-election-table__body-cell--{{this.class}}
                {{~/ifCond~}}
              {{~/each~}}">
              <span class="c-election-table__body-cell-content">{{{this}}}</span>
            </td>
          {{~/each~}}
        </tr>
      {{/each}}
    </tbody>
  </table>
  {{#if notes}}
    <div class="c-election-table__notes">
      {{#each notes}}
        <p class="c-election-table__note">{{this}}</p>
      {{/each}}
    </div>
  {{/if}}
</div>
