/* Adapted from the Nerfies project-page template (https://nerfies.github.io),
   as used by https://askdagger.github.io/ */

body {
  font-family: 'Noto Sans', sans-serif;
  background: #ffffff;
  color: #363636;
}

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

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

/* ------------------------------------------------------------------ */
/* (ST)^2 page additions                                               */
/* ------------------------------------------------------------------ */

/* Venue badge under the title (as on askdagger.github.io) */
.venue-badge {
  display: inline-block;
  margin: 0.25rem 0 0.75rem 0;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: #cde4ff;
  color: #1f4e8c;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.venue-badge a {
  color: #1f4e8c;
}

.venue-badge a:hover {
  text-decoration: underline;
}

.equal-contribution {
  color: #777;
  font-size: 0.95rem;
}

/* Video placeholders: the <video> tag is already in place, the poster shows
   until the file is added to static/videos/. Delete .video-placeholder-badge
   once the real video is in. */
.video-frame {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.video-frame video,
.video-frame .video-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
}

.video-placeholder-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.35;
  pointer-events: none;
  max-width: 92%;
  white-space: normal;
}

.video-placeholder-badge .icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.video-placeholder-badge small {
  display: block;
  opacity: 0.8;
  font-size: 0.75rem;
}

.results-carousel .item .video-frame {
  border-radius: 0;
}

.results-carousel .item .video-label {
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  background: #fff;
  color: #363636;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
}

/* Figures */
figure.paper-figure {
  margin: 1rem 0 1.5rem 0;
}

figure.paper-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

figure.paper-figure.framed img {
  border: 1px solid #ddd;
  background: #fff;
}

figure.paper-figure figcaption {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.45;
}

figure.paper-figure.narrow img {
  max-width: 560px;
  display: block;
  margin: 0 auto;
}

/* Wide figures scroll inside their own box on small screens */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Teaching commands */
.command-list {
  list-style: none !important;
  margin-left: 0 !important;
}

.command-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eee;
}

.command-list li:last-child {
  border-bottom: none;
}

.command-list code {
  color: #1f4e8c;
  background: #eef4ff;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Sub-task table and metrics tables */
.content table.compact-table {
  font-size: 0.95rem;
}

.content table.compact-table th,
.content table.compact-table td {
  vertical-align: middle;
}

.content table.compact-table .is-tight {
  white-space: nowrap;
}

/* User quotes, same colours as the boxes in the paper (main #5989cf, sub #cde4ff) */
.user-quote {
  background: #eaf3ff;
  border-left: 4px solid #5989cf;
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
  margin: 0.75rem 0 1rem 0;
}

.user-quote p {
  margin: 0 !important;
  font-style: italic;
  color: #363636;
}

.user-quote .quote-source {
  display: block;
  text-align: right;
  font-style: normal;
  font-size: 0.85rem;
  color: #5a6b80;
  margin-top: 0.35rem;
}

/* Research questions */
.rq-box {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.rq-box p {
  margin-bottom: 0.4rem !important;
}

.rq-box strong {
  color: #1f4e8c;
}

/* Key numbers */
.key-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem 0;
}

.key-numbers .kn {
  background: #f5f8fc;
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.key-numbers .kn .num {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f4e8c;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.key-numbers .kn .lbl {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

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

#BibTeX pre {
  overflow-x: auto;
}

@media screen and (max-width: 768px) {
  .command-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .video-placeholder-badge {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
  }
}
