html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  display: block;
  height: 3.25rem;
}

.navbar {
  border-bottom: 1px solid #e6ecf2;
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.04);
}

.brand-mark {
  align-items: center;
  color: #1b4d89 !important;
  display: inline-flex;
  font-family: 'Google Sans', sans-serif;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  height: 1.75rem;
  object-fit: contain;
  width: 1.75rem;
}

.footer .icon-link {
  color: #000;
  font-size: 25px;
}

.link-block a {
  margin-bottom: 5px;
  margin-top: 5px;
}

.xstream {
  font-variant: small-caps;
  letter-spacing: 0.015em;
}

.eyebrow {
  color: #2f6fb0;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.publication-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 111, 176, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(49, 151, 149, 0.16), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  line-height: 1.08;
}

.title-logo {
  display: block;
  height: 70px;
  margin: 0 auto 0.8rem;
  object-fit: contain;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  margin-top: 0.7rem;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.affiliations {
  color: #596575;
}

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

.publication-links {
  margin-top: 1.4rem;
}

.teaser .hero-body {
  padding-bottom: 3rem;
  padding-top: 0;
}

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

.stats-section {
  padding-top: 1rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
}

.stat-card,
.info-card,
.method-card,
.finding-card,
.resource-card,
.paper-figure {
  background: #ffffff;
  border: 1px solid #e6ecf2;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.stat-card {
  padding: 1.1rem 0.8rem;
  text-align: center;
}

.stat-value {
  color: #1b4d89;
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  color: #64748b;
  display: block;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.info-card,
.method-card,
.finding-card {
  height: 100%;
  padding: 1.25rem;
}

.info-card .title,
.method-card .title,
.finding-card .title {
  color: #12395f;
}

.contribution-grid,
.finding-grid {
  margin-top: 1.5rem;
}

.section-intro {
  color: #52606d;
  margin: 0 auto 1.4rem;
  max-width: 820px;
  text-align: center;
}

.paper-figure {
  margin: 1.4rem auto;
  overflow: hidden;
  padding: 1rem;
}

.hero-figure {
  max-width: 1100px;
}

.paper-figure img {
  border-radius: 12px;
  display: block;
  height: auto;
  width: 100%;
}

.figure-link {
  display: block;
}

.paper-rendered.small {
  max-height: 360px;
  object-fit: contain;
}

.paper-figure-object {
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  display: block;
  height: 560px;
  width: 100%;
}

.paper-figure-object.tall {
  height: 680px;
}

.paper-figure-object.small {
  height: 360px;
}

.paper-figure.compact {
  margin: 0 0 1.25rem;
}

.paper-figure figcaption {
  color: #52606d;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 0.85rem;
}

.table-source {
  color: #64748b;
  font-size: 0.86rem;
  margin-bottom: 0.55rem;
  text-align: center;
}

.table-scroll {
  background: #ffffff;
  border: 1px solid #e6ecf2;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.8rem;
  overflow-x: auto;
  padding: 0.6rem;
}

.paper-table {
  font-size: 0.86rem;
  min-width: 980px;
}

.paper-table th {
  background: #f1f5f9;
  color: #12395f;
  position: sticky;
  top: 0;
  white-space: nowrap;
}

.paper-table td,
.paper-table th {
  vertical-align: middle !important;
}

.paper-table td:not(:first-child),
.paper-table th:not(:first-child) {
  text-align: center;
}

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

.compact-table {
  min-width: 900px;
}

.human-row {
  background: #f5fff9 !important;
  font-weight: 700;
}

.ours-row {
  background: #eef6ff !important;
  font-weight: 700;
}

.group-row td {
  background: #f8fafc;
  color: #12395f;
  font-style: italic;
  font-weight: 700;
  text-align: left !important;
}

.method-card ol {
  margin-left: 1.2rem;
}

.method-card li {
  margin-bottom: 0.65rem;
}

.strategy-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.strategy-list div {
  background: #f8fbff;
  border-left: 4px solid #2f6fb0;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

.finding-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.resource-grid {
  display: grid;
  gap: 1rem;
}

.resource-grid {
  grid-template-columns: repeat(4, 1fr);
}

.resource-card {
  color: inherit;
  display: block;
  padding: 1.25rem;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.resource-card:hover {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  color: inherit;
  transform: translateY(-2px);
}

.resource-card[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.resource-card[aria-disabled="true"]:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transform: none;
}

.resource-card .icon {
  color: #2f6fb0;
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.resource-card strong {
  color: #12395f;
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

pre {
  border-radius: 14px;
  white-space: pre-wrap;
}

.footer {
  background: #f8fafc;
}

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

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

@media screen and (max-width: 768px) {
  body::before {
    height: 3.25rem;
  }

  .publication-title {
    font-size: 2.15rem !important;
  }

  .stats-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .paper-figure {
    padding: 0.65rem;
  }

  .paper-figure-object,
  .paper-figure-object.tall,
  .paper-figure-object.small {
    height: 420px;
  }

  .paper-table {
    font-size: 0.78rem;
  }
}
