:root {
  --text: #363636;
  --link: #3273dc;
  --light: #f5f5f5;
  --dark: #363636;
  --border: #dbdbdb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero {
  background: #fff;
}

.hero.is-light,
.section.is-light {
  background: var(--light);
}

.hero-body {
  padding: 3rem 1.5rem 1.8rem;
}

.section {
  padding: 3rem 1.5rem;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.is-max-desktop {
  max-width: 960px;
}

.columns {
  display: flex;
  justify-content: center;
}

.column {
  width: 100%;
}

.is-four-fifths {
  max-width: 820px;
}

.has-text-centered {
  text-align: center;
}

.has-text-justified {
  text-align: justify;
}

.title {
  margin: 0 0 1.2rem;
  color: #363636;
  font-weight: 600;
  line-height: 1.125;
}

.title.is-1,
.publication-title {
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
}

.title.is-3 {
  font-size: 2rem;
}

.title.is-4 {
  font-size: 1.45rem;
}

.subtitle {
  color: #4a4a4a;
  font-size: 1.1rem;
  font-weight: 400;
}

.publication-authors {
  color: #4a4a4a;
  font-size: 1.2rem;
  line-height: 1.5;
}

.author-block {
  display: inline-block;
}

.author-block sup {
  font-size: 0.7em;
  color: #3273dc;
  vertical-align: super;
}

.author-affiliations {
  margin-top: 0.6rem;
  color: #6b6b6b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.affil-block {
  display: inline-block;
  margin: 0 0.6rem;
}

.affil-block sup {
  font-size: 0.75em;
  color: #3273dc;
  vertical-align: super;
}

.publication-venue {
  margin-top: 0.65rem;
  color: #4a4a4a;
  font-size: 1.35rem;
}

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

.link-block {
  display: inline-block;
  margin: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
  padding: 0.45em 1.05em;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: #fff;
  color: #363636;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  text-decoration: none;
}

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

.button.is-dark:hover {
  background: #292929;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.45rem;
}

.github-icon svg {
  display: block;
}

.content {
  color: #363636;
}

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

.content ul {
  margin: 1rem 0 1rem 1.4rem;
  padding: 0;
}

.content li {
  margin: 0.35rem 0;
}

figure {
  margin: 1.5rem 0 0;
}

figcaption,
.caption {
  max-width: 820px;
  margin: 0.8rem auto 0;
  color: #4a4a4a;
  font-size: 0.95rem;
  text-align: center;
}

.image-wide {
  width: 100%;
}

.image-medium {
  width: 82%;
}

.figure-with-caption {
  margin-left: auto;
  margin-right: auto;
}

.figure-with-caption figcaption {
  max-width: 100%;
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
  margin-top: 1.5rem;
}

.image-pair figure {
  margin-top: 0;
}

.tool-pair {
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
}

.domain-list {
  margin-top: 1rem;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.8rem 0 0;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  padding: 1rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pipeline-step:hover {
  box-shadow: 0 4px 16px rgba(50,115,220,0.13);
  border-color: #3273dc;
}

.pipeline-icon {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.pipeline-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #363636;
  margin-bottom: 0.3rem;
  text-align: center;
}

.pipeline-desc {
  font-size: 0.78rem;
  color: #6b6b6b;
  text-align: center;
  line-height: 1.4;
}

.pipeline-arrow {
  font-size: 1.5rem;
  color: #3273dc;
  font-weight: 700;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pipeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .pipeline-step {
    width: 80%;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 0.3rem 0;
  }
}

.table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
}

table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.82rem;
}

th,
td {
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

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

th {
  background: #fafafa;
  font-weight: 700;
}

.results-table thead th {
  text-align: center;
  vertical-align: middle;
}

.results-table tbody td {
  text-align: center;
}

.results-table tbody td:first-child {
  text-align: left;
}

.results-table sup.gain {
  margin-left: 0.1rem;
  color: #6b6b6b;
  font-size: 0.7em;
  font-weight: 400;
}

.group-row td {
  background: #f5f5f5;
  color: #4a4a4a;
  font-style: italic;
  font-weight: 700;
  text-align: left;
}

.avg td {
  background: #fafafa;
  font-weight: 700;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 1.25rem;
  border-radius: 4px;
  background: #f5f5f5;
  color: #363636;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.footer {
  padding: 3rem 1.5rem;
  background: #fafafa;
  color: #4a4a4a;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .hero-body {
    padding-top: 2.2rem;
  }

  .title.is-1,
  .publication-title {
    font-size: 2rem;
  }

  .title.is-3 {
    font-size: 1.65rem;
  }

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

  .publication-venue {
    font-size: 1.05rem;
  }

  .has-text-justified {
    text-align: left;
  }

  .image-medium {
    width: 100%;
  }

  .image-pair {
    grid-template-columns: 1fr;
  }

  .tool-pair {
    grid-template-columns: 1fr;
  }
}
