/* Recipe detail page (BFP-988): keeps the print document rendered but off-screen,
   so printing from the page yields the same output as the standalone print view.
   Deliberately not display:none — an iframe that never had a layout box is not
   repainted when print styles reveal it. */

.printOnlyDoc {
  position: absolute;
  top: 0;
  left: -9999px;
  width: 940px;
  visibility: hidden;
}

@media print {
  /* The modal leaves the body fixed while open: printing it would yield one page. */
  body {
    position: static !important;
    top: auto !important;
  }

  #bfpBodyId > *:not(.printOnlyDoc) {
    display: none !important;
  }

  .printOnlyDoc {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    visibility: visible;
  }
}
