body {
  color: #20242b;
  font-family: "Noto Sans", Arial, sans-serif;
  line-height: 1.65;
}

.topnav {
  border-bottom: 1px solid #eceff3;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.publication-title,
.publication-subtitle,
.publication-authors,
.section-title {
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.project-hero {
  background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 72%);
  border-bottom: 1px solid #eef1f5;
}

.project-hero .hero-body {
  padding: 4.4rem 1.5rem 3.2rem;
}

.venue {
  color: #5a6472;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.publication-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.logo-text {
  font-variant: small-caps;
}

.c-red { color: #c64e45; }
.c-coral { color: #df7a68; }
.c-gold { color: #bd982e; }
.c-green { color: #2f8f69; }
.c-mint { color: #62ad82; }
.c-blue { color: #3e86bd; }
.c-sky { color: #7fb2db; }
.c-deep { color: #2f67ae; }

.publication-subtitle {
  color: #1f2933;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.35;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.publication-authors {
  color: #343b46;
  font-size: 1rem;
  margin: 1.4rem auto 0.5rem;
  max-width: 980px;
}

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

.affiliations {
  color: #5b6470;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.98rem;
  gap: 0.35rem 1.1rem;
  justify-content: center;
  margin: 0.8rem auto 1.35rem;
}

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

.button.is-dark {
  background-color: #1f2933;
}

.button.is-disabled {
  cursor: default;
  opacity: 0.75;
  pointer-events: none;
}

.compact {
  padding-top: 2.7rem;
}

.lead {
  color: #2b323c;
  font-size: 1.15rem;
}

.metric-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 1.7rem;
}

.metric {
  background: #ffffff;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  padding: 1rem 0.8rem;
  text-align: center;
}

.metric strong {
  color: #243447;
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
}

.metric span {
  color: #66717f;
  display: block;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.section {
  padding: 3rem 1.5rem;
}

.section-title {
  color: #17212b;
  margin-bottom: 0.7rem;
  text-align: center;
}

.section-lead {
  color: #4c5664;
  font-size: 1.05rem;
  margin: 0 auto 1.75rem;
  max-width: 860px;
  text-align: center;
}

.light-band {
  background: #ffffff;
  border-bottom: 0;
  border-top: 0;
}

.figure-panel {
  background: #ffffff;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  margin: 1.2rem 0 1.4rem;
  padding: 1rem;
}

.figure-panel.flat {
  margin: 0;
}

.figure-panel img {
  display: block;
  height: auto;
  width: 100%;
}

.figure-panel figcaption {
  color: #5d6876;
  font-size: 0.92rem;
  margin-top: 0.8rem;
  text-align: center;
}

.level-cards {
  margin-top: 0.9rem;
}

.level-card,
.insight {
  background: #ffffff;
  border: 1px solid #e4e9ef;
  border-radius: 8px;
  height: 100%;
  padding: 1rem;
}

.level-card b,
.insight strong {
  color: #243447;
  display: block;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.level-card span,
.insight span {
  color: #5d6876;
  display: block;
  font-size: 0.94rem;
}

.clean-list {
  margin-left: 0;
}

.clean-list li {
  border-bottom: 1px solid #e7ebf0;
  list-style: none;
  padding: 0.85rem 0;
}

.clean-list li:last-child {
  border-bottom: 0;
}

.narrow {
  margin: 0 auto;
  max-width: 900px;
}

.result-table {
  background: #ffffff;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  overflow: auto;
}

.result-table table {
  font-size: 0.9rem;
  margin-bottom: 0;
  min-width: 880px;
}

.result-table th {
  background: #243447;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.result-table td {
  white-space: nowrap;
}

.result-table tr.human td {
  background: #eef7f2;
}

.result-table tr.average td {
  background: #f2f5f8;
  font-weight: 700;
}

.table-note {
  color: #66717f;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  text-align: center;
}

.insight-grid {
  margin-top: 0.8rem;
}

.citation-band {
  background: #ffffff;
}

pre {
  background: #f5f5f5;
  border: 0;
  border-radius: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-x: auto;
  padding: 2.2rem 2.4rem;
  white-space: pre;
  box-shadow: none;
}

pre code {
  font-family:
    "SFMono-Regular",
    "Menlo",
    "Consolas",
    monospace;

  color: inherit;
}

.footer {
  background: #fafbfc;
  border-top: 0;
  color: #5f6977;
  padding: 2rem 1.5rem;
}

@media screen and (max-width: 900px) {
  .publication-title {
    font-size: 3.1rem;
  }

  .metric-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 640px) {
  .project-hero .hero-body {
    padding-top: 3rem;
  }

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

  .publication-subtitle {
    font-size: 1.18rem;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 1rem;
  }

  .content.has-text-justified {
    text-align: left !important;
  }
}

.minimal-stats {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 48px;

  padding: 28px 0;

  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.minimal-item {
  width: 180px;
  text-align: center;
}

.minimal-number {
  font-size: clamp(28px, 3.2vw, 56px);

  line-height: .92;

  font-weight: 850;

  letter-spacing: -0.02em;

  color: #111827;
}

.minimal-label {
  margin-top: 10px;

  font-size: 15px;
  font-weight: 600;

  color: #64748b;

  letter-spacing: -0.01em;

  white-space: nowrap;
}

.minimal-item:first-child .minimal-number {
  color: #2563eb;
}

@media (max-width: 900px) {

  .minimal-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 48px;
  }

  .minimal-item {
    width: 140px;
  }

  .minimal-number {
    font-size: 52px;
  }

}

.result-table {
  overflow-x: auto;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #fff;
}

.sortable-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  color: #3f4650;
}

.sortable-table thead th {
  padding: 12px 14px;
  text-align: center !important;
  vertical-align: middle;
  font-weight: 750;
  color: #3a4048;
  background: #f3f4f6;
  border-bottom: 1px solid #e4e7eb;
  white-space: nowrap;
}

.sortable-table thead tr:first-child th {
  font-size: 17px;
  border-bottom: 0;
}

.sortable-table thead tr:first-child .model-head {
  border-bottom: 1px solid #e4e7eb;
}

.sortable-table thead tr:last-child th {
  border-bottom: 1px solid #e4e7eb;
}

.sortable-table thead tr:first-child th:first-child {
  border-top-left-radius: 8px;
}

.sortable-table thead tr:first-child th:last-child {
  border-top-right-radius: 8px;
}

.sortable-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.sortable-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.model-head {
  width: 260px;
}

.group-head {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.sortable {
  cursor: pointer;
  user-select: none;
  transition: background 160ms ease, color 160ms ease;
}

.sortable:hover {
  background: #e8eef7 !important;
  color: #2563eb;
}

.sort-mark {
  display: inline-block;
  width: 1em;
  margin-left: 4px;
  color: #7b8490;
  font-size: 0.9em;
}

.sortable-table tbody td {
  padding: 13px 14px;
  text-align: center;
  border-bottom: 1px solid #e8edf3;
  background: #f4f8fb;
}

.sortable-table tbody td:first-child {
  text-align: left;
  font-weight: 650;
  color: #2f363f;
}

.sortable-table tbody tr.human td {
  background: #faf7ef;
}

.sortable-table tbody tr.average td {
  background: #f1f0f8;
  font-weight: 850;
}

.sortable-table tbody tr:hover td {
  background: #e7f3ff;
}

.sortable-table strong {
  font-weight: 850;
  color: #111827;
}

.level-grid,
.handdrawn-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
  align-items: stretch;
}

.level-card {
  --accent: var(--blue);

  position: relative;

  min-height: 0;

  padding: 14px 18px 14px;

  border: 2.5px solid #5b6472;

  border-radius: 24px 22px 26px 20px;

  background: #fff;

  box-shadow:
    6px 7px 0 color-mix(in srgb, var(--accent) 20%, transparent);

  transform: rotate(var(--tilt, 0deg));

  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.level-card::before {
  content: "";

  display: block;

  width: 38px;
  height: 8px;

  border-radius: 999px;

  background:
    color-mix(in srgb, var(--accent) 34%, white);

  margin-bottom: 12px;

  transform: rotate(-4deg);
}

.level-card:hover {
  transform: translateY(-4px) rotate(0deg);

  box-shadow:
    7px 9px 0 color-mix(in srgb, var(--accent) 20%, transparent);
}

.level-card b {
  display: block;

  margin-bottom: 12px;

  color: var(--accent);

  font-size: clamp(30px, 2.6vw, 40px);

  line-height: 1;

  font-weight: 900;

  letter-spacing: 0.02em;
}

.level-card span {
  display: block;

  color: #556070;

  font-size: clamp(13px, 0.92vw, 15px);

  line-height: 1.35;

  font-weight: 700;
}

.level-card.l1 {
  --accent: var(--blue);
  --tilt: -0.8deg;
}

.level-card.l2 {
  --accent: var(--green);
  --tilt: 0.5deg;
}

.level-card.l3 {
  --accent: var(--gold);
  --tilt: -0.4deg;
}

.level-card.l4 {
  --accent: var(--coral);
  --tilt: 0.7deg;
}

.arrow-wrap,
.flow-arrow {
  width: 100%;

  margin-top: 20px;

  display: flex;
  justify-content: center;

  color: #94a3b8;
}

.arrow-wrap svg,
.flow-arrow svg {
  width: 520px;

  max-width: 72%;
}

@media (max-width: 900px) {
  .level-grid,
  .handdrawn-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
  }

  .level-card {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  .level-grid,
  .handdrawn-levels {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .level-card {
    min-height: auto;

    padding: 24px 24px 22px;
  }

  .level-card::before {
    margin-bottom: 24px;
  }

  .level-card b {
    font-size: 44px;

    margin-bottom: 14px;
  }

  .level-card span {
    font-size: 17px;
  }

  .arrow-wrap {
    max-width: 520px;
  }
}
