/* ===========================================================
   ThinkGraphs project page with a Nerfies-inspired layout
   Builds on ../style.css variables
   =========================================================== */

.proj-hero {
  text-align: center;
  padding: 56px 0 28px;
}
.proj-hero .title {
  font-size: 2.0rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  font-weight: 800;
}
.proj-hero .subtitle {
  font-size: 1.18rem;
  color: var(--text-soft);
  margin: 0 0 22px;
  font-weight: 500;
}
.proj-hero .venue-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent-dk);
  background: var(--accent-sf);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.authors-list {
  font-size: 1.12rem;
  margin: 0 0 6px;
  line-height: 1.8;
}
.authors-list a { color: var(--accent); font-weight: 500; }
.authors-list .me { font-weight: 700; }
.authors-list sup { font-size: .7em; color: var(--text-soft); }
.affil-list {
  color: var(--text-soft);
  font-size: 1.0rem;
  margin: 0 0 6px;
}
.affil-list sup { font-size: .8em; }
.note-line { color: var(--text-soft); font-size: .95rem; margin: 0 0 24px; }

/* action buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: #1a1d24;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { background: #000; color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn.disabled {
  background: var(--bg-soft);
  color: var(--text-soft);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

/* teaser */
.teaser {
  margin: 14px 0 0;
  text-align: center;
}
.teaser img {
  width: 100%;
  max-width: none;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.teaser .cap {
  max-width: 880px;
  margin: 14px auto 0;
  font-size: .92rem;
  color: var(--text-soft);
  text-align: left;
  line-height: 1.55;
}
.teaser .cap b { color: var(--text); }

/* generic content section */
.section { padding: 34px 0; border-top: 1px solid var(--border); }
.section h2 {
  text-align: center;
  text-transform: none;
  letter-spacing: -.01em;
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 20px;
}
.section .abstract { font-size: 1.05rem; line-height: 1.7; }

.figure { text-align: center; margin: 8px 0; }
.figure img {
  width: 100%;
  max-width: 940px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.teaser img,
.method-figure img {
  display: block;
  height: auto;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
}
.method-figure {
  margin: 8px 0 0;
}
.method-figure img { max-width: none; }
.qualitative-figure img {
  box-sizing: border-box;
  padding: 14px;
  background: #fff;
}
.figure .cap {
  max-width: 860px;
  margin: 12px auto 0;
  font-size: .92rem;
  color: var(--text-soft);
  text-align: left;
  line-height: 1.55;
}

/* highlight stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 4px;
}
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.stat .num { font-size: 1.7rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.stat .lbl { font-size: .9rem; color: var(--text-soft); margin-top: 4px; line-height: 1.4; }

ul.feat { padding-left: 22px; margin: 0; }
ul.feat li { margin-bottom: 10px; }

/* bibtex block */
.bibtex pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .proj-hero .title { font-size: 1.55rem; }
  .stats { grid-template-columns: 1fr; }
}
