.election-timeline__date-heading {
  margin-block: 1.5rem 1rem;
  font-weight: 700;
}

.election-timeline__area {
  overflow: hidden;
  margin-block-end: 1.5rem;
  border: 1px solid #ddd;
}

.election-timeline__area-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem;

  @media screen and (max-width: 30rem) {
    flex-direction: column;
  }
}

.election-timeline__area-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.election-timeline__time {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.election-timeline__area-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.election-timeline__area-link {
  font-size: inherit;
  font-weight: inherit;
}

.election-timeline__seats {
  white-space: nowrap;
  font-size: 1.25rem;
}

.election-timeline__candidates {
  padding: 0 1rem 1rem;
}

.election-timeline__candidate {
  display: grid;
  gap: 0.75rem;
  grid-template-areas:
    "party  tag"
    "name   votes";
  grid-template-columns: 1fr auto;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-black, #000);
  border-left: 4px solid #8d8d8d;
  background-color: #f5f5f5;
  font-size: 1.125rem;
}

.election-timeline__candidate--winner {
  padding-right: 0;
  border-left-color: var(--party-bg-colour, transparent);
  background-color: #fff;
}

.election-timeline__candidate-party {
  grid-area: party;
  align-self: center;
  font-weight: 700;
}

.election-timeline__candidate-tag {
  grid-area: tag;
  align-self: center;
  text-align: right;
}

.election-timeline__candidate--winner .election-timeline__candidate-tag:not(:empty) {
  padding: 0.25rem 0.5rem;
  color: var(--election-label-fg);
  background-color: var(--election-label-bg);
  font-size: 1.0625rem;
  font-weight: 700;
}

.election-timeline__candidate-name {
  grid-area: name;
  align-self: center;
}

.election-timeline__candidate-votes {
  grid-area: votes;
  align-self: center;
  text-align: right;
}
