:root { --wine: #a31f34; color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #363636; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
h1,h2,h3,p,figure,pre { margin: 0; }
a { color: var(--wine); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #2878b9; outline-offset: 3px; }
.wide,.reading { width: min(calc(100% - 40px),960px); margin-inline: auto; }
.reading { max-width: 730px; }
.paper-header { padding-top: clamp(30px,4vw,48px); text-align: center; }
h1 { font-size: clamp(30px,4.1vw,51px); font-weight: 700; line-height: 1.1; letter-spacing: -.042em; text-wrap: balance; margin-bottom: 22px; }
.authors,.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 16px; list-style: none; padding: 0; margin: 0; }
.authors { max-width: 560px; margin-inline: auto; font-size: 19px; line-height: 1.45; color: #4a4a4a; }
@media (min-width: 641px) { .authors { justify-content: center; gap: 3px 5px; } }
.authors li { white-space: nowrap; }
sup { color: #424242; font-size: .67em; line-height: 0; }
.authors a { color: hsl(204, 86%, 53%); text-decoration: none; }
.authors a:is(:hover,:focus-visible) { text-decoration: underline; }
.affiliations { margin: 8px auto 0; }
.affiliations li { white-space: nowrap; }
.affiliations abbr { text-decoration: none; }
summary,button { cursor: pointer; }
.affiliations { font-size: 16px; font-weight: 500; }
.affiliations,.equal-contribution,.paper-header sup { color: #4a4a4a; }
.equal-contribution { margin-top: 5px; font-size: 14px; }
.resources,.resource { display: flex; align-items: center; justify-content: center; }
.resources { flex-wrap: wrap; gap: 7px; margin: 17px auto 28px; }
.resource { gap: 7px; padding: 6px 15px; border-radius: 99px; text-decoration: none; color: #fff; background: #363636; font-size: 14px; }
.resource.pending { cursor: default; }
a.resource:hover { background: #4d4d4d; }
.resource svg { width: 16px; height: 16px; }
.teaser video,.framework img { display: block; width: 100%; height: auto; }
.teaser { max-width: 960px; }
.teaser figcaption { max-width: 840px; margin: 16px auto 0; font-size: clamp(17px,1.7vw,22px); line-height: 1.45; text-wrap: balance; text-align: center; }
.teaser figcaption strong { font-weight: 650; }
main > section { margin-block: clamp(40px,5vw,68px); scroll-margin-top: 14px; }
h2,h3 { line-height: 1.2; letter-spacing: -.028em; }
h2 { margin-bottom: 18px; font-size: clamp(27px,3vw,35px); text-align: center; font-weight: 600; }
h3 { font-size: clamp(22px,2.3vw,28px); font-weight: 600; }
.intro { max-width: 72ch; margin: 0 auto 18px; }


iframe { width: 100%; display: block; border: 0; min-height: 240px; }
.prose p + p { margin-top: 1.05em; }
#walkthrough { margin-top: 34px; }
#walkthrough .intro { margin: 8px 0 16px; }
#citation h2 { text-align: left; }
#citation pre { margin: 0; padding: 20px 22px; overflow-x: scroll; white-space: pre; background: #f5f5f5; color: #363636; font: 14px/1.6 ui-monospace, monospace; }
footer { padding: 26px 20px; background: #fafafa; text-align: center; font-size: 14px; }
@media(max-width:640px) {
  .wide,.reading { width: calc(100% - 30px); }
  .paper-header { padding-top: 28px; }
  .authors { font-size: 14px; gap: 3px 12px; }
  .affiliations { gap: 2px 12px; }
  .resource { padding: 6px 9px; }
  .resources { gap: 5px; }

}


.prose { line-height: 1.65; }
.method-copy { margin-top: 20px; }
.method-copy strong:last-child { color: var(--wine); }
#walkthrough h3 { text-align: center; font-size: clamp(19px,2.4vw,24px); margin-bottom: 12px; }
.legend { max-width: 76ch; margin: 0 auto 22px; text-align: center; color: #555; }
.evaluation { margin-top: 18px; padding-block: 10px; border-block: 1px solid #dedede; }
.evaluation summary { color: var(--wine); font-weight: 600; }
.evaluation table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.evaluation th,.evaluation td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #ddd; }
.evaluation thead th { background: #f6f6f6; color: #555; font-weight: 550; }
.evaluation th:last-child,.evaluation td { text-align: right; white-space: nowrap; }
.evaluation td,.ablation span { font-weight: 650; font-variant-numeric: tabular-nums; }
.evaluation small { display: block; color: #555; font-size: 14px; font-weight: 400; line-height: 1.45; }
.ablation { margin: 16px 12px 6px; }
.ablation p { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.ablation span { white-space: nowrap; }
.ablation small { margin-top: 3px; }
.summary { margin-top: 26px; }
.comparisons h2 { scroll-margin-top: 16px; }
.case-row { margin: 34px auto 0; text-align: center; }
.case-row + .case-row { margin-top: clamp(38px,5vw,64px); }
.query-prompt { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 0 auto 15px; }
.query-prompt h3 { font-size: 18px; line-height: 1.35; font-weight: 500; letter-spacing: normal; }
.query-prompt p,.full-example { font-size: 14px; }
.query-object { display: block; flex: none; position: relative; overflow: hidden; width: 100px; }
.query-object img { display: block; position: absolute; height: auto; }
.gallery { display: grid; gap: 10px; }
.gallery.pair { max-width: 690px; margin-inline: auto; grid-template-columns: repeat(2,minmax(0,1fr)); }
.gallery.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.photo { position: relative; }
.photo img { display: block; width: 100%; height: auto; }
.region { position: absolute; border: 3px solid #ff962e; box-shadow: inset 0 0 0 1px #fff; }
.gallery figcaption { margin-top: 7px; font-weight: 600; line-height: 1.4; }
.gallery figcaption span { display: block; font-size: 14px; }
@media(max-width:640px) {
  h1 br { display: none; }
  .evaluation th,.evaluation td { padding: 8px; }
  .ablation { margin-inline: 8px; }
  .gallery.four { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 8px; }
  .query-prompt { gap: 10px; }
  .query-prompt h3 { font-size: 16px; }
  .region { border-width: 2px; }
}
.term { white-space: nowrap; }
@media(min-width:360px) and (max-width:480px) {
  .authors { display: flex; }
}
@media(max-width:480px) {
  .resource { padding-inline: 7px; }
}

html { scrollbar-gutter: stable; }
html:has(.image-preview[open]) { overflow: hidden; }
.image-preview {
  width: fit-content; max-width: calc(100% - 24px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 6px; color: inherit; background: white;
}
.image-preview::backdrop { background: rgb(20 20 20 / 76%); }
.image-preview header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px; }
.image-preview h2 { font-size: 17px; margin: 0; text-align: left; }
.image-preview button {
  min-height: 44px; padding: 0 12px; font: inherit; font-weight: 600;
  color: var(--wine); background: white; border: 1px solid #ddd; border-radius: 4px;
}
.image-preview img { display: block; max-width: 100%; max-height: calc(100dvh - 88px); margin: auto; object-fit: contain; }

.arxiv-mark { display: block; filter: invert(1); }

.project-name { display: inline-flex; align-items: baseline; gap: .13em; white-space: nowrap; }
.project-name .query-mark { width: .72em; height: .72em; }

#citation pre::-webkit-scrollbar { height: 12px; }
#citation pre::-webkit-scrollbar-track { background: #eee; }
#citation pre::-webkit-scrollbar-thumb { background: #888; border: 2px solid #eee; border-radius: 8px; }
