body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
}

/* ── Hero header ── */
.hero:first-of-type {
  background: linear-gradient(160deg, #f0f4ff 0%, #fff7ed 40%, #ffffff 70%);
  position: relative;
  overflow: hidden;
}

.hero:first-of-type::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero:first-of-type::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
  pointer-events: none;
}

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

/* ── Title ── */
.publication-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 2.5rem !important;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1a1a2e;
}

.publication-title .flash-icon {
  height: 1.15em;
  vertical-align: -0.15em;
  margin-right: 0.05em;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.publication-title .title-flash {
  color: #F97316;
  font-weight: 700;
}

.publication-title .title-wam {
  color: #2563EB;
  font-weight: 700;
}

.publication-title .title-subtitle {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68em;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.01em;
  margin-top: 0.3em;
}

/* ── Authors ── */
.publication-authors {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  margin-top: 0.4rem;
}

.publication-authors a {
  color: #2563EB !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.publication-authors a:hover {
  text-decoration: underline;
  color: #1d4ed8 !important;
}

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

.publication-authors sup {
  color: #888;
  font-weight: 500;
}

.affiliation-block {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.3rem;
}

.corresponding-note {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-top: 0.15rem;
}

/* ── Link buttons ── */
.publication-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #1a1a2e;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.pub-link:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: #f0f5ff;
  box-shadow: 0 6px 20px rgba(37,99,235,0.14);
  transform: translateY(-2px);
}

.pub-link-icon {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.pub-link:hover .pub-link-icon {
  opacity: 1;
}

/* ── Teaser ── */
.teaser .hero-body {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
}

/* ── Sections ── */
.section {
  padding: 3rem 1.5rem;
  position: relative;
}

.section:nth-of-type(odd) {
  background: #ffffff;
}

.section:nth-of-type(even) {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* ── Section titles ── */
.title.is-3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: #1a1a2e;
  position: relative;
  display: inline-block;
}

.columns.is-centered.has-text-centered .title.is-3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #F97316, #2563EB);
  border-radius: 2px;
}

.title.is-4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  color: #333;
}

/* ── Content ── */
.content p {
  line-height: 1.8;
  color: #444;
  font-size: 1.02rem;
}

.content pre {
  border-radius: 8px;
}

/* ── Results section ── */
.section[style*="background-color: #fafafa"] {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 50%, #ffffff 100%) !important;
}

/* ── Figure images ── */
.section img[alt] {
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}

.section img[alt]:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* ── Video cards ── */
.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.results-carousel .item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.results-carousel video {
  margin: 0;
}

.demo-video-item {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.demo-video-item video {
  width: 100%;
  display: block;
}

/* ── Results table ── */
.table-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}

.results-table {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 0 !important;
}

.results-table thead th {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #f1f5f9;
  font-weight: 600;
  padding: 14px 16px;
  text-align: center;
  border: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.results-table thead th:first-child {
  text-align: left;
  padding-left: 20px;
}

.results-table tbody td {
  padding: 11px 16px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  transition: background 0.15s ease;
}

.results-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  padding-left: 20px;
  color: #333;
}

.results-table tbody tr:hover td {
  background: rgba(37,99,235,0.03);
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table tbody tr.is-baseline td {
  color: #999;
  font-size: 0.88rem;
}

.results-table tbody tr.is-baseline:hover td {
  background: rgba(0,0,0,0.015);
}

.results-table tbody tr.is-teacher td {
  font-weight: 600;
  color: #1a1a2e;
  background: #f8fafc;
  border-bottom: 2px solid #cbd5e1;
}

.results-table tbody tr.is-ours {
  background: linear-gradient(90deg, rgba(37,99,235,0.07), rgba(249,115,22,0.07));
  position: relative;
}

.results-table tbody tr.is-ours td {
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 1px solid rgba(37,99,235,0.1);
}

.results-table tbody tr.is-ours td:first-child {
  position: relative;
}

.results-table tbody tr.is-ours td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: linear-gradient(180deg, #F97316, #2563EB);
  border-radius: 0 2px 2px 0;
}

.results-table tbody tr.is-ours:hover td {
  background: linear-gradient(90deg, rgba(37,99,235,0.1), rgba(249,115,22,0.1));
}

.results-table tbody tr.table-divider td {
  padding: 0;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
  border: none;
}

.results-table tbody tr.table-divider:hover td {
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
}

/* ── Demo groups ── */
.demo-group {
  margin-bottom: 2.5rem;
}

.demo-group:last-child {
  margin-bottom: 0;
}

.demo-group-label {
  margin-bottom: 1rem !important;
}

.demo-tag {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.demo-tag-baseline {
  background: #f0f4ff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
}

.demo-tag-fail {
  background: #fef2f2;
  color: #991b1b;
  border: 1.5px solid #fca5a5;
}

.demo-tag-ours {
  background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(249,115,22,0.08));
  color: #1a1a2e;
  border: 1.5px solid rgba(37,99,235,0.25);
}

/* ── BibTeX ── */
#BibTeX .title {
  font-family: 'Source Serif 4', Georgia, serif;
}

#BibTeX pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #f8f9fa, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

/* ── Footer ── */
.footer {
  background: linear-gradient(180deg, #f1f5f9, #e8ecf1);
  border-top: 1px solid #e2e8f0;
}

.footer .icon-link {
  font-size: 25px;
  color: #555;
  transition: color 0.2s ease, transform 0.15s ease;
}

.footer .icon-link:hover {
  color: #2563EB;
  transform: translateY(-1px);
}

/* ── Misc ── */
.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;
  width: fit-content;
  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%;
}

.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 5px;
}
