:root {
  color-scheme: light;
  --text: #353535;
  --secondary: #505158;
  --border: #dddfe3;
  --blue: #2570a1;
  --page-width: 54rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: white;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; font-size: 1.025rem; line-height: 1.68; }
button, select { font: inherit; }
button, select, a { touch-action: manipulation; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #1777bb; outline-offset: 4px;
}
svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 3; width: auto; height: auto; clip-path: none; padding: .6rem 1rem; background: white; }
[hidden] { display: none !important; }

.paper-header { margin: auto; max-width: 69rem; padding: clamp(2.2rem, 4.3vw, 4.2rem) 1.25rem 0; text-align: center; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 3.5vw, 3.15rem); font-weight: 650; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.venue { color: #193f75; font-size: clamp(1.38rem, 2vw, 1.78rem); font-weight: 650; margin-top: 1rem; line-height: 1.3; }
.author-info { margin: 1.15rem auto 0; }
#byline { line-height: 1.6; font-size: clamp(1.06rem, 1.55vw, 1.31rem); }
#byline span { color: #2365a2; white-space: nowrap; }
#byline sup { position: relative; top: -.45em; font-size: .65em; vertical-align: baseline; margin-left: 1px; }
#affiliation { font-size: 1.08rem; color: var(--secondary); margin-top: .12rem; }
#correspondence { font-size: .89rem; color: var(--secondary); margin-top: .32rem; }
.resources { margin-top: 1.4rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .48rem; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: .5rem 1rem; color: #fff; text-decoration: none; font-size: .86rem; line-height: 1.2; font-weight: 600; letter-spacing: .015em; border: 0; border-radius: 999px; background: #363636; }
.action:disabled { background: #68686b; color: #fff; cursor: default; }
a.action:hover { background: #161616; }
.action svg { width: 1.03rem; height: 1.03rem; }

main { width: min(var(--page-width), calc(100% - 2.5rem)); margin: 0 auto; }
.paper-section { margin: clamp(2.8rem, 4.6vw, 4.1rem) 0 0; }
.paper-section + .paper-section { padding-top: 2.4rem; margin-top: 2.6rem; border-top: 1px solid #e8e8e8; }
.paper-section > h2 { margin: 0 0 1rem; font-size: clamp(1.72rem, 2.6vw, 2.12rem); line-height: 1.2; letter-spacing: -.025em; text-align: center; font-weight: 650; }
.paper-section p + p { margin-top: .85rem; }
.paper-section > p, .abstract { color: #414141; }
.abstract { text-align: justify; hyphens: manual; }
.paper-section h3 { margin: 2.15rem 0 .55rem; font-size: 1.28rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.4; }
.method-points { padding-left: 1.4rem; margin: 1.3rem 0 0; }
.method-points li + li { margin-top: .48rem; }
.figbox { margin: 1.65rem auto; }
.fig-open { display: block; position: relative; cursor: zoom-in; }
.fig-open > img { display: block; width: 100%; height: auto; margin: 0 auto; }
[data-figure="fixed-and-refined"] { max-width: 43rem; margin: auto; }
[data-figure="localization"] { max-width: 34rem; margin: auto; }
figcaption { margin: .7rem 0 0; color: #505050; font-size: .94rem; line-height: 1.5; }
.zoom-icon { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 30px; height: 30px; background: #fffffff2; color: #41434c; border: 1px solid var(--border); border-radius: 5px; }
.zoom-icon svg { width: .91rem; height: .91rem; }

.table-scroll { max-width: 100%; overflow-x: auto; border-block: 1px solid #c8c3c5; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { padding: .54rem .8rem; text-align: right; border-bottom: 1px solid #e3e3e3; font-size: .94rem; }
thead th:first-child, tbody th { text-align: left; }
.method-citation { font-size: .84em; color: #646066; }
th[scope="row"] { white-space: normal; min-width: 9rem; }
.eval-level { vertical-align: middle; text-align: left; font-weight: 600; }
tbody + tbody tr:first-child { border-top: 2px solid #c8c3c5; }
#result-table-1, #result-table-2, #result-table-3 { margin-bottom: .65rem; }
thead th { background: #f7f7f7; }
tbody th { font-weight: 500; }
tr.ours { background: #f0f5f8; }
tr.ours th, tr.ours td { font-weight: 650; }
.table-note { font-size: .84rem; color: var(--secondary); margin-top: .65rem; }
.map-select { display: inline-flex; align-items: center; position: relative; }
.map-select select { appearance: none; padding: .24rem 1.6rem .24rem .55rem; border: 1px solid #d0d0d0; border-radius: 5px; background: white; color: #404040; cursor: pointer; font-size: .86rem; }
.map-select svg { pointer-events: none; width: 12px; height: 12px; position: absolute; right: .45rem; }
.viewer { margin: 2rem auto 0; max-width: 36rem; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.viewer-head, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .65rem .95rem; background: #f7f7f7; }
.viewer-head { border-bottom: 1px solid var(--border); }
.viewer-head h3 { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.01rem; }
.sample-count, .viewer-controls { font-size: .85rem; color: var(--secondary); }
.viewer-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: .85rem .95rem; }
.image-well img { display: block; width: 100%; height: auto; }
.view-label, .map-select { margin-top: .35rem; font-size: .87rem; }
.viewer-controls { border-top: 1px solid var(--border); }
.thumbs { display: flex; gap: .25rem; }
.thumb { display: grid; place-items: center; width: 40px; height: 40px; padding: 2px; background: transparent; border: 2px solid transparent; border-radius: 5px; cursor: pointer; }
.thumb[aria-pressed=true] { border-color: var(--blue); }
.thumb img { display: block; width: 100%; height: 100%; }
footer { margin: 3rem 0 0; padding: 1.3rem 1rem; text-align: center; background: #fafafa; border-top: 1px solid #e8e8e8; font-size: .91rem; }
footer a, .dialog-bar a { text-decoration: none; }
footer a:hover, .dialog-bar a:hover { text-decoration: underline; }
dialog { width: min(1140px, 95vw); max-height: 95dvh; padding: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
dialog::backdrop { background: #14151bd1; }
.dialog-bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .9rem; background: #fafafa; border-bottom: 1px solid var(--border); }
.dialog-bar h2 { margin: 0; font-size: 1rem; }
.dialog-bar > div { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.dialog-bar button { display: grid; place-items: center; cursor: pointer; width: 34px; height: 34px; border: 1px solid var(--border); background: white; border-radius: 4px; }
.dialog-image { padding: .7rem; }
.dialog-image img { display: block; max-width: 100%; height: auto; margin: auto; }
@media(max-width: 590px) {
  body { font-size: 1rem; line-height: 1.6; }
  .paper-header { padding-inline: 1rem; }
  .resources { gap: .35rem; }
  .action { padding: .48rem .68rem; font-size: .78rem; }
  .abstract { text-align: left; }
  th, td { padding: .46rem .6rem; }
  .viewer-controls, .viewer-head, .viewer-field { padding: .65rem; }
  .thumb { width: 34px; height: 34px; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
