/* Public statistics: scoped to preserve the shared navigation and site styles. */
.statistics-body { background: #f5f6f8; }
.stats-page {
  --stats-ink: #172434;
  --stats-muted: #627083;
  --stats-red: #c73538;
  --stats-border: #e4e7ec;
  max-width: 1280px;
  margin: 0 auto;
  padding: 148px 24px 80px;
  color: var(--stats-ink);
}
.stats-page section { padding: 0; color: inherit; }
.stats-page .stats-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 0 34px;
  background: transparent;
  border-bottom: 1px solid #d9dee5;
}
.stats-eyebrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--stats-muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.stats-eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--stats-red); }
.stats-eyebrow span { color: var(--stats-red); }
.stats-hero h1 { margin: 18px 0 14px; color: var(--stats-ink); font-size: clamp(2.25rem, 4.2vw, 3.65rem); font-weight: 900; line-height: 1.1; letter-spacing: -.045em; }
.stats-hero h1 span { color: var(--stats-red); }
.stats-hero p { max-width: 640px; margin: 0; color: var(--stats-muted); line-height: 1.75; }
.stats-hero-note { display: flex; align-items: center; gap: 14px; flex-shrink: 0; padding-left: 24px; border-left: 2px solid var(--stats-red); }
.stats-hero-note > i { color: var(--stats-red); font-size: 1.6rem; }
.stats-hero-note span { font-size: .8rem; color: var(--stats-muted); }
.stats-hero-note strong { display: block; font-size: .95rem; margin-top: 4px; color: var(--stats-ink); }
.stats-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0 32px; }
.stats-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid var(--stats-border); border-radius: 6px; color: var(--stats-ink); font-size: .85rem; font-weight: 600; }
.stats-nav a i { color: var(--stats-red); }
.stats-nav a:hover { color: var(--stats-red); border-color: var(--stats-red); background: #fff8f8; }
.stats-ranking-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.stats-ranking-intro h2 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--stats-ink); }
.stats-ranking-intro p { margin: 0; font-size: .83rem; color: var(--stats-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.stats-page .stats-section { border: 1px solid var(--stats-border); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 4px 18px rgba(20, 30, 45, .035); scroll-margin-top: 120px; }
.stats-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px; border-bottom: 1px solid var(--stats-border); }
.stats-section-icon { display: inline-flex; color: var(--stats-red); margin-bottom: 12px; font-size: 1.25rem; }
.stats-section-head h2 { margin: 0 0 7px; font-size: 1.35rem; letter-spacing: -.02em; font-weight: 800; color: var(--stats-ink); }
.stats-section-head p { color: var(--stats-muted); font-size: .82rem; line-height: 1.55; margin: 0; }
.stats-total { white-space: nowrap; font-size: .73rem; color: var(--stats-muted); padding: 5px 9px; border: 1px solid var(--stats-border); border-radius: 4px; font-variant-numeric: tabular-nums; }
.stats-list { padding: 0 20px 16px; }
.stats-columns, .stats-row > summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) 80px 20px; gap: 12px; align-items: center; }
.stats-columns { color: var(--stats-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; padding: 17px 8px 9px; }
.stats-columns span:nth-child(3) { text-align: right; }
.stats-row { border-bottom: 1px solid #edf0f3; }
.stats-row > summary { padding: 16px 8px; cursor: pointer; list-style: none; border-radius: 6px; }
.stats-row > summary:hover { background: #f7f8fa; }
.stats-row > summary::-webkit-details-marker, .stats-more > summary::-webkit-details-marker { display: none; }
.stats-rank { font-size: .88rem; font-weight: 800; color: #7d8794; font-variant-numeric: tabular-nums; }
.stats-row--podium .stats-rank { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 5px; }
.stats-row--1 .stats-rank { background: #fff0cd; color: #805707; }
.stats-row--2 .stats-rank { background: #eaf0f5; color: #526477; }
.stats-row--3 .stats-rank { background: #f6e9df; color: #865536; }
.stats-driver { min-width: 0; }
.stats-driver strong { display: block; color: var(--stats-ink); font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.stats-driver > span { display: block; color: var(--stats-muted); font-size: .7rem; margin-top: 4px; }
.stats-driver i { font-size: .65rem; margin-left: 4px; }
.stats-pill { text-align: right; font-variant-numeric: tabular-nums; }
.stats-pill strong { display: block; color: var(--stats-ink); font-size: 1.45rem; line-height: 1.2; font-weight: 800; }
.stats-pill > span { display: block; color: var(--stats-muted); font-size: .67rem; overflow-wrap: anywhere; }
.stats-toggle { color: #788493; text-align: right; font-size: .75rem; transition: transform .18s; }
.stats-row[open] > summary { background: #f8f9fb; }
.stats-row[open] > summary .stats-toggle { transform: rotate(180deg); color: var(--stats-red); }
.stats-detail { display: grid; gap: 12px; padding: 12px 8px 20px; }
.stats-group { padding: 16px; border-left: 2px solid #d8dee7; background: #f8f9fb; border-radius: 0 6px 6px 0; }
.stats-group-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: .82rem; }
.stats-group-head > span { color: var(--stats-red); font-weight: 600; }
.stats-date-block { font-size: .8rem; }
.stats-date-block > strong { display: block; margin-bottom: 5px; font-weight: 600; }
.stats-date-block + .stats-date-block { border-top: 1px solid var(--stats-border); margin-top: 12px; padding-top: 12px; }
.stats-date-block ul { padding-left: 18px; margin: 0; color: var(--stats-muted); line-height: 1.7; }
.stats-date-meta { color: var(--stats-muted); }
.stats-more > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 8px 6px; list-style: none; color: var(--stats-red); cursor: pointer; font-size: .8rem; }
.stats-more-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.stats-more-label > span { color: var(--stats-muted); font-size: .72rem; }
.stats-more-text-close, .stats-more[open] > summary .stats-more-text-open { display: none; }
.stats-more[open] > summary .stats-more-text-close { display: inline; }
.stats-more-toggle { transition: transform .18s; }
.stats-more[open] > summary .stats-more-toggle { transform: rotate(180deg); }
.stats-empty { padding: 40px 24px; color: var(--stats-muted); text-align: center; font-size: .9rem; line-height: 1.7; }
.stats-empty > i { display: block; font-size: 1.8rem; color: #9aa5b4; margin-bottom: 10px; }
.stats-empty strong { display: block; color: var(--stats-ink); margin-bottom: 5px; }
.stats-page summary:focus-visible, .stats-page a:focus-visible { outline: 2px solid var(--stats-red); outline-offset: 3px; }
@media (max-width: 1000px) {
  .stats-hero-note { display: none; }
  .stats-columns, .stats-row > summary { grid-template-columns: 28px minmax(0, 1fr) 70px 16px; gap: 8px; }
  .stats-section-head { padding: 20px; }
  .stats-list { padding-right: 12px; padding-left: 12px; }
}
@media (max-width: 767px) {
  .stats-page { padding: 126px 16px 48px; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .stats-page .stats-hero { padding-bottom: 24px; }
  .stats-hero h1 span { display: block; }
  .stats-hero p { font-size: .92rem; }
  .stats-nav { gap: 8px; padding: 20px 0 24px; }
  .stats-nav a { font-size: .78rem; padding: 9px 12px; }
  .stats-ranking-intro { display: block; }
  .stats-ranking-intro p { margin-top: 7px; }
  .stats-section-head h2 { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stats-page *, .stats-page *::before { transition: none !important; }
  html:has(.stats-page) { scroll-behavior: auto; }
}
