:root {
  --report-width: 1000px;
  --text: #191c23;
  --muted: rgba(0, 0, 0, 0.7);
  --muted-soft: rgba(0, 0, 0, 0.54);
  --line: #e8e8e8;
  --line-strong: rgba(0, 0, 0, 0.16);
  --chapter: #ef2020;
  --link: #3f7396;
  --type-display: 4rem;
  --type-title: 1.6rem;
  --type-chapter: 2.75rem;
  --type-heading: 1.4rem;
  --type-body: 1rem;
  --body-leading: 1.7;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family:
    "Alibaba PuHuiTi 3.0",
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans SC",
    Arial,
    sans-serif;
  font-size: var(--type-body);
  line-height: var(--body-leading);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--link);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

sup,
sub {
  line-height: 0;
}

.container {
  width: min(var(--report-width), calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: #fff;
  background: #191c23;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* The header remains in normal document flow so it cannot cover the title. */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  background: #fff;
}

.nav-inner {
  position: relative;
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-name {
  grid-column: 1;
  justify-self: start;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 650;
}

.site-name:hover,
.site-name:focus-visible {
  color: var(--text);
}

.site-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 38px);
  color: #697386;
  font-size: 0.92rem;
  font-weight: 430;
  white-space: nowrap;
}

.project-header {
  padding: 64px 0 54px;
  text-align: center;
}

.project-header-inner {
  max-width: var(--report-width);
}

.project-header h1 {
  margin: 0;
  font-size: inherit;
  line-height: 1;
}

.project-header h1 > span {
  display: block;
}

.project-acronym {
  color: #cf0000;
  font-size: var(--type-display);
  font-weight: 790;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.project-title {
  max-width: 820px;
  margin: 18px auto 0;
  color: var(--text);
  font-size: var(--type-title);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.authors {
  max-width: 900px;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  color: var(--text);
  font-size: 0.98rem;
}

.affiliation {
  margin: 12px 0 0;
  color: var(--muted);
}

.author-note {
  margin: 2px 0 0;
  color: var(--muted-soft);
  font-size: 0.78rem;
}

.resource-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.resource-link {
  min-width: 126px;
  padding: 10px 20px;
  border: 1px solid rgba(25, 28, 35, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.25;
  text-align: center;
}

a.resource-link:hover,
a.resource-link:focus-visible {
  color: var(--text);
  border-color: rgba(25, 28, 35, 0.42);
}

.resource-link-primary {
  color: #fff;
  border-color: #252932;
  background: #252932;
}

a.resource-link-primary:hover,
a.resource-link-primary:focus-visible {
  color: #fff;
  border-color: #000;
  background: #000;
}

.resource-link-disabled {
  color: #9aa2af;
  cursor: default;
}

.section {
  padding: 44px 0;
  background: #fff;
}

.overview-section {
  padding-top: 26px;
}

.chapter-heading {
  width: 100%;
  margin: 0 0 36px;
  text-align: left;
}

.chapter-heading h2 {
  margin: 0;
  color: var(--chapter);
  font-size: var(--type-chapter);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.paper-subsection + .paper-subsection {
  margin-top: 58px;
}

.subsection-copy {
  width: 100%;
  margin: 0;
  text-align: left;
}

.subsection-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--type-heading);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

.subsection-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: var(--body-leading);
  text-align: justify;
  text-justify: inter-word;
}

.paper-figure {
  width: 100%;
  margin: 44px 0 0;
}

.paper-figure img {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #fff;
}

.paper-figure figcaption {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: left;
}

.overview-heading {
  margin-bottom: 30px;
}

.overview-figure {
  margin-top: 0;
}

.abstract-copy {
  margin-top: 40px;
}

.data-intro {
  margin-bottom: 30px;
}

.data-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 40px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.data-stat {
  min-width: 0;
  padding: 20px 14px 18px 0;
}

.data-dot {
  display: none;
}

.data-stat strong {
  display: block;
  color: #111;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 690;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.data-stat strong small {
  margin-left: 2px;
  font-size: 0.72em;
  font-weight: inherit;
}

.data-stat > span:last-child {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.3;
}

.dataset-figure {
  margin-top: 0;
}

.compact-figure {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
}

.transfer-figure {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

.paper-table {
  width: 100%;
  margin: 36px 0 0;
  overflow-x: auto;
  color: var(--text);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.paper-table:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}

.paper-table table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border-top: 1.5px solid #222;
  border-bottom: 1.5px solid #222;
  font-size: 0.82rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.paper-table-transfer table {
  min-width: 690px;
}

.paper-table th,
.paper-table td {
  padding: 8px 7px;
  white-space: nowrap;
}

.paper-table thead {
  border-bottom: 1px solid #555;
}

.paper-table thead tr:first-child th[colspan] {
  border-bottom: 1px solid #999;
}

.paper-table thead th {
  color: #111;
  font-weight: 650;
}

.paper-table tbody th {
  color: #111;
  font-weight: 450;
  text-align: left;
}

.paper-table tbody tr + tr {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.paper-table .second-best {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.citation-heading {
  margin-bottom: 20px;
}

.citation-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.citation-box {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(25, 28, 35, 0.025);
}

.citation-box pre {
  margin: 0;
  padding: 22px 132px 22px 22px;
  overflow-x: auto;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre;
}

.copy-button {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(25, 28, 35, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-size: 0.76rem;
}

.copy-button.is-copied {
  color: #24643a;
  border-color: #8eb79a;
}

@media (max-width: 900px) {
  .nav-inner {
    min-height: auto;
    padding: 14px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .site-name {
    align-self: center;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .project-header {
    padding-top: 54px;
  }
}

@media (max-width: 640px) {
  :root {
    --type-display: 3rem;
    --type-title: 1.28rem;
    --type-chapter: 2.4rem;
    --type-heading: 1.125rem;
  }

  .container {
    width: calc(100% - 28px);
  }

  .site-name {
    display: none;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
  }

  .project-header {
    padding: 48px 0 40px;
  }

  .project-title {
    margin-top: 14px;
  }

  .authors {
    margin-top: 24px;
    gap: 3px 13px;
    font-size: 0.9rem;
  }

  .affiliation {
    font-size: 0.9rem;
  }

  .resource-links {
    gap: 9px;
  }

  .resource-link {
    min-width: 0;
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .section {
    padding: 44px 0;
  }

  .overview-section {
    padding-top: 18px;
  }

  .chapter-heading {
    margin-bottom: 28px;
  }

  .paper-subsection + .paper-subsection {
    margin-top: 48px;
  }

  .subsection-copy p {
    margin-top: 13px;
    text-align: left;
  }

  .paper-figure {
    margin-top: 22px;
  }

  .data-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .data-stat strong {
    font-size: 1.8rem;
  }

  .citation-box pre {
    padding: 58px 14px 18px;
    font-size: 0.72rem;
  }

  .paper-table {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
