/* Project-specific additions on top of the Academic Project Page Template (index.css). */

:root {
  --neck-color: #2563eb;      /* NeckFace-derived rows/values */
  --rgb-color: #64748b;       /* RGB-camera-derived rows/values */
  --rgb-row-bg: #f1f5f9;
}

.publication-title {
  font-size: 2.4rem !important;
}

.publication-title .title-quote {
  display: block;
  margin-bottom: 0.4rem;
}

.affiliations {
  color: var(--text-secondary);
  font-size: 1rem;
}

.figure-caption {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 0.9rem;
  text-align: left;
}

.paper-figure {
  margin: 0 auto 2.5rem;
}

.paper-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: #fff;
}

.paper-figure.is-narrow {
  max-width: 560px;
}

/* Headline numbers */
.stat-tile {
  height: 100%;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-primary);
  text-align: left;
}

.stat-tile .stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--neck-color);
}

.stat-tile .stat-label {
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-tile .stat-detail {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Results tables */
.table-container {
  margin-bottom: 1rem;
}

table.results-table {
  width: 100%;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

table.results-table th {
  white-space: nowrap;
}

table.results-table td.num,
table.results-table th.num {
  text-align: right;
  white-space: nowrap;
}

table.results-table tr.group-header td {
  background: var(--background-accent);
  font-style: italic;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
}

table.results-table tr.rgb-row td {
  background: var(--rgb-row-bg);
  color: var(--rgb-color);
}

table.results-table .is-better {
  font-weight: 700;
}

.table-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.callout {
  border-left: 4px solid var(--neck-color);
  background: var(--background-secondary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 1.5rem 0;
}

.section-lead {
  max-width: 820px;
  margin: 0 auto 2rem;
}

.repo-tree {
  font-size: 0.85rem;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.7rem !important;
  }
  .stat-tile .stat-value {
    font-size: 1.8rem;
  }
}
