/* FAQ question headings: make them blue to distinguish from other levels */
.faq-question > h3,
.faq-question > h4 {
  /* Match the Sphinx RTD theme link blue */
  color: #2980b9;
}

/* Custom docs styles for Brainana */

/* Index "Contents" toctree: the RTD theme sizes the caption group labels
   (INSTALLATION, USER GUIDE, …) at 150% — the same as an <h2> — which made them
   read larger than the "Contents" heading above them. Keep them subordinate. */
.rst-content .toctree-wrapper > p.caption {
  font-size: 115%;
  margin-top: 20px;
}

/* Tighten vertical spacing for Mermaid diagrams */
.rst-content .mermaid,
.rst-content .mermaid svg {
  margin-top: 10 !important;
  margin-bottom: 10 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: block;
}
.rst-content .mermaid svg {
  height: auto !important;
  max-width: 100%;
}

/* Code-block callouts: warm cream background so demo/example blocks read as
   distinct callouts instead of near-white (#f8f8f8) on the white page.
   Targets syntax-highlighted blocks (.highlight) and plain literal blocks;
   does NOT touch .rst-content .highlighted (the yellow search-hit marker). */
.rst-content div[class^="highlight"],
.rst-content pre.literal-block {
  border-color: #efe7d8;
}
.rst-content div[class^="highlight"] .highlight,
.rst-content pre.literal-block,
.highlight {
  background: #fbf7f0;
}

