/* CEFFYL project page additions on top of the Nerfies / Academic Project Page styles */
:root {
  --accent: #6a3fb5;
  --accent-light: #efe9f9;
  --muted: #555;
}

.ceffyl-name {
  color: #000;
  letter-spacing: 0.02em;
}

.publication-links {
  margin-top: 1.2rem;
}

.placeholder-link {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.figure {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.figure-caption {
  max-width: 960px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: justify;
}

.teaser-section {
  padding-top: 0;
}

.section-intro {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  text-align: justify;
}

.yellow-key {
  background: #ffe600;
  color: #000;
  padding: 0 0.3em;
  border-radius: 3px;
}

/* video gallery */
.bench-tabs li.is-active a {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

#video-buttons .button.is-selected {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.video-wrap {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

.video-note {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* tables */
.table-container {
  max-width: 820px;
  margin: 0 auto;
}

.results-table th,
.results-table td {
  text-align: center !important;
  vertical-align: middle;
}

.results-table th:first-child,
.results-table td:first-child {
  text-align: left !important;
}

.results-table tr.group-end td {
  border-bottom: 2px solid #bbb;
}

.results-table tr.ours td {
  background: var(--accent-light);
  font-weight: 600;
}

.table-gap {
  margin-top: 3rem;
}

.ack {
  color: var(--muted);
  text-align: justify;
}

pre {
  border-radius: 8px;
}

/* phones: keep the title block inside the viewport */
@media (max-width: 600px) {
  .publication-title.is-1 { font-size: 2.2rem; }
  .publication-authors { font-size: 1rem !important; }
  .hero-body { padding-left: 1rem; padding-right: 1rem; }
}
