.branch-candidate-comparison {
  padding: 0;
  overflow: hidden;
}

.branch-candidate-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.branch-candidate-summary::-webkit-details-marker {
  display: none;
}

.branch-candidate-toggle {
  display: grid;
  justify-items: end;
  gap: .15rem;
  color: #1d4ed8;
  white-space: nowrap;
}

.branch-candidate-toggle b {
  font-size: .82rem;
}

.branch-candidate-toggle em {
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
}

.branch-candidate-toggle .open-label,
.branch-candidate-comparison[open] .closed-label {
  display: none;
}

.branch-candidate-comparison[open] .open-label {
  display: inline;
}

.branch-candidate-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #dbeafe;
}

.branch-candidate-body > p {
  margin: 12px 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .branch-candidate-summary {
    grid-template-columns: 1fr;
  }

  .branch-candidate-toggle {
    grid-auto-flow: column;
    justify-content: space-between;
    justify-items: start;
  }
}
