:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe1ea;
  --accent: #1d4ed8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
}
.container { width: min(1040px, 92vw); margin: 0 auto; }
.hero {
  padding: 84px 0 54px;
  background: radial-gradient(circle at 20% 10%, #e8eeff, #f6f7fb 45%);
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 8px; color: var(--muted); font-weight: 600; }
h1, h2, h3 {
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.01em;
}
h1 {
  margin: 0;
  font-size: clamp(1.95rem, 2.9vw, 3.15rem);
  line-height: 1.16;
  max-width: 28ch;
}
.muted { color: #334155; font-weight: 600; }
.authors, .affiliations { margin: 10px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.section-nav { margin-top: 16px; }
.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-family: "Sora", "Manrope", sans-serif;
}
.btn.primary,
.btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.section { padding: 64px 0; }
.section.alt { background: #eef2f8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { margin: 0 0 18px; font-size: 1.7rem; }
.results-lead {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: none;
  line-height: 1.5;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.try-guide-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
  max-width: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.card img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f1f5f9;
  min-height: 220px;
  object-fit: cover;
}
.teaser-video {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
}
.author-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.author-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.author-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f1f5f9;
}
.author-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.author-link:hover .author-name {
  color: var(--accent);
}
.author-name {
  margin: 10px 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.author-affiliation {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}
.materials-section {
  background: #efeff1;
  border-top: 1px solid #d7d8dc;
  border-bottom: 1px solid #d7d8dc;
}
.materials-section h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.materials-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  text-decoration: none;
  color: #3575d7;
  background: transparent;
  border: 2px solid #d0d0d3;
  border-radius: 0;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0 16px;
}
.materials-link:hover {
  border-color: #9ab6e4;
  background: #f7f8fc;
}
.materials-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.materials-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}
.materials-link-disabled {
  color: #8a8f9f;
  border-color: #d7d9df;
}
.materials-link-disabled .materials-icon {
  opacity: 0.75;
}
.materials-subtext {
  margin-left: 8px;
  font-size: 0.9rem;
  color: #8a8f9f;
}
.results-table-wrap {
  background: linear-gradient(145deg, #f8fbff 0%, #eef4ff 52%, #f4f8ff 100%);
  border: 1px solid #c9d9ff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}
.results-table-wrap h3 {
  margin: 0 0 10px;
}
.table-scroll {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #bdd0ff;
}
.results-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: #ffffff;
}
.results-table th,
.results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #dbe6ff;
  text-align: left;
  vertical-align: middle;
}
.results-table th {
  background: linear-gradient(90deg, #2b54d6, #3b82f6);
  color: #ffffff;
  font-weight: 700;
}
.results-table th span {
  color: #dbeafe;
  font-weight: 600;
}
.results-table tbody tr:nth-child(even):not(.group-row) td {
  background: #f7faff;
}
.results-table td:nth-child(4),
.results-table td:nth-child(5),
.results-table th:nth-child(4),
.results-table th:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}
.group-row td {
  background: linear-gradient(90deg, #e9efff, #dbe8ff);
  color: #1e3a8a;
  font-weight: 700;
  border-top: 2px solid #b2c8ff;
}
.sig-row td:first-child {
  font-weight: 700;
  color: #0b3ea8;
}
.sig-row td:nth-child(4) {
  font-weight: 800;
  color: #0b3ea8;
}
.table-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}
.diversity-block {
  margin-top: 34px;
}
.diversity-block h3 {
  margin: 0 0 14px;
}
.diversity-figure {
  margin: 0;
}
.heatmap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}
.heatmap-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}
.heatmap-panel img {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
}
.diversity-block {
  max-width: 1200px;
}
.diversity-figure .table-note {
  margin-top: 16px;
}
pre {
  background: #0b1220;
  color: #e5edf7;
  border-radius: 14px;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #1f2a3d;
}
.footer {
  padding: 34px 0 52px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heatmap-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 36px 0; }
  .hero { padding: 48px 0 26px; }
  .container { width: min(1040px, 94vw); }
  .section-nav { gap: 8px; margin-top: 12px; }
  .section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .section-nav::-webkit-scrollbar { display: none; }
  .btn { padding: 8px 12px; border-radius: 10px; font-size: 0.9rem; }
  .section-nav .btn { flex: 0 0 auto; }
  h2 { margin-bottom: 12px; font-size: 1.45rem; }
  .results-lead { margin-bottom: 14px; line-height: 1.45; }
  .card { padding: 12px; border-radius: 12px; }
  .card img { min-height: 0; border-radius: 8px; }
  .author-grid { gap: 10px; }
  .author-card { padding: 10px; }
  .author-name { margin-top: 8px; font-size: 0.95rem; }
  .author-affiliation { font-size: 0.82rem; line-height: 1.35; }
  .materials-link {
    min-height: 48px;
    padding: 0 8px;
    gap: 6px;
    font-size: 0.88rem;
  }
  .materials-text { font-size: 0.88rem; }
  .materials-subtext { display: none; }
  .results-table-wrap {
    padding: 10px;
    border-radius: 12px;
  }
  .results-table th,
  .results-table td {
    padding: 8px 9px;
    font-size: 0.9rem;
  }
  .heatmap-grid { gap: 10px; }
  .heatmap-panel {
    padding: 6px;
    border-radius: 10px;
  }
  .heatmap-panel img { height: auto; }
  .diversity-block { margin-top: 22px; }
  .table-note { margin-top: 10px; line-height: 1.45; }
  .footer { padding: 22px 0 30px; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(1.55rem, 7vw, 2rem); line-height: 1.2; }
  .hero { padding: 42px 0 22px; }
  .section { padding: 28px 0; }
  .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-card img { aspect-ratio: 1 / 1; }
  .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .materials-link { min-height: 44px; font-size: 0.82rem; }
  .materials-icon { width: 12px; height: 12px; }
  .materials-text { font-size: 0.82rem; }
  .results-table { min-width: 620px; }
}
