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


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

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

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


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

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


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.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 {
}

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

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

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

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    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%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

/* ========== ZoomDiff Specific Styles ========== */

/* Teaser: 3 videos in a row (desktop), wraps on mobile */
.zd-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.zd-teaser-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zd-teaser-item video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

.zd-teaser-caption {
  margin-top: 16px;
  font-size: 18px;
  font-style: italic;
  color: #444;
}

@media (max-width: 768px) {
  .zd-teaser-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Qualitative case layout: UW | ZoomDiff Video | W */
.zd-case-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 14px;
  text-align: center;
  color: #333;
}

.zd-case-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 14px;
  width: 100%;
  align-items: center;
}

.zd-case-item {
  text-align: center;
}

.zd-case-item img,
.zd-case-item video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  display: block;
}

.zd-case-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.zd-subsection-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  color: #222;
}

@media (max-width: 768px) {
  .zd-case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Comparison grid */
.zd-comp-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 14px;
  text-align: center;
  color: #333;
}

.zd-comp-grid {
  display: grid;
  gap: 12px;
  width: 100%;
  align-items: start;
}

.zd-comp-grid.cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

.zd-comp-grid.cols-7 {
  grid-template-columns: repeat(7, 1fr);
}

.zd-comp-item {
  text-align: center;
}

.zd-comp-item img,
.zd-comp-item video {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.zd-comp-label {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

.zd-comp-zoomdiff .zd-comp-label {
  font-weight: 900;
  color: #111;
  font-size: 14px;
}

.zd-comp-zoomdiff video {
  outline: 2px solid #3273dc;
  outline-offset: 1px;
}

@media (max-width: 1024px) {
  .zd-comp-grid.cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .zd-comp-grid.cols-7 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .zd-comp-grid.cols-6,
  .zd-comp-grid.cols-7 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== ZoomDiff Compact Qualitative Cards (2-col grid) ========== */

.zd-qual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 28px;
  width: 100%;
  margin-top: 8px;
}

.zd-qual-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 16px 16px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.zd-qual-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.zd-qual-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.zd-qual-card-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.zd-qual-card-category,
.zd-qual-card-difficulty {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.zd-qual-card-category {
  color: #fff;
}

.zd-qual-card-category.real { background: #7957d5; }
.zd-qual-card-category.synthetic { background: #00897b; }

.zd-qual-card-difficulty {
  color: #fff;
}

.zd-qual-card-difficulty.simple { background: #48c774; }
.zd-qual-card-difficulty.moderate { background: #3298dc; }
.zd-qual-card-difficulty.hard { background: #f14668; }

.zd-qual-card-mainvideo {
  width: 76%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.zd-qual-card-mainvideo video {
  width: 100%;
  height: auto;
  display: block;
}

.zd-qual-card-refs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  width: 100%;
}

.zd-qual-card-ref {
  text-align: center;
}

.zd-qual-card-ref img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 7px;
  border: 1px solid #e4e4e4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.zd-qual-card-ref-label {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #4a4a4a;
  letter-spacing: 0.1px;
}

@media (max-width: 860px) {
  .zd-qual-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .zd-qual-card-mainvideo {
    width: 88%;
  }
  .zd-qual-card-refs {
    gap: 12px;
    margin-top: 14px;
  }
}

@media (max-width: 520px) {
  .zd-qual-card-mainvideo {
    width: 94%;
  }
  .zd-qual-card-refs {
    gap: 10px;
    margin-top: 12px;
  }
}

/* ========== ZoomDiff Method Figure (Nerfies-style compact academic layout) ========== */

.zd-method-figure-wrapper {
  width: 100%;
  margin: 18px 0 4px;
  text-align: center;
}

.zd-method-figure-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.zd-method-figure-link:hover,
.zd-method-figure-link:active,
.zd-method-figure-link:focus {
  color: inherit;
  text-decoration: none;
}

.zd-method-figure-object {
  width: 100%;
  max-width: 100%;
  height: 720px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  display: block;
  margin: 0 auto;
}

/* Fallback box shown when the browser refuses to render PDF inline. */
.zd-method-figure-fallback {
  width: 100%;
  height: 420px;
  background: #fafafa;
  border: 1px dashed #d4d4d4;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7a7a7a;
  font-size: 15px;
  font-weight: 600;
  gap: 6px;
}

.zd-method-figure-fallback i {
  font-size: 56px;
  color: #b5b5b5;
  margin-bottom: 8px;
}

.zd-method-figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .zd-method-figure-object {
    height: 620px;
  }
}

@media (max-width: 768px) {
  .zd-method-figure-object {
    height: 520px;
  }
  .zd-method-figure-fallback {
    height: 320px;
  }
}

@media (max-width: 520px) {
  .zd-method-figure-object {
    height: 440px;
  }
}

/* ========== ZoomDiff Hero Publication Links: Code · Coming Soon Button (non-clickable) ========== */

/* Parent button: reuses Bulma .button / .is-normal / .is-rounded, only tweaks to hint "disabled".
   Kept intentionally close to the arXiv .is-dark button in height/padding so the two align.

   VISUAL FIX (2026-09-23):
   - Previoulsy had opacity:0.88 AND Bulma default .button[disabled] enforces opacity:0.5,
     making the button near-invisible on default state.
   - Now we use a light-grey background + dark-grey text/icon to act as a CLEARLY-VISIBLE
     secondary button (vs arXiv's dark primary). We EXPLICITLY set opacity:1 on :disabled
     to override Bulma's built-in fadeout. The disabled-ness is conveyed via cursor +
     tooltip + not-allowed cursor + green "Coming Soon" badge, NOT via fading the button.
*/
.zd-btn-coming-soon {
  color: #333;                              /* deep grey text (GitHub icon + "Code") — WCAG AA on any bg */
  background: #f3f3f3;                      /* light grey (near-white) card-ish background */
  border-color: #dcdcdc;                    /* subtle border so button outline is visible on white hero */
  cursor: not-allowed;
  opacity: 1;                               /* NO transparency — button MUST be readable by default */
  transition: background .15s ease, border-color .15s ease;   /* only subtle hover transition, no pop-in */
  padding-left: 0.9em;
  padding-right: 0.9em;
  align-items: center;
  display: inline-flex;
  white-space: nowrap;
}

.zd-btn-coming-soon:hover,
.zd-btn-coming-soon:focus,
.zd-btn-coming-soon:active {
  color: #333;                              /* never change text color on hover */
  background: #ececec;                      /* ONLY slightly darker on hover (per req #6) */
  border-color: #d2d2d2;
  cursor: not-allowed;
  box-shadow: none;
  outline: none;
  transform: none;
  text-decoration: none;
}

/* Tooltip title (native) already available; we additionally suppress any Bulma disabled underline
   and MOST IMPORTANTLY OVERRIDE Bulma's built-in opacity:0.5 for disabled buttons. */
.zd-btn-coming-soon[disabled] {
  cursor: not-allowed;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  opacity: 1 !important;                    /* Force override Bulma .button[disabled]{opacity:0.5 !important} */
  background: #f3f3f3;
  border-color: #dcdcdc;
  color: #333;
  box-shadow: none;
}

/* Middle dot separator between "Code" and "Coming Soon" badge — on light bg use a dark mid-grey */
.zd-btn-coming-soon-sep {
  /* opacity: 0.75; */                      /* removed — let color itself be the control for readability */
  margin: 0 2px 0 6px;
  font-weight: 700;
  color: #888;                              /* mid grey, visible but lighter than #333 Code text */
  margin-top: -1px;
  line-height: 1;
}

/* "Coming Soon" pill badge inside the button — keep existing Bulma-green style (unchanged per req #3) */
.zd-btn-coming-soon-badge {
  display: inline-block;
  padding: 1px 7px 2px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  background: #48c774;
  border-radius: 999px;
  margin-left: 2px;
  white-space: nowrap;
}

/* Mobile: if the button wraps we want the icon + "Code" + badge to still center nicely,
   and keep padding symmetric to avoid horizontal overflow on narrow phones. */
@media (max-width: 520px) {
  .zd-btn-coming-soon {
    padding-left: 0.75em;
    padding-right: 0.75em;
    font-size: 0.92rem;
  }
  .zd-btn-coming-soon-badge {
    padding: 1px 6px 2px;
    font-size: 10px;
  }
}
