/* Main headings match the reference's Geist Sans 30/36, weight 600 scale. */
@font-face{font-family:EmbodiVerseHeading;src:url("../../fonts/geist-heading.woff2") format('woff2');font-style:normal;font-weight:600;font-display:swap}

:is(.home-section h2, .section-heading h1, .section-heading h2, .leaderboard-title,
    #embodiments-title, #comparison-title, .doc-article h1) {
  font-family: EmbodiVerseHeading, HomeInter, Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: normal;
  color: #111;
}

.doc-article :is(h2, h3) {
  font-family: EmbodiVerseHeading, HomeInter, Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
}

/* Controls use a monochrome palette; chart and identity colors retain their roles. */
:where(button, a.button, a.home-resource-button, a.pager-btn) {
  --accent: #111;
  --accent-hover: #333;
  --accent-soft: #f3f3f3;
  --accent-glow: #00000018;
  --brand: #111;
  --brand-strong: #333;
  --brand-soft: #f3f3f3;
}

.home-resource-button {
  color: #111;
  background: #fff;
  border-color: #d1d5db;
  box-shadow: none;
}
.home-resource-button:hover { border-color: #111; background: #f5f5f5; }
.home-resource-button.home-resource-primary,
.button.primary {
  color: #fff;
  background: #111;
  border-color: #111;
  box-shadow: none;
}
.home-resource-button.home-resource-primary:hover,
.button.primary:hover:not(:disabled) {
  color: #fff;
  background: #333;
  border-color: #333;
  box-shadow: none;
}
.button:not(.primary), .cond-pill:not([aria-pressed="true"]),
.filter-tabs button:not(.active), .pagination button, .pager-btn, .copy-code-btn {
  border-color: #d1d5db;
}
.button.outline { color: #111; background: #fff; }
.button.outline:hover:not(:disabled) { color: #111; background: #f5f5f5; border-color: #111; }
.cond-pill[aria-pressed="true"], .filter-tabs button.active {
  color: #fff;
  background: #111;
  border-color: #111;
  box-shadow: none;
}
body :is(button, a.button, a.home-resource-button, a.pager-btn):focus-visible {
  outline-color: #111;
}
.task-preview-loading .task-card-media::after { border-top-color: #111; }

.button:not(.primary), .cond-pill:not([aria-pressed="true"]),
.filter-tabs button:not(.active), .pager-btn, .copy-code-btn,
.api-option, .contract-tab {
  color: #333;
}
.api-option, .contract-tab { background: #fff; border-color: #d1d5db; }
.api-option:hover, .contract-tab:hover { color: #111; border-color: #111; background: #f5f5f5; }
.api-option.active, .api-option[aria-pressed="true"], .contract-tab.active {
  color: #fff;
  background: #111;
  border-color: #111;
}
.eval-tabs { background: #f1f1f1; }
.eval-tabs button { color: #444; background: transparent; }
.eval-tabs button[aria-selected="true"] { color: #111; background: #fff; }

/* Clearer navigation labels over both light pages and the dark opening. */
.site-header { background: rgba(248, 248, 245, .97); }
body.intro-complete .site-header { background: rgba(248, 248, 245, .90); }
.site-header nav :is(a, .nav-pending) { font-size: 15px; }
.site-header nav a:not(.active):not([aria-current="page"]):not(:hover):not(:focus-visible),
.site-header nav .nav-pending { color: #000; }
html[data-hero-theme="dark"] body.hero-in-view .site-header { background: rgba(11, 15, 18, .58); }
html[data-hero-theme="dark"] body.hero-in-view .site-header nav a:not(.active):not([aria-current="page"]):not(:hover):not(:focus-visible),
html[data-hero-theme="dark"] body.hero-in-view .site-header nav .nav-pending { color: #fff; }
#mobile-nav :is(a, .nav-pending) { font-size: 17px; }
#mobile-nav a:not(.active):not([aria-current="page"]),
#mobile-nav .nav-pending { color: #000; }
