@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Carlito"), url("../assets/fonts/carlito-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Carlito Bold"), local("Carlito-Bold"), url("../assets/fonts/carlito-latin-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #050d14;
  --surface: #0a1722;
  --surface-2: #102334;
  --surface-3: #173047;
  --text: #f2f8ff;
  --muted: #a8bacb;
  --line: rgba(157, 176, 196, 0.2);
  --accent: #6ee7d2;
  --accent-soft: rgba(110, 231, 210, 0.12);
  --blue: #7fa8ff;
  --purple: #bd8cff;
  --warm: #ffbf69;
  --max-width: 1180px;
  font-family: "Carlito", "Calibri", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 300px;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(110, 231, 210, 0.1), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(127, 168, 255, 0.1), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body[data-group="llm"] {
  --accent: var(--blue);
  --accent-soft: rgba(127, 168, 255, 0.12);
}

body[data-group="sorting"] {
  --accent: var(--warm);
  --accent-soft: rgba(255, 191, 105, 0.12);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 68px;
  padding: 10px max(24px, calc((100% - var(--max-width)) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 20, 0.86);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(110, 231, 210, 0.4);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(110, 231, 210, 0.2), rgba(127, 168, 255, 0.12));
  color: #d9fff8;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-header nav a:hover,
footer a:hover {
  color: var(--text);
}

.header-cta {
  padding: 7px 12px;
  border: 1px solid rgba(110, 231, 210, 0.3);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.breadcrumbs {
  padding: 22px 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 8px;
  color: #607488;
  content: "/";
}

.breadcrumbs li {
  overflow-wrap: anywhere;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.article-hero,
.docs-hero {
  padding: clamp(46px, 7vw, 84px) 0 54px;
  border-bottom: 1px solid var(--line);
}

.article-kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
}

.article-kicker span {
  width: 30px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.article-lead,
.docs-hero > p {
  max-width: 790px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  margin-bottom: 42px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #07131b;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(16, 35, 52, 0.7);
}

.quick-facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 23, 34, 0.62);
}

.quick-facts div {
  min-width: 0;
  padding: 18px 20px;
}

.quick-facts div + div {
  border-left: 1px solid var(--line);
}

.quick-facts dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  line-height: 1.4;
}

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.quick-facts code {
  color: var(--accent);
  font-size: 0.84rem;
}

.article-layout {
  display: grid;
  padding: 52px 0 76px;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: clamp(48px, 8vw, 100px);
}

.article-content {
  min-width: 0;
}

.article-content > section {
  margin-bottom: 62px;
}

.article-content h2,
.docs-group h2 {
  margin-bottom: 20px;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.article-content h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.article-content p {
  color: #c3d0dc;
}

.article-content p code,
.inline-math {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9em;
}

.learning-objectives,
.tutorial-panel,
.reference-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 23, 34, 0.62);
}

.learning-objectives {
  margin-top: 22px;
  border-left: 3px solid var(--accent);
}

.learning-objectives h3 {
  margin-bottom: 10px;
}

.learning-objectives ul,
.bullet-list {
  margin: 0;
  padding-left: 21px;
  color: #c3d0dc;
}

.learning-objectives li + li,
.bullet-list li + li {
  margin-top: 6px;
}

.tool-summary {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 23, 34, 0.55);
}

.tool-summary div {
  min-width: 0;
  padding: 14px 16px;
}

.tool-summary div + div {
  border-left: 1px solid var(--line);
}

.tool-summary span,
.tutorial-eyebrow,
.install-command > span,
.reference-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-summary strong {
  font-size: 0.94rem;
}

.inline-math,
.math-expression {
  font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", "Noto Sans Math", "Times New Roman", serif;
  font-variant-numeric: lining-nums;
  overflow-wrap: anywhere;
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.process-list li {
  display: grid;
  padding: 18px;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(10, 23, 34, 0.6);
}

.process-list li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.process-list p {
  margin: 0;
}

.formula-panel {
  position: relative;
  margin-bottom: 18px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(16, 35, 52, 0.58));
}

.formula-panel::after {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  bottom: -100px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  filter: blur(65px);
  opacity: 0.2;
}

.formula-panel .math-expression {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.55;
}

.formula-panel .formula-notation {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--muted);
  font-family: "Carlito", "Calibri", "Segoe UI", Arial, sans-serif;
  font-size: .9rem;
  line-height: 1.5;
}

.note-card {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
}

.note-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
}

.note-card p {
  margin: 0;
}

.code-heading {
  display: flex;
  padding: 10px 14px;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: #061019;
  color: #d7e3ed;
  font-size: 0.82rem;
  line-height: 1.65;
  tab-size: 4;
}

.code-note {
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgba(16, 35, 52, 0.52);
}

.code-note + * {
  margin-top: 0;
}

.code-note strong {
  color: var(--accent);
}

.code-note p {
  margin: 3px 0 0;
  font-size: 0.9rem;
}

.code-note + .code-heading {
  margin-top: 18px;
}

.tutorial-panel {
  display: grid;
  margin: 22px 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr);
  gap: 20px;
}

.tutorial-panel h3 {
  margin-bottom: 7px;
}

.tutorial-panel p {
  margin: 0;
  font-size: 0.92rem;
}

.install-command {
  align-self: stretch;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 10px;
  background: #061019;
}

.install-command code {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.tutorial-steps {
  display: grid;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: tutorial-step;
  gap: 10px;
  list-style: none;
}

.tutorial-steps li {
  position: relative;
  display: grid;
  min-height: 48px;
  padding: 12px 14px 12px 52px;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  counter-increment: tutorial-step;
}

.tutorial-steps li::before {
  position: absolute;
  top: 10px;
  left: 4px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  content: counter(tutorial-step);
  font-weight: 700;
}

.tutorial-steps span {
  color: var(--muted);
  font-size: 0.9rem;
}

.official-reference {
  margin-top: 13px;
  font-size: 0.9rem;
}

.official-reference a {
  color: var(--accent);
  font-weight: 700;
}

.insight-list,
.checklist {
  display: grid;
  margin: 20px 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.insight-list li {
  padding: 15px 17px 15px 43px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(10, 23, 34, 0.55);
}

.evaluation-list li,
.pitfall-list li {
  position: relative;
}

.evaluation-list li::before,
.pitfall-list li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--accent);
  content: "✓";
  font-weight: 700;
}

.pitfall-list li::before {
  color: var(--warm);
  content: "!";
}

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

.checklist li {
  display: grid;
  padding: 14px 16px;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(10, 23, 34, 0.55);
}

.checklist li span {
  color: var(--accent);
  font-weight: 700;
}

.reference-card {
  display: flex;
  margin: 20px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reference-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.12rem;
}

.reference-card p {
  max-width: 560px;
  margin: 0;
  font-size: 0.9rem;
}

.reference-card .button {
  flex: 0 0 auto;
}

.interactive-callout {
  display: flex;
  padding: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(110, 231, 210, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 55%),
    rgba(10, 23, 34, 0.74);
}

.interactive-callout h2 {
  margin-bottom: 10px;
}

.interactive-callout p:last-child {
  margin-bottom: 0;
}

.interactive-callout .button {
  flex: 0 0 auto;
}

.related-grid,
.docs-grid {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.related-grid {
  grid-template-columns: repeat(3, 1fr);
}

.related-grid a {
  display: flex;
  height: 100%;
  padding: 16px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 23, 34, 0.55);
}

.related-grid a:hover,
.docs-grid a:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
}

.related-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.article-pager {
  display: grid;
  padding-top: 26px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.pager-link {
  display: flex;
  padding: 15px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pager-link:hover {
  border-color: var(--accent);
}

.pager-link span {
  color: var(--muted);
  font-size: 0.76rem;
}

.pager-next {
  text-align: right;
}

.table-of-contents {
  position: sticky;
  top: 96px;
  height: max-content;
  max-height: calc(100vh - 116px);
  padding-left: 18px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
}

.table-of-contents > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.table-of-contents nav {
  display: flex;
  flex-direction: column;
}

.table-of-contents a {
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.table-of-contents a:hover {
  color: var(--accent);
}

.updated {
  display: grid;
  margin-top: 18px;
  gap: 3px;
  color: #71869a;
  font-size: 0.72rem;
}

.updated a:hover {
  color: var(--accent);
}

.docs-hero {
  padding-bottom: 64px;
}

.docs-hero h1 {
  max-width: none;
}

.guide-overview,
.toolkit {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.guide-overview > header {
  max-width: 760px;
  margin-bottom: 26px;
}

.guide-overview h2,
.toolkit h2 {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.guide-overview > header > p:last-child,
.toolkit > div > p:last-child {
  color: var(--muted);
}

.guide-features,
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.guide-features article,
.toolkit-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(10, 23, 34, 0.55);
}

.guide-features article > span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.guide-features h3 {
  margin-bottom: 7px;
  font-size: 1.04rem;
}

.guide-features p,
.toolkit-grid span {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.toolkit {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 40px;
}

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

.toolkit-grid article {
  display: grid;
  gap: 6px;
}

.group-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.group-jump a {
  display: inline-flex;
  padding: 9px 12px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 23, 34, 0.64);
  font-weight: 700;
}

.group-jump a:hover {
  border-color: var(--accent);
}

.group-jump span {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
}

.docs-group {
  padding: 70px 0;
  scroll-margin-top: 68px;
  border-bottom: 1px solid var(--line);
}

.docs-group > header {
  display: grid;
  margin-bottom: 28px;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: end;
  gap: 36px;
}

.docs-group > header h2 {
  margin-bottom: 0;
}

.docs-group > header > p {
  margin-bottom: 4px;
  color: var(--muted);
}

.docs-grid {
  grid-template-columns: repeat(3, 1fr);
}

.docs-grid a {
  display: flex;
  min-height: 230px;
  padding: 20px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(16, 35, 52, 0.72), rgba(10, 23, 34, 0.52));
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.docs-grid a:hover {
  transform: translateY(-3px);
}

.doc-card-category {
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docs-grid strong {
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.docs-grid p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.doc-card-link {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

footer {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 100px;
  margin: 0 auto;
  padding: 24px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

footer p {
  margin: 0;
}

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

  .table-of-contents {
    display: none;
  }

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

  .quick-facts,
  .guide-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-facts div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .quick-facts div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 60px;
    padding: 8px 16px;
  }

  .brand > span:last-child,
  .site-header nav > a:not(.header-cta) {
    display: none;
  }

  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .article-hero,
  .docs-hero {
    padding: 38px 0 42px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .quick-facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .article-layout {
    padding: 44px 0 60px;
  }

  .article-content > section {
    margin-bottom: 52px;
  }

  .interactive-callout,
  footer,
  .docs-group > header,
  .reference-card,
  .toolkit {
    display: block;
  }

  .tool-summary,
  .tutorial-panel,
  .checklist,
  .guide-features,
  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .tool-summary div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .reference-card .button {
    width: 100%;
    margin-top: 14px;
  }

  .guide-overview,
  .toolkit {
    padding: 44px 0;
  }

  .toolkit-grid {
    margin-top: 22px;
  }

  .interactive-callout .button {
    width: 100%;
    margin-top: 8px;
  }

  .related-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .article-pager {
    grid-template-columns: 1fr;
  }

  .pager-next {
    text-align: left;
  }

  .docs-group {
    padding: 52px 0;
  }

  .docs-group > header > p {
    margin-top: 12px;
  }

  .docs-grid a {
    min-height: 200px;
  }

  footer nav {
    margin-top: 12px;
    flex-wrap: wrap;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f7fb;
    --surface: #ffffff;
    --surface-2: #eaf1f7;
    --surface-3: #dce8f1;
    --text: #132536;
    --muted: #5c7084;
    --line: rgba(43, 69, 91, 0.18);
    --accent: #087e70;
    --accent-soft: rgba(8, 126, 112, 0.1);
    --blue: #3f69c7;
    --purple: #754db3;
    --warm: #a95708;
  }

  body {
    background:
      radial-gradient(circle at 15% 0%, rgba(8, 126, 112, 0.08), transparent 34rem),
      radial-gradient(circle at 86% 12%, rgba(63, 105, 199, 0.08), transparent 32rem),
      var(--bg);
  }

  body[data-group="llm"] {
    --accent-soft: rgba(63, 105, 199, 0.1);
  }

  body[data-group="sorting"] {
    --accent-soft: rgba(169, 87, 8, 0.1);
  }

  .site-header {
    background: rgba(243, 247, 251, 0.88);
  }

  .brand-mark {
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    background: linear-gradient(145deg, var(--accent-soft), rgba(63, 105, 199, 0.08));
    color: var(--accent);
  }

  .button.primary {
    color: #ffffff;
  }

  .button.secondary,
  .group-jump a {
    background: rgba(255, 255, 255, 0.78);
  }

  .article-content p {
    color: #435c70;
  }

  .quick-facts,
  .learning-objectives,
  .tool-summary,
  .process-list li,
  .tutorial-panel,
  .insight-list li,
  .checklist li,
  .reference-card,
  .related-grid a,
  .guide-features article,
  .toolkit-grid article {
    background: rgba(255, 255, 255, 0.8);
  }

  .formula-panel {
    background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.84));
  }

  .code-note {
    background: rgba(234, 241, 247, 0.8);
  }

  .interactive-callout {
    background:
      radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 55%),
      rgba(255, 255, 255, 0.82);
  }

  .docs-grid a {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(234, 241, 247, 0.78));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
