/* Score card: the latest /100 score on its scale, with commit, method,
   review date and its delta. */

.score-card {
  --stack-space: var(--space-m);
  padding: var(--space-l);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
}

.score-card__heading {
  color: var(--text-secondary);
  font-size: var(--step-0);
}

.score-card__score {
  font-family: var(--font-mono);
  line-height: var(--leading-tight);
}

.score-card__value {
  font-size: var(--step-4);
  color: var(--text-primary);
}

.score-card__scale {
  font-size: var(--step-1);
  color: var(--text-muted);
}

/* The track is an SVG scaled to 100 units wide: the fill width is the score
   as an SVG attribute, which the production CSP allows, unlike a style. */
.score-card__track {
  display: block;
  inline-size: 100%;
  block-size: var(--space-2xs);
  border-radius: var(--radius-pill);
  background-color: var(--bg-track);
  overflow: hidden;
}

.score-card__fill {
  fill: var(--accent);
}

.score-card__meta {
  --cluster-space: var(--space-s) var(--space-l);
}

.score-card__meta dt {
  color: var(--text-muted);
  font-size: var(--step--1);
}
