/* IransiteNews - printing an article: only the article, on white, readable; links of the text with their address.
   The rest of the DNN page (menus, header, footer, side panes) is hidden whatever the skin is. */
.isn-print-source { display: none; }

@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; }
  .isn-details { width: auto; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: #fff !important; color: #000 !important; font-size: 12pt; line-height: 1.85; }
  /* only the article and the boxes that hold it stay, in the normal flow: a page that is only made invisible keeps its
     space, and an article lifted out of the flow breaks badly into sheets (half-empty sheets, or one sheet only) */
  body *:not(:has(.isn-details)):not(.isn-details):not(.isn-details *) { display: none !important; }
  body *:has(.isn-details) { display: block !important; position: static !important; width: auto !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; float: none !important; transform: none !important; }

  /* what is for the screen only */
  .isn-details .isn-edit, .isn-details .isn-footer, .isn-details .isn-comments, .isn-details .isn-related, .isn-details .isn-products-box,
  .isn-details .isn-rate, .isn-details .isn-poll, .isn-details .isn-paywall, .isn-details .isn-gallery, .isn-details .isn-author-box, .isn-details .isn-live-admin,
  .isn-details form, .isn-details button, .isn-details iframe, .isn-details video, .isn-details audio, .isn-details [class*="isn-ad"], .isn-details .isn-share {
    display: none !important;
  }

  .isn-details .isn-title { font-size: 20pt; line-height: 1.4; margin: 0 0 6pt; }
  .isn-details .isn-subtitle { font-size: 13pt; color: #333 !important; }
  .isn-details .isn-meta { font-size: 9.5pt; color: #444 !important; margin-bottom: 10pt; }
  .isn-details .isn-meta a, .isn-details .isn-categories a { color: #444 !important; text-decoration: none; }
  .isn-details img { max-width: 100% !important; height: auto !important; }
  .isn-details figure, .isn-details img, .isn-details table, .isn-details pre, .isn-details blockquote { break-inside: avoid; page-break-inside: avoid; }
  .isn-details h1, .isn-details h2, .isn-details h3, .isn-details h4 { break-after: avoid; page-break-after: avoid; }
  .isn-details .isn-main-image img { max-height: 9cm; width: auto !important; }
  /* a heading stays with the picture under it: when they do not fit at the foot of a sheet both move on and leave a gap,
     so the pictures of the text stay short (and pictures whose file is gone are not printed, js/isn-share.js) */
  .isn-details .isn-content img { max-height: 6.5cm; width: auto !important; }
  .isn-details .isn-img-broken { display: none !important; }
  .isn-details a { color: #000 !important; }
  /* skins often print every link with its address: only the links of the text keep it */
  .isn-details a::after { content: none !important; }
  .isn-details .isn-content a[href^="http"]::after { content: " (" attr(href) ")" !important; font-size: 8.5pt; color: #555; word-break: break-all; }
  .isn-details table { border-collapse: collapse; }
  .isn-details th, .isn-details td { border: 1px solid #999; padding: 3pt 5pt; }
  .isn-details .isn-print-source { display: block !important; margin-top: 14pt; padding-top: 6pt; border-top: 1px solid #999; font-size: 9pt; color: #444 !important; word-break: break-all; }
}

/* browsers without :has (before 2023): the page is made invisible and the article lifted over it */
@supports not selector(:has(*)) {
  @media print {
    body * { visibility: hidden !important; }
    .isn-details, .isn-details * { visibility: visible !important; }
    .isn-details { position: absolute; top: 0; right: 0; left: 0; }
  }
}
