:root {
  --text: #363636;
  --heading: #303030;
  --blue: #3273dc;
  --line: #d9d9d9;
  --muted: #666;
  --sans: "Noto Sans", "Google Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
video:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid #77a9f7;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--line);
  z-index: 10;
}
.skip-link:focus {
  top: 8px;
}
main {
  max-width: 1050px;
  margin: auto;
  padding: 0 28px;
}
.paper-header {
  max-width: 1040px;
  text-align: center;
  margin: 0 auto;
  padding: 62px 0 34px;
}
h1 {
  font-size: 40px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -1.3px;
  margin: 0 0 22px;
  color: var(--heading);
}
.authors {
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 21px;
}
.paper-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.paper-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  min-height: 38px;
  border-radius: 22px;
  background: #363636;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}
.paper-links a:hover {
  background: #4b4b4b;
  text-decoration: none;
}
.paper-links svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.teaser {
  max-width: 960px;
  margin: 0 auto 44px;
}
.teaser video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #fff;
}
.teaser figcaption {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin: 15px auto 0;
  max-width: 940px;
}
.paper-section {
  max-width: 940px;
  margin: 0 auto;
  padding: 26px 0 16px;
  scroll-margin-top: 24px;
}
.paper-section h2 {
  font-size: 31px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.5px;
  text-align: center;
  margin: 0 0 23px;
  color: var(--heading);
}
.paper-section p {
  margin: 0 0 17px;
}
.abstract-section {
  max-width: 860px;
}
.abstract-section > p {
  text-align: justify;
  text-justify: inter-word;
  font-size: 16px;
  line-height: 1.8;
}
.paper-section h3 {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 26px 0 12px;
  color: var(--heading);
}
.equations {
  text-align: center;
  margin: 21px 0 23px;
  font-family: "Cambria Math", "STIX Two Math", Georgia, serif;
  font-size: 22px;
  line-height: 1.55;
  color: #222;
}
.equations p {
  margin: 5px 0;
}
.paper-figure {
  margin: 26px 0 20px;
}
.paper-figure > a {
  display: block;
}
.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.paper-figure figcaption {
  font-size: 14px;
  line-height: 1.65;
  text-align: justify;
  margin: 13px 0 0;
  color: #505050;
}
.section-intro {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 24px;
}
.demo {
  margin: 0;
}
.demo h3 {
  text-align: center;
  font-size: 20px;
  margin: 0 0 13px;
}
.demo video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #fff;
}
.demo figcaption {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  text-align: justify;
}
.table-scroll {
  overflow-x: auto;
  margin: 25px 0 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  white-space: normal;
  line-height: 1.65;
  margin-bottom: 12px;
  color: #505050;
}
thead {
  border-top: 2px solid #555;
  border-bottom: 1px solid #777;
}
th,
td {
  padding: 10px 11px;
}
thead th {
  font-weight: 600;
}
thead tr:nth-child(2) th {
  font-size: 12px;
  font-weight: 500;
  padding-top: 2px;
}
tbody {
  border-bottom: 2px solid #555;
}
tbody tr:nth-child(even) {
  background: #f7f7f7;
}
tbody th {
  font-weight: 500;
}
td strong {
  font-weight: 650;
}
.table-note {
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: #666;
  margin-top: 12px !important;
}
.code-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px;
  background: #f3f3f3;
  border-radius: 4px 4px 0 0;
  line-height: 1.5;
}
.code-label button {
  font: inherit;
  line-height: 1.4;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  color: #444;
  cursor: pointer;
}
.code-label button:hover {
  background: #eaeaea;
}
pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px 20px;
  background: #f6f6f6;
  border-radius: 0 0 4px 4px;
  color: #333;
  font-size: 12px;
  line-height: 1.8;
}
pre code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.resource-note {
  font-size: 14px;
  margin-top: 15px !important;
}
.citation {
  padding-bottom: 42px;
}
footer {
  max-width: 940px;
  margin: 8px auto 0;
  padding: 22px 24px 35px;
  border-top: 1px solid #e7e7e7;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer p {
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1400px) {
  .paper-header {
    padding-top: 72px;
  }
}
@media (max-width: 800px) {
  main {
    padding: 0 24px;
  }
  .paper-header {
    padding-top: 45px;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -0.9px;
  }
  .teaser figcaption {
    font-size: 15px;
  }
  .demo-grid {
    gap: 22px;
  }
  .demo h3 {
    font-size: 18px;
  }
  .paper-section h2 {
    font-size: 29px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }
  main {
    padding: 0 18px;
  }
  .paper-header {
    padding: 34px 0 26px;
  }
  h1 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 18px;
  }
  h1 br {
    display: none;
  }
  .authors {
    font-size: 20px;
    margin-bottom: 18px;
  }
  .paper-links {
    gap: 7px;
  }
  .paper-links a {
    font-size: 13px;
    gap: 6px;
    padding: 6px 12px;
    min-height: 36px;
  }
  .paper-links svg {
    width: 14px;
    height: 14px;
  }
  .teaser {
    margin-bottom: 25px;
  }
  .teaser figcaption {
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
    margin-top: 12px;
  }
  .paper-section {
    padding: 22px 0 12px;
  }
  .paper-section h2 {
    font-size: 26px;
    margin-bottom: 19px;
  }
  .abstract-section > p {
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
  }
  .paper-section p {
    margin-bottom: 14px;
  }
  .equations {
    font-size: 19px;
    line-height: 1.5;
    margin: 18px 0;
  }
  .paper-figure {
    margin: 21px 0 17px;
  }
  .paper-figure figcaption {
    font-size: 12px;
    text-align: left;
    line-height: 1.7;
  }
  .paper-figure > a {
    overflow-x: auto;
  }
  .paper-figure img {
    min-width: 650px;
  }
  .section-intro {
    font-size: 14px;
    text-align: left;
  }
  .demo-grid {
    display: block;
    margin-top: 20px;
  }
  .demo {
    margin-bottom: 29px;
  }
  .demo:last-child {
    margin-bottom: 0;
  }
  .demo h3 {
    font-size: 19px;
    text-align: left;
    margin-bottom: 12px;
  }
  .demo figcaption {
    font-size: 12px;
    text-align: left;
  }
  .table-scroll {
    margin-top: 20px;
  }
  table {
    font-size: 12px;
  }
  caption {
    font-size: 12px;
  }
  th,
  td {
    padding: 8px 9px;
  }
  .table-note {
    font-size: 11px !important;
  }
  .paper-section h3 {
    font-size: 20px;
    margin: 22px 0 11px;
  }
  .code-label {
    font-size: 11px;
    padding: 9px 12px;
  }
  pre {
    font-size: 10px;
    padding: 15px 13px;
  }
  .resource-note {
    font-size: 12px;
  }
  .citation {
    padding-bottom: 30px;
  }
  footer {
    font-size: 12px;
    padding-top: 20px;
    padding-bottom: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* A paper-first layout: quiet surfaces, centered masthead, readable figures. */
:root { --blue: #2473a8; --text: #34383c; --heading: #282d32; --line: #dfe5e9; }
body { background: #fff; }
main { max-width: 1096px; }
.paper-header { padding: 62px 0 30px; }
h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 650; line-height: 1.17; letter-spacing: -1.5px; }
.byline .authors { margin-bottom: 18px; }
.paper-links a { gap: 7px; }
.paper-links a.primary { background: #30383d; }
.paper-links a:hover { background: #48535a; }
.paper-header .topic { margin: 0 0 14px; color: #687780; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.lead { max-width: 870px; margin: 12px auto 22px; text-align: center; font-size: 20px; line-height: 1.6; }
.chemistry { margin: 15px auto 24px; max-width: 960px; }
.chemistry img { display: block; width: 100%; height: auto; }
.chemistry figcaption { font-size: 12px; color: #72808a; text-align: center; margin: 2px 0; }
.opening-result { margin: 22px auto 40px; max-width: 850px; text-align: center; font-size: 18px; line-height: 1.7; }
.opening-result strong { color: #246b67; font-size: 23px; }
.paper-section { padding: 39px 0 27px; border-top: 1px solid #e6ebee; }
.paper-section h2 { font-size: 29px; margin-bottom: 24px; }
.abstract-section > p { font-size: 16px; text-align: justify; }
#overview { padding-bottom: 12px; }
.demo-main { margin: 24px 0 34px; }
.demo-main h3 { text-align: center; font-size: 22px; margin: 0 0 15px; }
.demo-main video { width: 100%; display: block; border: 1px solid #dce3e8; background: #fff; }
.demo-main figcaption { margin-top: 13px; font-size: 14px; color: #56616a; line-height: 1.7; }
.demo-grid { display: block; }
.demo { margin: 32px auto 0; }
.demo h3 { font-size: 22px; }
.demo video { max-width: 100%; aspect-ratio: auto; border: 1px solid #dce3e8; }
.demo figcaption { font-size: 14px; text-align: left; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 25px 0; padding: 0; list-style: none; counter-reset: step; }
.workflow li { border-top: 2px solid #d9e5e9; padding-top: 12px; font-size: 14px; color: #5b6770; }
.workflow strong { display: block; margin-bottom: 6px; color: #303b42; font-size: 16px; }
.source-note { font-size: 13px; color: #67747d; }
.demo-actions { font-size: 13px; margin-top: 12px !important; text-align: center; }
@media(max-width:600px) {
 .paper-header { padding: 35px 0 23px; }
 .paper-header .topic { font-size: 10px; letter-spacing: .1em; }
 h1 { font-size: 31px; }
 .lead { font-size: 17px; text-align: left; }
 .chemistry { margin: 16px -8px 24px; }
 .chemistry figcaption { font-size: 10px; }
 .opening-result { font-size: 15px; text-align: left; }
 .opening-result strong { font-size: 19px; }
 .workflow { grid-template-columns: 1fr; gap: 13px; }
 .paper-section { padding-top: 30px; }
 .demo-main figcaption, .demo figcaption { font-size: 13px; }
 .paper-figure img { min-width: 0; }
 .abstract-section > p { text-align: left; }
}

/* Author affiliation markers follow the manuscript. */
.paper-header .authors {font-size:20px;line-height:1.8;margin-bottom:12px;}
.authors sup {font-size:.64em;color:#535e66;margin-left:2px;}
.affiliations {font-size:14px;color:#56616a;line-height:1.65;margin-bottom:10px;}
.affiliations p {margin:3px 0;}
.affiliations sup {margin-right:3px;}
.author-emails {max-width:870px;margin:0 auto 20px;font-size:12px;color:#687780;}
.author-emails summary {cursor:pointer;list-style-position:inside;}
.author-emails p {margin:8px 0 0;overflow-wrap:anywhere;}
@media(max-width:600px){.paper-header .authors{font-size:17px;}.affiliations{font-size:12px;}.author-emails{font-size:11px;}}

/* This paper: two-line title, opening example, second code block. */
h1 .subtitle { display: inline-block; margin-top: 8px; font-size: .62em; font-weight: 500; letter-spacing: -0.4px; color: #47525a; line-height: 1.3; }
.chemistry { max-width: 1040px; margin: 18px auto 20px; }
.chemistry figcaption { margin-top: 6px; }
.opening-result { max-width: 900px; font-size: 17px; }
.opening-result strong { font-size: 22px; }
.code-label.second { margin-top: 18px; }
.implementation p code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .92em; background: #f3f5f6; padding: 1px 5px; border-radius: 3px; }
@media(max-width:600px) { h1 .subtitle { font-size: .66em; } .opening-result { font-size: 14px; } .opening-result strong { font-size: 18px; } .chemistry { overflow-x: auto; margin-left: 0; margin-right: 0; } .chemistry img { min-width: 660px; } }

/* Opening teaser: a short looping cartoon, as on video-first project pages. */
.teaser { max-width: 1000px; margin: 14px auto 18px; }
.teaser video { aspect-ratio: 2 / 1; border: 1px solid #dce3e8; border-radius: 6px; background: #fff; }
.teaser video img { width: 100%; height: auto; display: block; }
.teaser figcaption { font-size: 13px; color: #67747d; margin-top: 9px; max-width: 900px; }
#example img { border: 0; }
@media(max-width:600px) { .teaser { margin: 10px -6px 16px; } .teaser figcaption { font-size: 11.5px; text-align: center; } #example { overflow-x: auto; } #example img { min-width: 660px; } }
