/* print.css - wyglad dokumentacji przy druku i przy generowaniu PDF-ow.
   Strony sa ciemne; na papierze i w PDF-ie to sie nie sprawdza, wiec
   przelaczamy na czarny tekst na bialym i chowamy nawigacje oraz przyciski.
   2026-09-03 */
@media print {
  @page { margin: 16mm 14mm; }

  html, body {
    background: #fff !important;
    color: #111 !important;
    font-size: 10.5pt;
  }

  *, *::before, *::after {
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  *:not(pre):not(code):not(kbd) {
    background-color: transparent !important;
    color: #111 !important;
    border-color: #d5d9de !important;
  }

  h1, h2, h3, h4, h5 {
    color: #000 !important;
    page-break-after: avoid;
    -webkit-text-fill-color: #000 !important; /* naglowki z gradientem w tekscie */
  }

  h1 { font-size: 20pt } h2 { font-size: 15pt } h3 { font-size: 12.5pt }

  a, a:visited { color: #0b57d0 !important; text-decoration: none }

  pre, code, kbd {
    background: #f4f5f7 !important;
    color: #111 !important;
    border: 1px solid #dcdfe4 !important;
    font-size: 9pt;
  }
  pre { white-space: pre-wrap; word-wrap: break-word; page-break-inside: avoid }

  /* nawigacja, przyciski zakupu i widget czatu nie maja czego szukac w PDF-ie */
  nav, .nav, .navlinks, .sidebar, .side, .toc, .nl, header .back-link,
  button, .btn, .buy, .buy-direct-form, .buy-direct-btn, .cta, .cta-buttons,
  #ag-assistant-root, .launcher, footer .foot-grid ul {
    display: none !important;
  }

  img, svg, table, figure { max-width: 100% !important; page-break-inside: avoid }
  section, article, .card, .comp, .support-card, .step, .feature { page-break-inside: avoid }
  ul, ol { page-break-inside: auto }
}
