/* ============================================================
   Print styles — only the A4 paper prints, edge to edge.
   ============================================================ */
@page { size: A4; margin: 0; }

@media print {
  html, body { background: #fff !important; height: auto !important; overflow: visible !important; }

  /* hide all chrome */
  .topbar, .rail, .stage-toolbar, .toast, .inspect-tabs { display: none !important; }

  .app, .view, .view-editor, .stage { display: block !important; height: auto !important; overflow: visible !important; }

  .paper-scroll { padding: 0 !important; display: block !important; overflow: visible !important; }
  .paper-zoom { transform: none !important; }

  .paper {
    width: 210mm !important;
    min-height: 297mm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* avoid awkward breaks inside entries */
  .r-entry, .r-section .r-sec-title { break-inside: avoid; }
  .r-side { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paper, .r-skill-tag, .r-bullets li::before, .ring-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
