html {
  scroll-behavior: smooth;
}

:root {
  --page-bg: #ffffff;
  --text-main: #151515;
  --text-soft: #4a4a4a;
  --text-muted: #707070;
  --line: #e5e7ee;
  --line-strong: #d5d9e3;
  --accent: #0f4c81;
  --accent-soft: #eef4fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: "Noto Sans", sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

.project-page {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Google Sans", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tagline {
  width: min(760px, 100%);
  margin: 14px auto 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.authors-card {
  width: min(780px, 100%);
  margin: 22px auto 0;
  padding: 0;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-family: "Google Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.author {
  color: var(--text-main);
}

.affiliations {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.author-notes,
.contact-line {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

.acceptance-note {
  margin: 12px 0 0;
  color: var(--accent);
  font-family: "Google Sans", sans-serif;
  font-size: 0.98rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.compact-links {
  gap: 14px;
  margin-top: 20px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #363636;
  color: #ffffff;
  text-decoration: none;
  font-family: "Google Sans", sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.18s ease, opacity 0.18s ease,
    background 0.18s ease;
}

.action-button:hover {
  transform: translateY(-1px);
  background: #242424;
}

.action-button.muted {
  background: #4d4d4d;
  color: #f4f4f4;
  cursor: default;
}

.action-button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  font-size: 0.95rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #f7f9fc;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.link-chip:hover {
  border-color: #b5bdd0;
  background: #f8fafd;
  transform: translateY(-1px);
}

.link-chip.muted {
  background: #f4f5f8;
  color: var(--text-muted);
  cursor: default;
}

.section {
  margin-top: 30px;
  padding: 0;
}

.section-title-wrap {
  width: min(720px, 100%);
  margin: 0 auto 14px;
}

.section h2 {
  margin: 0 0 14px;
  font-family: "Google Sans", sans-serif;
  font-size: 1.95rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
}

.section-copy {
  width: min(768px, 100%);
  margin: 0 auto;
}

.narrative-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.abstract-copy {
  width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-copy p,
.section-heading p,
.resource-card p,
.feature-card p {
  margin: 0;
  color: var(--text-soft);
}

.section-copy p + p {
  margin-top: 14px;
}

.narrative-section .section-copy p {
  text-align: justify;
  text-justify: inter-word;
}

.section-heading {
  margin-bottom: 16px;
  width: min(768px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p {
  max-width: 768px;
}

.figure-block {
  width: min(768px, 100%);
  margin: 0 auto;
}

.figure-wide {
  width: min(640px, 100%);
}

.figure-medium {
  width: min(640px, 100%);
}

.compact-figure {
  width: min(360px, 100%);
  margin: 0;
}

.figure-block img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.figure-block figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.table-shell {
  width: min(960px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.results-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.results-table th,
.results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f6;
  text-align: center;
  vertical-align: middle;
}

.results-table thead th {
  background: #f7f9fc;
  font-weight: 700;
  color: var(--text-main);
}

.results-table th:first-child,
.results-table td:first-child,
.results-table th:nth-child(2),
.results-table td:nth-child(2) {
  text-align: left;
}

.results-table thead th:nth-child(n + 3),
.results-table tbody td:nth-child(n + 3) {
  text-align: center;
}

.group-row td {
  background: var(--accent-soft);
  color: #183a5d;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.highlight-row {
  background: #fcfdff;
}

.highlight-row td {
  font-weight: 600;
}

.agent-cell {
  font-weight: 700;
}

.feature-grid,
.resource-grid,
.split-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  width: min(768px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(960px, 100%);
  margin: 0 auto;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  width: min(768px, 100%);
  margin: 0 auto;
}

.feature-card,
.resource-card {
  padding: 18px 18px 16px;
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.feature-card h3,
.resource-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.resource-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.resource-card a:hover {
  text-decoration: underline;
}

.bibtex {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  overflow-x: auto;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .feature-grid,
  .resource-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .compact-figure {
    width: min(520px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .project-page {
    width: min(100vw - 16px, 100%);
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .hero,
  .section {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .results-table {
    min-width: 860px;
  }

  .section-copy,
  .section-heading,
  .feature-grid,
  .resource-grid,
  .split-grid,
  .table-shell {
    width: 100%;
  }
}
