html.statistics-html,
body.statistics-body {
  height: auto;
  min-height: 100dvh;
  overscroll-behavior-y: auto;
  color: #0f172a;
  background: #f6f8fc;
}

/* Keep document scrolling on the root; a second body scroller traps wheel/touch input. */
html.statistics-html {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.statistics-body {
  overflow: visible;
}

.statistics-page { max-width: 1160px; margin: 0 auto; padding: 32px 28px 64px; }
.statistics-back { color: #475569; font-size: 14px; font-weight: 650; text-decoration: none; }
.statistics-back:hover { color: #2563eb; }
.statistics-header { margin: 36px 0 28px; }
.statistics-eyebrow { margin: 0 0 12px; color: #2563eb; font-size: 14px; font-weight: 750; }
.statistics-header h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -1px; line-height: 1.3; }
.statistics-intro { margin: 12px 0 20px; color: #475569; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.statistics-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #64748b; font-size: 13px; }
.statistics-meta strong { margin-left: 8px; color: #334155; font-weight: 650; }
.statistics-card { margin: 0 0 22px; padding: 28px; border: 1px solid #e2e8f0; border-radius: 20px; background: white; box-shadow: 0 4px 20px #0f172a04; }
.statistics-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.statistics-card h2 { margin: 0; font-size: 19px; letter-spacing: -0.4px; }
.statistics-card-heading p { margin: 8px 0 0; color: #64748b; font-size: 13px; }
.statistics-period-badge { border-radius: 8px; background: #eff6ff; color: #1d4ed8; padding: 8px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.statistics-swatch { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--series-color); }
.statistics-table-scroll { overflow-x: auto; }
.statistics-scroll-hint { display: none; margin: 0 0 16px; color: #64748b; font-size: 12px; line-height: 1.7; }
.statistics-note { margin: 12px 0 0; color: #64748b; font-size: 12px; line-height: 1.7; }
.statistics-source { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e8f0; color: #64748b; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.statistics-source p { margin: 0 0 6px; }
.statistics-source p:last-child { margin-bottom: 0; }
.statistics-source a { color: #1d4ed8; text-underline-offset: 3px; }
.statistics-source cite { font-style: normal; }
.statistics-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.statistics-table th, .statistics-table td { padding: 16px 12px; text-align: right; border-bottom: 1px solid #eef2f6; }
.statistics-table thead th { background: #f8fafc; color: #475569; font-size: 12px; font-weight: 650; }
.statistics-table thead th:not(:first-child) { white-space: nowrap; line-height: 1.6; }
.statistics-table th:first-child { padding-left: 12px; text-align: left; }
.statistics-table tbody th { font-weight: 550; }
.statistics-table .statistics-swatch { margin-right: 8px; }
.statistics-table .statistics-latest { background: #eff6ff; color: #1d4ed8; font-weight: 750; }
.statistics-table tbody tr:last-child > * { border-bottom: 0; }
.statistics-empty { color: #64748b; text-align: center; padding-block: 56px; }
.statistics-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.statistics-page :focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }

@media (max-width: 700px) {
  .statistics-page { padding: 24px 16px 40px; }
  .statistics-header { margin-top: 28px; }
  .statistics-card { padding: 20px 16px; border-radius: 16px; }
  .statistics-card-heading { margin-bottom: 18px; }
  .statistics-scroll-hint { display: block; }
  .statistics-table th, .statistics-table td { padding: 14px 10px; }
}

