/* Additions on top of the Nerfies index.css; panels reuse the Nerfies interpolation-panel look. */
html { scroll-behavior: smooth; }

/* the abstract follows the title / link buttons directly */
.abstract-section {
  padding-top: 0.5rem;
}

/* ---- paper figures (width of the figure = image + caption; container is ~912 px on desktop) ---- */
.paper-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Two widths, as in the two-column paper: full container width for figure* / table* floats, one shared narrower
   width for one-column floats (Fig. 1, Table 3, Figs. 7, 8); the tall method figure a bit narrower. The caption
   always spans exactly the width of its figure / table. */
.paper-figure {
  margin: 0.75rem auto 2.25rem;
  width: 100%;
}
.paper-figure.single { width: 62%; }     /* ~595 px on desktop */
.paper-figure.method { width: 50%; }     /* ~480 px */

/* subsection = heading + item; a one-column item's block takes the item width so the heading lines up with it */
.paper-sub { margin: 0 auto; width: 100%; }
.paper-sub.single { width: 62%; }
.paper-sub.single .paper-figure.single { width: 100%; }
/* "auto": width from the builder (--w) so Q1-Q3 figures show their text at about the same size */
.paper-sub.auto { width: var(--w, 100%); }

@media screen and (max-width: 768px) {
  .paper-figure.single, .paper-figure.method, .paper-sub.single, .paper-sub.auto { width: 100%; }
}

.paper-figure img {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.paper-caption {
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: justify;
  color: #4a4a4a;
  margin-top: 0.6rem;
}
.paper-table-figure .paper-caption {
  margin: 0 0 0.6rem;
}
.cap-num {
  font-weight: 700;
  color: #363636;
}

h3.title.is-4.paper-subtitle {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-align: center;          /* blocks have different widths (Q1-Q3): centred headings keep one axis */
}
.pair-slider-title {
  text-align: center;
}

.hl-purple {
  color: #8E6FD5;
  background: #F1EEF9;
  font-weight: 700;
  font-style: italic;
  padding: 0 0.15em;
}
.hl-green {
  color: #257849;
  background: #DEF3E7;
  font-weight: 700;
  font-style: italic;
  padding: 0 0.15em;
}

/* ---- paper tables (booktabs look) ---- */
.paper-table-wrap {
  overflow-x: auto;
}
table.paper-table {
  border-collapse: collapse;
  width: 100%;                 /* same width as the caption above it */
  margin: 0 auto;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
table.paper-table th,
table.paper-table td {
  padding: 0.22rem 0.5rem;
  text-align: center;
  white-space: nowrap;
  border: none;
  vertical-align: middle;
}
table.paper-table th:first-child,
table.paper-table td:first-child {
  text-align: left;
}
table.paper-table thead tr:first-child th { border-top: 2px solid #363636; }
table.paper-table tr.last-head th { border-bottom: 1px solid #363636; }
table.paper-table tbody tr:last-child td { border-bottom: 2px solid #363636; }
table.paper-table tr.rule td { border-top: 1px solid #363636; }
/* booktabs \cmidrule(lr): a rule under the group header, trimmed at both ends so neighbouring groups stay apart */
table.paper-table th.cmid {
  background: linear-gradient(#4a4a4a, #4a4a4a) center bottom / calc(100% - 14px) 1px no-repeat;
}
table.paper-table tr.ours td { background: rgb(242, 242, 255); }
table.paper-table tr.tab-sec td { text-align: center; }

/* Table 1 (L1 / L2 / L3 diagnostic prompts) */
table.prompt-levels { min-width: 60%; }
table.prompt-levels tr.tmpl td {
  background: #f2f2f2;
  text-align: left;
  border-top: 1px solid #dbdbdb;
}
table.prompt-levels td.l1 { text-align: left; }
table.prompt-levels .blank {
  display: inline-block;
  min-width: 1.5em;
  border-bottom: 1px solid #4a4a4a;
}

.pair-panel {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 1rem 1.25rem 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

/* ---- horizontal pair slider: one pair per slide, swipe / arrows / dots ---- */
.pair-slider {
  margin-bottom: 2.5rem;
}
.pair-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  border-radius: 10px;
}
.pair-track::-webkit-scrollbar { display: none; }
.pair-track > .pair-panel {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin-bottom: 0;
}
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
}
.slider-btn {
  border: none;
  background: #363636;
  color: #fff;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.slider-btn:hover { background: #4a4a4a; }
.slider-dot {
  border: none;
  padding: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #dbdbdb;
  cursor: pointer;
}
.slider-dot.is-active { background: #363636; }
.slider-count {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
  color: #7a7a7a;
  min-width: 2.8rem;
  text-align: center;
}

/* model name on top of each slide (one slider for LTX-2.3 and JavisDiT++) */
.pair-model {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  color: #363636;
  margin-bottom: 0.4rem;
}

/* demo.js gives every prompt of a slider the height of the longest one, so the clips sit at the same place */
.pair-prompt {
  font-style: italic;
  font-size: 0.9rem;            /* smaller than body text so the shared prompt box takes less room (user 2026-11-22) */
  line-height: 1.45;
  margin-bottom: 0.6rem;
  text-align: justify;
}
.pair-key {                     /* "Prompt" label in front of the prompt */
  font-family: 'Google Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  color: #363636;
  margin-right: 0.25em;
}

/* every clip in the same 16:9 box (LTX-2.3 768x448 and JavisDiT++ 432x240 differ slightly), letterboxed */
.pair-video-box {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 5px;
  overflow: hidden;
}
.pair-panel .pair-video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* Video / Audio tags under each clip: green = the two streams agree, red = they do not */
.av-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
}
.av-tag {
  padding: 0.05rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}
.av-key {
  font-weight: 400;
  opacity: 0.8;
  margin-right: 0.15rem;
}
.av-tags.match .av-tag, .av-inline.match { color: #257849; background: #DEF3E7; }
.av-tags.mismatch .av-tag, .av-inline.mismatch { color: #B03A2E; background: #FBE5E1; }
/* relation sign between the two tags: '=' (match) / '≠' (mismatch) */
.av-rel {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  margin: 0 0.1rem;
}
.av-tags.match .av-rel { color: #257849; }
.av-tags.mismatch .av-rel { color: #B03A2E; }
.av-inline { padding: 0 0.35em; border-radius: 3px; font-weight: 700; }

.pair-orig {
  color: #7a7a7a;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  text-align: justify;
}

.pair-videos {
  margin-top: 0.25rem;
}

.pair-panel video {
  width: 100%;
  border-radius: 5px;
  display: block;
  background: #000;
}

.pair-label {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  margin-top: 0.35rem;
}

.pair-label.is-ours {
  color: #8E6FD5;               /* the paper's purple (same as .hl-purple), user 2026-11-22 */
}

h3.title.is-4 {
  margin-top: 1.5rem;
}

/* ---- method prose (paper sec. 4) ---- */
.paper-prose {
  width: 80%;
  margin: 0 auto;
}
.paper-prose .paper-eq {
  margin: 0.75rem 0 1rem;
  overflow-x: auto;
  overflow-y: hidden;
}
@media screen and (max-width: 768px) {
  .paper-prose { width: 100%; }
}

/* ---- verbal definition of intrinsic jointness (paper intro), between the abstract and Fig. 1 ---- */
.definition-box {
  border-left: 4px solid #8E6FD5;
  background: #F7F5FC;
  border-radius: 0 6px 6px 0;
  padding: 0.9rem 1.2rem;
  margin: 0.25rem 0 0.5rem;
  text-align: justify;
}
.definition-box p { margin: 0; }
.definition-box p + p { margin-top: 0.45rem; }
.definition-term {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #363636;
}
.definition-example {
  font-size: 0.92rem;
  color: #4a4a4a;
}
