/* #3088: the road card and the challenge tile of a challenge with a follower target (road.js). Token values only (design-system/tokens.css). */

/* The road: a track from 0 to the target with tick labels, in the card and, smaller, in the tile */
.road-track { position: relative; height: 26px; margin-top: var(--s3); background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-small); overflow: hidden; }
.road-track i { position: absolute; inset: 0 auto 0 0; background: var(--pop); border-right: var(--bw-card) solid var(--line); }
.road-ticks { position: relative; height: 20px; margin-top: var(--s1); font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.road-ticks span { position: absolute; top: 0; transform: translateX(-100%); }
.road-track.sm { height: 14px; margin-top: var(--s2); }
.road-ticks.sm { height: 16px; font-size: var(--fs-micro); }

/* The road card at the top of the challenge page and the home page's challenge section */
.road { margin: var(--s4) 0; }
.road-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); }
.road-big b { font-family: var(--display); font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--fs-headingTracking); color: var(--pop); }
.road-big span { font-size: var(--fs-h3); font-weight: 600; }
.road-stats { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s3); font-size: var(--fs-body); }
.road-stats b { font-size: var(--fs-h3); }

/* The tile on /challenges/ */
.road-tile { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: var(--s2); margin-top: var(--s2); width: 100%; }
.road-tile .road-track, .road-tile .road-ticks { width: 100%; }
.road-tn { font-size: var(--fs-small); }
.road-tn b { font-size: var(--fs-h3); }
