.itemAnalysisRow {
  padding: var(--itemAnalysisRowPadding);
  margin-bottom: var(--itemAnalysisRowMargin);
  position: relative;
}

.headerRow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.headerText {
  color: var(--headerTextColor);
  font-size: var(--headerTextFontSize);
}

.metricsRow {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: var(--metricsRowLowerPadding);
}

.metricNote {
  font-size: var(--metricNoteFontSize);
  color: var(--metricNoteColor);
}

.stem {
  flex: 1 0 35%;
  font-size: var(--stemFontSize);
  line-height: var(--stemLineHeight);
  margin-bottom: var(--stemMargin);

  & p {
    margin: 0;
  }
}

.metrics {
  flex: 0 1 42rem;
}

.metric {
  justify-content: center;
}

.emptyText {
  flex: 0 1 42rem;
  padding: var(--emptyTextPadding);
  text-align: center;
  color: var(--emptyTextColor);
}

.answerAnalysis {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -1rem;
}

.answerTableSection {
  /* Explicit flex-basis is a workaround for https://bugs.webkit.org/show_bug.cgi?id=136041 */
  flex: 10 1 45%;
}

.answerDistributionSection {
  flex: 1 1 auto;

  /* Non-zero width for IE11 flex-wrap */
  min-width: 1%;
}

.answerDistribution {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 var(--answerDistributionPadding);
  position: relative;
}

.answerDistributionChart {
  width: 19rem;
  padding: 0 var(--answerDistributionChartPadding);
}

.answerDistributionLegend {
  padding: 0 var(--answerDistributionLegendPadding);
}

.answerDistributionSwatch {
  background-color: var(--answerDistributionSwatchColor);
}

.outcomeAlignments {
  display: flex;
  margin: 0 -1rem;
}

@media screen and (--phoneBreakPoint) {
  .answerDistribution {
    padding: 0;
  }

  .metric {
    flex-basis: 50%;
  }
}
