:root {
  --ink: #111111;
  --paper: #ffffff;
  --soft: #f3f3f0;
  --muted: #676762;
  --line: #171717;
  --hairline: #d8d8d2;
  --page: 1220px;
  --font-serif: "DeepSeek Report Serif VF", "Source Han Serif SC", "Songti SC", STSong, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-variation-settings: "wght" 430;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.65;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.page-shell {
  width: min(calc(100% - 64px), var(--page));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-120%);
}

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

.catalog-nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.catalog-nav .page-shell {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.catalog-nav a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.catalog-nav a:hover,
.catalog-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.masthead {
  min-height: 720px;
  border-bottom: 1px solid var(--line);
}

.masthead .page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 720px;
}

.masthead-rail {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 15px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.masthead-rail p,
.eyebrow,
.figure-index,
.section-heading > p:first-child,
.report-footer p,
.report-index span {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.title-block {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  column-gap: 70px;
  align-items: end;
  padding: 76px 0 82px;
}

.eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 25px;
}

.title-block h1 {
  margin: 0;
  font-size: clamp(70px, 9vw, 132px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.title-block h1 span {
  font-weight: 260;
}

.deck {
  max-width: 420px;
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.95;
  text-align: justify;
}

.masthead-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.masthead-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 86px;
  padding: 18px 24px 16px 0;
  border-right: 1px solid var(--hairline);
}

.masthead-meta > div + div {
  padding-left: 24px;
}

.masthead-meta span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.masthead-meta strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.print-button {
  min-width: 170px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.print-button:hover,
.print-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

.report-index {
  border-bottom: 1px solid var(--line);
}

.report-index .page-shell {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.report-index a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 18px 0;
  border-right: 1px solid var(--hairline);
  text-decoration: none;
  font-size: 12px;
}

.report-index a:first-child {
  border-left: 1px solid var(--hairline);
  padding-left: 18px;
}

.report-index a:not(:first-child) {
  padding-left: 18px;
}

.report-index a:hover,
.report-index a:focus-visible {
  background: var(--soft);
  outline: none;
}

.report-index span {
  color: var(--muted);
  font-size: 9px;
}

.noscript {
  width: min(calc(100% - 64px), var(--page));
  margin: 30px auto;
  padding: 16px;
  border: 1px solid var(--line);
}

.report-section {
  padding-top: 118px;
  padding-bottom: 36px;
}

.report-section + .report-section {
  margin-top: 70px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 150px minmax(240px, 1fr) minmax(300px, 470px);
  gap: 28px;
  align-items: start;
  margin-bottom: 76px;
}

.section-heading > p:first-child {
  padding-top: 13px;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5.1vw, 72px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading > p:last-child {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.9;
}

.metric-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 80px;
  border-top: 2px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-ledger > div {
  min-height: 190px;
  padding: 24px 28px 23px 0;
  border-bottom: 1px solid var(--hairline);
}

.metric-ledger > div:nth-child(3n + 2),
.metric-ledger > div:nth-child(3n + 3) {
  padding-left: 28px;
  border-left: 1px solid var(--hairline);
}

.metric-ledger > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.metric-ledger dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.metric-ledger dd {
  margin: 18px 0 3px;
  font-size: clamp(45px, 5vw, 70px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric-ledger small {
  color: var(--muted);
  font-size: 12px;
}

.finding-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finding {
  min-height: 320px;
  padding: 32px 32px 38px;
  border-left: 1px solid var(--hairline);
}

.finding:first-child {
  padding-left: 0;
  border-left: 0;
}

.finding-number {
  margin: 0 0 48px;
  font-size: clamp(50px, 6vw, 88px);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1;
}

.finding h3,
.plain-panel h3,
.report-figure h3,
.table-heading h3,
.reading-list h3,
.method-grid h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.finding p:last-child {
  margin: 15px 0 0;
  color: #3f3f3b;
  font-size: 13px;
  line-height: 1.9;
}

.report-figure {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.report-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: start;
  min-height: 110px;
  padding: 22px 0 20px;
}

.report-figure figcaption p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.figure-index {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.chart-frame {
  position: relative;
  width: 100%;
  padding: 24px 0 30px;
}

.chart-frame canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-frame-large {
  height: 470px;
}

.chart-frame-medium {
  height: 380px;
}

.chart-frame-tall {
  height: 500px;
}

.chart-frame-authors {
  height: 500px;
}

.segmented-control {
  display: inline-flex;
  border: 1px solid var(--line);
}

.segmented-control button {
  padding: 8px 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
}

.segmented-control button:first-child {
  border-left: 0;
}

.segmented-control button.is-active,
.segmented-control button:hover,
.segmented-control button:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin-top: 70px;
}

.chart-split {
  gap: 42px;
}

.plain-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 23px 0 30px;
}

.plain-panel > h3 {
  margin-bottom: 28px;
}

.monthly-ledger {
  display: grid;
  margin-top: 27px;
}

.month-row {
  display: grid;
  grid-template-columns: 105px 1fr 70px;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  border-top: 1px solid var(--hairline);
}

.month-row:first-child {
  border-top: 0;
}

.month-row > span:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
}

.month-bar {
  position: relative;
  height: 12px;
  background: var(--soft);
}

.month-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: var(--ink);
}

.month-row strong {
  text-align: right;
  font-size: 17px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.55;
}

.data-table th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--soft);
}

.compact-table th:first-child,
.compact-table td:first-child {
  padding-left: 0;
}

.compact-table th:last-child,
.compact-table td:last-child {
  padding-right: 0;
  text-align: right;
}

.heatmap-figure {
  margin-top: 78px;
}

.heatmap-wrap {
  position: relative;
  height: 420px;
  margin: 4px 0 28px;
}

.heatmap-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.heatmap-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
}

.heatmap-tooltip.is-visible {
  display: block;
}

.heatmap-legend {
  display: grid;
  grid-template-columns: auto 150px auto;
  gap: 9px;
  align-items: center;
  padding-top: 8px;
  font-size: 10px;
}

.heatmap-legend i {
  height: 8px;
  background: linear-gradient(90deg, #f3f3f0 0%, #2c7bb6 18%, #00a6ca 38%, #ffff8c 62%, #fdae61 80%, #d7191c 100%);
}

.ranked-list,
.file-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranked-list li {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.ranked-list li:first-child {
  border-top-color: var(--line);
}

.ranked-list .rank {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.ranked-list strong {
  font-size: 16px;
}

.ranked-list small {
  color: var(--muted);
}

.proportion-list {
  border-top: 1px solid var(--line);
}

.proportion-row {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
}

.proportion-row .bar {
  height: 6px;
  background: var(--soft);
}

.proportion-row .bar i {
  display: block;
  height: 100%;
  background: var(--ink);
}

.proportion-row strong {
  text-align: right;
}

.concentration-ledger {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 70px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.concentration-ledger > div {
  padding: 22px 20px 26px;
  border-left: 1px solid var(--hairline);
}

.concentration-ledger > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.concentration-ledger dt {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.concentration-ledger dd {
  margin: 12px 0 0;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.table-block {
  margin-top: 90px;
  border-top: 2px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.table-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
}

.table-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.table-wrap {
  overflow-x: auto;
}

.author-table {
  min-width: 930px;
}

.author-table td:nth-child(n + 3):not(:last-child),
.author-table th:nth-child(n + 3):not(:last-child) {
  text-align: right;
}

.author-name {
  position: relative;
  min-width: 190px;
  padding-bottom: 8px;
}

.author-name strong {
  position: relative;
  z-index: 1;
  font-size: 13px;
}

.author-name small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.author-name i {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  height: 2px;
  background: var(--ink);
}

.table-note {
  margin: 0;
  padding: 15px 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.size-ledger {
  margin-top: 65px;
}

.file-list {
  border-top: 1px solid var(--line);
}

.file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
}

.file-list code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list strong {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.reading-list {
  border-top: 2px solid var(--line);
}

.reading-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
}

.reading-list article > span {
  font-family: var(--font-mono);
  font-size: 12px;
}

.reading-list article > div {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.25fr);
  gap: 70px;
}

.reading-list p {
  margin: 0;
  color: #393935;
  font-size: 14px;
  line-height: 1.9;
}

.report-quote {
  margin: 100px 0 30px 150px;
  padding: 0 0 0 28px;
  border-left: 4px solid var(--line);
}

.report-quote p {
  max-width: 850px;
  margin: 0;
  font-size: clamp(28px, 3.7vw, 48px);
  font-weight: 350;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.report-quote footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-grid article {
  min-height: 250px;
  padding: 26px 28px 30px 0;
  border-bottom: 1px solid var(--hairline);
}

.method-grid article:nth-child(3n + 2),
.method-grid article:nth-child(3n + 3) {
  padding-left: 28px;
  border-left: 1px solid var(--hairline);
}

.method-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.method-grid p {
  margin: 22px 0 0;
  color: #3d3d39;
  font-size: 12px;
  line-height: 1.9;
}

.report-footer {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.report-footer .page-shell {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0 26px;
}

.report-footer p {
  font-size: 9px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .title-block {
    grid-template-columns: 1fr;
    row-gap: 45px;
  }

  .deck {
    max-width: 640px;
  }

  .masthead-meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .print-button {
    grid-column: 1 / -1;
    min-height: 54px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .report-index .page-shell {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-heading {
    grid-template-columns: 110px 1fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
    max-width: 550px;
  }

  .finding-grid {
    grid-template-columns: 1fr;
  }

  .finding,
  .finding:first-child {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 0;
    padding: 30px 0;
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }

  .finding:first-child {
    border-top: 0;
  }

  .finding-number {
    grid-row: 1 / 3;
    margin: 0;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid article:nth-child(n) {
    padding: 26px 28px 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    border-left: 0;
  }

  .method-grid article:nth-child(even) {
    padding-left: 28px;
    border-left: 1px solid var(--hairline);
  }

  .method-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .reading-list article > div {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .noscript {
    width: min(calc(100% - 32px), var(--page));
  }

  .masthead,
  .masthead .page-shell {
    min-height: 650px;
  }

  .masthead-rail p:first-child {
    display: none;
  }

  .masthead-rail {
    justify-content: flex-end;
  }

  .title-block {
    padding: 55px 0;
  }

  .title-block h1 {
    font-size: clamp(58px, 19vw, 84px);
  }

  .deck {
    font-size: 14px;
  }

  .masthead-meta {
    grid-template-columns: 1fr 1fr;
  }

  .masthead-meta > div:nth-child(3) {
    display: none;
  }

  .masthead-meta > div:nth-child(2) {
    border-right: 0;
  }

  .report-index {
    overflow-x: auto;
  }

  .report-index .page-shell {
    width: max-content;
    margin: 0;
    grid-template-columns: repeat(7, 110px);
  }

  .report-section {
    padding-top: 80px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 50px;
  }

  .section-heading > p:last-child {
    grid-column: 1;
  }

  .section-heading > p:first-child {
    padding-top: 0;
  }

  .metric-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-ledger > div:nth-child(n) {
    min-height: 145px;
    padding: 22px 18px 20px 0;
    border-bottom: 1px solid var(--hairline);
    border-left: 0;
  }

  .metric-ledger > div:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--hairline);
  }

  .metric-ledger > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .metric-ledger dd {
    font-size: 40px;
  }

  .finding,
  .finding:first-child {
    display: block;
  }

  .finding-number {
    margin-bottom: 28px;
  }

  .report-figure figcaption,
  .table-heading {
    flex-direction: column;
    align-items: start;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .chart-split {
    gap: 60px;
  }

  .heatmap-wrap {
    height: 360px;
    overflow-x: auto;
  }

  .heatmap-wrap canvas {
    min-width: 720px;
  }

  .concentration-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .concentration-ledger > div:nth-child(n) {
    padding: 20px 16px 23px 0;
    border-bottom: 1px solid var(--hairline);
    border-left: 0;
  }

  .concentration-ledger > div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--hairline);
  }

  .concentration-ledger > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .reading-list article {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .report-quote {
    margin-left: 0;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article:nth-child(n) {
    min-height: 0;
    padding: 25px 0 28px;
    border-bottom: 1px solid var(--hairline);
    border-left: 0;
  }

  .method-grid article:last-child {
    border-bottom: 0;
  }

  .report-footer .page-shell {
    flex-direction: column;
    gap: 8px;
  }
}

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

@media print {
  @page {
    size: A4 portrait;
    margin: 13mm;
  }

  body {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .page-shell {
    width: 100%;
  }

  .masthead,
  .masthead .page-shell {
    min-height: 250mm;
  }

  .report-index,
  .catalog-nav,
  .print-button,
  .segmented-control {
    display: none !important;
  }

  .report-section {
    padding-top: 25mm;
  }

  .report-figure,
  .plain-panel,
  .table-block,
  .finding-grid,
  .metric-ledger,
  .reading-list article,
  .method-grid article {
    break-inside: avoid;
  }

  .chart-frame-large {
    height: 130mm;
  }

  .chart-frame-authors,
  .chart-frame-tall {
    height: 120mm;
  }
}
