/* Print / Save as PDF (TASK-204, FR-090/FR-109). Light tokens are forced in tokens.css @media print. */
@media print {
  #sidebar, #topbar, #nav-backdrop, #xp-status, #xp-alert, .docs-print, .docs-copy, .docs-wl, .docs-sr { display: none !important; }
  #shell, #content { display: block; }
  #app-view { padding: 0; margin: 0; max-width: none; }
  #panel > h1 { display: none; }
  .docs { display: block; }
  .docs-content { border: 0; padding: 0; }
  .docs-content h2, .docs-content h3, .docs-content h4 { break-after: avoid; }
  .docs-code, .docs-tablewrap tr, .docs-quote { break-inside: avoid; }
  .docs-code pre, .docs-tablewrap { overflow: visible; }
  .docs-code pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .docs-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
  /* code tabs: every tab printed in sequence, labelled */
  .docs-tablist { display: none !important; }
  .docs-tabpanel[hidden] { display: block !important; }
  .docs-tabpanel::before { content: attr(data-label); display: block; font-weight: 700; margin-top: 8px; }
}
/* TASK-332 docs frame: print only the section being read. */
@media print {
  .dp-top, .dp-side, .dp-backdrop, .dp-pn, .dp-crumb, .dp-results { display: none !important; }
  .dp2 { display: block; padding: 0; }
}
