/* css/print.css — @page rules for PDF export with first-page vs running headers */

@media print {
  body { background: #fff; }
  .masthead, .workspace > section:not(#tab-preview), .preview-toolbar { display: none !important; }
  .preview-stage { background: #fff; padding: 0; }
  .paper { box-shadow: none; padding: 0; max-width: none; width: 100%; }
}

/* Page rules used by browser print / print view */
@page {
  size: A4;
  margin: 19.05mm 18mm 12.7mm;
}
@page :first {
  @top-left { content: ""; }
  @top-right { content: ""; }
}

/* These wrappers are injected by export logic so PDF gets the right
   first-page vs running-page header. See js/modules/exportPDF.js */
.print-running-header {
  position: running(rhead);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9pt;
  letter-spacing: 0.06em;
  color: #444;
  border-bottom: 1px solid #999;
  padding-bottom: 4px;
}
.print-footer {
  position: running(pfoot);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9pt;
  color: #444;
  border-top: 1px solid #999;
  padding-top: 4px;
}
