:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --teal: #0f766e;
  --text: #1e293b;
  --muted: #64748b;
  --light: #f8fafc;
  --accent-bg: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.1), 0 2px 4px -2px rgb(15 23 42 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.12), 0 8px 10px -6px rgb(15 23 42 / 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1160px;
  --narrow: 900px;
  --transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.container.narrow {
  width: min(calc(100% - 32px), var(--narrow));
}

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

.justified {
  text-align: justify;
}

.hero {
  position: relative;
  overflow: hidden;
}

.publication-hero {
  padding: 4.4rem 0 3.2rem;
  background: var(--white);
}

.project-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 1.55rem;
  color: #1f7682;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.project-icon {
  display: block;
  width: clamp(44px, 6.8vw, 66px);
  height: clamp(42px, 6.4vw, 62px);
  object-fit: contain;
}

.publication-title {
  margin: 0 auto 1.65rem;
  max-width: 980px;
  color: #111827;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.publication-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.14rem;
  font-weight: 500;
}

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

.author-block:not(:last-child)::after {
  content: ",";
}

.affiliations {
  color: var(--muted);
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
}

.affiliations small {
  color: #94a3b8;
  font-size: 0.9rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.link-block {
  display: inline-flex;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: var(--transition);
}

.button.is-dark {
  background: var(--text);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  background: var(--primary);
  box-shadow: var(--shadow-lg);
}

.button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.brand-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.hf-icon {
  font-size: 0.95rem;
}

.section {
  padding: 4rem 0;
}

.section.hero.is-light {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--light);
}

.section.hero.is-small {
  padding: 2rem 0;
}

.title {
  margin: 0 0 2rem;
  color: var(--text);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.title span {
  color: var(--primary);
}

.feature-card {
  overflow: hidden;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.overview-image {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.overview-image {
  width: min(700px, 100%);
  margin: 0 auto 1.8rem;
}

.main-overview-image {
  width: 100%;
  max-width: 1120px;
  box-shadow: var(--shadow-md);
}

.content {
  color: var(--text);
}

.content p {
  margin: 0 0 1rem;
  color: var(--text);
}

.content .lead {
  color: #dc2626;
  font-weight: 700;
}

.content ul {
  margin: 0;
  padding-left: 1.3rem;
}

.content li + li {
  margin-top: 0.7rem;
}

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

.text-column {
  width: min(100%, 760px);
}

.section-note {
  width: min(100%, 780px);
  margin: -0.7rem auto 1.6rem;
  color: var(--muted);
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

th {
  color: var(--text);
  font-size: 0.88rem;
  vertical-align: middle;
}

td {
  color: var(--muted);
  font-size: 0.94rem;
}

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

td b {
  color: var(--text);
}

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

tbody tr.is-top {
  background: #eff6ff;
}

tbody tr.is-top td {
  color: var(--text);
  font-weight: 700;
}

.metric-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.metric-note {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.metric-note h3 {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 1.05rem;
}

.metric-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer {
  padding: 2.5rem 0;
  background: var(--white);
  color: var(--muted);
  font-size: 0.92rem;
}

.scroll-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  display: block;
}

@media (max-width: 900px) {
  .metric-notes {
    grid-template-columns: 1fr;
  }

  .publication-hero {
    padding-top: 3rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .container,
  .container.narrow {
    width: min(calc(100% - 20px), var(--max));
  }

  .section {
    padding: 3rem 0;
  }

  .publication-title {
    font-size: 1.85rem;
  }

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

  .button {
    width: 100%;
  }

  .link-block {
    width: calc(50% - 0.25rem);
  }

  .feature-card {
    padding: 1.2rem;
  }
}
