:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #101828;
  background: #f5f7fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f7fb; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; }

.site-header {
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #e4e7ec;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 750; text-decoration: none; }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { padding: 24px 0 21px; color: #667085; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.site-header nav a:hover { color: #1457d9; }
.site-header nav a[aria-current="page"] { color: #1457d9; border-color: #1457d9; }

.leaderboard-page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; }
.page-heading { margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; color: #1457d9; font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(32px, 6vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.page-heading > p:last-child { margin: 12px 0 0; color: #667085; font-size: 17px; }

.board { overflow: hidden; background: #fff; border: 1px solid #e4e7ec; border-radius: 18px; box-shadow: 0 18px 50px rgba(16, 24, 40, .07); }
.metric-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e4e7ec; }
.metric-tabs button { min-height: 62px; border: 0; border-bottom: 3px solid transparent; background: #fff; color: #667085; cursor: pointer; font-weight: 700; }
.metric-tabs button:hover { color: #1457d9; background: #f9fbff; }
.metric-tabs button.active, .metric-tabs button[aria-selected="true"] { color: #1457d9; border-color: #1457d9; }
.period-tabs { display: flex; gap: 8px; padding: 20px 24px 10px; }
.period-tabs button { min-width: 68px; min-height: 38px; padding: 0 16px; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; color: #475467; cursor: pointer; }
.period-tabs button:hover { border-color: #84adff; }
.period-tabs button.active { border-color: #1457d9; background: #1457d9; color: #fff; }
.board-meta { min-height: 48px; padding: 8px 24px 16px; display: flex; align-items: end; justify-content: space-between; gap: 16px; color: #667085; font-size: 13px; }
.table-wrap { position: relative; min-height: 230px; border-top: 1px solid #eaecf0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 17px 24px; text-align: left; border-bottom: 1px solid #eaecf0; }
th { color: #667085; background: #f9fafb; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
td { font-size: 15px; }
th:first-child, td:first-child { width: 90px; color: #1457d9; font-variant-numeric: tabular-nums; font-weight: 750; }
th:last-child, td:last-child { width: 110px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 750; }
.board-state { position: absolute; inset: 46px 0 0; display: grid; place-items: center; padding: 40px 24px; color: #98a2b3; text-align: center; }
.board-state[hidden] { display: none; }
.board-note { margin: 0; padding: 18px 24px; color: #667085; background: #f9fafb; font-size: 12px; line-height: 1.7; }

.document-page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; font-size: 16px; line-height: 1.85; }
.document-page h1 { margin-bottom: 8px; }
.document-date { margin: 0 0 36px; color: #667085; font-size: 14px; }
.document-page h2 { margin: 36px 0 10px; font-size: 21px; line-height: 1.35; letter-spacing: -.015em; }
.document-page p { color: #344054; }
.document-page li { margin: 8px 0; color: #344054; }
.document-page a { color: #1457d9; }
details { margin: 12px 0; padding: 18px 20px; background: #fff; border: 1px solid #e4e7ec; border-radius: 12px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 12px 0 0; }
.support-status { margin-top: 44px; padding-top: 4px; border-top: 1px solid #d0d5dd; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #1457d9; }
.small { color: #667085 !important; font-size: 13px; }

footer { min-height: 88px; padding: 26px 28px; display: flex; justify-content: space-between; gap: 20px; color: #667085; background: #fff; border-top: 1px solid #e4e7ec; font-size: 13px; }
footer span:last-child { display: flex; gap: 20px; }
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: start; padding: 32px; }
.not-found p:not(.eyebrow) { color: #667085; }
.primary-link { display: inline-flex; margin-top: 12px; padding: 12px 18px; border-radius: 9px; background: #1457d9; color: #fff; font-weight: 700; text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .site-header { min-height: 64px; padding: 0 16px; }
  .brand span { display: none; }
  .site-header nav { gap: 18px; }
  .site-header nav a { padding: 21px 0 18px; }
  .leaderboard-page, .document-page { padding-top: 42px; padding-bottom: 56px; }
  .board { border-radius: 14px; }
  .period-tabs, .board-meta, th, td, .board-note { padding-left: 16px; padding-right: 16px; }
  th:first-child, td:first-child { width: 62px; }
  th:last-child, td:last-child { width: 84px; }
  footer { flex-direction: column; padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
