/*
 * The track page extras (src/pages/tracks/track-page-extras.ts; off by default): linked only from a page that has them, so
 * the pages without them load nothing more. The stats row and the signed-in row are the fact box's own type on one line;
 * the ways in are the guides' plain rows with the app's "App" tag; nearby tracks are links with their kind and distance.
 * tracks.css's own tokens only, so the light page and the dark showcase both follow.
 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.stat-row { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 14px 0 0; }
.stat-row > div { min-width: 0; }
.stat-row dt { color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.stat-row dd { margin: 2px 0 0; font-family: var(--head); font-size: 22px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.mine { padding: 18px 0 0; }
.mine .stat-row { margin: 0; padding: 12px 16px; border-radius: var(--radius-surface); background: var(--tint); }
.mine .stat-row dd { color: var(--tint-ink); }

.ways-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ways-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.ways-list .way-head { display: inline-flex; align-items: baseline; gap: 8px; flex: 0 0 auto; min-width: 112px; }
.ways-list .way-name { font-weight: 600; }
.ways-list .way-line { color: var(--muted); flex: 1 1 220px; }
.ways-list .way-tag { padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }

.nearby-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.nearby-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.nearby-list a { position: relative; font-weight: 600; min-height: 24px; }
/* A 44 px target inside the row's 12 px padding, so the list does not move (audit L13-14: 186x26 at 375 px). */
.nearby-list a::after { content: ''; position: absolute; inset: -9px -4px; }
.nearby-list .nearby-meta { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
