/* Layout and typography modelled on siplab.org project pages; font: Inter (SIL OFL, static/fonts). */
@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("../fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --text: #222;
  --muted: #777;
  --link: #1f407a;
  --link-hover: #336acc;
  --band: #f0f0f0;
  --line: #d8d8d8;
  --ok: #10965a;
  --bad: #c83c28;
  --query: #286ec8;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 56px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--link); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
a:hover { color: var(--link-hover); border-bottom-color: currentColor; }
b, strong { font-weight: 500; }
img { display: block; width: 100%; height: auto; }

/* ---------- title block ---------- */
#top { text-align: center; padding: 56px 20px 0; }
#top h1 {
  font-weight: 400; font-size: 44px; line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 auto 14px; max-width: 980px;
}
#top .sttl { font-weight: 300; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 auto 22px; max-width: 900px; }
#top .venue { display: block; font-weight: 400; font-size: 20px; margin-bottom: 26px; }
.authors { font-size: 19px; line-height: 1.7; max-width: 960px; margin: 0 auto 12px; }
.authors .nw { white-space: nowrap; }
.authors sup, .affiliations sup { font-size: .68em; color: var(--muted); margin-left: 1px; }
.affiliations {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px;
  font-size: 15px; line-height: 1.35; color: #444; max-width: 1040px; margin: 0 auto;
}
.affiliations sup { margin: 0 2px 0 0; color: #444; }
.note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* ---------- sticky link bar ---------- */
.options {
  position: sticky; top: 0; z-index: 10;
  list-style: none; margin: 30px 0 0; padding: 10px 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(120%) blur(10px); -webkit-backdrop-filter: saturate(120%) blur(10px);
}
.options a, .options .dsbl {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 3px;
  font-size: 14px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); border: 0;
}
.options a:hover { background: #f2f2f2; color: var(--text); }
.options .dsbl { color: #aaa; cursor: default; }
.options svg { height: 1.35em; width: auto; fill: currentColor; }

/* ---------- sections ---------- */
section { padding: 44px 20px; }
section:nth-of-type(even) { background: var(--band); }
section > h2 { font-weight: 400; font-size: 24px; text-align: center; margin: 0 0 24px; letter-spacing: -0.01em; }
.narrow { max-width: 780px; margin: 0 auto; }
.wide { max-width: 1200px; margin: 0 auto; }
.mid { max-width: 1000px; margin: 0 auto; }

#abstract p { text-align: left; margin: 0; }
#abstract p + p { margin-top: 12px; }

figure { margin: 0; }
figure + figure { margin-top: 40px; }
figcaption, .thsub { font-size: 16px; line-height: 1.45; color: #333; margin: 14px auto 0; max-width: 1000px; }
figcaption b { font-weight: 500; }
.fig-link { border: 0; display: block; }
.fig-link:hover { border: 0; }

pre.bib {
  margin: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 3px;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre;
}

/* ---------- key numbers ---------- */
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 30px auto 0; max-width: 1000px; }
.keys div { background: #fff; padding: 18px 16px; text-align: center; }
.keys .n { display: block; font-size: 30px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.keys .l { display: block; font-size: 14px; color: #555; line-height: 1.35; margin-top: 6px; }

/* ---------- qualitative example ---------- */
.qual { max-width: 1200px; margin: 0 auto; }
.qhead { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; max-width: 820px; margin: 0 auto 30px; }
.qhead img { border: 3px solid var(--query); }
.qhead .qlabel { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--query); font-weight: 500; }
.qhead .qtext { font-size: 17px; line-height: 1.5; }
.qhead code { font: 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #fff; border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; }

.qrow { display: grid; grid-template-columns: 150px repeat(5, 1fr); gap: 12px; align-items: start; }
.qrow + .qrow { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.qrow .who { font-size: 17px; font-weight: 400; line-height: 1.3; padding-top: 4px; }
.qrow .who span { display: block; font-size: 14px; font-weight: 300; color: #555; margin-top: 6px; }
.qrow .who .score { font-size: 26px; font-weight: 400; color: var(--text); margin-top: 10px; letter-spacing: -0.02em; }
.qrow.ours .who .score { color: var(--ok); }
.qrow.base .who .score { color: var(--bad); }

.card { background: #fff; border: 1px solid var(--line); }
.card img { border-bottom: 1px solid var(--line); }
.card .meta { padding: 8px 10px 10px; font-size: 13px; line-height: 1.5; }
.card .rk { display: flex; justify-content: space-between; font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.card .rk .ok { color: var(--ok); }
.card .rk .no { color: var(--bad); }
.card .at { display: flex; justify-content: space-between; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.card .at .k { color: #999; }
.card .at.cor { color: var(--bad); }
.card .at.cor .v { font-weight: 600; }
.card .at.mis { color: #b07a00; }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; color: #444; margin: 26px auto 0; }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 2px solid; }
.legend .l-ok { border-color: var(--ok); } .legend .l-no { border-color: var(--bad); } .legend .l-q { border-color: var(--query); }
.legend .t-cor { color: var(--bad); font-family: ui-monospace, monospace; font-weight: 600; }
.legend .t-mis { color: #b07a00; font-family: ui-monospace, monospace; }

footer { text-align: center; font-size: 14px; color: #999; padding: 34px 20px 44px; }

@media (max-width: 900px) {
  #top h1 { font-size: 32px; }
  #top .sttl { font-size: 21px; }
  .keys { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: repeat(2, 1fr); }
  .qrow .who { grid-column: 1 / -1; }
  .qrow .who span, .qrow .who .score { display: inline; margin: 0 0 0 10px; font-size: 16px; }
  .qhead { grid-template-columns: 120px 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  #top { padding-top: 36px; }
  #top h1 { font-size: 27px; }
  .authors { font-size: 16px; }
  .affiliations { font-size: 13px; }
  section { padding: 34px 16px; }
}
@media (max-width: 520px) { #top .venue { font-size: 16px; } .options { gap: 2px; } .options a, .options .dsbl { padding: 8px 10px; font-size: 12px; } }
