treant 0.4.0

High-performance, lock-free Monte Carlo Tree Search library for Rust.
Documentation
/**
 * Theme 08: Blueprint
 *
 * Engineering blueprint aesthetic. Grid paper background with drafting pen
 * precision. Archivo for clean technical headings, Source Code Pro for code.
 * Subtle blue-tinted paper in light mode, deep navy in dark mode.
 */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Source+Code+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ifm-color-primary: #1e3a5f;
  --ifm-color-primary-dark: #1a3352;
  --ifm-color-primary-darker: #172e4a;
  --ifm-color-primary-darkest: #12243b;
  --ifm-color-primary-light: #274a73;
  --ifm-color-primary-lighter: #305a87;
  --ifm-color-primary-lightest: #3d6f9e;

  --ifm-font-family-base: 'Archivo', system-ui, sans-serif;
  --ifm-font-family-monospace: 'Source Code Pro', 'Consolas', monospace;
  --ifm-code-font-size: 93%;
  --ifm-border-radius: 2px;
  --ifm-background-color: #f0f4f8;
  --docusaurus-highlighted-code-line-bg: rgba(30, 58, 95, 0.06);
}

[data-theme='dark'] {
  --ifm-color-primary: #4a90d9;
  --ifm-color-primary-dark: #3a80c9;
  --ifm-color-primary-darker: #2e74bd;
  --ifm-color-primary-darkest: #2564a8;
  --ifm-color-primary-light: #5e9ee0;
  --ifm-color-primary-lighter: #72ace7;
  --ifm-color-primary-lightest: #8ebeee;

  --ifm-background-color: #0d1b2a;
  --docusaurus-highlighted-code-line-bg: rgba(74, 144, 217, 0.1);
}

/* ── Grid paper background ── */

body {
  background-image:
    repeating-linear-gradient(
      0deg, transparent, transparent 39px,
      rgba(30, 58, 95, 0.06) 39px, rgba(30, 58, 95, 0.06) 40px
    ),
    repeating-linear-gradient(
      90deg, transparent, transparent 39px,
      rgba(30, 58, 95, 0.06) 39px, rgba(30, 58, 95, 0.06) 40px
    );
  background-size: 40px 40px;
}

[data-theme='dark'] body {
  background-image:
    repeating-linear-gradient(
      0deg, transparent, transparent 39px,
      rgba(74, 144, 217, 0.05) 39px, rgba(74, 144, 217, 0.05) 40px
    ),
    repeating-linear-gradient(
      90deg, transparent, transparent 39px,
      rgba(74, 144, 217, 0.05) 39px, rgba(74, 144, 217, 0.05) 40px
    );
  background-size: 40px 40px;
}

/* ── Home page syntax highlighting ── */

/* Light mode */
.keyword  { color: #1e3a5f; }
.type     { color: #2563eb; }
.comment  { color: #64748b; }
.string   { color: #1e3a5f; }
.lifetime { color: #dc2626; }

/* Dark mode */
[data-theme='dark'] .keyword  { color: #60a5fa; }
[data-theme='dark'] .type     { color: #93c5fd; }
[data-theme='dark'] .comment  { color: #64748b; }
[data-theme='dark'] .string   { color: #7dd3fc; }
[data-theme='dark'] .lifetime { color: #fca5a5; }