/* Dexify project page (11-23): the supplementary video's look: light grey background (#e9eaec, the renders' and charts'
   background, so videos and charts blend into the page), dark ink, Dexify green only for emphasis. */
@font-face { font-family: "TeX Gyre Heros"; src: url("fonts/texgyreheros-regular.otf") format("opentype"); font-weight: 400; }
@font-face { font-family: "TeX Gyre Heros"; src: url("fonts/texgyreheros-bold.otf") format("opentype"); font-weight: 700; }
@font-face { font-family: "Righteous"; src: url("fonts/Righteous-Regular.ttf") format("truetype"); font-weight: 400; }
:root {
  --bg: #e9eaec;
  --ink: #222428;
  --muted: #5c6068;
  --green: #1baf7a;
  --line: #d3d6db;
  --card: #f3f4f6;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6; font-size: 17px;
}
a { color: var(--green); }
.draft-banner {
  background: #fff4d6; color: #7a4b00; text-align: center;
  font-size: 13px; padding: 6px 12px; border-bottom: 1px solid #f0d58a;
}

.hero { text-align: center; padding: 56px 16px 10px; }
.title { font-family: "Righteous", "TeX Gyre Heros", sans-serif; font-size: 72px; line-height: 1.05; margin: 0; font-weight: 400; color: #0b0b0b; }  /* the paper teaser's Dexify */
.subtitle { font-size: 24px; margin: 10px auto 18px; max-width: 1000px; color: var(--ink); white-space: nowrap; }
@media (max-width: 940px) { .subtitle { white-space: normal; text-wrap: balance; } }
.authors { font-size: 18px; margin-top: 6px; }
.arow { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px; }
.authors sup, .affils sup, .corr sup { font-size: 0.68em; margin-left: 1px; }
.affils { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; max-width: 860px; margin: 10px auto 0; font-size: 15.5px; color: var(--muted); }
.corr { font-size: 14px; color: var(--muted); margin-top: 4px; }
.venue { color: var(--muted); font-size: 15px; }
.buttons { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 7px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 15px;
}
.btn.disabled { background: #a4a8ae; cursor: not-allowed; }

main { padding: 0 16px 40px; }
section { max-width: var(--maxw); margin: 0 auto; padding: 56px 0 40px; }
section.first { border-top: none; padding-top: 18px; }
section.wide { max-width: 1200px; }
.kicker { color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.kicker.small { font-size: 12px; margin-top: 4px; }
h2 { font-size: 32px; line-height: 1.2; margin: 0 auto 20px; text-align: center; max-width: 900px; }
h3 { font-size: 22px; line-height: 1.3; margin: 30px 0 6px; }
p { margin: 8px 0; }
.lead { font-size: 20px; text-align: center; max-width: 860px; margin: 18px auto 26px; }
.abstract { text-align: justify; max-width: 900px; margin: 34px auto 0; }
.cap { color: var(--muted); font-size: 15px; text-align: center; margin: 10px auto 0; max-width: 900px; }
.note { color: var(--muted); font-size: 14.5px; }
.center { text-align: center; }

video { width: 100%; display: block; background: var(--bg); }
video.player { background: #000; border-radius: 6px; }
img.chart { width: 100%; height: auto; display: block; margin: 10px 0 2px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
.stat { background: var(--card); border-radius: 10px; padding: 16px 8px 14px; text-align: center; }
.stat .num { font-size: 32px; font-weight: 700; color: var(--green); line-height: 1.2; }
.stat .lbl { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 18px; }
.tab {
  font: inherit; font-size: 15px; padding: 7px 18px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
}
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pane { display: none; }
.pane.active { display: block; }
.pane h3 { margin-top: 12px; }
.replay {
  font: inherit; font-size: 14px; background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px 6px;
}
.replay:hover { color: var(--ink); }

.result { margin-bottom: 26px; }
.result h3 { margin-top: 26px; }

pre.bibtex { background: var(--card); padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 13.5px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 16px 36px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .title { font-size: 44px; }
  .subtitle { font-size: 19px; }
  h2 { font-size: 25px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

section[id] { scroll-margin-top: 16px; }

/* 11-24: BibTeX copy button, top right of the block */
.bib-wrap { position: relative; }
.copy {
  position: absolute; top: 10px; right: 10px; font: inherit; font-size: 13px; padding: 4px 12px; cursor: pointer;
  border: 1px solid var(--ink); border-radius: 4px; background: var(--bg); color: var(--ink);
}
.copy:hover { background: var(--ink); color: #fff; }

/* 11-24: TL;DR line above the video */
.tldr { font-size: 19px; line-height: 1.5; text-align: center; max-width: 980px; margin: 0 auto 22px; text-wrap: balance; }
.tldr b { color: var(--green); }
