/* print.css - printing the page or exporting it to PDF from the browser. */

@media print {
  .strata-root {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .strata-toolbar,
  .strata-code-actions,
  .strata-panel,
  .strata-editor-pane,
  .strata-anchor {
    display: none !important;
  }

  .strata-layout {
    display: block;
  }

  .strata-toc-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    page-break-after: always;
  }

  .strata-content {
    max-width: none;
  }

  /* Code and callouts keep their fill in print - a bordered, tinted block is
     what makes them legible on paper too - but never split across pages. */
  .strata-code,
  .strata-callout,
  .strata-mermaid,
  table {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .strata-code pre {
    white-space: pre-wrap;
    overflow: visible;
  }

  .strata-code-line {
    width: auto;
  }

  h1, h2, h3, h4 {
    break-after: avoid;
    page-break-after: avoid;
  }

  details.strata-callout:not([open]) .strata-callout-content {
    display: block;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
    color: #444444;
  }
}
