/* Nerfies template styles (CC BY-SA 4.0), plus this page's own pieces. Local fonts only. */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/NotoSans-latin.woff2') format('woff2');
}

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

.title, .subtitle, .publication-title, .publication-authors {
  font-family: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
}

.publication-title { letter-spacing: -0.01em; }
.publication-authors { margin-top: 0.4rem; color: #333; }
.publication-authors .author-block { display: inline-block; margin: 0 0.15rem; }
.publication-authors a { color: hsl(204, 86%, 53%); }   /* Nerfies author links */
.publication-authors a:hover { text-decoration: underline; }
.publication-affils { margin-top: 0.2rem; color: #555; }
.publication-affils .author-block { margin: 0 0.45rem; }

/* BibTeX block with a copy button (Nerfies layout) */
.bib-box { position: relative; }
.bib-box pre { background: #f5f5f5; border-radius: 6px; padding: 1.1rem 1.25rem; font-size: 0.85rem;
  line-height: 1.5; white-space: pre; overflow-x: auto; }
.bib-box pre code { background: none; color: #333; padding: 0; font-size: inherit; }
.bib-copy { position: absolute; top: 0.55rem; right: 0.55rem; border: 1px solid #d5d5d5; background: #fff;
  border-radius: 999px; padding: 0.25rem 0.85rem; font-size: 0.8rem; cursor: pointer; font-family: inherit;
  color: #333; }
.bib-copy:hover { background: #f0f0f0; }
.bib-copy.is-done { background: #363636; border-color: #363636; color: #fff; }
.publication-venue-note { color: #777; margin-top: 0.4rem; }
.publication-venue-note code { font-size: 0.85em; background: #f4f4f4; color: #555; }

.teaser .hero-body { padding-top: 0; padding-bottom: 2.5rem; }
.teaser video { width: 100%; border-radius: 6px; background: #fff; display: block; }
.teaser-caption { font-size: 1.05rem !important; color: #444; margin-top: 0.9rem; line-height: 1.5; }

/* every section title the same: centred, one size and spacing (user 11-27) */
.section .title.is-3 { margin-bottom: 1.1rem; text-align: center; }
.section-lead { color: #444; max-width: 820px; margin: 0 auto 1.2rem auto; line-height: 1.6; }

.placeholder-box {
  border: 2px dashed #ccc; border-radius: 8px; padding: 3rem; text-align: center; color: #999;
}

.footer { padding: 2rem 1.5rem 3rem; background: #fafafa; }
.footer a { color: #3273dc; }

/* ---- interactive 3D viewer (bv-) ---- */
.bv-wrap { margin: 0 auto; max-width: 1000px; }
.bv-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between;
  margin-bottom: 0.6rem; }
.bv-seg { display: inline-flex; border: 1px solid #d5d5d5; border-radius: 999px; overflow: hidden; }
.bv-seg button { border: 0; background: #fff; padding: 0.35rem 0.95rem; font-size: 0.9rem; cursor: pointer;
  color: #333; font-family: inherit; }
.bv-seg button + button { border-left: 1px solid #e2e2e2; }
.bv-seg button.is-on { background: #363636; color: #fff; }
.bv-tools { display: inline-flex; gap: 0.4rem; }
.bv-tools button { border: 1px solid #d5d5d5; background: #fff; border-radius: 999px; padding: 0.3rem 0.8rem;
  font-size: 0.85rem; cursor: pointer; font-family: inherit; color: #333; }
.bv-tools button.is-on { background: #eef4ff; border-color: #9bb8ef; }
.bv-stage { position: relative; width: 100%; aspect-ratio: 16 / 10; border: 1px solid #ececec; border-radius: 8px;
  overflow: hidden; background: #fff; }
.bv-stage canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.bv-label { position: absolute; left: 14px; top: 10px; pointer-events: none; }
.bv-label .bv-name { font-weight: 600; font-size: 1.05rem; color: #222; }
.bv-label .bv-stats { font-size: 0.78rem; color: #777; }
.bv-legend { position: absolute; right: 12px; top: 10px; background: rgba(255,255,255,0.9); border-radius: 6px;
  padding: 6px 9px; font-size: 0.72rem; line-height: 1.35; color: #333; display: none; max-height: 92%; overflow: auto; }
.bv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.bv-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.6); color: #555; font-size: 0.95rem; }
.bv-loading.is-hidden { display: none; }
.bv-artic { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.7rem; flex-wrap: wrap; }
.bv-artic.is-disabled { opacity: 0.4; pointer-events: none; }
.bv-artic label { font-size: 0.9rem; color: #333; white-space: nowrap; }
.bv-artic input[type=range] { flex: 1 1 240px; accent-color: #ff5c10; }
.bv-artic .bv-hl { font-size: 0.85rem; color: #555; display: inline-flex; align-items: center; gap: 0.3rem; }
.bv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0.55rem;
  margin-top: 1rem; }
.bv-thumb { border: 2px solid transparent; border-radius: 8px; padding: 3px; cursor: pointer; background: #fff;
  text-align: center; transition: border-color 0.15s; }
.bv-thumb:hover { border-color: #d6d6d6; }
.bv-thumb.is-on { border-color: #363636; }
.bv-thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.bv-thumb span { display: block; font-size: 0.7rem; color: #444; line-height: 1.2; margin-top: 2px; min-height: 2.4em; }
.bv-thumb .bv-badge { color: #ff5c10; font-weight: 600; }
.bv-hint { font-size: 0.8rem; color: #888; margin-top: 0.4rem; text-align: center; }
.teaser-credit { font-size: 0.75rem; color: #999; margin-top: 0.3rem; }
.bv-note { font-size: 0.75rem; color: #999; margin-top: 0.15rem; text-align: center; }

/* the building pickers (3D section and agents section): a grid of 2:1 tiles with a soft glow and gaps, each a real
   photo of the building (user 12-02), centre-cropped and see-through behind its name; the tiles shrink with the page,
   so all five columns always fit */
.bv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 2.2vw, 18px);
  margin: 0.4rem 0 1.1rem; padding: 6px; container-type: inline-size; }
.bv-card { position: relative; aspect-ratio: 2 / 1; border: 0; padding: 0; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: #fff; font-family: inherit;
  box-shadow: 0 0 14px 2px rgba(60, 90, 150, 0.24), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s, box-shadow 0.15s; }
.bv-card img, .ag-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.6; transition: opacity 0.15s; }
.bv-card:hover img, .bv-card.is-on img, .ag-card:hover img, .ag-card.is-on img { opacity: 1; }
.bv-card.is-text, .ag-card.is-text { background: #f5f5f2; }
.bv-card.is-text em, .ag-card.is-text em { position: absolute; left: 0; right: 0; top: 0; bottom: 1.7em; display: flex;
  align-items: center; justify-content: center; padding: 0 8%; text-align: center; font-style: normal; line-height: 1.3;
  color: #7b7b7b; font-size: clamp(0.5rem, 2cqi, 0.74rem); }
.bv-card span, .ag-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.2em 0.35em 0.25em;
  color: #1a1a1a; background: rgba(255, 255, 255, 0.78); font-weight: 600; line-height: 1.15; text-align: center;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bv-card span { font-size: clamp(0.55rem, 2.3cqi, 0.8rem); }
.ag-card span { font-size: clamp(0.6rem, 3cqi, 0.86rem); }
.photo-credits { margin-top: 0.7rem; font-size: 0.72rem; color: #8a8a8a; }
.photo-credits summary { cursor: pointer; width: max-content; }
.photo-credits ul { margin: 0.3rem 0 0 1.1rem; list-style: disc; }
.photo-credits a { color: #6d7f99; }
.bv-card:hover { transform: translateY(-2px); box-shadow: 0 0 16px 3px rgba(60, 80, 120, 0.24), 0 0 0 1px rgba(0, 0, 0, 0.08); }
.bv-card.is-on { box-shadow: 0 0 0 2px #363636, 0 0 18px 4px rgba(54, 54, 54, 0.32); }

