:root {
  --text-primary: #161616;
  --text-secondary: #555f6f;
  --background-primary: #ffffff;
  --background-secondary: #fafafa;
  --background-accent: #f5f7fb;
  --border-color: #d9dde5;
  --primary-color: #2f80ed;
  --accent-red: #b92b20;
  --accent-green: #1d7f3a;
  --accent-gold: #a85210;
  --radius: 8px;
}

body {
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--background-primary);
}

.top-nav {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 0.8rem 1rem 0;
}

.nav-brand {
  color: var(--accent-red);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
}

.nav-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 0.78rem;
  color: #4b5563;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent-red);
  background: #f3f5fa;
}

.nav-logo {
  justify-self: end;
  display: flex;
  width: 204px;
  height: 62px;
  align-items: center;
}

.nav-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.publication-title {
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
  text-align: left;
}

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

.paper-title-icon {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.publication-header {
  background: #ffffff;
}

.publication-header .hero-body {
  padding: 3.3rem 1.5rem 4.4rem;
}

.publication-authors {
  color: var(--text-primary);
  margin-top: 1rem;
}

.author-block {
  display: inline-block;
  margin: 0 0.45rem;
}

.publication-authors a,
.author-name {
  color: #2f80ed;
}

.author-name:hover {
  color: var(--accent-red);
}

.eql-cntrb {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.8rem;
  color: var(--text-secondary);
}

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

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

.button.is-dark {
  background: #3f3f3f;
  border: 0;
  font-weight: 700;
  border-radius: 999px;
  transition: background 160ms ease;
}

.button.is-dark:hover {
  background: #222222;
  color: #ffffff;
}

.button.is-light {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #333333;
  font-weight: 700;
  border-radius: 999px;
}

.button.is-light:hover {
  border-color: #c4cbd8;
  background: #f5f7fb;
  color: #111111;
}

.framework-section {
  background: #ffffff;
}

.teaser-image {
  display: block;
  width: min(1060px, 100%);
  margin: 1.4rem auto 0;
}

.figure-caption {
  max-width: 780px;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
  text-align: center;
}

.section {
  padding: 3.6rem 1.5rem;
}

.title.is-3 {
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.content.has-text-justified {
  color: #4e4e4e;
  font-size: 1.08rem;
  line-height: 1.8;
}

.section-lead {
  max-width: 820px;
  margin: 0.6rem auto 1.6rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.result-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.2rem auto 2rem;
}

.highlight-item {
  display: block;
  min-width: 210px;
  padding: 0.3rem 0.8rem;
  text-align: center;
}

.highlight-value {
  display: block;
  color: var(--accent-red);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.highlight-label {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.35;
}

.result-panel {
  margin: 2.2rem auto;
}

.result-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.narrow-panel {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid #202020;
  border-radius: 0;
  background: transparent;
  padding: 0 0 0.65rem;
}

.panel-heading h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
}

.table-kicker {
  flex: 0 0 auto;
  margin: 0;
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.paper-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-bottom: 2px solid #202020;
}

.paper-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: #111827;
  font-family: "Castoro", Georgia, serif;
  font-size: 0.92rem;
}

.paper-table.compact {
  min-width: 0;
}

.paper-table.atbench-table {
  min-width: 980px;
}

.paper-table th,
.paper-table td {
  border-bottom: 1px solid #d8d8d8;
  padding: 0.42rem 0.56rem;
  text-align: center;
  vertical-align: middle;
}

.paper-table th {
  background: #ffffff;
  border-bottom: 1.5px solid #202020;
  color: #0f172a;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.paper-table .fate-row td {
  background: #f4fbf6;
  font-weight: 800;
}

.group-row td {
  background: #f8f8f8;
  color: var(--text-secondary);
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 700;
  text-align: left;
}

.delta {
  display: inline-block;
  margin-left: 0.12rem;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.delta.good {
  color: var(--accent-green);
}

.best {
  font-weight: 800;
}

.second {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.curve-result {
  margin: 0;
  padding: 1.35rem 0 0;
}

.curve-result img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
  background: #ffffff;
}

pre {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--background-accent);
  color: var(--text-primary);
  padding: 1.4rem;
  white-space: pre;
  overflow-x: auto;
}

code {
  color: inherit;
  background: transparent;
}

.footer {
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  padding: 2rem 1.5rem;
}

.footer a {
  color: var(--primary-color);
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .top-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.45rem;
    padding-top: 0.7rem;
  }

  .nav-links {
    order: 3;
  }

  .nav-links a {
    min-height: 34px;
    padding: 0 0.52rem;
    font-size: 0.9rem;
  }

  .nav-logo {
    width: 174px;
    height: 54px;
    justify-self: center;
  }

  .publication-header .hero-body {
    padding: 2.2rem 1rem 3rem;
  }

  .publication-title {
    font-size: 2rem;
    text-align: left;
  }

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

  .paper-title-icon {
    width: 76px;
    height: 76px;
  }

  .eql-cntrb {
    flex-direction: column;
    gap: 0.2rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .result-two-column {
    grid-template-columns: 1fr;
  }

  .result-highlights {
    gap: 0.75rem;
  }

  .panel-heading {
    display: block;
  }

  .panel-heading h3 {
    margin-top: 0.35rem;
  }

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

  .paper-table th,
  .paper-table td {
    padding: 0.36rem 0.48rem;
  }
}
