/* PsyDian brand colours on top of the default mdBook themes. */
:root {
  --psy-indigo: #4b4cc4;
  --psy-periwinkle: #9fa0ff;
  --psy-coral: #ff7171;
  --psy-cream: #fff3e3;
}

.light, .rust {
  --links: var(--psy-indigo);
  --sidebar-active: var(--psy-indigo);
  --inline-code-color: #2e2f66;
  --quote-bg: var(--psy-cream);
  --quote-border: #f3dcbd;
}

.navy, .coal, .ayu {
  --links: var(--psy-periwinkle);
  --sidebar-active: var(--psy-periwinkle);
}

.content main h1 {
  border-bottom: 3px solid var(--psy-coral);
  padding-bottom: 0.3em;
}

.chapter li.part-title {
  color: var(--psy-coral);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.content table {
  display: table;
  width: 100%;
}

/* Mermaid diagrams: centred, no code-block background. */
pre.mermaid {
  background: none;
  text-align: center;
}

/* The capybara logo in front of the book title in the top bar. */
.menu-title::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 1.6em;
  margin-right: 0.45em;
  vertical-align: -0.42em;
  border-radius: 50%;
  background: url("../images/logo.png") center / cover no-repeat;
}
