/* Series colours for Tools: the website takes the palette of the book's cover (steel and copper),
   as the diagrams do (docs/mermaid-kvadrat-theme.json). Overrides the MkDocs readthedocs theme;
   layout and typography are unchanged. Dark #2b3d52, steel #2f4155, copper #e8944a. */

:root {
  --book-dark: #1a242f;
  --book-primary: #2f4155;
  --book-strong: #546374;
  --book-accent: #c46a1e;
  --book-tint: #e6e8eb;
  --book-paper: #f7f7f8;
  --tools-dark: #2b3d52;
  --tools-darker: #1c2a3a;
  --tools-steel: #2f4155;
  --tools-steel-deep: #2b3d52;
  --tools-copper: #e8944a;
  --tools-copper-soft: #f4b985;
  --tools-mist: #eef2f6;
  --tools-mist-line: #d5dde6;
  --tools-text-on-dark: #d5dde6;
}

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

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

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

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

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

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

.wy-menu-vertical a:hover {
  background-color: #43300d;
  color: #ffffff;
}

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

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

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

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

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

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

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

.wy-nav-content a:visited,
.rst-content a:visited {
  color: #6b4a1a;
}

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

.rst-content table.docutils thead th,
.rst-content table thead th,
table thead th {
  background-color: #f1e6cf;
  color: #2b3d52;
}

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

blockquote {
  border-left: 4px solid var(--tools-copper);
  background: #fbf6ea;
}

/* 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: #fbf6ea;
  border: 1px solid var(--tools-mist-line);
}

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

/* Section headings carry the amber rule used on the cover */
.wy-nav-content h1 {
  border-bottom: 3px solid var(--tools-copper);
  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: #8a3a0c;
  background: #fbf1de;
  border-color: #ead9b4;
}

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