:root {
  color-scheme: light;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: #132644;
  background: #fff;
  --ink: #132644;
  --body: #43536a;
  --blue: #174db0;
  --border: #d9e4f1;
  --wash: #eff5fc;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: var(--blue); }
button { font: inherit; }
:focus-visible { outline: 3px solid #2069d2; outline-offset: 4px; }
[id] { scroll-margin-top: 1rem; }
.shell { width: min(71rem, calc(100% - 3.5rem)); margin-inline: auto; }

.skip { position: fixed; top: .75rem; left: .75rem; z-index: 2; transform: translateY(-200%); background: white; padding: .55rem .8rem; }
.skip:focus { transform: none; }
.topbar { border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; min-height: 4.15rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand, .topbar nav a { color: var(--ink); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .58rem; font-weight: 750; white-space: nowrap; }
.brand-mark { color: white; background: var(--blue); display: grid; width: 1.85rem; height: 1.85rem; place-items: center; border-radius: .55rem; line-height: 1; font-size: 1.35rem; }
.topbar nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(.8rem, 3vw, 1.95rem); }
.topbar nav a { font-size: .94rem; font-weight: 600; }
.topbar nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .25rem; }

.hero { background: linear-gradient(135deg, #fff 20%, #f0f6ff 100%); border-bottom: 1px solid var(--border); }
.hero-grid { min-height: 32rem; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(1.8rem, 5vw, 4.25rem); padding-block: clamp(3.25rem, 6vw, 5.7rem); }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 5.1vw, 4.6rem); font-weight: 740; max-width: 13ch; text-wrap: balance; }
h1 span { display: block; margin-top: .65rem; color: var(--blue); font-size: .56em; letter-spacing: -.025em; font-weight: 630; text-wrap: nowrap; }
.authors { margin-top: 1.65rem; max-width: 49ch; font-weight: 660; }
.authors span { white-space: nowrap; }
sup { font-size: .73em; color: var(--blue); margin-left: .1em; }
.affiliations { display: flex; flex-wrap: wrap; column-gap: .95rem; color: var(--body); margin-top: .32rem; font-size: .94rem; }
.resources { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.8rem; }
.resource { display: inline-flex; align-items: center; gap: .42rem; min-height: 2.65rem; padding: .48rem .72rem; border-radius: .57rem; border: 1px solid #cbd9eb; background: #fff; color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 620; white-space: nowrap; }
.resource svg { width: 1.1rem; height: 1.1rem; }
.resource:hover { background: #e7f0ff; border-color: #91b6e7; }
.resource.primary { color: white; border-color: var(--blue); background: var(--blue); }
.resource.primary:hover { background: #123e8f; }

.hero-match { display: grid; gap: .7rem; width: min(100%, 27rem); justify-self: end; padding: .75rem; background: #fff; border: 1px solid var(--border); border-radius: 1.2rem; box-shadow: 0 16px 36px #1f4f8317; }
.match-tile { position: relative; overflow: hidden; border-radius: .64rem; background: #bfd2e3; }
.match-tile img { width: 100%; object-fit: cover; }
.query-tile img { aspect-ratio: 2.4; }
.satellite-tile img { aspect-ratio: 2.05; }
.match-tile span { position: absolute; bottom: .55rem; left: .55rem; padding: .24rem .54rem; border-radius: .33rem; background: #0e2135ee; color: white; font-size: .82rem; font-weight: 650; }

.section { padding-block: clamp(3rem, 6.4vw, 5.25rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 1rem 3rem; align-items: start; margin-bottom: 1.8rem; }
h2 { font-size: clamp(2.05rem, 4vw, 3.5rem); font-weight: 720; }
.section-heading p { color: var(--body); max-width: 60ch; font-size: 1.06rem; }
.paper-figure { border: 1px solid var(--border); padding: clamp(.6rem, 2.5vw, 1.5rem); border-radius: 1rem; }
.paper-figure a { display: block; border-radius: .4rem; }
.paper-figure img { width: 100%; }
.paper-figure figcaption { color: var(--body); padding: .85rem .15rem 0; font-size: .94rem; }
.tinted { background: var(--wash); border-block: 1px solid var(--border); }
.example { padding: clamp(.65rem, 2.7vw, 1.55rem); border: 1px solid var(--border); border-radius: 1rem; background: #fff; }
.example-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.55rem, 2vw, 1rem); }
.sample img { width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: .6rem; background: #d5e3f0; }
.sample figcaption { font-size: .94rem; font-weight: 650; padding: .5rem .1rem 0; }
.conditions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.conditions button { border: 1px solid #c4d5ea; background: white; color: var(--ink); border-radius: 2rem; min-height: 2.5rem; padding: .35rem .86rem; font-size: .93rem; font-weight: 640; cursor: pointer; }
.conditions button:hover { background: var(--wash); }
.conditions button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: white; }
.image-credit { margin-top: .85rem; color: var(--body); font-size: .84rem; }

.panorama-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .72rem; }
.panorama-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; padding: .48rem; background: #fff; border: 1px solid var(--border); border-radius: .72rem; }
.panorama-pair img { width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: .42rem; background: #d5e3f0; }
.panorama-pair figcaption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; gap: .35rem; padding-inline: .15rem; color: var(--body); font-size: .88rem; font-weight: 620; }
.more-panoramas { margin-top: .85rem; }
.more-panoramas summary { width: fit-content; padding: .48rem .83rem; border: 1px solid #c4d5ea; border-radius: .57rem; background: #fff; color: var(--blue); font-weight: 650; cursor: pointer; }
.more-panoramas summary:hover { border-color: #91b6e7; }
.more-panoramas .panorama-grid { margin-top: .8rem; }
.more-panoramas .show-less, .more-panoramas[open] .show-more { display: none; }
.more-panoramas[open] .show-less { display: inline; }

.result-table { border: 1px solid var(--border); border-radius: .85rem; overflow: auto; }
table { width: 100%; text-align: right; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { background: #fff; padding: .8rem clamp(.45rem, 2vw, 1.15rem); text-align: left; color: var(--ink); font-weight: 680; }
th, td { padding: .64rem clamp(.35rem, 2vw, 1.15rem); }
thead { background: var(--wash); font-size: .92rem; }
thead th { border-top: 1px solid var(--border); }
thead th[colspan] { text-align: center; }
tbody td, tbody th { border-top: 1px solid var(--border); }
th[scope="row"], th[rowspan] { text-align: left; }
td strong { color: var(--blue); }
.benchmark + .benchmark { margin-top: .85rem; }
.benchmark table { min-width: 43rem; }
.benchmark th, .benchmark td { padding: .51rem clamp(.48rem, 1.2vw, .84rem); white-space: nowrap; }
.benchmark caption { font-size: 1.07rem; }
.benchmark colgroup + colgroup { border-left: 1px solid var(--border); }
.benchmark th[scope="row"], .benchmark th[rowspan] { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--border); }
.benchmark th[rowspan] { background: var(--wash); }
.benchmark th[scope="row"] { background: #fff; }
.benchmark .reference-row, .benchmark .reference-row th[scope="row"] { background: #f1f3f6; color: var(--body); }
.benchmark .ours-row, .benchmark .ours-row th[scope="row"] { background: #eaf2ff; }
.runner-up { text-decoration: underline; text-underline-offset: .18em; }
.table-note { margin: .7rem 0 1.5rem; color: var(--body); font-size: .9rem; }
h3 { margin: 2rem 0 1.05rem; font-size: 1.57rem; }

.citation-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.citation-header button { cursor: pointer; }
.citation-header button[hidden] { display: none; }
.citation-code { margin: .85rem 0 0; padding: clamp(.8rem, 3vw, 1.4rem); border: 1px solid var(--border); border-radius: .85rem; background: var(--wash); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; }
.citation-status { color: var(--body); margin-top: .4rem; font-size: .9rem; }
.citation-status:empty { margin-top: 0; }

@media (max-width: 49rem) {
  .hero-grid, .section-heading { grid-template-columns: 1fr; }
  .hero-match { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .query-tile img, .satellite-tile img { aspect-ratio: 1.65; }
  .hero-grid { min-height: auto; }
  .panorama-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 32rem) {
  .shell { width: calc(100% - 1.9rem); }
  .topbar-inner { min-height: 3.55rem; }
  .topbar nav { gap: .75rem; }
  .topbar nav a { font-size: .88rem; }
  h1 span { text-wrap: wrap; }
  .match-tile span { left: .27rem; bottom: .27rem; font-size: .74rem; padding: .17rem .29rem; }
  .example-views { grid-template-columns: 1fr; gap: .85rem; }
  .panorama-grid { grid-template-columns: 1fr; }
  table { font-size: .86rem; }
  thead { font-size: .8rem; }
}

@media (max-width: 22rem) {
  .brand-mark { display: none; }
  .topbar nav { gap: .5rem; }
}
