/* ===== Base & Typography ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: #2d3748;
  background: linear-gradient(175deg, #eef3ff 0%, #f6f8fd 30%, #f8fafc 60%, #f6f8fd 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* ===== Color Palette (CSS Variables) ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #6366f1;
  --text-dark: #1e293b;
  --text-body: #374151;
  --text-muted: #6b7280;
  --bg-soft: #f8fafc;
  --bg-alt: #f1f5f9;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

/* ===== Hero / Header ===== */
.hero {
  background: transparent;
  padding-bottom: 0 !important;
}

.hero-body {
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

/* ===== Publication Title ===== */
.publication-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 2rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.publication-subtitle {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 500;
  color: var(--accent);
  font-size: 1.55rem;
  margin-top: 0.6rem;
  letter-spacing: 0.01em;
}

.title-logo {
  height: 1.15em;
  width: auto;
  vertical-align: -0.12em;
  margin-right: 0.35rem;
}

/* ===== Authors ===== */
.publication-authors {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-body);
}

.authors-block {
  margin-bottom: 0.25rem;
}

.author-block {
  display: inline-block;
}

.author-block a,
.author-block a:visited,
.author-block a:active {
  color: var(--primary) !important;
  font-weight: normal;
  transition: color 0.2s;
}

.author-block a:hover {
  color: var(--primary-dark) !important;
  text-decoration: underline;
}

.corresponding-note {
  font-size: 0.92rem !important;
  line-height: 1.3;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.publication-affiliations {
  font-size: 1.02rem !important;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ===== Link Buttons ===== */
.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.publication-links .link-block a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: #1e293b;
  color: #fff !important;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.publication-links .link-block a:hover {
  background: #0f172a;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

.publication-links .link-block a .icon {
  font-size: 1.1rem;
}

.button.is-disabled,
a.is-disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===== Teaser & Abstract ===== */
.abstract-block {
  margin-bottom: 0;
  padding-bottom: 2rem;
}

#teaser {
  display: block;
  margin: 0 auto 1.2rem;
  border-radius: var(--radius);
}

.abstract-text {
  margin-top: 0;
}

.abstract-text p {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-body);
}

/* ===== Sections ===== */
.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-compact {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section-alt {
  background: transparent;
}

.section .title.is-3,
.section-compact .title.is-3 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-divider {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0.5rem auto 1.5rem;
}

/* ===== Highlight Box ===== */
.highlight-box {
  background: transparent;
  border: none;
  border-left: 4px solid var(--primary);
  border-radius: 0;
  padding: 0.8rem 1.6rem;
  text-align: left;
}

.highlight-box ul {
  margin-bottom: 0;
  list-style: none;
  padding-left: 0;
}

.highlight-box li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
}

.highlight-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

.highlight-box li + li {
  margin-top: 0.65rem;
}

.highlight-box li strong {
  color: var(--text-dark);
}

/* ===== Figures ===== */
.figure-image {
  width: 100%;
  max-width: 780px;
  height: auto;
  border-radius: var(--radius);
}

.figure-caption {
  margin-top: 1rem;
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.72;
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BibTeX ===== */
.bibtex-section .title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

.bibtex-block {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.bibtex-block pre {
  background: transparent;
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-body);
  overflow-x: auto;
}

.bibtex-block code {
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.bibtex-copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.bibtex-copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== Footer ===== */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--border-light);
  padding: 1.8rem 1rem;
  margin-top: 1rem;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--primary);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== Misc ===== */
.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;
}

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

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

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

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

.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;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .publication-title {
    font-size: 1.5rem;
  }

  .publication-subtitle {
    font-size: 1.05rem;
  }

  .publication-authors {
    font-size: 1rem;
  }

  .hero-body {
    padding-top: 2rem;
  }

  .highlight-box {
    padding: 1rem 1.2rem;
  }

  .section,
  .section-compact {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
