/* The archive's statistics card and the 404 page. Colours come from the day's tokens only. */

/* ── statistics card ── */
.stats { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px 28px; align-items: center; margin: 0 0 22px; padding: 14px 16px; background: var(--soft); border-radius: 12px; }
.stats[hidden] { display: none; }
.stats p { margin: 0; line-height: 1.25; }
.stats.empty { display: block; }
.stats .stats-empty { font-size: 17px; }
.stats-empty a { color: var(--fg); text-underline-offset: 3px; }
.stats .stat-tiles, .stats .stat-rows { list-style: none; margin: 0; padding: 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.stats .stat-v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats .stat-l { font-size: 14px; color: var(--muted); white-space: nowrap; }
.stats .stat-h { font-size: 14px; color: var(--muted); margin-bottom: 6px !important; white-space: nowrap; }
.stat-rows { display: grid; gap: 6px; }
.stat-row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) 3.2em; align-items: center; gap: 10px; }
.stat-row .stats .stat-l { color: var(--fg); }
.stats .stat-row .stat-t { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.stat-track { height: 10px; border-radius: 5px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--tline); overflow: hidden; }
.stat-track i { display: block; height: 100%; border-radius: 5px; background: var(--hl-cell); box-shadow: inset 0 0 0 1px var(--accent); }
@media (min-width: 761px) {
  .stats:not(:has(.stat-by)) { grid-template-columns: minmax(0, 1fr); }
  .stats:not(:has(.stat-by)) .stat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: minmax(0, 1fr); padding: 12px; margin-bottom: 18px; }
}

/* ── 404 ── */
.lost { text-align: center; padding-top: 12vh; }
.lost p { margin: 0 0 24px; }
.lost-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
