/* Brain Factory — documentation theme polish.
   Loaded via `extra_css` in mkdocs.yml. */

/* ---- Brand palette (light) ------------------------------------------- */
:root {
  --md-primary-fg-color:              #4338CA; /* indigo-700 */
  --md-primary-fg-color--light:       #6366F1;
  --md-primary-fg-color--dark:        #3730A3;
  --md-accent-fg-color:               #06B6D4; /* cyan-500  */
  --md-accent-fg-color--transparent:  rgba(6, 182, 212, 0.10);
}

/* ---- Brand palette (dark / slate): lift for contrast ----------------- */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color:              #818CF8; /* indigo-400 */
  --md-primary-fg-color--light:       #A5B4FC;
  --md-primary-fg-color--dark:        #6366F1;
  --md-accent-fg-color:               #22D3EE; /* cyan-400  */
}

/* ---- Diagrams: cap width, centre, keep SVGs responsive --------------- */
.md-typeset .mermaid {
  max-width: 880px;
  margin: 1.25rem auto;
}
.md-typeset img[src$=".svg"] {
  max-width: 100%;
  height: auto;
}

/* ---- Hide the redundant "Hi-res view: [SVG]" companion call-outs on the
   rendered site. The links stay in the Markdown because GitHub's file view
   and the SVG-companion guardrail (ADR 0012) both depend on them; this only
   suppresses them on the published site, where Mermaid already renders live. */
.md-typeset blockquote:has(> p > a[href*="diagrams/"][href$=".svg"]) {
  display: none;
}

/* ---- Headings: a touch tighter and more confident -------------------- */
.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.md-typeset h2 {
  letter-spacing: -0.005em;
}

/* ---- Landing hero: roomier buttons under the intro ------------------- */
.md-typeset .md-button {
  margin-top: 0.4rem;
  margin-right: 0.4rem;
}

/* ---- Grid cards: lift, border, and accented icons -------------------- */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.7rem;
  padding: 0.9rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
  transform: translateY(-3px);
}
.md-typeset .grid.cards .twemoji.lg svg,
.md-typeset .grid.cards .lg.twemoji svg {
  fill: var(--md-primary-fg-color);
}
/* Card icon sizing + colour for the first-line glyphs */
.md-typeset .grid.cards .middle {
  vertical-align: middle;
}

/* ---- Comfortable measure for long-form reading ----------------------- */
.md-grid {
  max-width: 62rem;
}
