/* Print (phase 8). Linked with media="print", so nothing here touches the screen.

   Conventions, for any page that wants a printed sheet (Phase 6's venture page reuses them):
   .no-print      never printed (buttons, pickers, anything interactive).
   .print-only    printed only; phase-8.css keeps it off the screen. Build the sheet in JS,
                  append it to <body>, add .printing to <body>, call window.print(), and take
                  both away again on afterprint (see pmRoadmapPrint in pm-playbooks.js).
   body.printing  while a sheet prints, everything else in <body> is hidden.
   .print-sheet   a sheet's root: black on white, no shadows, Plus Jakarta Sans. Add .landscape
                  for a landscape page (a named page, so each sheet picks its own).
   Inside a sheet: .print-head (h1 + .print-meta), .print-dot.ok/.warn/.hot (a health dot, the
   one thing that keeps its colour), .print-key (a line of symbols explained at the foot). */

@page { size: A4; margin: 12mm; }
@page landscape { size: A4 landscape; margin: 10mm 12mm; }

html, body { background: #fff !important; color: #000 !important; }
/* the app's chrome and anything interactive */
.no-print, .topbar, .tabbar, .fab-stack, .toast, dialog, .pm-new, .space-switch { display: none !important; }
body.printing > :not(.print-sheet) { display: none !important; }

.print-sheet { display: block !important; page: auto; margin: 0; color: #000; background: #fff; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 10pt; line-height: 1.35; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-sheet.landscape { page: landscape; }
.print-sheet * { color: #000 !important; background: transparent; border-color: #000; box-shadow: none !important; text-shadow: none !important; }
.print-sheet a { text-decoration: none; }
.print-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1.5px solid #000; }
.print-head h1 { margin: 0; font-size: 22pt; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.print-head h1 em { font-style: normal; font-weight: 700; }
.print-meta { font-size: 9pt; letter-spacing: .08em; text-transform: uppercase; }
.print-key { margin: 8px 0 0; font-size: 8pt; letter-spacing: .04em; }
.print-empty { font-size: 11pt; }
.print-dot { display: inline-block; width: 8pt; height: 8pt; margin-right: 5pt; border: 1px solid #000; border-radius: 50%; vertical-align: -1pt; }
.print-dot.ok { background: #1a9c62 !important; }
.print-dot.warn { background: #e0a526 !important; }
.print-dot.hot { background: #d14343 !important; }

/* ---- the Roadmap sheet: one row per live project, bars on a shared week axis ---- */
.pm-print table.print-roadmap { width: 100%; border-collapse: collapse; table-layout: fixed; page-break-inside: avoid; }
.pm-print th, .pm-print td { padding: 4pt 6pt; border-bottom: .5pt solid #000; font-size: 9pt; text-align: left; vertical-align: middle; }
.pm-print th { font-size: 7.5pt; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-bottom-width: 1pt; }
.pm-print tr { page-break-inside: avoid; }
.pm-print th:nth-child(1), .pm-print td:nth-child(1) { width: 18%; }
.pm-print th:nth-child(2), .pm-print td:nth-child(2) { width: 20%; }
.pm-print th:nth-child(3), .pm-print td:nth-child(3) { width: 8%; }
.pm-print th:nth-child(4), .pm-print td:nth-child(4) { width: 8%; white-space: nowrap; }
.pm-print .print-name b { font-weight: 600; }
.pm-print .print-goal { font-size: 8.5pt; }
.pm-print .print-track-h, .pm-print .print-track { position: relative; padding: 0 6pt; }
.pm-print .print-axis { position: relative; height: 16pt; }
.pm-print .print-month { position: absolute; top: 2pt; padding-left: 3pt; border-left: .5pt solid #000; font-size: 7.5pt; letter-spacing: .06em; white-space: nowrap; }
.pm-print .print-track { height: 22pt; background: repeating-linear-gradient(to right, #000 0 .4pt, transparent .4pt 100%) !important; background-size: calc(100% / 8) 100% !important; }
.pm-print .print-bar { position: absolute; top: 7pt; height: 8pt; min-width: 3pt; border: .75pt solid #000; border-radius: 2pt; background: #bbb !important; box-sizing: border-box; }
.pm-print .print-bar.draft { background: transparent !important; border-style: dashed; }
.pm-print .print-diamond { position: absolute; top: 50%; width: 7pt; height: 7pt; margin: -3.5pt 0 0 -3.5pt; border: .75pt solid #000; background: #000 !important; transform: rotate(45deg); }
.pm-print .print-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1pt solid #000; }
.pm-print .print-axis .print-today { height: 100%; }
