/* Historical results-table treatment and the alternative leaderboard figure. */
.astra-article .overall-summary { width: 100%; max-width: 100%; margin: 24px 0; }
.astra-article .overall-summary .table-scroll { margin: 0; }
.astra-article .overall-summary .results-table { width: 100%; min-width: 0; }
.astra-article .overall-summary .results-table th:first-child { width: auto; }
.astra-article .overall-summary .results-table th,
.astra-article .overall-summary .results-table td { padding-block: 6px; }
.astra-article .overall-summary figcaption {
  contain: inline-size;
  margin: 0;
  padding: 13px;
  background: #fafbf8;
}
.astra-article .overall-summary .table-scroll:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: -2px;
}
.astra-article .overall-results.loop-figure {
  --overall-label-width: 220px;
  margin: 24px 0;
  padding: 14px 18px 0;
}
.astra-article .overall-chart-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0 0 12px;
  font-size: 12px;
}
.astra-article .overall-chart-heading > b {
  font: 500 13px/1.4 var(--font);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink);
}
.astra-article .overall-metric-heading { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 8px; color: var(--muted); font-size: 10px; }
.astra-article .overall-metric-heading > :last-child { flex: 0 0 92px; text-align: right; }
.astra-article .overall-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.astra-article .overall-legend i { display: inline-block; width: 16px; height: 8px; margin-right: 5px; background: var(--green); }
.astra-article .overall-legend .reference-key { background: var(--bar-secondary); }
.astra-article .overall-bars { list-style: none; padding: 0; margin: 0; }
.astra-article .overall-omitted { padding: 2px 0; color: var(--muted); font-size: 12px; }
.astra-article .overall-bar-row,
.astra-article .overall-axis {
  display: grid;
  grid-template-columns: var(--overall-label-width) minmax(0, 1fr) 92px;
  column-gap: 14px;
  align-items: center;
}
.astra-article .overall-bar-row { min-height: 22px; font-size: 12px; }
.astra-article .overall-bar-row.is-astra { font-weight: 600; }
.astra-article .overall-bar-row.is-reference .overall-bar-label { color: var(--muted); }
.astra-article .overall-bar-label { line-height: 1.4; padding: 2px 0; }
.astra-article .overall-bar-track {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  box-shadow: inset 1px 0 0 var(--line);
  background: repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%);
}
.astra-article .overall-score-extension { position: absolute; height: 8px; top: calc(50% - 4px); background: var(--bar-secondary); }
.astra-article .is-reference .overall-score-extension { background: color-mix(in srgb, var(--bar-secondary) 40%, var(--white)); }
.astra-article .overall-cp-interval { position: absolute; top: calc(50% - .5px); height: 0; border-top: 1px solid var(--green-ink); }
.astra-article .is-reference .overall-cp-interval { border-color: var(--muted); }
.astra-article .overall-bar-fill { display: block; width: var(--overall-rate); height: 8px; background: var(--bar-secondary); }
.astra-article .is-astra .overall-bar-fill { background: var(--green); }
.astra-article .overall-bar-value { text-align: right; font: 11px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.astra-article .overall-bar-value > span { display: inline-block; width: 4ch; text-align: right; }
.astra-article .overall-axis { margin: 2px 0 8px; font: var(--chart-axis-font); color: var(--muted); }
.astra-article .overall-axis-ticks { grid-column: 2; }
.astra-article .overall-results figcaption { margin: 0 -18px; padding: 10px 18px; }
.astra-article #overall-results-caption a {
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 600px) {
  .astra-article .overall-results.loop-figure { --overall-label-width: 126px; }
  .astra-article .overall-bar-row, .astra-article .overall-axis { column-gap: 8px; grid-template-columns: minmax(0, 1fr) 84px; }
  .astra-article .overall-bar-row { min-height: 24px; font-size: 11px; padding: 4px 0; row-gap: 2px; }
  .astra-article .overall-bar-label { overflow-wrap: anywhere; grid-column: 1 / -1; padding: 0; }
  .astra-article .overall-bar-track { min-height: 14px; }
  .astra-article .overall-axis-ticks { grid-column: 1; }
  .astra-article .overall-metric-heading > :last-child { flex-basis: 84px; }
  .astra-article .overall-summary .results-table th:first-child { width: auto; }
}

.astra-article .overall-results .overall-axis-ticks > .result-axis-label {
  left: calc(100% + 14px);
  width: 92px;
  text-align: right;
}
@media (max-width: 600px) {
  .astra-article .overall-results .overall-axis-ticks > .result-axis-label { left: calc(100% + 8px); width: 84px; }
}

.astra-article .overall-axis > .overall-omitted { grid-column: 1; grid-row: 1; padding: 0; line-height: 16px; }
@media (max-width: 600px) {
  .astra-article .overall-axis > .overall-omitted { grid-column: 1 / -1; grid-row: auto; }
}
