:root {
  --text: #172033;
  --muted: #5d6b82;
  --line: #d8dee9;
  --soft: #f5f7fb;
  --accent: #2357a6;
  --accent-dark: #153c75;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

main {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 58px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  top: -56px;
  height: calc(100% + 132px);
  background: #f8fbff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.subtitle {
  max-width: 780px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 28px auto 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.authors sup,
.affiliations sup,
.author-notes sup {
  font-size: 0.72em;
  line-height: 0;
}

.affiliations,
.author-notes,
.correspondence {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.author-notes {
  margin-top: 6px;
}

.correspondence {
  gap: 0;
  margin-top: 8px;
}

.correspondence a {
  color: var(--accent-dark);
  text-decoration: none;
}

.correspondence span {
  color: var(--accent-dark);
}

.correspondence a:hover {
  text-decoration: underline;
}

.venue {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  max-width: 100%;
}

.paper-links a {
  min-width: 96px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.paper-links a:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.hero-video {
  max-width: 1032px;
  margin: 34px auto 0;
}

.hero-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.12);
}

.teaser {
  margin-top: 28px;
}

.teaser,
.content-section,
footer {
  position: relative;
  padding-top: 46px;
  padding-bottom: 46px;
}

.teaser::before,
.content-section::before,
footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

.content-section:nth-of-type(3)::before,
.content-section:nth-of-type(5)::before,
.content-section:nth-of-type(7)::before,
.content-section:nth-of-type(9)::before {
  background: #ffffff;
}

.teaser::before,
.content-section:nth-of-type(2)::before,
.content-section:nth-of-type(4)::before,
.content-section:nth-of-type(6)::before,
.content-section:nth-of-type(8)::before {
  background: #f8fbff;
}

.teaser img,
.figure-block img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.figure-block.dark img {
  background: #171717;
}

.caption {
  max-width: 860px;
  margin: 14px auto 0;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.content-section {
  margin-top: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

p {
  margin: 0;
}

.figure-block {
  margin: 22px 0 28px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.method-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-grid article {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.25;
}

.stats-grid span {
  margin-top: 10px;
  color: var(--muted);
}

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

.figure-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: start;
  margin: 22px 0 24px;
}

.figure-row figure {
  margin: 0;
}

.figure-row img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.figure-row.stacked {
  max-width: 840px;
  grid-template-columns: 1fr;
  margin-right: auto;
  margin-left: auto;
}

.more-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: center;
  margin-top: 24px;
}

.more-results-text h3 {
  color: var(--accent-dark);
  font-size: 24px;
}

.more-results-text p {
  color: var(--muted);
}

.mole-figure {
  display: block;
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mole-video {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
}

.mole-video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.1);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.table-wrap {
  width: 100%;
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 14px;
}

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

.latex-table-wrap {
  width: 100%;
  margin-top: 26px;
  overflow-x: auto;
  padding: 0 0 4px;
  background: transparent;
}

.latex-caption {
  max-width: 860px;
  margin: 0 auto 10px;
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.latex-table {
  width: auto;
  min-width: 720px;
  margin: 0 auto;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.18;
  border-collapse: collapse;
  background: transparent;
}

.latex-table th,
.latex-table td {
  padding: 5px 11px;
  border-bottom: 0;
  text-align: center;
  vertical-align: middle;
}

.latex-table th:first-child,
.latex-table td:first-child {
  text-align: left;
  white-space: nowrap;
}

.latex-table th {
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

.latex-table .toprule th {
  border-top: 1.8px solid #111111;
}

.latex-table .cmidrule th:not(:first-child) {
  border-top: 0.9px solid #111111;
}

.latex-table .midrule > th,
.latex-table .midrule > td {
  border-top: 1.2px solid #111111;
}

.latex-table .bottomrule > td {
  border-bottom: 1.8px solid #111111;
}

.latex-table .highlight-row > td {
  background: #eeeeee;
}

.latex-table .group-head > th {
  padding-top: 8px;
}

pre {
  margin: 18px 0 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #e5eefc;
  line-height: 1.55;
}

.bibtex-box {
  position: relative;
}

.bibtex-box pre {
  padding-right: 86px;
}

.copy-bibtex {
  position: absolute;
  top: 30px;
  right: 12px;
  z-index: 1;
  padding: 6px 12px;
  border: 1px solid rgba(229, 238, 252, 0.35);
  border-radius: 6px;
  color: #e5eefc;
  background: rgba(15, 23, 42, 0.88);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.copy-bibtex:hover {
  background: rgba(35, 87, 166, 0.95);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

footer {
  margin-top: 0;
  padding-top: 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 760px) {
  main {
    width: 100%;
    max-width: 390px;
    margin: 0;
    padding: 36px 16px 56px;
    overflow-x: hidden;
  }

  .hero {
    padding: 38px 0 48px;
  }

  .hero::before {
    top: -36px;
    height: calc(100% + 92px);
  }

  h1 {
    font-size: 34px;
    max-width: 358px;
  }

  .subtitle {
    font-size: 18px;
    max-width: 358px;
  }

  .venue {
    max-width: 358px;
    margin-right: auto;
    margin-left: auto;
  }

  .paper-links {
    gap: 10px;
    max-width: 358px;
    margin-right: auto;
    margin-left: auto;
  }

  .paper-links a {
    min-width: 0;
    padding: 9px 14px;
    font-size: 15px;
  }

  .hero-video {
    max-width: 358px;
    margin-top: 26px;
  }

  .more-results {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 358px;
    margin-right: auto;
    margin-left: auto;
  }

  .more-results-text h3 {
    font-size: 20px;
    text-align: center;
  }

  .mole-video {
    max-width: 260px;
    margin-right: auto;
    margin-left: auto;
  }

  .teaser,
  .figure-block,
  .figure-row {
    max-width: 358px;
    margin-right: auto;
    margin-left: auto;
  }

  .caption {
    max-width: 358px;
  }

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

  .stats-grid,
  .figure-row {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 26px;
  }
}
