#stats-widget { max-width: var(--wrap); margin: 0 auto clamp(3rem, 7vw, 6rem); padding: clamp(1.2rem, 3vw, 2rem) var(--gutter) 0; scroll-margin-top: 8rem; }
.stats-head { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: .8rem; }
.stats-head h2 { margin: 0; font: 800 1.25rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .7rem; }
.stats-tile { min-width: 0; padding: .7rem .8rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-0); }
.stats-title, .stats-subtitle { margin: 0; color: var(--muted); font: 600 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.stats-subtitle { margin-top: 1rem; }
.stats-source { display: block; margin-top: .35rem; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.stats-big { margin: 1rem 0 .4rem; color: var(--text); font-size: 1.2rem; line-height: 1.15; }
.stats-detail { margin: .55rem 0 0; color: var(--text-2); font-size: .88rem; line-height: 1.4; }
.stats-region { display: block; margin-top: .25rem; color: var(--muted); font: 400 .72rem var(--sans); }
.stats-metric { display: flex; align-items: baseline; gap: .55rem; margin: .9rem 0 0; }
.stats-metric strong { color: var(--text); font-family: var(--mono); font-size: 1.3rem; font-weight: 600; white-space: nowrap; }
.stats-metric span { color: var(--muted); font-size: .82rem; }
.stats-board { display: grid; gap: .25rem; margin: .5rem 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: .82rem; }
.stats-board li { display: flex; justify-content: space-between; gap: .5rem; }
.stats-board b { color: var(--text); font-family: var(--sans); font-weight: 700; white-space: nowrap; }
.stats-tile details { margin-top: .7rem; color: var(--text-2); font-size: .82rem; }
.stats-tile summary { color: var(--muted); cursor: pointer; }
.stats-tile details .stats-detail { margin-top: .45rem; }
.stats-names { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--text-2); font-size: .84rem; }
@media (max-width: 420px) { #stats-widget { padding-top: 1.2rem; } .stats-tile { padding: .6rem .7rem .55rem; } .stats-big { font-size: 1rem; } }

/* Home2 modules. The old tile rules above remain available to the pulse detail page's
   historical fixtures, while these mounts are the only ones used by / and /matches.html. */
.home-stats { max-width: var(--wrap); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; scroll-margin-top: 8rem; }
.home-stats .stats-head { margin-bottom: var(--space-4); }
.home-stats[hidden], .watch-stats-strip[hidden] { display: none; }
.archive-band { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3) var(--space-5); padding: var(--space-3) var(--card-pad); border: 1px solid var(--line-strong); border-radius: var(--card-radius); background: var(--bg-1); color: var(--text-2); font: 400 .9rem var(--sans); }
.archive-band b, .stat-number, .record-value { color: var(--text); font: 700 1.1rem var(--sans); font-variant-numeric: tabular-nums; }
/* One unit style everywhere in the module (Tim 27 Nov: '16 MATCHES' beside '2,317 matches'): sentence case, body face. */
.home-stats .stat-label, .home-stats .record-unit { color: var(--muted); font: 400 .78rem var(--sans); letter-spacing: 0; text-transform: none; }
.archive-band-main { color: var(--text); }.archive-band-main i { color: var(--ember); font-style: normal; padding: 0 .25rem; }.archive-band-players { color: var(--muted); }
.home-stats-grid { display: grid; gap: var(--card-gap); margin-top: var(--card-gap); }
.home-nightly-row { margin: 0; color: var(--text-2); font: 400 .95rem/1.45 var(--sans); }
/* Said once: hidden here while the hero's status line already shows the nightly window (home.js sets the flag). */
body[data-hero-nightly] .home-nightly-row { display: none; }
/* Players and Records share one row (Tim, 29 Nov: dense Players rows beside stretched Records rows with dead gaps):
   every row is --row-min tall with the same padding and hairline, and cards hug their rows instead of stretching them.
   A record is two lines (what, then who and how many); the whole row is the link's tap target. */
.records-card .record-row { position: relative; min-height: var(--row-min); align-content: center; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "name value"; row-gap: 0; padding: var(--space-2) 0; }
.records-card .record-label { grid-area: label; line-height: 1.35; }
.records-card .record-map { color: var(--text-2); white-space: nowrap; }
/* The link keeps a 44 px box for touch but takes one text line of layout (negative block margins), so rows stay --row-min. */
.records-card .record-row a { grid-area: name; min-height: 44px; margin-block: calc((1.4rem - 44px) / 2); font-size: 1rem; line-height: 1.4; }
.records-card .record-row a::after { content: ""; position: absolute; inset: 0; }
.records-card .record-row:hover { background: color-mix(in srgb, var(--bg-2) 50%, transparent); }
.records-card .record-value { grid-area: value; font-size: 1.1rem; }
.home-stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); align-items: start; }
.home-stat-card { display: flex; flex-direction: column; min-width: 0; padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--bg-1); }
.stat-card-body { flex: 1; min-height: 0; }
.stat-card-title { margin: 0 0 var(--space-3); color: var(--muted); font: 700 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.stat-card-big { margin: 0; color: var(--text); font: 600 1.08rem/1.35 var(--sans); }
.record-row { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(5rem, auto) auto; align-items: baseline; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: .85rem; }
.record-row:first-of-type { border-top: 0; }.record-row a { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; overflow: hidden; color: var(--text); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.record-label { color: var(--muted); }.record-value { font-size: .95rem; white-space: nowrap; }.record-unit { color: var(--muted); font: 400 .8rem var(--sans); }
.stats-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }.stats-tabs button { min-height: 44px; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font: 700 .8rem var(--sans); cursor: pointer; }.stats-tabs button[aria-selected="true"] { border-color: var(--ember); color: var(--text); background: var(--ember-soft); }
.stats-leaderboard-head { margin: 0 0 .25rem; color: var(--muted); font: 700 .78rem var(--sans); }
.stats-leaderboard { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }.stats-leaderboard li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; align-items: baseline; align-content: center; gap: var(--space-2); min-height: var(--row-min); padding: calc(var(--space-2) - 1px) 0; border-top: 1px solid var(--line); color: var(--text-2); }.leaderboard-rank { color: var(--muted); font: 500 .8rem var(--sans); font-variant-numeric: tabular-nums; }.leaderboard-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.leaderboard-name a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; }.leaderboard-value { display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap; }.stats-leaderboard .stat-number { font-size: .95rem; }.stat-label { color: var(--muted); font: 400 .78rem var(--sans); }
.week-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }.week-metric { display: grid; gap: .2rem; }.week-metric span { color: var(--muted); font-size: .78rem; }.week-metric .stat-number { font-size: 1.35rem; }.stats-spark { display: block; width: 100%; height: 2rem; margin-top: .7rem; overflow: visible; }.stats-spark circle { fill: var(--ember); }
.watch-stats-strip { max-width: var(--wrap); margin: 0 auto 1rem; padding: 0 var(--gutter); display: flex; flex-wrap: nowrap; align-items: center; gap: .25rem .4rem; }.watch-strip-item { display: inline-flex; align-items: baseline; flex: 0 1 auto; min-height: 44px; min-width: 0; gap: .25rem; color: var(--text-2); font: 500 .9rem/1.3 var(--sans); }.watch-strip-label, .watch-strip-name { color: var(--text-2); }.watch-strip-name { color: var(--text); }.watch-strip-value { color: var(--text); font: 700 1em var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }.watch-strip-item + .watch-strip-item { padding-left: .7rem; border-left: 1px solid var(--line); }
@media (max-width: 640px) { .home-stats-row { grid-template-columns: 1fr; }.home-stats .stats-head { margin-bottom: var(--space-3); }.archive-band { display: grid; gap: .3rem; }.record-row { grid-template-columns: minmax(7rem, 1fr) minmax(4rem, auto) auto; }/* Phones: one fact per row with a hairline between, so no row starts indented (SITE-0 review, 27 Nov). */.watch-stats-strip { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; }.watch-strip-item { white-space: normal; line-height: 1.35; min-height: 2.5rem; }.watch-strip-item + .watch-strip-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Critique pass (27 Nov): the archive totals are the headline numbers, so they outrank the record figures; each stat stays on one line. */
.archive-band b { font-size: 1.5rem; }
.band-stat { white-space: nowrap; }
@media (max-width: 600px) { .archive-band { gap: .35rem 1.2rem; } .archive-band i { display: none; } .archive-band-main { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; } }
.home-stats .stat-label, .home-stats .record-unit { color: var(--text-2); font-size: .8125rem; }
/* The caps record has no player to name: its link reads as a link (ember), not as a name. */
.records-card .record-row a.record-watch { color: var(--ember); font-weight: 700; }
