/* Public project page: a larger title and the author block under it (public.py). */
.hero h1 { font-size: clamp(28px, calc(2.4vw + 11px), 44px); }
.hero .authors { margin: clamp(16px, 2.6vh, 26px) auto 6px; font: 500 clamp(20px, 1.75vw, 24px)/1.6 var(--sans); color: var(--ink); }
.hero .authors span { display: inline-block; margin: 0 .6em; white-space: nowrap; }
.hero .affils { font: clamp(16px, 1.3vw, 18.5px)/1.6 var(--sans); color: var(--ink-2); }
.hero .affils span { display: inline-block; margin: 0 .55em; white-space: nowrap; }
.hero .notes { font: clamp(13.5px, 1.05vw, 15px)/1.6 var(--sans); color: var(--muted); margin-top: 4px; }
.hero .notes span { display: inline-block; margin: 0 .6em; }
.hero sup { font-size: .68em; }
@media (max-width: 640px) { .hero .authors { font-size: 18px; } .hero .affils { font-size: 15px; } .hero .notes { font-size: 13px; } }

/* Section navigation in the top bar on every width (the side navigator is not used), with a reading-progress bar
   along the bar's lower edge (public.js). */
@media (min-width: 1200px) {
  .nav ul { display: flex; }
  .sidenav, body.past-hero .sidenav { display: none; }
}
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.nav-progress i {
  position: absolute; inset: 0; background: var(--rep); transform-origin: left; transform: scaleX(0);
  transition: transform .08s linear;
}
.nav li a.active { font-weight: 600; }
.hero .authors a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.hero .authors a:hover { color: var(--rep); border-bottom-color: currentColor; }

/* One column width for the whole page: every section after the cover uses the teaser's 1100 px; the abstract stays a
   centred reading block, somewhat narrower than the column. */
:root { --content: 1100px; }
.abstract { max-width: 840px; }

/* Failure cases: each card keeps its own height (no stretching to the tallest case). */
.carousel.cases { align-items: start; }
/* Phones: keep the previous / next arrows of every carousel, let the next case card peek in, and say that the two
   wide planning figures scroll sideways. */
@media (max-width: 760px) {
  .row-arrows { display: flex; }
  .carousel.cases { grid-auto-columns: 86%; }
  .fig-scroll::before {
    content: "Scroll sideways \2192"; display: block; text-align: right; font: 12px/1.4 var(--sans); color: var(--muted);
    margin: 0 0 4px;
  }
}

.btn .hf { width: 17px; height: auto; display: block; }        /* the official Hugging Face logo */

/* BibTeX: the citation in a code block with a copy button (public.js). */
.bibtex { position: relative; }
.bibtex pre {
  margin: 0; padding: 18px 20px; overflow-x: auto; background: #f7f7f9; border: 1px solid var(--line); border-radius: 8px;
  font: 13.5px/1.6 var(--mono); color: var(--ink); white-space: pre;
}
.bibtex .copy {
  position: absolute; top: 10px; right: 10px; padding: 4px 10px; font: 500 12.5px/1.4 var(--sans); color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.bibtex .copy:hover { color: var(--rep); border-color: currentColor; }
@media (max-width: 760px) { .bibtex pre { white-space: pre-wrap; font-size: 12.5px; padding-top: 44px; } }
