.research-banner {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 94% 0%, #e3eddf, transparent 63%),
    var(--surface);
}
.research-banner-inner {
  padding-block: clamp(26px, 4vw, 52px) clamp(39px, 5.5vw, 72px);
}
.research-back {
  min-height: 42px;
  margin-bottom: clamp(16px, 2.4vw, 30px);
}
.projects-list, .project-body {
  padding-block: clamp(28px, 5vw, 64px);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 6vw, 80px);
}
.project-entry, .project-body > section {
  padding-block: clamp(20px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.project-entry h3, .project-body h2 {
  margin-block: 4px 10px;
  font: 500 clamp(25px, 3.2vw, 37px)/1.18 var(--serif);
  letter-spacing: -.035em;
}
.project-entry > p:not(.research-kicker), .project-body p, .project-byline {
  max-width: 66ch;
  color: var(--muted);
  line-height: 1.68;
}
.project-byline, .project-resource { margin-top: 16px; }
.project-resource h3 { margin: 5px 0 8px; }
.project-resource h3 .icon { margin-inline-start: 7px; width: 16px; }
.project-body { max-width: 815px; }
.project-body > section:first-child { border-top: 0; padding-top: 0; }
.project-body > section > .text-link { margin-top: 10px; }
.project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr));
  gap: 14px 24px;
  margin-block: 18px 4px;
}
.project-metrics dt { color: var(--muted); font-size: 13px; }
.project-metrics dd { margin: 4px 0 0; font: 500 23px/1.22 var(--serif); }
.projects-list > .directory-group + .directory-group,
[data-report-list] > .directory-group:not([hidden]) ~ .directory-group:not([hidden]) { margin-block-start: clamp(26px, 4vw, 50px); }
.directory-group > .project-group-title, .projects-list .open-heading h2 {
  margin-block: 0 12px;
  font: 600 clamp(1.35rem, 2.4vw, 1.9rem)/1.32 var(--sans);
  letter-spacing: -.025em;
  color: var(--ink);
}
.directory-entry { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.project-entry h3 a:hover, .project-entry h3 a:focus-visible { color: var(--forest); text-decoration: underline; text-underline-offset: .14em; }
.directory-entry > .research-actions { margin-top: auto; padding-top: 15px; gap: 0 18px; }
.directory-external { width: .46em; height: .46em; margin-inline-start: .3em; vertical-align: .25em; color: var(--accent); }
.directory-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 13px; color: var(--muted); font: 12px/1.55 var(--mono); }
.directory-resource { margin-top: 15px; }
.directory-resource > a { text-decoration: underline; text-underline-offset: .2em; }
.directory-resource .research-actions { margin-top: 0; }
.directory-group[data-collection="open-research"] > .project-grid,
.directory-group[data-tier="open-research"] > .project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: clamp(18px,2.7vw,34px); }
.directory-group:is([data-collection="open-research"],[data-tier="open-research"]) .project-entry { border-top: 2px solid var(--accent); }
.directory-group:is([data-collection="open-research"],[data-tier="open-research"]) .project-entry h3 { font-size: clamp(1.35rem,2.2vw,1.81rem); }
.report-directory { padding-top: clamp(24px, 3.5vw, 42px); }
.catalog-tools { margin-bottom: clamp(22px, 3vw, 36px); }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(12rem,16rem) auto; gap: 10px; }
.catalog-search, .catalog-grouping { position: relative; min-width: 0; }
.catalog-search > .icon { position: absolute; width: 18px; height: 18px; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.catalog-tools input, .catalog-tools select, .catalog-disclosure {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 4px; background-color: var(--surface); color: var(--ink); font: inherit;
}
.catalog-tools input { padding-inline-start: 38px; }
.catalog-tools input::placeholder { color: var(--muted); opacity: 1; }
.catalog-disclosure { display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding-inline: 16px; cursor: pointer; white-space: nowrap; }
.catalog-disclosure .icon { width: 15px; height: 15px; }
.catalog-disclosure[aria-expanded="true"] { border-color: var(--forest); color: var(--forest); }
.catalog-disclosure[aria-expanded="true"] .icon { transform: rotate(180deg); }
.catalog-tools :is(input,select,button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.catalog-options {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px),1fr));
  gap: 12px 16px; min-width: 0; margin: 14px 0 0; padding: 16px 0 8px; border: 0; border-block: 1px solid var(--line);
}
.catalog-options label { display: grid; gap: 6px; color: var(--muted); font: 600 14px/1.4 var(--sans); }
.catalog-options select { font-weight: 400; }
.catalog-source { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.6; }
.catalog-source a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.catalog-source .icon { width: 12px; height: 12px; }
.catalog-feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; color: var(--muted); font-size: 14px; }
.catalog-empty { margin-block: 24px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); }
[data-report-list] [hidden], .catalog-tools[hidden], .catalog-tools [hidden], .catalog-empty[hidden] { display: none; }
@media (max-width: 920px) {
  .projects-list .open-report-grid, .directory-group[data-collection="open-research"] > .project-grid,
  .directory-group[data-tier="open-research"] > .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .project-grid, .projects-list .open-report-grid, .directory-group[data-collection="open-research"] > .project-grid,
  .directory-group[data-tier="open-research"] > .project-grid { grid-template-columns: minmax(0,1fr); }
  .catalog-toolbar { grid-template-columns: minmax(0,1fr) auto; }
  .catalog-search { grid-column: 1/-1; }
  .catalog-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-disclosure { padding-inline: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .directory-entry h3 a { transition: color .16s ease-out; }
  html:not([data-motion="off"]) [data-report-list] .directory-group:not([hidden]) { animation: catalog-arrive .2s ease-out; }
  @keyframes catalog-arrive { from { opacity:.65; transform:translateY(3px); } to { opacity:1; transform:none; } }
}
@media print {
  .catalog-tools, .home-selected { display: none; }
  .directory-entry { break-inside: avoid; }
}

.research-back .icon {
  transform: rotate(180deg);
}
.research-banner h1 {
  max-width: 26ch;
  font-size: clamp(44px, 6.4vw, 83px);
  letter-spacing: -.052em;
  line-height: 1.08;
  text-wrap: balance;
}
.research-deck {
  max-width: 64ch;
  margin-top: 15px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.65;
}
.research-kicker {
  color: var(--accent);
  font: 12px/1.6 var(--mono);
}
.research-kicker > span {
  margin-inline: 5px;
}
.research-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 21px;
  margin-top: 21px;
}
.research-actions .text-link {
  min-height: 44px;
  font-size: 13px;
}

.report-figure img { display: block; width: 100%; height: auto; }
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 5px 9px;
  background: #1b4d3e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.platform-badge:first-child:not(:only-child) {
  background: #263238;
}
.platform-badge:hover {
  color: #fff;
  text-decoration: underline;
}
.platform-badge .icon {
  width: 14px;
  height: 14px;
}
/* Technical report */
.report-banner .research-banner-inner {
  padding-block: clamp(23px, 3.2vw, 42px) clamp(32px, 4.4vw, 58px);
}
.report-banner .research-back {
  margin-bottom: 17px;
}
.report-banner h1 {
  margin-top: 10px;
  font-size: clamp(35px, 5vw, 64px);
  line-height: 1.12;
}
.report-banner .research-deck {
  max-width: 73ch;
}
.report-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 20px;
}
.report-byline {
  font-size: 14px;
  font-weight: 600;
}
.report-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.report-paper {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-top: 13px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid #a7bca9;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.report-paper a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.report-paper a:hover {
  color: var(--accent);
}
.report-paper .icon {
  width: 13px;
  height: 13px;
  margin-inline-start: 3px;
  vertical-align: -.15em;
}
.report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(218px, 100%), 1fr));
  gap: 1px;
  margin-block: 31px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}
.report-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: clamp(15px, 2.1vw, 24px);
  background: var(--surface);
}
.report-metrics dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.report-metrics dd {
  order: -1;
  font: 400 clamp(26px, 3.35vw, 42px)/1.12 var(--serif);
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}
.report-layout {
  display: grid;
  grid-template-columns: minmax(155px, 198px) minmax(0, 1fr);
  gap: clamp(25px, 5vw, 67px);
  align-items: start;
  margin-block: clamp(25px, 4vw, 48px) 76px;
}
.report-contents {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  min-width: 0;
  max-height: calc(100vh - var(--header-height) - 34px);
  overflow-y: auto;
  padding: 13px 0 9px;
  border-top: 1px solid var(--line);
}
.report-contents > p {
  margin: 0 0 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.report-contents ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.report-contents a {
  display: flex;
  align-items: center;
  min-height: 39px;
  padding: 6px 9px;
  border-inline-start: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  transition: background .18s, border-color .18s, color .18s;
}
.report-contents a:hover,
.report-contents a[aria-current] {
  border-color: #5c8469;
  color: var(--forest);
  background: var(--paper-deep);
}
.report-contents a:focus-visible {
  outline-offset: -2px;
}
.report-body {
  min-width: 0;
}
.report-body > section {
  padding-block: clamp(26px, 4vw, 45px);
  border-top: 1px solid var(--line);
}
.report-body > section:first-child {
  padding-top: 0;
  border-top: 0;
}
.report-body h2,
html[lang='zh-CN'] .report-body h2 {
  margin-bottom: 15px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.23;
  letter-spacing: -.026em;
}
.report-body p {
  max-width: 76ch;
  margin-block: 12px;
  font-size: 16px;
  line-height: 1.83;
  overflow-wrap: anywhere;
}
.report-figure {
  margin-block: 23px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.report-figure-image {
  display: block;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.report-figure figcaption {
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.report-figure figcaption p {
  max-width: none;
  margin: 0;
  font: inherit;
}
.figure-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 17px;
  margin-top: 5px;
}
.report-figure figcaption a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.report-figure figcaption .icon {
  width: 13px;
  height: 13px;
}
.report-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  scrollbar-color: #a6b9aa var(--paper-deep);
  background: var(--surface);
}
.report-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
.report-table-scroll caption {
  padding: 13px 15px;
  color: var(--forest);
  text-align: start;
  font-weight: 600;
}
.report-table-scroll th,
.report-table-scroll td {
  padding: 11px 13px;
  border-top: 1px solid var(--line);
}
.report-table-scroll thead {
  background: var(--paper-deep);
}
.report-table-scroll th {
  text-align: start;
  font-weight: 600;
}
.report-table-scroll td {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.report-table-scroll:has(+ .report-table-source) {
  margin-bottom: 0;
}
.report-table-source {
  display: flex;
  justify-content: end;
  margin-bottom: 12px;
  font-size: 13px;
}
.report-table-source .text-link {
  min-height: 42px;
}
.report-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.report-steps li {
  padding: clamp(15px, 2.1vw, 23px);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.report-step-number {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-bottom: 12px;
  border: 1px solid #b7cab8;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--forest);
  font: 600 13px var(--mono);
}
.report-steps h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.report-steps p {
  margin-block: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.report-steps code {
  display: inline-block;
  margin-top: 5px;
  font: 13px/1.55 var(--mono);
  overflow-wrap: anywhere;
}
.report-code {
  display: grid;
  margin-block: 21px 0;
  border-radius: 10px;
  background: var(--forest);
  color: var(--cream);
}
.report-code .text-button {
  justify-self: end;
  min-height: 41px;
  margin: 4px 14px 0;
  color: var(--cream);
}
.report-code .text-button:hover {
  color: var(--gold);
}
.report-code pre {
  max-width: 100%;
  overflow: auto;
  margin: 0;
  padding: 14px 17px;
  font: 13px/1.75 var(--mono);
}
.report-code code {
  font: inherit;
}
.report-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 19px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.report-link-list .text-link {
  min-height: 42px;
  font-size: 13px;
}
.report-code + .report-link-list {
  margin-top: 10px;
}
.report-body .report-update {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .report-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .report-contents {
    position: static;
    max-height: none;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
  }
  .report-contents ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }
  .report-contents a {
    min-height: 42px;
  }
}
@media (max-width: 670px) {
  .report-banner .research-actions {
    column-gap: 13px;
  }
  .report-banner .research-actions .button {
    padding-inline: 13px;
  }
  .report-body h2 {
    text-wrap: balance;
  }
  .report-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .report-metrics:has(> div:nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-metrics:has(> div:nth-child(3):last-child) > div:first-child {
    grid-column: 1 / -1;
  }
  .report-table-scroll table:has(thead th:nth-child(4)) {
    min-width: 470px;
  }
  .report-code pre {
    font-size: 12px;
  }
}
@media print {
  .research-banner {
    background: white;
  }
  .research-banner-inner,
  .report-banner .research-banner-inner {
    padding-block: 0 10pt;
  }
  .research-banner h1,
  .report-banner h1 {
    font-size: 26pt;
  }
  .research-back,
  .research-actions,
  .report-contents,
  .figure-links,
  .report-code button {
    display: none;
  }
  .report-layout {
    display: block;
    margin-block: 14pt 0;
  }
  .report-banner .research-deck {
    font-size: 11pt;
  }
  .report-metrics {
    margin-top: 13pt;
  }
  .report-body > section {
    padding-block: 9pt;
  }
  .report-body h2,
  html[lang='zh-CN'] .report-body h2 {
    break-after: avoid;
    font-size: 18pt;
  }
  .report-body p {
    max-width: none;
    font-size: 10.5pt;
    line-height: 1.55;
    orphans: 3;
    widows: 3;
  }
  .report-figure {
    margin-block: 12pt 9pt;
  }
  .report-table-scroll {
    overflow: visible;
    break-inside: avoid;
  }
  .report-table-scroll table,
  .report-table-scroll table:has(thead th:nth-child(4)) {
    min-width: 0;
    font-size: 9pt;
  }
  .report-table-scroll th,
  .report-table-scroll td {
    padding: 6pt 7pt;
  }
  .report-table-source .text-link,
  .report-link-list .text-link {
    min-height: 24pt;
  }
  .report-table-scroll td,
  .report-code pre {
    white-space: pre-wrap;
  }
  .report-figure,
  .report-steps li,
  .report-code {
    break-inside: avoid;
  }
  .report-code {
    border: 1px solid #ccc;
    color: #111;
    background: white;
  }
}
