/* ContextFlow project page styles */

body {
  font-family: 'Noto Sans', 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #363636;
}

.hero-body { padding: 3rem 1.5rem; }

.publication-title {
  font-size: clamp(2rem, 3.2vw, 4rem);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 400;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.publication-authors {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  margin-top: 1rem;
}

.publication-authors .author-block { margin: 0 0.35rem; display: inline-block; }
.publication-authors a { color: #3273dc; }
.publication-authors a:hover { text-decoration: underline; }

.publication-venue {
  margin-top: 0.75rem;
  color: #7a7a7a;
  font-style: italic;
}

.publication-links { margin-top: 1.5rem; }
.publication-links .link-block { display: inline-block; margin: 0.25rem; }
.publication-links .button.is-dark {
  background-color: #363636;
  transition: transform 0.12s ease, background-color 0.2s ease;
}
.publication-links .button.is-dark:hover {
  transform: translateY(-2px);
  background-color: #1f1f1f;
}

.teaser img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 8px;
}
.teaser .subtitle { margin-top: 1rem; color: #4a4a4a; }

.overview-figure-section {
  padding-top: 0;
}

.overview-figure {
  margin: 0;
}

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

.section-divider {
  background-color: #ededed;
  height: 1px;
  margin: 0 auto;
  max-width: 980px;
}

.content img { border-radius: 8px; max-width: 100%; }

/* Responsive 16:9 video wrapper */
.publication-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 8px;
}
.publication-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Placeholder boxes shown until real assets are added */
.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 2rem;
  color: #8a8a8a;
  background:
    repeating-linear-gradient(45deg, #fafafa, #fafafa 14px, #f1f1f1 14px, #f1f1f1 28px);
  border: 2px dashed #cfcfcf;
  border-radius: 8px;
  font-family: 'Google Sans', monospace;
  font-size: 0.95rem;
}
.placeholder-box.video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  min-height: 0;
}

pre {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
}

.footer { padding: 2.5rem 1.5rem; background-color: #fafafa; }
.footer a { color: #3273dc; }
/* Paper-content additions that preserve the original template styling. */
.author-note {
  margin-top: 0.5rem;
  color: #7a7a7a;
  font-size: 0.8rem;
}

.method-figure-frame {
  position: relative;
  aspect-ratio: 1433 / 497;
  overflow: hidden;
  margin: 0 auto;
}

.method-figure-frame img {
  position: absolute;
  top: -50.3%;
  left: -31.3%;
  width: 162.8%;
  max-width: none;
}

.figure-caption {
  margin-top: 0.85rem;
  color: #6b6b6b;
  font-size: 0.9rem;
}

.results-subtitle {
  margin-top: 3rem;
}

.results-table-wrap {
  margin: 1.5rem 0 0.75rem;
}

.results-table {
  min-width: 720px;
  font-size: 0.9rem;
}

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

.result-note {
  color: #7a7a7a;
  font-size: 0.8rem;
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2rem !important;
    white-space: normal;
  }

  .hero-body {
    padding: 2.25rem 1rem;
  }
}
