body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1f2933;
}

pre, code, .hljs {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace !important;
  font-size: 0.85rem;
}

.publication-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.85rem;
  line-height: 1.22;
  max-width: 100%;
}
@media (max-width: 768px) {
  .publication-title { font-size: 1.4rem; }
}

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

.publication-authors a {
  color: hsl(204, 86%, 45%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
  margin: 0 0.25em;
}

.affiliation-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.affiliation-row img {
  height: 48px;
  object-fit: contain;
}

/* Conference line — academic-elegant, no pill */
.conf-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
  margin: 0.6rem 0 0.4rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  color: #4a5568;
  letter-spacing: 0.02em;
}
.conf-line a {
  color: #4a5568 !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.conf-line a:hover {
  color: hsl(204, 86%, 45%) !important;
  border-bottom-color: hsl(204, 86%, 45%);
}
.conf-line img {
  height: 22px;
  vertical-align: middle;
}

/* Buttons */
.publication-links .button {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.publication-links .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* TL;DR card */
.tldr-card {
  background: #f8f9fc;
  border-left: 4px solid hsl(204, 86%, 45%);
  border-radius: 6px;
  padding: 1.4rem 1.8rem;
  margin: 0;
}
.tldr-card h3 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: hsl(204, 86%, 45%);
  margin-bottom: 0.8rem;
}
.tldr-card ul {
  margin: 0;
  padding-left: 1.2rem;
}
.tldr-card li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.tldr-card li:last-child {
  margin-bottom: 0;
}

/* Section dividers */
.section-alt {
  background: #f8f9fc;
}

/* Figure caption */
.fig-caption {
  font-size: 0.85rem;
  color: #5a6776;
  margin-top: 0.6rem;
  text-align: center;
  line-height: 1.5;
}

/* Code tabs */
.code-tabs {
  margin-top: 1.5rem;
}
.code-tabs ul {
  border-bottom: 2px solid #e1e4e8;
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0 0 0;
  padding: 0;
  flex-wrap: wrap;
}
.code-tabs ul li {
  margin: 0;
}
.code-tabs ul li a {
  display: block;
  padding: 0.6rem 1.1rem;
  color: #5a6776;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.code-tabs ul li.is-active a {
  color: hsl(204, 86%, 45%);
  border-bottom-color: hsl(204, 86%, 45%);
}
.code-tabs ul li a:hover {
  color: hsl(204, 86%, 45%);
}
.code-pane {
  display: none;
}
.code-pane.is-active {
  display: block;
}
.code-pane pre {
  margin-top: 0.6rem;
  border-radius: 6px;
}
.code-pane h4 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a6776;
  margin: 1.4rem 0 0.2rem;
}
.code-pane h4:first-child {
  margin-top: 1rem;
}
.code-pane .stats-line {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: #5a6776;
  margin-top: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: #f1f3f6;
  border-radius: 4px;
}

/* Hero teaser */
.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 2.5rem;
}
.teaser video, .teaser img {
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}

/* Section headings */
section .title.is-3 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* BibTeX block */
#BibTeX .bibtex-wrapper {
  position: relative;
}
#BibTeX pre {
  background: #f1f3f6;
  color: #24292f;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 1.2rem;
  font-size: 0.9rem;
}
#BibTeX pre code {
  background: transparent;
  color: inherit;
}
.bibtex-copy {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  color: #57606a;
  cursor: pointer;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.bibtex-copy:hover {
  background: #f6f8fa;
  color: #24292f;
  border-color: #afb8c1;
}
.bibtex-copy:focus-visible {
  outline: 2px solid hsl(204, 86%, 45%);
  outline-offset: 2px;
}
.bibtex-copy .icon-stack {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}
.bibtex-copy .icon-stack svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bibtex-copy .icon-copy  { opacity: 1; transform: scale(1) rotate(0deg); }
.bibtex-copy .icon-check { opacity: 0; transform: scale(0.5) rotate(-30deg); color: #1f7a2c; }
.bibtex-copy.is-copied {
  background: #ecfdf3;
  border-color: #86d291;
  color: #1f7a2c;
}
.bibtex-copy.is-copied .icon-copy  { opacity: 0; transform: scale(0.5) rotate(30deg); }
.bibtex-copy.is-copied .icon-check { opacity: 1; transform: scale(1)  rotate(0deg); }
.bibtex-copy .sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Footer */
.footer {
  background: #f8f9fc;
  padding: 2rem 1.5rem;
}

/* Result figure container */
.result-figure {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Author email icon */
.email-icon {
  font-size: 0.85em;
  vertical-align: baseline;
  margin-left: 0.25em;
  color: #5a6776 !important;
  position: relative;
  top: -1px;
}
.email-icon:hover {
  color: hsl(204, 86%, 45%) !important;
}
