/* Enum2Root - polish for the MkDocs Material theme */

:root {
  --md-code-font: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

/* Slightly tighter, more "terminal" code blocks */
.md-typeset pre > code {
  font-size: 0.78rem;
}

/* "Références" / "Voir aussi" admonitions: compact link lists */
.md-typeset .admonition.info > ul,
.md-typeset .admonition.note > ul {
  margin-bottom: 0.2rem;
}

/* Make the per-step "Voir aussi" line stand out subtly */
.md-typeset p > strong:first-child {
  color: var(--md-accent-fg-color);
}

/* Nicer tables (status legend etc.) */
.md-typeset table:not([class]) {
  font-size: 0.78rem;
}
.md-typeset table:not([class]) th {
  background: var(--md-default-fg-color--lightest);
}

/* Reference section headings get a left accent bar for scannability */
.md-typeset h2 {
  border-left: 3px solid var(--md-accent-fg-color);
  padding-left: 0.6rem;
}

/* Status icons in prose */
.e2r-ok { color: #3c8a54; font-weight: 700; }
.e2r-fail { color: #b5403a; font-weight: 700; }

/* Home page grid cards spacing */
.md-typeset .grid.cards > ul > li {
  border-radius: 0.4rem;
}
