:root {
  --text: #202124;
  --muted: #5f6368;
  --link: #3273dc;
  --line: #e4e7eb;
  --soft: #f6f7f9;
  --page: 1020px;
  --narrow: 850px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.hero {
  text-align: center;
  padding-top: 54px;
  padding-bottom: 18px;
}
.hero h1 {
  margin: 0 auto 12px;
  max-width: 980px;
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.status-line {
  margin: 0 0 20px;
  color: #c43d34;
  font-weight: 600;
  font-size: 1.02rem;
}
.authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 21px;
  max-width: 930px;
  margin: 0 auto 10px;
  font-size: 1.1rem;
}
.authors span { white-space: nowrap; }
.authors a { color: var(--link); }
sup { font-size: .68em; vertical-align: super; }
.affiliations { color: #444; font-size: .97rem; line-height: 1.42; }
.affiliations p { margin: 1px 0; }
.link-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 22px;
}
.resource-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  justify-content: center;
  padding: 8px 17px;
  border-radius: 999px;
  background: #202124;
  color: #fff;
  font-weight: 700;
  font-size: .96rem;
  transition: transform .15s ease, background .15s ease;
}
.resource-button:hover { background: #000; transform: translateY(-1px); text-decoration: none; }
.resource-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.resource-button:nth-child(2) svg { fill: currentColor; stroke: none; }

.paper-section { padding-top: 30px; padding-bottom: 30px; }
.paper-section h2 {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(1.72rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.figure-block { margin: 0 auto; text-align: center; }
.figure-block img { width: 100%; margin: 0 auto; }
.figure-xl { max-width: 900px; }
.figure-large { max-width: 880px; }
.figure-small { max-width: 720px; }
.figure-block figcaption,
.section-caption {
  max-width: 850px;
  margin: 10px auto 0;
  color: #44484d;
  font-size: .95rem;
  line-height: 1.5;
}
.hero-figure img { border: 1px solid #dfe2e5; }
.text-adjacent-figure { margin-top: 24px; }

.paper-copy {
  max-width: 850px;
  margin: 0 auto;
  text-align: justify;
  font-size: 1.03rem;
}
.paper-copy p { margin: 0 0 15px; }
.paper-copy p:last-child { margin-bottom: 0; }
.paper-summary {
  max-width: 830px;
  margin: 20px auto 0;
  text-align: center;
  color: #35383c;
}
.result-copy { margin-top: 22px; }

.method-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 880px;
  margin: 25px auto 0;
}
.method-copy article { border-top: 2px solid #24272b; padding-top: 12px; }
.method-copy h3 { margin: 0 0 7px; font-size: 1.12rem; }
.method-copy p { margin: 0; text-align: justify; font-size: .98rem; line-height: 1.58; }

.key-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 820px;
  margin: 21px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.key-facts div { padding: 13px 8px; text-align: center; }
.key-facts strong { display: block; font-size: 1.32rem; line-height: 1.25; }
.key-facts span { color: var(--muted); font-size: .88rem; }

.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figures-gap { gap: 25px; margin-top: 25px; align-items: start; }
.compact-pair { max-width: 880px; margin-inline: auto; }
.figures-gap .figure-block img { max-height: 350px; object-fit: contain; }
.stacked-figures { display: grid; gap: 29px; }
.compact-stack { max-width: 900px; margin-inline: auto; }

.turntable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.compact-grid { max-width: 840px; margin-inline: auto; }
.turntable-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.turntable-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.turntable-grid figcaption { padding: 7px 9px 9px; text-align: center; font-size: .89rem; }
.section-intro { max-width: 760px; margin: -7px auto 18px; text-align: center; color: var(--muted); }


.code-panel { position: relative; overflow: auto; border-radius: 6px; background: #f2f3f5; border: 1px solid #dddfe2; }
.code-panel pre { margin: 0; padding: 20px 22px; min-width: 600px; }
.code-panel code { font-family: Consolas, "SFMono-Regular", monospace; font-size: .9rem; line-height: 1.55; }
.copy-code { position: absolute; top: 10px; right: 10px; z-index: 2; border: 1px solid #c7cbd0; border-radius: 5px; padding: 5px 10px; background: #fff; cursor: pointer; }
.center { text-align: center; }
.text-link { font-weight: 700; }
.citation-panel pre { min-width: 720px; }

.zoomable img { cursor: zoom-in; }
.image-dialog { max-width: min(96vw, 1500px); max-height: 94vh; padding: 36px 12px 12px; border: 0; box-shadow: 0 18px 70px rgba(0,0,0,.28); }
.image-dialog::backdrop { background: rgba(0,0,0,.75); }
.image-dialog img { max-height: 84vh; width: auto; margin: auto; }
.image-dialog button { position: absolute; right: 8px; top: 3px; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }

footer { margin-top: 24px; padding: 26px 18px 36px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; }
footer p { margin: 0; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero { padding-top: 38px; }
  .authors { gap: 2px 14px; }
  .key-facts { grid-template-columns: repeat(2, 1fr); }
  .two-column, .method-copy { grid-template-columns: 1fr; }
  .turntable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .page-width, .page-width.narrow { width: min(100% - 24px, var(--page)); }
  .hero h1 { font-size: 1.86rem; }
  .status-line { font-size: .92rem; }
  .authors { font-size: 1rem; }
  .paper-section { padding-top: 26px; padding-bottom: 26px; }
  .turntable-grid { grid-template-columns: 1fr; max-width: 330px; }
  .paper-copy, .method-copy p { text-align: left; }
}
