:root {
  --accent: #3b6aa3;
  --accent-dark: #294a73;
  --accent-soft: #eef3fa;
  --text-dark: #1f2933;
  --text-muted: #888;
  --border-soft: #e6e8eb;
}

body {
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.65;
  color: #333;
  background-color: #fbf9f4;
}


.footer .icon-link {
  font-size: 25px;
  color: #000;
}

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

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


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


/* ===== Hero / Title ===== */

body > .hero:first-of-type {
  background: linear-gradient(180deg, #f1ecdf 0%, #fbf9f4 100%);
  padding-top: 2rem;
  padding-bottom: 0;
}

body > .hero:first-of-type .hero-body {
  padding-bottom: 0;
}

.hero {
  padding-top: 1.5rem;
}

.publication-banner {
  max-height: parent;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-title {
  font-family: 'Castoro', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem !important;
  color: var(--text-dark);
  line-height: 1.2;
}

.publication-title .brand {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.title-emoji {
  margin-right: 0.5rem;
  font-size: 0.9em;
  vertical-align: 0.05em;
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(28%) sepia(45%) saturate(600%) hue-rotate(186deg) brightness(0.95) contrast(0.95);
  -webkit-text-fill-color: initial;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  margin-bottom: 0.75rem;
}

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

.publication-authors a {
  color: var(--text-dark) !important;
  transition: color 0.2s ease;
}

.publication-authors a:hover {
  color: var(--accent) !important;
  text-decoration: none;
}

.author-block {
  display: inline-block;
  margin-right: 0.25rem;
}

.eql-cntrb {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.publication-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.publication-links-wrapper {
  padding: 0 !important;
}

.inline-logo:hover {
  box-shadow: none !important;
  transform: none !important;
}


/* ===== Buttons ===== */

.publication-links .button.is-dark {
  background-color: var(--text-dark);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.publication-links .button.is-dark:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 106, 163, 0.3);
}


/* ===== Section titles with icon + accent underline ===== */

.section-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.75rem !important;
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Extend the accent line (centered under title) when hovering figure/video below */
.column:has(.figure-block:hover) .section-title::after,
.column:has(video:hover) .section-title::after {
  width: 120px;
}

.figure-block.figure-spacer {
  margin-top: 4.5rem;
}

/* Variant: border/shadow only on the image, caption sits outside the frame */
.figure-block.caption-outside {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.figure-block.caption-outside:hover {
  box-shadow: none;
  transform: none;
}

.figure-block.caption-outside img {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.figure-block.caption-outside:hover img {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.figure-block.caption-outside .figure-caption {
  padding: 0.9rem 0.5rem 0;
}

.section-icon {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.5rem;
  vertical-align: -2px;
}


/* ===== Figure cards (image + caption inside same frame) ===== */

.figure-block {
  margin: 0;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.figure-block:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.figure-block img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.figure-caption {
  padding: 1rem 1.25rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #8a8a8a;
  text-align: justify;
}

.figure-caption strong {
  color: #555;
  font-weight: 600;
}


/* ===== Plain images/videos (no caption): still card-like ===== */

.hero-body > .container img:not(.figure-block img),
.hero-body > .container video {
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-soft);
  display: block;
  margin: 0 auto;
  max-width: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-body > .container img:not(.figure-block img):hover,
.hero-body > .container video:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}


/* ===== TL;DR section ===== */

.tldr-section {
  margin-top: 0;
}

.tldr-section .hero-body {
  padding-top: 0;
  padding-bottom: 2rem;
}

.tldr-text {
  background-color: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.4rem;
  border-radius: 6px;
  margin-top: 1.5rem !important;
  font-size: 1rem;
  line-height: 1.7;
  color: #3a4654;
  text-align: justify;
}

.tldr-text strong {
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}


/* ===== Abstract ===== */

.section.hero.is-light {
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section.hero.is-light .content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}


/* ===== Carousel (kept for compatibility) ===== */

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  padding: 20px;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}


/* ===== BibTeX block ===== */

#BibTeX .title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--text-dark);
}

#BibTeX pre {
  background-color: #f6f8fa;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-soft);
}

#BibTeX code {
  background-color: transparent;
  font-size: 0.9rem;
  color: #24292e;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}


/* ===== Footer ===== */

.footer {
  background-color: #ffffff;
  padding: 1.5rem 1.5rem;
}

.footer .content p {
  font-size: 0.9rem;
  color: #666;
}

.footer a {
  color: var(--accent);
}
