:root {
  --accent-blue: #8db2dc;
  --accent-blue-strong: #5f7fae;
  --accent-blue-soft: #eef5fd;
  --accent-blue-soft-strong: #dde9f7;
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --border-color: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: var(--text-primary);
  font-family: "Google Sans", "Noto Sans", "Castoro", sans-serif;
}

a,
a:hover {
  text-decoration: none !important;
}

a {
  color: var(--accent-blue-strong);
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: #476792;
}

.stdec-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.stdec-hero .hero-body {
  padding-top: 1.9rem;
  padding-bottom: 1.35rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.hero-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(255, 94, 77, 0.14));
}

.publication-title {
  color: var(--text-primary);
  line-height: 1.14;
  margin: 0 auto 0.35rem !important;
  letter-spacing: -0.01em;
  font-weight: 600 !important;
  font-size: 1.95rem;
  font-family: "Google Sans", "Noto Sans", "Castoro", sans-serif !important;
  text-align: center !important;
  max-width: 900px;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.accent-mark {
  color: var(--accent-blue);
  margin-right: 0.18em;
  font-size: 0.9em;
  vertical-align: 0.03em;
}

.publication-authors,
.publication-affils,
.hero-tagline,
.author-note {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: 400 !important;
  text-align: center;
}

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

.publication-affils {
  font-size: 0.97rem;
}

.author-note {
  margin-top: 0.18rem;
  font-size: 0.95rem;
}

.author-note a {
  color: var(--accent-blue-strong) !important;
}


.publication-links {
  margin-top: 0.95rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.publication-links .button {
  border-radius: 999px;
  min-width: 126px;
  font-weight: 600;
  background: #222;
  color: #fff;
  border: none;
}

.publication-links .button.is-light,
.publication-links .button.is-static {
  background: #222;
  color: #fff;
  border: none;
}

.publication-links .button .icon,
.publication-links .button span {
  color: #fff;
}

.publication-links .button:hover,
.publication-links .button.is-light:hover {
  background: #111;
  color: #fff;
}

.publication-links .button.is-static {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

.hero-tagline {
  margin-top: 0.48rem;
  font-size: 0.95rem;
}

.container.is-max-desktop {
  max-width: 960px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.section {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.section.is-light {
  background: #f8fafc;
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.45rem;
}

.section-title::after,
.has-text-centered.title.is-3::after {
  content: "";
  display: block;
  width: 68px;
  height: 2px;
  margin: 0.55rem auto 0;
  border-radius: 999px;
  background: var(--accent-blue);
}

.panel-card,
.exp-block,
.status-card,
.quick-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.panel-card,
.status-card,
.quick-card {
  padding: 0;
  height: 100%;
}

.exp-block {
  padding: 0;
  margin-bottom: 1.2rem;
}

.panel-card img {
  width: 100%;
  border-radius: 0;
  border: none;
  margin-bottom: 0.75rem;
  background: #fff;
}

.motivation-grid .column {
  display: flex;
}

.motivation-grid .panel-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.highlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(200px, 0.64fr);
  gap: 0.65rem;
  align-items: stretch;
}

.highlight-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 0;
  background: transparent;
}

.highlight-figure img {
  width: 80%;
  max-width: 410px;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.highlight-metrics {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.45rem;
  min-height: 220px;
  height: 100%;
  width: 92%;
  justify-self: start;
  margin-left: -23px;
}

.motivation-grid .panel-card > a {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 0.35rem;
  border: 1px solid var(--border-color);
  background: #fff;
  margin-bottom: 0.75rem;
}

.motivation-grid .panel-card > a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-bottom: 0;
}

.panel-caption {
  margin-top: 0.3rem;
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.teaser-caption {
  width: 100%;
  max-width: none;
  margin: 0.4rem 0 0;
  text-align: justify;
  text-align-last: left;
  line-height: 1.65;
}

.motivation-grid .panel-caption {
  margin-top: auto;
  min-height: 5.8em;
  width: 100%;
  text-align: justify;
  text-align-last: left;
}

.contrib-content {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-top: 0.2rem;
  text-align: justify;
}

.contrib-content p {
  margin-bottom: 0.7rem;
}

.motivation-copy,
.method-summary {
  margin-top: 0.3rem;
  color: var(--text-primary);
}

.motivation-subgrid,
.qualitative-subgrid {
  margin-top: 1rem;
}

.motivation-intro {
  margin-bottom: 1rem;
}

.metric-card {
  border: 1px solid var(--accent-blue-soft-strong);
  background: #fff;
  padding: 0.52rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-value {
  font-family: "Castoro", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-blue-strong);
  line-height: 1.15;
}

.metric-label {
  margin-top: 0.16rem;
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.34;
}

.exp-title {
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: justify;
  text-align-last: left;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.6rem;
}

.result-table {
  width: 100%;
  font-size: 0.86rem;
  border-collapse: collapse;
}

.result-table th,
.result-table td {
  border: 1px solid var(--border-color);
  padding: 0.34rem 0.38rem;
  text-align: center !important;
  vertical-align: middle;
  line-height: 1.24;
  white-space: nowrap;
}

.result-table thead th {
  background: #f7fbff;
  color: var(--text-primary);
  text-align: center !important;
}

.result-table-wide {
  font-size: 0.8rem;
}

.result-table-wide th,
.result-table-wide td {
  padding: 0.28rem 0.3rem;
}

.result-table .group-row td {
  background: #f3f7fc;
  color: var(--text-primary);
  font-weight: 700;
  text-align: center !important;
}

.result-table .baseline-row td {
  background: #fafafa;
  color: #6b7280;
}

.result-table .ours-row td {
  background: var(--accent-blue-soft);
  font-weight: 700;
}

.status-box,
.quick-box,
.bib-box {
  border: 1px solid var(--border-color);
  background: #fff;
  padding: 1rem;
  height: 100%;
}

.case-block + .case-block {
  margin-top: 1.25rem;
}

.case-question {
  margin-bottom: 0.8rem;
  text-align: left;
}

.case-question h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.case-question p {
  color: #4b5563;
  line-height: 1.6;
}

.case-columns .column {
  display: flex;
}

.case-answer {
  width: 100%;
  border: 1px solid var(--border-color);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.case-answer-ours {
  border-color: var(--accent-blue-soft-strong);
  background: var(--accent-blue-soft);
}

.case-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  color: var(--text-primary);
}

.case-answer-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #c0c7d1;
  white-space: nowrap;
}

.case-answer-head span::before {
  content: "😭";
  line-height: 1;
}

.case-answer-ours .case-answer-head span {
  color: var(--accent-blue-strong);
}

.case-answer-ours .case-answer-head span::before {
  content: "😊";
}

.case-answer-body {
  padding: 0.95rem;
  color: #374151;
  font-size: 0.93rem;
  line-height: 1.58;
}

.case-answer-body p {
  margin-bottom: 0.8rem;
}

.case-answer-body p:last-child {
  margin-bottom: 0;
}

.status-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-blue-strong);
  margin-bottom: 0.65rem;
}

.status-tag.muted {
  background: var(--accent-blue);
}

.status-box h3,
.quick-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.status-box p,
.quick-box p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.copy-bibtex-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--accent-blue-strong);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.copy-bibtex-btn:hover {
  background: var(--accent-blue-soft);
}

pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  background: #111827;
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.55;
}

.bib-box pre {
  background: #fff;
  color: #111827;
  border: 1px solid var(--border-color);
}

@media screen and (max-width: 768px) {
  .hero-logo {
    width: 56px;
    height: 56px;
  }

  .publication-title {
    font-size: 1.58rem;
    max-width: 100%;
  }

  .title-logo {
    width: 36px;
    height: 36px;
  }

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

  .teaser-media {
    max-width: 100%;
  }

  .highlight-layout {
    grid-template-columns: 1fr;
  }

  .highlight-figure {
    min-height: 220px;
  }

  .highlight-figure img {
    max-width: 100%;
  }

  .highlight-metrics {
    min-height: 0;
  }

  .motivation-grid .panel-caption {
    min-height: 0;
  }
}
