:root {
  --ink: #222222;
  --muted: #4a4a4a;
  --light: #f5f5f5;
  --line: #dbdbdb;
  --dark: #363636;
  --link: #3273dc;
  --accent: #2f6f58;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Noto Sans", "Google Sans", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.navbar {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f2f2f2;
}

.navbar-brand {
  color: #555555;
  font-weight: 700;
}

.container {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  width: min(100%, 920px);
}

.center {
  text-align: center;
}

.hero {
  padding: 4.5rem 0 2.6rem;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  max-width: 920px;
  margin: 0 auto;
}

.title-logo {
  flex: 0 0 auto;
  width: clamp(64px, 9vw, 108px);
  height: clamp(64px, 9vw, 108px);
  border-radius: 18px;
}

.publication-title {
  max-width: 800px;
  margin: 0;
  color: #222222;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.publication-authors {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 1.18rem;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
}

.publication-authors span {
  display: inline-block;
}

.publication-venue {
  width: fit-content;
  margin: 0.65rem auto 0;
  color: #555555;
  font-size: 1.05rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 650;
}

.button.dark {
  color: #ffffff;
  background: var(--dark);
}

.button.dark:hover {
  background: #222222;
  text-decoration: none;
}

.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid #f2f2f2;
}

.title {
  margin: 0 0 1.25rem;
  color: #222222;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.content {
  font-size: 1.08rem;
}

.content p {
  margin: 0 0 1rem;
}

.content p:last-child {
  margin-bottom: 0;
}

.justified {
  text-align: justify;
}

strong {
  font-weight: 750;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.3rem 0 1.4rem;
}

.stats-grid div {
  min-height: 128px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--light);
}

.stats-grid strong {
  display: block;
  color: var(--accent);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th,
td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: var(--light);
  font-weight: 750;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.ours td {
  background: #eef7f3;
  font-weight: 750;
}

.figure {
  margin: 1.35rem 0 0;
}

.figure img {
  display: block;
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.figure .paper-image {
  background: #ffffff;
}

.figure .intro-image {
  width: min(100%, 680px);
}

.figure .method-image {
  width: min(100%, 860px);
}

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

figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.96rem;
}

pre {
  overflow-x: auto;
  margin: 1.1rem 0 0;
  padding: 1.1rem;
  border-radius: 10px;
  background: var(--light);
  color: #222222;
  text-align: left;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.footer {
  padding: 2.5rem 0;
  background: #fafafa;
  border-top: 1px solid #f2f2f2;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 3.2rem 0 2.2rem;
  }

  .title-row {
    flex-direction: column;
    gap: 0.9rem;
  }

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

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

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .button {
    min-width: 8rem;
  }
}
