/* Modern CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-subtle: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Top bar */
.top-bar {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.55rem;
  display: flex;
  justify-content: flex-end;
}

.top-bar-inner img {
  max-width: 90px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.12));
}

/* Sticky mini nav */
.mini-nav {
  position: sticky;
  top: 6px;
  z-index: 30;
  display: flex;
  justify-content: center;
  margin: -0.6rem auto -0.4rem;
}

.mini-nav-inner {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

.mini-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-nav a:hover {
  background: rgba(226, 232, 240, 0.7);
  transform: translateY(-1px);
}

#summary,
#results,
#pipeline,
#BibTeX {
  scroll-margin-top: 90px;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--background-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Modern Button Styles */
.button {
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.button.is-dark {
  background: var(--text-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color) !important;
}

.button.is-dark:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.footer .icon-link {
    font-size: 25px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer .icon-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.link-block a {
    margin: 8px 4px;
}

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


/* Hero Section Modernization */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-light {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-body {
  padding: 4rem 1.5rem;
}

.publication-hero .hero-body {
  padding-top: 0.4rem;
}

.teaser .hero-body {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

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

.teaser-figure {
  margin: 0;
  display: grid;
  gap: 1.5rem;
  position: relative;
}

.teaser-image {
  width: 100%;
  border-radius: 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  background: var(--background-primary);
  transition: var(--transition);
}

.teaser-image:hover {
  transform: none;
}

.teaser-lens {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  background-repeat: no-repeat;
  background-color: #ffffff;
  display: none;
  z-index: 2;
}

.teaser-caption {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Overview of DIAMOND */
.pipeline-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 60%);
}

.pipeline-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), rgba(255, 255, 255, 0));
  filter: blur(12px);
  pointer-events: none;
}

.pipeline-title {
  text-align: center;
}

.title.is-3.pipeline-title::after {
  background: linear-gradient(90deg, #e5e7eb 0%, #9ca3af 100%);
  width: 80px;
  height: 2px;
  border-radius: 0;
}

.pipeline-card {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: calc(var(--border-radius) + 6px);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  grid-template-rows: auto 1fr;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
}

.pipeline-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pipeline-media {
  position: relative;
}

.pipeline-image {
  display: block;
  width: 100%;
}

.pipeline-title {
  font-size: 2.1rem;
}

.pipeline-card:hover {
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.pipeline-card:hover .pipeline-text {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}

.pipeline-text {
  padding: 2rem 2.4rem 2.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 1rem;
  transition: background 0.4s ease;
}

.pipeline-eyebrow {
  display: inline-flex;
  align-self: start;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pipeline-summary {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #0f172a;
  font-weight: 600;
}

.pipeline-more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.pipeline-card.is-open .pipeline-more {
  max-height: 220px;
  opacity: 1;
}

.pipeline-toggle {
  justify-self: start;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pipeline-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

@media screen and (max-width: 1024px) {
  .pipeline-text {
    padding: 1.6rem 1.5rem 1.8rem;
  }
}

/* X0/XT Artifact Check Grid */
.artifact-check .artifact-title {
  margin-bottom: 1.5rem !important;
  text-align: center;
}

.title.is-3.artifact-title::after {
  background: linear-gradient(90deg, #e5e7eb 0%, #9ca3af 100%);
}

.artifact-description {
  margin: -0.75rem auto 1.5rem;
  max-width: 780px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.artifact-check {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
}

.artifact-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.artifact-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.artifact-grid {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: calc(var(--border-radius) + 4px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.artifact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.artifact-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.artifact-row.is-active {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 16px 32px rgba(30, 64, 175, 0.12);
}

.artifact-label {
  text-align: right;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.artifact-cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}


.artifact-cell {
  position: relative;
}

.artifact-cell-label {
  position: absolute;
  top: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  z-index: 3;
}

.artifact-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: var(--background-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.artifact-img:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.artifact-base {
  position: relative;
  z-index: 1;
}

.artifact-overlay {
  z-index: 2;
}

.artifact-x0 {
  --overlay-alpha: 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.artifact-xt {
  --overlay-alpha: 0;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.03));
  border: 1px solid rgba(14, 165, 233, 0.22);
}

.artifact-xt-overlay {
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.12), rgba(100, 116, 139, 0.03));
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.artifact-base {
  display: block;
}

.artifact-overlay {
  position: absolute;
  inset: 0;
  opacity: var(--overlay-alpha);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.artifact-label-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.artifact-slider-vertical {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: bt-lr;
  transform: rotate(180deg);
  width: 12px;
  height: 220px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.7));
  border-radius: 999px;
  outline: none;
}

.artifact-slider-vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.artifact-slider-vertical::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.artifact-control-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.artifact-helper {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.artifact-row.artifact-animate:nth-of-type(2) {
  transition-delay: 0.08s;
}

.artifact-row.artifact-animate:nth-of-type(3) {
  transition-delay: 0.16s;
}

/* Qualitative Results */
.results-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 60%);
}

.results-title {
  text-align: center;
}

.title.is-3.results-title::after {
  background: linear-gradient(90deg, #e5e7eb 0%, #9ca3af 100%) !important;
  width: 80px;
  height: 2px;
  border-radius: 0;
}

.results-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 1.25rem 0 0;
  padding: 0 1.25rem;
}

.results-header-label {
  width: min(100%, 440px);
  min-width: 140px;
  display: flex;
  justify-content: center;
}

.results-header-label > span {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-align: center;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.results-header-label.baseline {
  color: #dc2626;
  justify-self: end;
}

.results-header-label.baseline > span {
  color: #dc2626;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.7), rgba(254, 242, 242, 0.9));
  border-color: rgba(252, 165, 165, 0.8);
}

.results-header-label.diamond {
  color: #1d4ed8;
  justify-self: start;
}

.results-header-label.diamond > span {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.8), rgba(239, 246, 255, 0.95));
  border-color: rgba(147, 197, 253, 0.9);
  background-clip: padding-box;
}

.results-header-label.diamond .diamond-text {
  display: inline-block;
  color: #1d4ed8;
  background: linear-gradient(90deg, #38bdf8 0%, #1d4ed8 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.results-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.results-row {
  display: grid;
  gap: 0.75rem;
}

.results-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: calc(var(--border-radius) + 4px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.results-item {
  display: grid;
  gap: 0.6rem;
}

.results-media {
  position: relative;
  display: grid;
  justify-items: center;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 1.9s ease, transform 1.9s ease;
}

.results-media.from-left {
  transform: translateX(-180px);
}

.results-media.from-right {
  transform: translateX(180px);
}

.results-row-label {
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.results-image {
  width: 100%;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: 440px;
  justify-self: center;
}

.results-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.results-zoom-btn:hover {
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(-1px);
}

.results-item:first-child .results-media {
  justify-self: end;
}

.results-item:last-child .results-media {
  justify-self: start;
}

.results-pair.in-view .results-media {
  opacity: 1;
  transform: translateX(0);
}

.results-pair.in-view.settled .results-media:hover {
  transform: translateY(-4px) translateX(0);
}

/* More Results Across Datasets */
.dataset-results {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
}

.dataset-title {
  text-align: center;
  width: 100%;
  display: block;
}

.dataset-title,
.dataset-subtitle,
.dataset-tabs {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.dataset-results.in-view .dataset-title {
  opacity: 1;
  transform: translateY(0);
}

.dataset-results.in-view .dataset-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.dataset-results.in-view .dataset-tabs {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.title.is-3.dataset-title::after {
  background: linear-gradient(90deg, #e5e7eb 0%, #9ca3af 100%);
  width: 80px;
  height: 2px;
  border-radius: 0;
}

.title.is-3.abstract-title::after {
  background: linear-gradient(90deg, #e5e7eb 0%, #9ca3af 100%);
  width: 80px;
  height: 2px;
  border-radius: 0;
}

.dataset-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0.75rem auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.dataset-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem auto 1.25rem;
  flex-wrap: wrap;
}

.dataset-tab {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dataset-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.dataset-tab.is-active {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.85), rgba(239, 246, 255, 0.98));
  border-color: rgba(147, 197, 253, 0.9);
  box-shadow: 0 12px 22px rgba(30, 64, 175, 0.15);
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dataset-card {
  display: grid;
}

.dataset-media {
  position: relative;
  border-radius: calc(var(--border-radius) + 4px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-md);
  display: grid;
}

.dataset-image {
  width: 100%;
  display: block;
  grid-area: 1 / 1;
  transition: opacity 1.4s ease;
  will-change: opacity;
}

.dataset-image.diamond {
  opacity: 0;
}

.dataset-media.show-diamond .dataset-image.baseline {
  opacity: 0;
}

.dataset-media.show-diamond .dataset-image.diamond {
  opacity: 1;
}

.dataset-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 2;
  transition: opacity 0.6s ease;
}

.dataset-badge.baseline {
  background: rgba(220, 38, 38, 0.9);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);
  opacity: 1;
}

.dataset-badge.diamond {
  background: linear-gradient(90deg, #38bdf8 0%, #1d4ed8 55%, #0ea5e9 100%);
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.25);
  opacity: 0;
}

.dataset-media.show-diamond .dataset-badge.baseline {
  opacity: 0;
}

.dataset-media.show-diamond .dataset-badge.diamond {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .results-pair {
    grid-template-columns: 1fr;
  }

  .results-header {
    grid-template-columns: 1fr;
  }

  .dataset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media screen and (max-width: 1024px) {
  .artifact-row {
    grid-template-columns: 90px 1fr;
  }
}

@media screen and (max-width: 768px) {
  .artifact-row {
    grid-template-columns: 1fr;
  }

  .artifact-label {
    text-align: left;
    margin-top: 0.25rem;
  }

}

@media screen and (max-width: 480px) {
  .dataset-grid {
    grid-template-columns: 1fr;
  }
  .artifact-cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .artifact-cells {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .teaser-lens {
    width: 140px;
    height: 140px;
  }
}


/* Publication Content Styling */
.publication-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin-bottom: 2rem !important;
    margin-top: 0.9rem !important;
    line-height: 1.1 !important;
}


.title-diamond {
  display: inline-block;
  color: #1d4ed8;
  background: linear-gradient(90deg, #38bdf8 0%, #1d4ed8 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.publication-banner {
  max-height: 70vh;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: 2rem 0;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
}

.publication-header .hero-body {
  padding: 6rem 1.5rem 4rem;
}

.publication-authors {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.publication-venue {
    color: var(--text-secondary);
    width: fit-content;
    font-weight: 600;
    background: var(--background-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: inline-block;
}

.publication-awards {
    color: #ef4444;
    width: fit-content;
    font-weight: 700;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #ef4444;
    margin-top: 1rem;
}

.publication-authors a {
   color: #c0c0c0 !important;
   text-decoration: none;
   font-weight: 600;
   transition: var(--transition);
   position: relative;
}

.publication-authors a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #e5e7eb 0%, #9ca3af 100%);
    transition: var(--transition);
}

.publication-authors a:hover::after {
    width: 100%;
}

.publication-authors a:hover {
    color: #9ca3af !important;
}

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

.publication-banner img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.publication-banner img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Modern Video and Carousel Styling */
.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.publication-video:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
}

.publication-body img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.publication-body img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.results-carousel {
  overflow: hidden;
  padding: 1rem 0;
}

.results-carousel .item {
  margin: 1rem;
  overflow: hidden;
  padding: 1.5rem;
  font-size: 0;
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.results-carousel .item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.results-carousel .item img,
.results-carousel video {
  margin: 0;
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
}

.results-carousel .subtitle {
  font-size: 1rem !important;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 500;
}

/* Pagination and Misc Improvements */
.slider-pagination .slider-page {
  background: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.slider-pagination .slider-page.is-active {
  background: var(--primary-hover);
  transform: scale(1.2);
}

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

/* BibTeX */
.bibtex-section .bibtex-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: calc(var(--border-radius) + 6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
}

.bibtex-section .bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bibtex-section .bibtex-header .title {
  margin-bottom: 0 !important;
}

.bibtex-section #bibtex-code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--border-radius);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
}

.bibtex-section #bibtex-code code {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.bibtex-section .copy-bibtex-btn {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #0f172a;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bibtex-section .copy-bibtex-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.bibtex-section .copy-bibtex-btn.copied {
  background: rgba(219, 234, 254, 0.95);
  border-color: rgba(147, 197, 253, 0.9);
  color: #1d4ed8;
}

/* Section Titles */
.title.is-3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: var(--text-primary);
  margin-bottom: 2rem !important;
  position: relative;
  padding-bottom: 1rem;
}

.title.is-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Content Improvements */
.content.has-text-justified {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content.has-text-justified p {
  margin-bottom: 1.5rem;
}

/* Footer Improvements */
.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
}

.footer .content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

/* BibTeX Styling */
pre {
  background: var(--background-accent) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

code {
  background: var(--background-accent) !important;
  color: var(--text-primary) !important;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace !important;
}

/* BibTeX Section Improvements */
.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.copy-bibtex-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-bibtex-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.copy-bibtex-btn.copied {
  background: #10b981;
}

.copy-bibtex-btn.copied .copy-text::after {
  content: "ied!";
}


/* More Works Dropdown */
.more-works-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.more-works-btn {
  background: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.more-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--background-secondary);
  border-color: var(--primary-color);
}

.more-works-btn .dropdown-arrow {
  transition: var(--transition);
  font-size: 0.8rem;
}

.more-works-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.more-works-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  max-height: 70vh;
  overflow-y: auto;
}

.more-works-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--background-accent);
  color: var(--text-primary);
}

.works-list {
  padding: 1rem;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.work-item:hover {
  background: var(--background-accent);
  transform: translateX(4px);
}

.work-info h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.work-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.work-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.work-item .fas {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}


/* Mobile Responsive Improvements */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 2rem 1rem;
  }
  
  .publication-header .hero-body {
    padding: 3rem 1rem 2rem;
  }
  
  .publication-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .publication-authors {
    font-size: 1rem !important;
  }
  
  .button {
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
  }
  
  .more-works-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .more-works-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }
  
  .results-carousel .item {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .teaser .hero-body {
    padding: 1rem;
  }
  
  .content.has-text-justified {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 2rem !important;
  }
  
  .hero-body {
    padding: 1.5rem 0.75rem;
  }
  
  .more-works-container {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 1000;
  }
  
  .more-works-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .more-works-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 90vw;
  }
  
  .link-block {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet Responsive */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-body {
    padding: 3rem 2rem;
  }
  
  .publication-header .hero-body {
    padding: 4rem 2rem 3rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .section {
  animation: fadeInUp 0.6s ease-out;
}

/* Improved focus states for accessibility */
.button:focus,
.related-works-btn:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }
  
  .hero, .section {
    animation: none;
  }
  
  .button {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
}
