/* The book's additions to mdBook's theme. */

/* Exercises and their solutions. */
details.solution {
  margin: 0.5em 0 1.5em;
  padding: 0.4em 0.8em;
  border-left: 3px solid var(--quote-border);
  background: var(--quote-bg);
}

details.solution > summary {
  cursor: pointer;
  font-weight: bold;
}

details.solution[open] > summary {
  margin-bottom: 0.5em;
}

/* The checker's output, as `shapescript check` prints it. */
pre > code.language-text {
  white-space: pre;
}

/* Setup commands that differ between shells (Chapter 1, Appendix D) say
 * which shell they're for. A ```sh block runs in any of them. */
pre > code.language-bash::before,
pre > code.language-fish::before,
pre > code.language-powershell::before {
  display: block;
  margin-bottom: 0.4em;
  font-size: 0.8em;
  opacity: 0.6;
}

pre > code.language-bash::before {
  content: "bash, zsh";
}

pre > code.language-fish::before {
  content: "fish";
}

pre > code.language-powershell::before {
  content: "PowerShell";
}
