body {
  color: #1f2933;
  font-family: "Noto Sans", sans-serif;
}

.site-navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand-mark,
.navbar-item {
  color: #243b53;
  font-weight: 600;
}

.brand-mark {
  font-family: "Google Sans", sans-serif;
  letter-spacing: 0.04em;
}

.paper-hero .hero-body,
.teaser .hero-body {
  padding-bottom: 2rem;
  padding-top: 2.5rem;
}

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

.section-soft,
.stats-section {
  background: #fafbfc;
}

.eyebrow {
  color: #2563eb;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publication-title {
  font-family: "Castoro", serif;
  line-height: 1.08;
  margin-top: 0.6rem;
  margin-bottom: 1rem !important;
}

.publication-authors,
.publication-affiliations,
.hero-summary,
.section-copy,
.download-note {
  color: #52606d;
}

.hero-summary {
  margin: 1rem auto 0;
  max-width: 42rem;
}

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

.publication-links .button {
  font-weight: 600;
}

.teaser-frame,
.figure-panel,
.vqa-card,
.download-panel,
.bibtex-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.teaser-frame {
  overflow: hidden;
  margin: 0 auto;
  max-width: 1320px;
  padding: 0.3rem;
}

.teaser-frame img,
.figure-panel img,
.vqa-card img {
  display: block;
  height: auto;
  width: 100%;
}

.teaser .subtitle {
  color: #52606d;
  margin: 1rem auto 0;
  max-width: 46rem;
}

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

.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 0.75rem;
  text-align: center;
}

.stat-value {
  color: #111827;
  font-family: "Google Sans", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.stat-label {
  color: #6b7280;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.figure-panel {
  overflow: hidden;
  padding: 0.25rem;
}

.dataset-figure {
  margin: 1rem auto 0;
  max-width: 1320px;
  padding: 0.3rem;
}

.dataset-figure-wrap {
  margin-top: 1rem;
}

.experiment-summary {
  margin-bottom: 1rem;
}

.experiment-table-wrap {
  margin-top: 1rem;
}

.results-table {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-collapse: separate;
  border-radius: 16px;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.85rem 0.95rem;
  text-align: left;
  vertical-align: top;
}

.results-table th {
  background: #f8fafc;
  color: #243b53;
  font-weight: 700;
}

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

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

.vqa-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.vqa-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  overflow: hidden;
}

.vqa-card-body {
  padding: 1.1rem 1.15rem 1.1rem;
}

.vqa-region {
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.vqa-question {
  color: #111827;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 0.45rem;
}

.vqa-answer {
  color: #52606d;
  line-height: 1.65;
}

.code-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

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

.code-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 1.1rem 1.15rem;
}

.code-card .title {
  margin-bottom: 0.55rem !important;
}

.code-card p {
  color: #52606d;
  line-height: 1.65;
  margin-bottom: 0.7rem;
}

.code-card ul {
  margin: 0;
}

.github-btn {
  font-size: 0.97rem;
  font-weight: 600;
  margin-top: 1rem;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.content-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 1.4rem 1.5rem;
}

.snippet-label {
  color: #243b53;
  font-family: "Google Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 1.35rem 0 0.6rem;
  text-transform: uppercase;
}

.code-snippet {
  padding: 1rem 1.1rem;
}

.code-note {
  margin: 0.8rem auto 0;
  max-width: 46rem;
  text-align: center;
}

.download-panel {
  overflow: hidden;
}

.download-row {
  align-items: center;
  color: #243b53;
  display: flex;
  font-weight: 600;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.download-row:hover {
  background: #f8fafc;
  color: #111827;
}

.download-row.is-static {
  cursor: default;
}

.download-row.is-static:hover {
  background: #fff;
  color: #243b53;
}

.download-note {
  margin-top: 0.8rem;
}

.download-action {
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
}

.download-soon {
  color: #9ca3af;
}

.download-row.is-static .download-soon {
  color: #9ca3af;
}

.bibtex-block {
  overflow-x: auto;
  padding: 1rem 1.1rem;
}

.bibtex-block pre {
  background: transparent;
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
}

footer.footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  color: #52606d;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

footer.footer a {
  color: #2563eb;
  font-weight: 600;
}

footer.footer a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1023px) {
  .stats-grid,
  .vqa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .vqa-card {
    grid-template-columns: 1fr;
  }

  .navbar-menu {
    background: #fff;
  }
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2.2rem !important;
  }

  .publication-links {
    flex-direction: column;
  }

  .publication-links .button {
    width: 100%;
  }

  .stats-grid,
  .vqa-grid,
  .code-grid,
  .code-grid-2 {
    grid-template-columns: 1fr;
  }

  .vqa-card {
    grid-template-columns: 1fr;
  }

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