/**
 * Print Profile: Sheet / Paper
 * V7.2 Multi-Site Platform
 *
 * Utility sheet print layout.
 * Applies to: graph paper, dot grid, lined paper, handwriting practice.
 * Full-page pattern with minimal chrome.
 * Optimized for US Letter paper.
 */

/* Sheet container — full bleed on Letter */
.sheet-print-container {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Sheet SVG / pattern */
.sheet-print-container svg,
.sheet-print-svg {
  width: 100%;
  height: auto;
  max-height: 260mm; /* Increased from 250mm for letter paper (279.4mm total) */
  display: block;
  margin: 0 auto;
  shape-rendering: crispEdges;
}

/* Graph paper: grid lines */
.sheet-print-svg .grid-line {
  stroke: #ccc;
  stroke-width: 0.4px; /* Thinner to save ink */
}

.sheet-print-svg .grid-line-major {
  stroke: #999;
  stroke-width: 0.8px; /* Thinner to save ink */
}

/* Dot grid: dots */
.sheet-print-svg .dot {
  fill: #999;
  r: 0.6;
}

.sheet-print-svg .dot-major {
  fill: #666;
  r: 1;
}

/* Lined paper: horizontal rules */
.sheet-print-svg .ruled-line {
  stroke: #bbb;
  stroke-width: 0.5px;
}

.sheet-print-svg .ruled-line-header {
  stroke: #c00;
  stroke-width: 0.8px;
}

.sheet-print-svg .ruled-line-margin {
  stroke: #c00;
  stroke-width: 0.5px;
}

/* Handwriting: tracing guide lines */
.sheet-print-svg .trace-baseline {
  stroke: #999;
  stroke-width: 0.8px;
}

.sheet-print-svg .trace-midline {
  stroke: #ccc;
  stroke-width: 0.5px;
  stroke-dasharray: 2 2;
}

.sheet-print-svg .trace-topline {
  stroke: #ccc;
  stroke-width: 0.5px;
}

/* Handwriting: tracing letters */
.sheet-print-svg .trace-letter {
  fill: none;
  stroke: #ccc;
  stroke-width: 1px;
  stroke-dasharray: 3 2;
  font-family: Arial, sans-serif;
  font-size: 24pt;
}

.sheet-print-svg .trace-letter-solid {
  fill: #ddd;
  stroke: #bbb;
  stroke-width: 0.5px;
  font-family: Arial, sans-serif;
  font-size: 24pt;
}

/* Sheet info (grid size, spacing, etc.) */
.sheet-info-print {
  text-align: center;
  font-size: 8pt;
  color: #888;
  margin-top: 2mm;
}

/* Minimize header for sheet types — more room for content */
.print-view .print-header.sheet-header {
  margin-bottom: 3mm;
  padding-bottom: 2mm;
}

/* Sheet description */
.sheet-description-print {
  font-size: 9pt;
  color: #555;
  text-align: center;
  margin-bottom: 3mm;
}

@media print {
  .sheet-print-container {
    page-break-inside: avoid;
  }

  /* For multi-page sheets, allow page breaks between blocks */
  .sheet-print-container.multi-page {
    page-break-inside: auto;
  }

  .sheet-print-container.multi-page .sheet-block {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
