/* The styles of the WER chart on accuracy-benchmark.html.
 *
 * The chart is a plain SVG drawn by accuracy-chart.js. The rules below style
 * the text nodes and the grid lines it writes.
 */

.ab-chart-block {
  margin-top: var(--space-6);
}

.ab-chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-raised);
  padding: var(--space-4);
}

.ab-chart {
  display: block;
  min-width: 720px;
  width: 100%;
  height: auto;
  font-family: var(--font-sans);
}

.ab-chart__title {
  font-size: 17px;
  font-weight: 700;
  fill: var(--text);
}

.ab-chart__subtitle {
  font-size: 12.5px;
  fill: var(--text-muted);
}

.ab-chart__grid {
  stroke: var(--line);
  stroke-width: 1;
}

.ab-chart__tick,
.ab-chart__axis {
  font-size: 11.5px;
  fill: var(--text-faint);
}

.ab-chart__corpus {
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--text);
}

.ab-chart__language {
  font-size: 11px;
  fill: var(--text-faint);
}

.ab-chart__value {
  font-size: 11.5px;
  fill: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.ab-chart__legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-4) 0 0;
  padding: 0;
  font-size: var(--fs-200);
  color: var(--text-muted);
}

.ab-chart__legend li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ab-chart__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex: 0 0 auto;
}

.ab-chart__caption {
  font-size: var(--fs-300);
  color: var(--text-muted);
  margin-top: var(--space-4);
  max-width: 72ch;
}

@media (max-width: 640px) {
  .ab-chart-scroll {
    padding: var(--space-3);
  }
}
