/* Series colours for AI Environment: the website takes the palette of the book's cover (graphite grey with green for nature),
   as the diagrams do (docs/mermaid-geon-theme.json). Overrides the MkDocs readthedocs theme;
   layout and typography are unchanged. Ink #101514, grey #4A5551, leaf green #6FBF8A, mark #8EE0A1. */

:root {
  --book-dark: #0A0D0C;
  --book-primary: #1D2522;
  --book-strong: #444C48;
  --book-accent: #6FBF8A;
  --book-tint: #E3E7E5;
  --book-paper: #F5F7F6;
  --env-dark: #101514;
  --env-darker: #0A0D0C;
  --env-grey: #4A5551;
  --env-grey-deep: #333C39;
  --env-green: #6FBF8A;
  --env-green-soft: #C5E6D0;
  --env-mist: #F4F7F5;
  --env-mist-line: #D5DFD9;
  --env-text-on-dark: #DDE6E0;
}

/* Header, search and mobile top bar (default theme blue #2980b9) */
.wy-side-nav-search,
.wy-nav-top {
  background-color: var(--env-grey);
}

.wy-side-nav-search input[type=text] {
  border-color: var(--env-grey-deep);
}

.wy-side-nav-search input[type=text]:focus {
  outline: 2px solid var(--env-green);
}

/* Sidebar (default theme grey #343131) */
.wy-nav-side {
  background: var(--env-dark);
}

.wy-menu-vertical header,
.wy-menu-vertical p.caption {
  color: var(--env-green);
}

.wy-menu-vertical a {
  color: var(--env-text-on-dark);
}

.wy-menu-vertical a:hover {
  background-color: #1C2421;
  color: #ffffff;
}

.wy-menu-vertical li.current {
  background: var(--env-mist);
}

.wy-menu-vertical li.current > a,
.wy-menu-vertical li.current li > a {
  color: #1B2320;
}

.wy-menu-vertical li.current a:hover,
.wy-menu-vertical li.current li > a:hover {
  background: #DDE6E0;
}

.wy-menu-vertical li.toctree-l1.current > a {
  border-color: var(--env-mist-line);
  background: #E6EDE9;
}

.wy-menu-vertical li.toctree-l2.current > a,
.wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a {
  background: #EDF2EF;
}

/* Links in the content (default theme blue) */
.wy-nav-content a,
.rst-content a {
  color: var(--env-grey);
}

.wy-nav-content a:hover,
.rst-content a:hover {
  color: var(--env-grey-deep);
}

.wy-nav-content a:visited,
.rst-content a:visited {
  color: #4F3190;
}

/* Page background and tables */
.wy-nav-content {
  background: #FCFAFF;
}

.rst-content table.docutils thead th,
.rst-content table thead th,
table thead th {
  background-color: #E6ECE8;
  color: #101514;
}

.rst-content table.docutils td,
.rst-content table td {
  border-color: var(--env-mist-line);
}

blockquote {
  border-left: 4px solid var(--env-green);
  background: #F6F9F7;
}

/* Code blocks: the Read the Docs theme highlights code for a light background,
   so the blocks stay light and take a warm tint */
.highlight,
.rst-content pre.literal-block,
.rst-content div[class^=highlight] {
  background: #F6F9F7;
  border: 1px solid var(--env-mist-line);
}

.highlight pre,
.rst-content pre {
  background: transparent;
  color: #101514;
}

/* Section headings carry the green rule used on the cover */
.wy-nav-content h1 {
  border-bottom: 3px solid var(--env-green);
  padding-bottom: 0.2em;
}

/* Inline code: warm instead of the theme's red on white */
.rst-content code,
.rst-content tt,
.rst-content code.literal,
code {
  color: #4C2F85;
  background: #EDF2EF;
  border-color: #D4C4F2;
}

pre code,
.rst-content pre code {
  color: inherit;
  background: transparent;
  border: 0;
}
