:root {
  --mspt-ink: #111827;
  --mspt-muted: #475569;
  --mspt-sky: #e9f5ff;
  --mspt-sand: #f8f7f3;
  --mspt-border: #d9e1ea;
  --mspt-accent: #0f172a;
  --mspt-ours: #dff8e8;
}

html,
body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--mspt-ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

code,
pre {
  font-family: 'IBM Plex Mono', monospace;
}

.hero-landing {
  background:
    radial-gradient(circle at 15% 20%, rgba(109, 191, 255, 0.22), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(17, 24, 39, 0.08), transparent 32%),
    #ffffff;
  border-bottom: 1px solid var(--mspt-border);
}

.publication-title {
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.publication-authors,
.publication-affiliation {
  color: var(--mspt-muted);
}

.publication-paper-subtitle {
  color: var(--mspt-muted);
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
}

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

.publication-affiliation {
  margin-bottom: 1rem;
}

.publication-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-nav-links {
  margin-top: 0.85rem;
}

#abstract,
#contributions,
#method,
#main-results,
#ablation-efficiency,
#quick-start,
#citation {
  scroll-margin-top: 1rem;
}

.results-nav {
  margin-bottom: 1rem;
}

#pde-standard-bench,
#shapenet-car-table,
#ahmedml-table {
  scroll-margin-top: 1rem;
}

.project-pill {
  border-radius: 999px;
  padding-left: 1rem;
  padding-right: 1rem;
  border: 1px solid #0f172a;
  box-shadow: 0 3px 0 rgba(15, 23, 42, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.project-pill .icon .ai {
  font-size: 1.1rem;
}

.button-icon-img {
  width: 1em;
  height: 1em;
  object-fit: contain;
  display: block;
}

.hf-emoji-icon {
  font-size: 1rem;
  line-height: 1;
}

.teaser-section {
  padding-top: 2rem;
}

.abstract-figure {
  max-width: 520px;
  margin-left: auto;
}

.paper-figure img {
  border: 1px solid var(--mspt-border);
  border-radius: 0.85rem;
  background: #fff;
}

.demo-window {
  border: 1px solid var(--mspt-border);
  border-radius: 0.85rem;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.demo-window-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--mspt-border);
  background: #f8fbff;
}

.demo-window-title {
  font-weight: 600;
  color: var(--mspt-ink);
  font-size: 0.95rem;
}

.demo-window-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.figure-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--mspt-muted);
}

.section-accent {
  background: var(--mspt-sky);
}

.section-accent-light {
  background: var(--mspt-sand);
}

.result-table th,
.result-table td {
  text-align: center;
  vertical-align: middle;
}

.result-table td:first-child,
.result-table th:first-child {
  text-align: left;
}

.ours-row {
  background: var(--mspt-ours);
  font-weight: 600;
}

.result-table tr.ours-row td {
  background: var(--mspt-ours) !important;
}

.table.is-striped tbody tr.ours-row:nth-child(even),
.table.is-striped tbody tr.ours-row:nth-child(odd),
.table.is-hoverable tbody tr.ours-row:hover {
  background-color: var(--mspt-ours) !important;
}

.table.is-striped tbody tr.ours-row:nth-child(even) td,
.table.is-striped tbody tr.ours-row:nth-child(odd) td,
.table.is-hoverable tbody tr.ours-row:hover td {
  background-color: var(--mspt-ours) !important;
}

pre {
  border: 1px solid var(--mspt-border);
  border-radius: 0.75rem;
  background: #fcfeff;
  padding: 1rem;
  overflow-x: auto;
}

.footer {
  border-top: 1px solid var(--mspt-border);
  background: #ffffff;
}

@media screen and (max-width: 768px) {
  .hero.is-medium .hero-body {
    padding: 2.5rem 1rem;
  }

  .publication-title {
    font-size: 1.8rem;
  }

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

  .table-container {
    overflow-x: auto;
  }

  .abstract-figure {
    max-width: 100%;
  }

  .demo-iframe {
    height: 300px;
  }
}
