/* Make a spoiler's <summary> read like an <h3> heading (matches the "###" sections).
   The <h3> inside <summary> inherits the theme's heading style; inline-block keeps it
   on the same line as the disclosure marker. */
details > summary {
  cursor: pointer;
}

details > summary > h3 {
  display: inline-block;
  margin: 0;
}

/* Drop the "¶" permalink the toc extension injects into the heading. */
details > summary > h3 .headerlink {
  display: none;
}

/* Breathing room below rendered mermaid diagrams before the next section. */
.mermaid {
  margin-bottom: 2rem;
}

/* Space out items in the article body's bullet (ul) and numbered (ol) lists so
   the dense, multi-line entries are easier to scan. Scoped to the main content
   so the side-nav menu — which also uses <li> — keeps its tight spacing. */
#terminal-mkdocs-main-content li + li {
  margin-top: 0.5rem;
}

/* Hanging indent for numbered lists: pin the "N." marker in a widened left
   gutter so the lines after the first wrap under the item text, not under the
   number. (Bullet lists already hang — the theme absolutely-positions their "-"
   marker over the 20px gutter; numbered markers are inline, so they don't.) */
#terminal-mkdocs-main-content ol li {
  padding-left: 2em;
}

#terminal-mkdocs-main-content ol li::before {
  position: absolute;
  left: 0;
}
