/* Public documentation only. This stylesheet is loaded with media="print". */
@page { margin: 16mm; }

@media print {
  :root, body.docs-shell, body.discovery {
    color-scheme: light;
    --bg: #fff; --surface: #fff; --raised: #f4f4f4; --line: #ccc; --line-strong: #bbb;
    --text: #161616; --muted: #333; --dim: #444; --accent: #161616; --green: #161616; --amber: #161616;
    --studio-bg: #fff; --studio-text: #161616; --studio-muted: #333; --studio-line: #ccc; --studio-accent: #161616;
  }

  html, body.docs-shell, body.discovery {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    color: #161616 !important;
    font: 10.5pt/1.45 system-ui, sans-serif;
  }

  .site-header, .site-footer, .docs-sidebar, .docs-topics-drawer, .skip, nav, button,
  .docs-search, .service-availability, .doc-cta, .guide-art, .stage-rail, .guide-next, .code-head {
    display: none !important;
  }

  body.docs-shell .docs-layout, body.docs-shell main.docs-article, body.discovery .agent-guide {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  :is(.docs-article, .agent-guide) * {
    color: #161616 !important;
    background: transparent !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
  :is(.docs-article, .agent-guide) *::before,
  :is(.docs-article, .agent-guide) *::after { color: #161616 !important; }

  :is(.docs-article, .agent-guide) h1 { font-size: 25pt !important; line-height: 1.15 !important; margin: 0 0 4mm !important; }
  :is(.docs-article, .agent-guide) h2 { font-size: 16pt !important; line-height: 1.25 !important; margin: 0 0 3mm !important; break-after: avoid-page; }
  :is(.docs-article, .agent-guide) h3, summary { break-after: avoid-page; }
  :is(.docs-article, .agent-guide) p, .guide-lead { font-size: 10.5pt !important; line-height: 1.45 !important; margin: 2mm 0 3mm !important; max-width: none !important; orphans: 3; widows: 3; }

  .docs-article .docs-topic, .docs-article .docs-topic[hidden] { display: block !important; padding: 5mm 0 !important; margin: 0 !important; border: 0 !important; max-width: none !important; }
  .docs-article .docs-topic ~ .docs-topic { break-before: page; }
  .agent-guide .guide-panel, .agent-guide .guide-panel[hidden] { display: block !important; margin: 0 !important; padding: 5mm 0 !important; max-width: none !important; border: 0 !important; overflow: visible !important; }
  .agent-guide .guide-panel ~ .guide-panel { break-before: page; }
  .agent-guide .guide-facts, .docs-article .docs-stats, .docs-article .docs-facts { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 3mm !important; margin: 2mm 0 !important; padding: 0 !important; }
  .agent-guide .guide-facts > div, .docs-article .docs-stats li, .docs-article .docs-facts li { display: block !important; border: 1px solid #ccc !important; padding: 2mm 3mm !important; break-inside: avoid-page; }
  .agent-guide .guide-facts > div::before { content: none !important; }
  .docs-article .callout, .docs-article .doc-note { padding: 3mm !important; border-left: 2pt solid #555 !important; margin: 3mm 0 !important; break-inside: avoid-page; }
  .docs-article .callout::before { display: none !important; }
  .fee-split-bar, .doc-table td i { display: none !important; }

  :is(.docs-article, .agent-guide) details { display: block !important; padding: 3mm 0 !important; margin: 2mm 0 !important; border: 0 !important; break-inside: avoid-page; }
  details::details-content { content-visibility: visible !important; height: auto !important; block-size: auto !important; overflow: visible !important; }
  details > :not(summary) { display: block !important; }
  :is(.docs-article, .agent-guide) summary { display: block !important; padding: 0 !important; margin: 0 0 2mm !important; min-height: 0 !important; font-size: 11pt !important; font-weight: 600; list-style: none; }
  summary::marker, summary::-webkit-details-marker { display: none; }
  summary::after { display: none !important; }

  .code-block { margin: 3mm 0 !important; break-inside: avoid-page; border: 0 !important; }
  .code-block pre { padding: 3mm !important; background: #f4f4f4 !important; border: 1px solid #ccc !important; white-space: pre-wrap !important; overflow-wrap: anywhere; overflow: visible !important; font-size: 9pt !important; }
  :is(.docs-article, .agent-guide) a { text-decoration: underline; overflow-wrap: anywhere; }
  .agent-guide .guide-foot { margin-top: 5mm !important; padding: 3mm 0 !important; }
  /* Navigation never prints, including the phone topic drawer and the previous/next links inside the article. */
  :is(.docs-article, .agent-guide) nav, :is(.docs-article, .agent-guide) .docs-topics-drawer, :is(.docs-article, .agent-guide) .docs-topics-drawer > * { display: none !important; }
}
