/* Live examples rendered by the hc-example directive. */
.hc-example {
  margin-block: 1.25rem;
}
.hc-example-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sy-c-light);
  margin-block: 0.5rem 0.25rem;
}
.hc-example-output.hc-output-markdown,
.hc-example-output.hc-output-html {
  border: 1px solid var(--sy-c-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
}
.hc-example-output .math {
  overflow-x: auto;
}

/* handcalcs output is flush-left, as it is in Jupyter and the LaTeX renderer. */
.hc-example-output .katex-display {
  text-align: left;
  margin-block: 0.6em;
}
.hc-example-output .katex-display > .katex {
  text-align: left;
}
.hc-example-output blockquote {
  margin-inline: 1.5em 0;
  padding: 0;
  border: none;
}
.hc-example-tabs {
  margin-block-start: 0.25rem;
}
.hc-example-tabs .hc-example-output {
  border: none;
  padding: 0.25rem 0.5rem;
}
.hc-example-tabs > .sd-tab-content > div.highlight,
.hc-example-tabs > .sd-tab-content > pre {
  margin: 0;
}
.hc-example-tabs pre {
  max-height: 28rem;
}
