/* The county card is the shared layout for the last reporting unit of any
   election. Reflow content to the sidebar width; never truncate candidate names. */
#race-selector .local-results-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#race-selector .local-results-card .candidate-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.15rem 0;
  min-width: 0;
  max-width: 100%;
  font-weight: normal;
  background: transparent;
  border-bottom-color: #eee;
}

#race-selector .local-results-card .candidate-row > span,
#race-selector .local-results-card .candidate-row > .candidate-row-votes,
#race-selector .local-results-card .candidate-row > .candidate-row-bar,
#race-selector .local-results-card .candidate-row > .candidate-row-subtitle {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  margin-left: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

#race-selector .local-results-card .candidate-row > span:first-child {
  margin-top: 0;
}
#race-selector .local-results-card .candidate-row > span:nth-child(2) {
  margin-top: 0.15rem;
  color: #333;
}
#race-selector .local-results-card .candidate-photo {
  width: 2.25rem;
  height: 2.25rem;
}
#race-selector .local-results-card .candidate-list-scroll {
  max-height: none !important;
  overflow: visible;
  border-bottom: none;
}
#race-selector .local-results-card .parl-line {
  flex-wrap: wrap;
  min-width: 0;
}
#race-selector .local-results-card .nz-detail-head {
  min-width: 0;
}
#race-selector .local-results-card .nz-detail-head h4 {
  min-width: 0;
}

/* National summaries also wrap long labels, without changing their layout. */
#county-panel .candidate-row > span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.candidate-list-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
