:root {
  --color-brand: #1c7dff;
  --color-brand-strong: #0059cc;
  --color-brand-soft: #e9f3ff;
  --color-brand-border: #b8d5ff;
  --color-brand-alt: #00a3ff;
  --color-accent-success: #4caf50;
  --color-accent-success-soft: #e8f5e9;
  --color-text: #333333;
  --color-text-muted: #555555;
  --color-surface: #ffffff;
  --color-surface-muted: #f5f5f5;
  --color-border: #dddddd;
  --color-border-soft: #eeeeee;
  --radius-card: 10px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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


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

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

.publication-affiliations {
  margin-bottom: 20px;
}

.is-disabled-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.publication-links .button.is-dark {
  background: linear-gradient(135deg, var(--color-brand-strong), var(--color-brand-alt));
  border: 0;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 89, 204, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.publication-links .button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 89, 204, 0.32);
  filter: saturate(1.1);
}

.publication-links .button.is-dark:focus-visible {
  outline: 3px solid rgba(28, 125, 255, 0.32);
  outline-offset: 2px;
}

.publication-links .button.is-dark.is-disabled-link {
  background: linear-gradient(135deg, #8698b2, #a6b3c7);
  box-shadow: none;
  transform: none;
  filter: none;
}

.content-list {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.section-subtitle {
  margin-bottom: 30px;
}

.section-subtitle-spaced {
  margin-top: 50px;
}

.section-description {
  margin-bottom: 30px;
}

.responsive-media {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.media-caption {
  margin-top: 10px;
}

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


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

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

.teaser-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.teaser-container img {
  width: 100%;
  height: auto;
  display: block;
}


.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: var(--color-text-muted);
    width: fit-content;
    font-weight: bold;
}

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

.publication-authors {
}

.publication-authors a {
   color: var(--color-brand) !important;
}

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

/* Button icon and text spacing */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button .icon {
  margin-right: 0.75em;
  margin-bottom: 0;
}

.button span {
  line-height: 1.5;
}

/* More spacing after teaser section */
.teaser {
  margin-bottom: 2rem;
}

/* Grid layout for baseline videos - 2x3 with 6th cell empty */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-items: center;
  margin-bottom: 30px;
}

/* Video wrapper sizing - wider than text */
.video-wrapper {
  width: 100%;
  max-width: 500px;
}

/* Center dataset image */
.dataset-image {
  display: block;
  margin: 0 auto;
}

.publication-banner img {
}

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

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: var(--radius-card) !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;
  padding: 20px;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.eql-cntrb { 
  font-size: smaller;
}

.before,
.after {
  margin: 0;
}

.before figcaption,
.after figcaption {
  background: #fff;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  color: #2e3452;
  opacity: 0.6;
  padding: 4px;
  position: absolute;
  bottom: 0px;
  transform: translateY(-50%);
  line-height: 100%;
}

.before figcaption {
  left: 4px;
}

.after figcaption {
  right: 4px;
}

/* Method pipeline */
.pipeline-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
}

.pipeline-step {
  flex: 1;
  text-align: center;
  padding: 20px;
}

.pipeline-arrow {
  flex: 0 0 100px;
  text-align: center;
  font-size: 24px;
  color: var(--color-brand);
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-brand);
}

.step-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--color-text);
}

.step-description {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Video player with thumbnail navigation */
.video-player-section {
  margin-bottom: 50px;
}

.main-video-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 20px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
}

.main-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.thumbnail-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  max-width: 1200px;
  margin: 0 auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 8px;
}

.thumbnail-strip::-webkit-scrollbar-track {
  background: var(--color-surface-muted);
  border-radius: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: var(--color-brand);
  border-radius: 4px;
}

.thumbnail-wrapper {
  flex: 0 0 auto;
  cursor: pointer;
  border-radius: 8px;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  padding: 2px;
  margin: 0 2px;
}

.thumbnail-wrapper:hover {
  transform: scale(1.015);
  border-color: var(--color-brand);
  z-index: 10;
}

.thumbnail-wrapper.active {
  border-color: var(--color-brand);
  box-shadow: 0 4px 12px rgba(66, 134, 244, 0.3);
  z-index: 10;
}

.thumbnail-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 150px;
  max-width: 200px;
  border-radius: 8px;
}

/* Responsive pipeline */
@media (max-width: 768px) {
  .pipeline-container {
    flex-direction: column;
  }
  
  .pipeline-arrow {
    width: 100%;
    height: 100px;
    flex: 0 0 100px;
  }
  
  .main-video-container video {
    max-height: 50vh;
  }
  
  .thumbnail-wrapper img {
    min-width: 100px;
    max-width: 150px;
  }
}

/* Quantitative results table styling */
.quantitative-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.quantitative-table th {
  background-color: var(--color-surface-muted);
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
}

.quantitative-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border-soft);
}

.quantitative-table tbody tr:hover {
  background-color: #f9f9f9;
}

.quantitative-table .best-row {
  background-color: var(--color-accent-success-soft);
  font-weight: 600;
}

.quantitative-table .best-row td {
  border-bottom: 2px solid var(--color-accent-success);
}

.average-table {
  margin: 0 auto;
  max-width: none;
}

.quantitative-panel {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.quantitative-panel-header {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
}

.quantitative-panel-caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-brand-border);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.average-results-caption {
  margin-bottom: 0;
}

.quantitative-tabs {
  margin-bottom: 0;
  width: 100%;
}

.quantitative-tabs ul {
  border-bottom: none;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.quantitative-tabs li {
  margin: 0;
  padding-bottom: 8px;
}

.quantitative-tabs li a {
  border-bottom: none;
}

.quantitative-tabs li.is-active a {
  border-bottom: none;
}

.quantitative-tabs li .quantitative-panel-caption {
  width: 100%;
}

.quantitative-tabs li.is-active .quantitative-panel-caption {
  border-color: var(--color-brand-strong);
  background: var(--color-brand-strong);
  color: var(--color-surface);
}

.quantitative-table-container {
  padding: 0;
}

@media (max-width: 768px) {
  .quantitative-results-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .quantitative-results-grid .column {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .quantitative-panel {
    padding: 12px;
  }

  .quantitative-panel-header {
    min-height: auto;
    margin-bottom: 12px;
  }

  .quantitative-tabs {
    margin-bottom: 0;
  }

  .quantitative-table {
    table-layout: fixed;
  }

  .quantitative-table th,
  .quantitative-table td {
    font-size: clamp(0.68rem, 2.75vw, 0.78rem);
    padding: 8px 6px;
    line-height: 1.2;
  }

  .quantitative-table th:first-child,
  .quantitative-table td:first-child {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .quantitative-panel-caption {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }
}
