/* Series colours for AI Operations: the website takes the palette of the book's cover (bronze and amber),
   as the diagrams do (docs/mermaid-kvadrat-theme.json). Overrides the MkDocs readthedocs theme;
   layout and typography are unchanged. Dark #2a1b04, bronze #8a5a0b, amber #ffc857. */

:root {
  --book-dark: #1a0f03;
  --book-primary: #4d3209;
  --book-strong: #6d5735;
  --book-accent: #ffc857;
  --book-tint: #eae6e1;
  --book-paper: #f8f7f5;
  --ops-dark: #2a1b04;
  --ops-darker: #1a0f03;
  --ops-bronze: #8a5a0b;
  --ops-bronze-deep: #5c3b06;
  --ops-amber: #ffc857;
  --ops-amber-soft: #ffd98a;
  --ops-sand: #f6efe3;
  --ops-sand-line: #e3d6bd;
  --ops-text-on-dark: #eadfca;
}

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

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

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

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

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

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

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

.wy-menu-vertical li.current {
  background: var(--ops-sand);
}

.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: #eadfca;
}

.wy-menu-vertical li.toctree-l1.current > a {
  border-color: var(--ops-sand-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(--ops-bronze);
}

.wy-nav-content a:hover,
.rst-content a:hover {
  color: var(--ops-bronze-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: #2a1b04;
}

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

blockquote {
  border-left: 4px solid var(--ops-amber);
  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(--ops-sand-line);
}

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

/* Section headings carry the amber rule used on the cover */
.wy-nav-content h1 {
  border-bottom: 3px solid var(--ops-amber);
  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;
}
