/* ═══ At-a-glance pieces shared by the race page (team#220) and Results (team#222) ═══
   Loaded on every page from core.js, after tl.css. Colours come only from the
   --score-* tokens in tokens.css (never restated here). */

/* Score pill: the band colour on a light tint of itself, plain number, no %. */
.tl-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 26px; padding: 0 8px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; line-height: 1;
  font-variant-numeric: tabular-nums;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 14%, transparent);
  white-space: nowrap;
}
.tl-pill.s-top, .tl-key-w.s-top, .rg-tick.s-top { color: var(--score-top); }
.tl-pill.s-great, .tl-key-w.s-great, .rg-tick.s-great { color: var(--score-great); }
.tl-pill.s-good, .tl-key-w.s-good, .rg-tick.s-good { color: var(--score-good); }
.tl-pill.s-mid, .tl-key-w.s-mid, .rg-tick.s-mid { color: var(--score-mid); }
.tl-pill.s-low, .tl-key-w.s-low, .rg-tick.s-low { color: var(--score-low); }

/* One-line colour key: the band words, each in its colour, strongest first. */
.tl-key {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
  margin: 0; padding-top: 6px; padding-bottom: 6px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13px; line-height: 1.4;
}
.tl-key-w { white-space: nowrap; }

/* Results line and opened line (team#222): phones only. mobile.css section 22 shows them;
   wider screens keep the result cards as they were, so the key is hidden there too. */
.rg-line, .rg-open, .rs-glance > .tl-key { display: none; }
