body {
  font-family: 'Noto Sans', sans-serif;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.container {
  max-width: 1100px;
}

.dnerf {
  font-variant: small-caps;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 0.5rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-video {
  position: relative;
  max-width: 800px;
  margin: auto;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---- Carousel ---- */
.results-carousel {
  overflow: hidden;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: auto;
  max-width: 90%;
  padding: 5px 0;
}

.carousel {
  overflow: hidden;
  width: 100%;
}

.results-carousel .item {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
}

.results-carousel img {
  display: block;
  margin: auto;
  width: 100%;
  height: auto;
}

.results-carousel video {
  display: block;
  margin: auto;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ---- Video placeholders ---- */
.video-placeholder {
  background: #f0f0f0;
  border: 2px dashed #aaa;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 2rem;
  text-align: center;
  color: #666;
}

.video-placeholder .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.video-placeholder .placeholder-label {
  font-family: monospace;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
  word-break: break-all;
}

.video-placeholder .placeholder-title {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
}

/* ---- Section spacing ---- */
.section-title-block {
  margin-bottom: 1.5rem;
}

.content {
  margin: 0;
  padding: 0;
}


/* ================================================================
   IMAGE GUIDANCE — prompt + ref row + gen row  (2 rows x 3 cols)
   CSS grid: [row-label col] [depth col] [pose col] [edge col]

   Colors from paper table (LaTeX colorbox[rgb]):
     Depth  0.97 0.85 0.93  =>  #f7d9ed  (soft pink)
     Pose   0.87 0.79 0.93  =>  #dec9ed  (soft lavender)
     Edge   0.74 0.87 0.87  =>  #bddede  (soft teal)
   ================================================================ */
.guidance-slide {
  padding: 1.2rem 1.8rem 1.2rem;
}

.guidance-prompt {
  text-align: center;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: #222;
  font-family: 'Google Sans', sans-serif;
}

/* 4-column grid: row-label | depth | pose | edge */
.guidance-grid {
  display: grid;
  grid-template-columns: 5.5rem 1fr 1fr 1fr;
  gap: 0.6rem;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

/* 3-row variant (prediction: Input | Detected | Ours) */
.guidance-grid-3row {
  grid-template-columns: 5.5rem 1fr 1fr 1fr;
}

/* -- Column labels (task names) -- */
.guidance-col-label {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-family: 'Google Sans', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.col-hint {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  opacity: 0.88;
  line-height: 1.2;
}

/* Paper-matching task colors */
.col-depth { background: #f7d9ed; color: #7a2050; }
.col-pose  { background: #dec9ed; color: #4a2070; }
.col-edge  { background: #bddede; color: #1a5555; }

/* -- Row labels -- */
.guidance-row-label {
  font-size: 1.1rem;
  font-weight: 800;
  text-align: right;
  padding-right: 0.6rem;
  white-space: nowrap;
  font-family: 'Google Sans', sans-serif;
}

/* Row label colors */
.row-input    { color: #4b5563; }
.row-ref      { color: #4b5563; }
.row-detected { color: #0369a1; }
.row-gen      { color: #047857; }
.row-ours     { color: #047857; font-style: italic; }

/* -- Image cells -- square, uniform -- */
.guidance-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  display: block;
}

/* Dashed placeholder */
.guidance-placeholder {
  background: #ebebeb;
  border: 2px dashed #bbb;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #aaa;
}


/* ================================================================
   INCONSISTENT DUAL GUIDANCE — unziplora-style 1×1 selector
   Three columns: depth picker | result | pose picker
   ================================================================ */
.dual-selector {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Left / right picker panels */
.dual-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dual-picker-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #222;
  margin-bottom: 0.35rem;
  font-family: 'Google Sans', sans-serif;
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
}

.dual-thumb-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dual-thumb-wrap {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.dual-thumb-wrap img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #ddd;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dual-thumb-wrap span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.dual-thumb-wrap:hover img {
  border-color: #90bfff;
}

.dual-thumb-wrap.is-selected img {
  border-color: #2276dd;
  box-shadow: 0 0 0 3px #2276dd33;
}

/* Centre result panel */
.dual-result-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dual-result-box img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ccc;
  transition: opacity 0.2s;
}

.dual-result-caption {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
}

/* ---- Prediction task tabs ---- */
.pred-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pred-tab-btn {
  padding: 0.35rem 1.4rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Google Sans', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}

.pred-tab-btn.is-active { opacity: 1; }
.pred-tab-btn.tab-depth { background: #f7d9ed; color: #7a2050; }
.pred-tab-btn.tab-depth.is-active { border-color: #7a2050; }
.pred-tab-btn.tab-pose  { background: #dec9ed; color: #4a2070; }
.pred-tab-btn.tab-pose.is-active  { border-color: #4a2070; }
.pred-tab-btn.tab-edge  { background: #bddede; color: #1a5555; }
.pred-tab-btn.tab-edge.is-active  { border-color: #1a5555; }

.pred-panel {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.8rem repeat(6, 1fr);
  gap: 0.3rem;
  align-items: center;
}

.pred-row-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-align: right;
  padding-right: 0.35rem;
  white-space: nowrap;
  font-family: 'Google Sans', sans-serif;
}

.pred-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
  display: block;
}

/* ---- Cascading dual selector (depth → pose) ---- */
.dual-cascade {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

.dual-cascade-group {
  width: 100%;
}

.dual-cascade-row-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.55rem;
  font-family: 'Google Sans', sans-serif;
}

.dual-thumb-row {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dual-thumb {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.dual-thumb img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #ddd;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dual-thumb:hover img { border-color: #90bfff; }

.dual-thumb.is-selected img {
  border-color: #2276dd;
  box-shadow: 0 0 0 3px #2276dd33;
}

.dual-depth-placeholder {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  border: 3px dashed #ddd;
  background: #f5f5f5;
}

.dual-thumb .thumb-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  text-align: center;
  max-width: 82px;
  line-height: 1.2;
}

.dual-result-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.dual-result-center > img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #ccc;
  transition: opacity 0.15s;
}
