/* VERA-Hand project page.
 * Base styles adapted from the Nerfies template (https://github.com/nerfies/nerfies.github.io, CC BY-SA 4.0).
 * "Layered paper" thumbnail idea from https://github.com/richzhang/webpage-template
 */
html {
  scroll-behavior: smooth;
}

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

.publication-title,
.publication-authors,
.teaser,
.section-title-font {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.publication-venue {
  color: #555;
  font-weight: bold;
  font-size: 1.15rem;
  margin: 0.4rem 0 0.8rem 0;
}

.publication-venue a.venue-link {
  color: inherit;
  border-bottom: 1px dotted #888;
}
.publication-venue a.venue-link:hover {
  color: hsl(204, 86%, 53%);
  border-bottom-color: hsl(204, 86%, 53%);
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}
.publication-authors a:hover {
  text-decoration: underline;
}
.author-block {
  display: inline-block;
}
.affiliations .author-block {
  margin: 0 0.35rem;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}
.link-block .icon svg {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}
.link-block .icon svg.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* Teaser */
.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 2rem;
}
.teaser img {
  display: block;
  margin: 0 auto;
  max-width: 760px;
  width: 100%;
}
.teaser img.wide {
  max-width: 100%;
}
figure.ranking {
  text-align: center;
}
figure.ranking .figure-caption {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
figure.ranking img {
  display: block;
  margin: 0 auto;
  max-width: 560px;
  width: 100%;
}
.figure-caption {
  font-size: 0.92rem;
  color: #555;
  margin-top: 0.7rem;
  text-align: justify;
}

/* Numbers strip */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.2rem 0 0.4rem 0;
}
.stat {
  flex: 1 1 120px;
  max-width: 160px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 0.8rem 0.4rem;
}
.stat .num {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat .lbl {
  font-size: 0.8rem;
  color: #666;
}

/* Embedded GT viewer */
.viewer-frame {
  width: 100%;
  height: 660px; /* fallback; index.html resizes it to the viewer's real content height */
  border: 1px solid #dbdbdb;
  border-radius: 10px;
  background: #fff;
}
@media screen and (max-width: 720px) {
  .viewer-frame { height: 1340px; }
}
@media screen and (max-width: 480px) {
  .viewer-frame { height: 1010px; }
}

/* Results tables */
.results-table {
  margin: 0 auto;
  font-size: 0.95rem;
}
.results-table th,
.results-table td {
  text-align: center !important;
  white-space: nowrap;
}
.results-table th:first-child,
.results-table td:first-child {
  text-align: left !important;
}
.results-table td.best {
  font-weight: 700;
}
.table-scroll {
  overflow-x: auto;
}

/* Qualitative figures */
.qual img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.qual-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.35rem;
}

/* Paper and Supplementary: layered "stack of pages" thumbnails */
.paper-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}
.paper-card a.thumb {
  flex: 0 0 auto;
}
.layered-paper {
  display: block;
  height: 210px;
  width: auto;
  margin: 5px 30px 28px 10px;
  box-shadow:
    0px 0px 1px 1px rgba(0,0,0,0.35),
    5px 5px 0 0px #fff,
    5px 5px 1px 1px rgba(0,0,0,0.35),
    10px 10px 0 0px #fff,
    10px 10px 1px 1px rgba(0,0,0,0.35),
    15px 15px 0 0px #fff,
    15px 15px 1px 1px rgba(0,0,0,0.35),
    20px 20px 0 0px #fff,
    20px 20px 1px 1px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}
.paper-card a.thumb:hover .layered-paper {
  transform: translateY(-3px);
}
.paper-meta {
  font-size: 1rem;
  max-width: 330px;
}
.paper-meta .label {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
@media screen and (max-width: 768px) {
  .paper-card { flex-direction: column; text-align: center; }
}

/* BibTeX */
.bibtex-wrap {
  position: relative;
}
.bibtex-wrap pre {
  padding-right: 5.5rem;
  background: #f1f5fb;
  border: 1px solid #dde6f2;
  border-radius: 8px;
}
/* BibTeX syntax colors */
.bibtex-wrap .bt-type  { color: #3b4f86; font-weight: 700; }
.bibtex-wrap .bt-key   { color: #8b0000; font-weight: 700; }
.bibtex-wrap .bt-field { color: #008080; }
.bibtex-wrap .bt-val   { color: #d6194b; }
.bibtex-wrap .bt-punc  { color: #44546f; }
.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
  margin: 0 0.4rem;
}
.footer .icon-link .ai {
  font-size: 1.1em;
}
.footer .icon-link svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

.footer-credits {
  font-size: 0.78rem;
  color: #888;
  text-align: center;
}
.footer-credits p {
  margin-bottom: 0.4em;
}
.footer-credits a {
  color: #777;
  text-decoration: underline;
}
.footer-credits a:hover {
  color: #333;
}
