/* Print rules for the four standalone document pages.
 *
 * The reference carries a print block inside each document's own <style>:
 * contact.html, reports-and-accounts.html, grants.html and
 * five-pillar-era.html. Nothing else on the reference has print styles at
 * all, so a mission or country page prints with browser defaults on both
 * sides and must keep doing so.
 *
 * That is why this is a separate stylesheet enqueued only for those four
 * pages (functions.php), rather than more rules in live-subpage.css: `@page`
 * is document-level and cannot be scoped by a body class, so a global copy
 * would silently change the paper margin for every other page on the site --
 * a divergence from the reference in the act of fixing one.
 *
 * Everything here is inside `@media print` rather than relying on the
 * enqueue's media attribute, so the file is correct on its own terms and
 * cannot leak onto the screen if it is ever enqueued plainly.
 *
 * Class mapping, since our chrome is not the reference's chrome:
 *   .site-nav -> .nav       we serve one header everywhere (the documented
 *                           two-headers decision); the reference's document
 *                           pages use their own .site-nav.
 *   .mast     -> .pf-mast   the hoisted document masthead.
 *   .g-meta   -> .g-meta and .fpe-g-meta; five-pillar-era's grant cards are
 *                           namespaced because that document and grants.html
 *                           genuinely disagree on seven selectors.
 *
 * The blocks are NOT identical across the four documents and are reproduced
 * as they are, not merged: contact sets no font-size, reports-and-accounts
 * alone hides .r-arrow, and only the two grant documents carry the
 * .band/.theme/.g-meta rules.
 */

@media print {

  @page { margin: 14mm; }

  body.pf-doc { background: #fff; }

  /* contact.html is the one document whose print block sets no font-size. */
  body.pf-doc:not(.pf-doc--contact) { font-size: 11px; }

  body.pf-doc .nav { display: none; }

  body.pf-doc .pf-mast { padding: 0 0 18px; }

  /* reports-and-accounts.html only: `.site-nav,.r-arrow{display:none;}` */
  body.pf-doc--reports-and-accounts .r-arrow { display: none; }

  /* grants.html and five-pillar-era.html only. */
  body.pf-doc--grants .band,
  body.pf-doc--five-pillar-era .band { margin-top: 24px; }

  body.pf-doc--grants .theme,
  body.pf-doc--five-pillar-era .theme { padding-top: 26px; }

  body.pf-doc--grants .g-meta,
  body.pf-doc--five-pillar-era .fpe-g-meta { border-left: 1px solid #ccc; }

}
