:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #30343b;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #3268b2; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid #3268b2; outline-offset: 5px; }

.site-header {
  max-width: 1200px;
  margin: auto;
  padding: 25px 24px;
  font-size: 14px;
}
.site-header a { color: #626a77; }
.site-header span { margin-left: 5px; }

main { max-width: 1200px; margin: auto; padding: 0 24px; }
.paper-header { max-width: 1040px; margin: auto; padding: 35px 0 36px; text-align: center; }
h1 {
  margin: 0 auto 30px;
  font-size: clamp(29px, 3.6vw, 43px);
  line-height: 1.19;
  letter-spacing: -1.1px;
  font-weight: 700;
  text-wrap: balance;
}
.acronym {
  color: #3268b2;
  background: linear-gradient(110deg, #d93651 0%, #d87515 24%, #31974b 48%, #287dd0 73%, #9250c5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .acronym { background: none; -webkit-text-fill-color: currentColor; }
}
.authors {
  max-width: 960px;
  margin: 0 auto 23px;
  font-size: 20px;
  line-height: 1.9;
  text-wrap: balance;
}
.authors span { display: inline-block; margin: 0 4px; }
sup { font-size: 0.68em; vertical-align: super; line-height: 0; }
.authors sup { margin-left: 2px; }
.affiliations { font-size: 16px; line-height: 1.65; }
.affiliations p { margin: 3px 0; }
.affiliations p, .author-notes p { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 20px; }
.affiliations sup { color: #3268b2; font-weight: 700; }
.author-notes { margin-top: 20px; color: #68707c; font-size: 14px; line-height: 1.6; }
.author-notes p { margin: 4px 0; }
.publication-links { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #363636;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}
.resource-button:hover { background: #292929; text-decoration: none; }
.resource-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.abstract { max-width: 800px; margin: 0 auto 64px; }
.abstract h2 { margin: 0 0 24px; text-align: center; font-size: 32px; line-height: 1.2; font-weight: 600; }
.abstract p { margin: 0; font-size: 16px; line-height: 1.6; text-align: justify; }
.teaser {
  max-width: 900px;
  margin: 12px auto 64px;
}
.teaser a { display: block; }
.teaser img { display: block; width: 100%; height: auto; }
.applications-title { margin: 0 0 24px; text-align: center; font-size: 32px; line-height: 1.2; font-weight: 600; }
.videos { display: flex; align-items: flex-start; gap: 24px; margin: 0 auto 64px; }
.video-demo { flex: var(--video-ratio, 1.777778) 1 0; min-width: 0; margin: 0; }
.video-demo video {
  display: block;
  width: 100%;
  height: auto;
}
.video-demo figcaption { margin-top: 14px; text-align: center; font-size: 20px; font-weight: 600; line-height: 1.4; }
.method-section { max-width: 1040px; margin: 0 auto 64px; }
.method-section h2 { margin: 0 0 24px; text-align: center; font-size: 32px; line-height: 1.2; font-weight: 600; }
.method-description { max-width: 960px; margin: 24px auto 0; font-size: 16px; line-height: 1.6; }
.method-figure { min-width: 0; margin: 0; }
.method-figure img { display: block; width: 100%; height: auto; }
.method-section > .method-figure { max-width: 640px; margin: auto; }
.method-image-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* Native image aspect ratios give the two figures equal displayed heights. */
.grounding-image-row { grid-template-columns: minmax(0, 3.5501519757fr) minmax(0, 2.3610698366fr); }
.method-image-row .method-figure { display: flex; flex-direction: column; }
.method-image-row figcaption { margin-top: auto; padding-top: 14px; text-align: center; font-size: 18px; font-weight: 600; line-height: 1.4; }
.bibtex { max-width: 960px; margin: 0 auto 64px; }
.bibtex h2 { margin: 0 0 24px; font-size: 28px; line-height: 1.2; font-weight: 600; }
.bibtex pre { margin: 0; padding: 20px 24px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #e9ecf0; border-radius: 8px; background: #f5f5f5; color: #4a4a4a; font-size: 14px; line-height: 1.5; }
.bibtex code { font-family: monospace; }
footer {
  border-top: 1px solid #e9ecf0;
  padding: 25px 24px 32px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: #68707c;
}
footer span { display: block; }

@media (max-width: 600px) {
  .site-header { padding: 20px; text-align: center; font-size: 13px; }
  main { padding: 0 18px; }
  .paper-header { padding-top: 20px; padding-bottom: 24px; }
  h1 { letter-spacing: -0.6px; margin-bottom: 22px; }
  .authors { font-size: 17px; line-height: 1.85; }
  .affiliations { font-size: 14px; }
  .affiliations p { margin: 8px 0; }
  .author-notes { font-size: 12px; }
  .teaser { margin-bottom: 38px; }
  .videos { gap: 10px; margin-bottom: 38px; }
  .applications-title { font-size: 28px; }
  .video-demo figcaption { font-size: 12px; overflow-wrap: anywhere; }
  .abstract { margin-bottom: 38px; }
  .abstract h2 { font-size: 28px; }
  .abstract p { text-align: left; }
  .method-section, .bibtex { margin-bottom: 38px; }
  .method-section h2 { font-size: 28px; }
  .method-image-row { gap: 12px; }
  .method-image-row figcaption { font-size: 14px; }
}
