html {
  scroll-padding-top: 3.75rem;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.site-nav .navbar-item {
  font-family: 'Google Sans', sans-serif;
  color: #444;
}

.site-nav .navbar-item:hover,
.site-nav .navbar-item:focus,
.site-nav .navbar-item.is-active {
  color: #A44BA7;
  background: transparent;
}

.site-nav-brand {
  font-weight: 700;
  color: #A44BA7 !important;
}

.site-nav .navbar-burger {
  color: #A44BA7;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

.publication-title .mmbu-accent {
  color: #A44BA7;
}

.challenge-logo-link {
  display: block;
  margin: 1.75rem auto 0;
}

.challenge-logo {
  display: block;
  width: min(100%, 960px);
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.publication-subtitle {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  color: #555;
}

.publication-authors {
  line-height: 1.8;
}

.publication-authors a {
  color: #A44BA7;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.affiliation-block {
  display: inline-block;
  margin: 0 0.4rem;
  color: #666;
}

.button.is-mmbu {
  background-color: #A44BA7;
  color: white;
}

.button.is-mmbu:hover {
  background-color: #8a3d8d;
  color: white;
}

.publication-links .button {
  margin: 0.25rem;
}

/* TL;DR-style highlight box (purple for MMBU) */
.tldr-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.tldr-box {
  background: linear-gradient(135deg, #f3e0f8 0%, #e4c4ed 100%);
  border-left: 5px solid #A44BA7;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tldr-box .title {
  color: #7a3580;
  margin-bottom: 0.75rem;
}

.tldr-box p {
  margin-bottom: 0;
  line-height: 1.7;
  text-align: justify;
}

.tldr-box ul {
  margin-top: 0.75rem;
  margin-left: 1.25rem;
}

.tldr-box li {
  margin-bottom: 0.4rem;
}

.notice-box {
  margin-top: 1.25rem;
  background: white;
  border: 2px solid #A44BA7;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(164, 75, 167, 0.1);
}

.notice-box .title {
  color: #A44BA7;
  margin-bottom: 0.5rem;
}

.notice-box p {
  margin-bottom: 0;
  line-height: 1.65;
  color: #444;
}

.notice-box a {
  color: #A44BA7;
  font-weight: 700;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.sponsor-logos li {
  display: flex;
  align-items: center;
}

.sponsor-logos img {
  display: block;
  width: auto;
}

.sponsor-anthropic { height: 22px; }
.sponsor-gxl { height: 36px; }
.sponsor-stanford { height: 54px; }
.sponsor-biohub { height: 30px; }
.sponsor-highlanders { height: 24px; }

.notice-box .hf-link {
  margin-top: 0.85rem;
  word-break: break-word;
}

.results-findings {
  margin-bottom: 2.5rem;
}

.result-card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #e4c4ed;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.result-card:hover {
  box-shadow: 0 4px 14px rgba(164, 75, 167, 0.12);
  border-top-color: #A44BA7;
}

.result-card--lead {
  border-top: none;
  border-left: 5px solid #A44BA7;
  background: linear-gradient(135deg, #ffffff 0%, #faf5fc 100%);
}

.result-card .title {
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.result-card .title i {
  color: #A44BA7;
  margin-right: 0.45rem;
}

.result-card p {
  color: #444;
  line-height: 1.65;
  margin-bottom: 0;
}

.conclusion-box {
  margin-top: 0.5rem;
}

.conclusion-box p {
  margin-bottom: 0;
  line-height: 1.7;
  text-align: justify;
}

.result-figure img {
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.result-figure {
  margin: 1.5rem 0;
}

.result-figure figcaption {
  color: #555;
  margin-top: 0.75rem;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.method-card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.method-card .title {
  margin-bottom: 0.5rem;
}

.method-card .title i {
  color: #A44BA7;
  margin-right: 0.4rem;
}

.finding-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.finding-card .heading {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  font-size: 0.85rem;
}

.finding-card .title {
  color: #A44BA7;
  margin: 0.25rem 0;
}

.bibtex-box {
  position: relative;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1.25rem;
}

.bibtex-box pre {
  background: transparent;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  font-size: 0.85rem;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.footer {
  padding: 2rem 1.5rem;
  background: #fafafa;
}

.footer a {
  color: #A44BA7;
}

.leaderboard {
  margin: 0.5rem 0 2.5rem;
}

.leaderboard-intro,
.leaderboard-note {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.leaderboard-note {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.bench-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.bench-card {
  background: transparent;
  border: 0;
  padding: 0 0 0.5rem;
  margin: 0;
}

.bench-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 0.2rem;
  text-align: left;
}

.bench-note {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 0.7rem;
}

.domain-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.domain-tabs button {
  border: 1px solid #e4c4ed;
  background: #fff;
  color: #444;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.3;
  cursor: pointer;
}

.domain-tabs button:hover {
  border-color: #A44BA7;
  color: #7a3580;
}

.domain-tabs button.is-selected {
  background: #A44BA7;
  border-color: #A44BA7;
  color: #fff;
}

.domain-tabs button:focus-visible {
  outline: 2px solid #7a3580;
  outline-offset: 2px;
}

.split-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.7rem;
}

.split-controls .domain-tabs {
  margin-bottom: 0;
}

.split-select-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #444;
  font-size: 0.85rem;
}

.split-select-label select {
  border: 1px solid #e4c4ed;
  background: #fff;
  color: #222;
  border-radius: 8px;
  padding: 0.28rem 0.55rem;
  font-size: 0.85rem;
  max-width: min(100%, 360px);
}

.split-select-label select:focus-visible {
  outline: 2px solid #7a3580;
  outline-offset: 2px;
}

.domain-note {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0 0 0.55rem;
}

.umap-wrap {
  position: relative;
  margin-top: 0.25rem;
}

.umap-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.25rem;
  align-items: start;
}

.umap-panel {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 0.35rem;
}

.umap-legend {
  display: flex;
  flex-wrap: wrap;
  align-content: end;
  gap: 0.45rem 0.9rem;
  margin-bottom: 0;
  color: #333;
  font-size: 0.82rem;
}

.umap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.umap-swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.umap-swatch-private {
  background: #0072B2;
}

.umap-swatch-public {
  background: #E69F00;
}

.umap-plot {
  position: relative;
}

.umap-plot canvas {
  display: block;
  width: 100%;
  height: 420px;
  cursor: crosshair;
  background: #fff;
}

.bench-chart {
  position: relative;
  background: transparent;
  padding: 0.4rem 0.35rem 0.35rem 0;
}

@media screen and (max-width: 900px) {
  .umap-panels {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  .umap-panel {
    display: block;
    grid-row: auto;
  }

  .umap-legend {
    margin-bottom: 0.35rem;
  }
}

.bench-plot {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: 360px 128px;
}

.bench-yaxis {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  border-right: 1px solid #222;
}

.bench-yaxis-label {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  font-size: 0.78rem;
  color: #333;
  white-space: nowrap;
}

.bench-tick {
  position: absolute;
  right: 8px;
  transform: translateY(50%);
  font-size: 0.78rem;
  color: #333;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bench-bars {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #222;
}

.bench-gridline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #ececec;
  pointer-events: none;
}

.bench-gridline:first-child {
  border-top-color: transparent;
}

.bench-col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  outline: none;
}

.bench-col:focus-visible .bench-bar {
  outline: 2px solid #222;
  outline-offset: 2px;
}

.bench-bar {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  box-sizing: border-box;
  border: 1px solid #000;
  border-radius: 1px 1px 0 0;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.bench-value {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  margin-top: -4px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: #222;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.bench-labels {
  grid-column: 2;
  grid-row: 2;
  display: flex;
}

.bench-label {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  height: 128px;
}

.bench-label span {
  position: absolute;
  top: 10px;
  left: 42%;
  transform: rotate(48deg);
  transform-origin: left top;
  white-space: nowrap;
  font-size: 0.78rem;
  color: #333;
  line-height: 1;
}

.bench-chart.is-hovering .bench-col {
  opacity: 0.38;
}

.bench-chart.is-hovering .bench-col.is-active {
  opacity: 1;
}

.bench-chart.is-hovering .bench-col.is-active .bench-bar {
  filter: brightness(1.05);
}

.bench-tip {
  position: absolute;
  z-index: 5;
  min-width: 168px;
  max-width: 220px;
  padding: 0.55rem 0.7rem;
  background: #1c1c1c;
  color: #fff;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.bench-tip strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 0.15rem;
  color: #fff;
}

.bench-tip .bench-tip-score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.5rem !important;
  }

  .publication-subtitle {
    font-size: 1.1rem !important;
  }

  .tldr-box {
    padding: 1rem 1.25rem;
  }

  .notice-box {
    padding: 1rem 1.25rem;
  }
}
