.print-head, .print-foot { display:none; }

@page { margin: 20mm 16mm; }

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background:#fff; }
  body { font-size:10.5pt; color:#000; }

  /* Hide all interactive chrome */
  .site-nav, .subnav, .to-top, .lang, .menu-btn, .pager, .skip { display:none !important; }

  /* Full-width flow */
  .layout { display:block; max-width:none; margin:0; padding:0; }
  .content { max-width:none; padding:0; }
  .home-wrap { max-width:none; padding:0; }
  a { color:inherit; text-decoration:none; }

  /* Headings stay with their content */
  .page-head { page-break-after:avoid; }
  h1, h2, h3, h4 { page-break-after:avoid; }
  .sec-head { page-break-after:avoid; }

  /* Each pillar starts on a fresh page; keep components whole */
  .content > section:first-of-type { page-break-before:auto; }
  section { page-break-inside:avoid; border-top:1px solid #ddd; padding:14px 0; }
  .swatch, .card2, .persona, .logo-tile, .dcell, .platgroup, .mocktile,
  .ba .col, .spec, .aiblock, .dllist, .milestone, .posframe, .clentry,
  .font-card, .ill, .tile { page-break-inside:avoid; }
  .placeholder { border-style:solid; }

  /* Running header + footer repeat on every printed page (Chrome honors fixed) */
  .print-head, .print-foot { position:fixed; left:0; right:0; display:flex !important; justify-content:space-between; gap:var(--s4); font-family:var(--font-mono); font-size:8pt; color:#555; }
  .print-head { top:8mm; border-bottom:1px solid #ccc; padding-bottom:4px; }
  .print-foot { bottom:8mm; border-top:1px solid #ccc; padding-top:4px; }
  .print-head span:last-child, .print-foot span:last-child { color:#999; }
}
