/* print.css — the trace/copy sheet (P6), porting 15-print-sheet.html's ruled paper and
   @media print machinery: inline-SVG primary ruling as a data-URI background,
   print-color-adjust: exact, @page { size: letter; margin: 0.5in }, and .no-print chrome.
   The sheet is a full-screen on-screen preview; on an actual print, #app and every
   .no-print control disappear and only the sheet remains. */

.print-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  overflow: auto;
  padding: 16px;
}
.print-sheet[hidden] { display: none; }

.print-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.print-close,
.print-go {
  min-height: var(--control-min);
  padding: 0 20px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--ink);
  background: var(--panel);
}
.print-go {
  background: var(--ink);
  color: var(--panel);
}

.print-page {
  width: 7.5in;
  max-width: 100%;
  margin: 0 auto;
  color: #333;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.print-empty {
  text-align: center;
  color: var(--calm-text);
  padding: 3rem 1rem;
  font-family: var(--font-body);
  font-size: 18px;
}

.print-para { margin-bottom: 24px; }

.print-sent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  break-inside: avoid;
  margin-bottom: 10px;
}
.print-lines { flex: 1; min-width: 0; }

.print-hear {
  min-height: 48px;
  min-width: 48px;
  padding: 0 16px;
  margin-top: 12px;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--edge-secondary);
  background: var(--panel);
  font-family: var(--font-ui);
  font-size: 14px;
}

/* Primary ruling: repeating 72px tile, sky/dashed-mid/base lines, ported unchanged from 15. */
.print-ruled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='72'%3E%3Cline x1='0' y1='15' x2='24' y2='15' stroke='%23aac6de' stroke-width='2'/%3E%3Cline x1='0' y1='33' x2='24' y2='33' stroke='%23cfdfec' stroke-width='2' stroke-dasharray='7 5'/%3E%3Cline x1='0' y1='51' x2='24' y2='51' stroke='%236d90b0' stroke-width='2.5'/%3E%3C/svg%3E");
  background-size: 24px 72px;
  background-repeat: repeat;
}
.print-trace {
  font-family: var(--font-body);
  font-size: 34px;
  line-height: 72px;
  color: #b3b3b3;
  letter-spacing: 0.03em;
  word-spacing: 0.3em;
  user-select: text;
}

@media print {
  #app, .demo-banner, .no-print { display: none !important; }
  body { background: #fff; }
  .print-sheet {
    position: static;
    overflow: visible;
    padding: 0;
  }
  .print-page { width: auto; }
  @page { size: letter; margin: 0.5in; }
}
