/* Print: the bench sheet on one Letter page. The app chrome is hidden, the
   paper preview becomes the page, and the blend strip prints in greyscale.
   Sized so a 25-line formula still fits on that page. Screen rules for the
   sheet are in /screens/sheet.css. */

@media print {
  @page { size: letter; margin: 0.4in 0.5in; }

  html, body { background: #fff !important; }
  body { display: block; color: #000; font-size: 9pt; line-height: 1.25; }

  header, nav, .skip, #alert, #who, #banner, #dock, .dock, .sidebar, .appbar, .backdrop,
  .screen-head, .sheet-controls { display: none !important; }

  .surface { display: block; padding: 0; }
  main, body.has-dock main { padding: 0; border: 0; border-radius: 0; min-height: 0; background: #fff; }

  .screen-sheet { display: block; }
  .sheet-well { display: block; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .sheet-paper {
    max-width: none;
    width: auto;
    aspect-ratio: auto;
    gap: 9pt;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .meta, .paper-sub, .paper-target-label, .paper-target-text, .th-source, .paper-batch-label,
  .paper-batch-alt, .paper-figure-label, .sheet-percent, .sheet-none, .sheet-check { color: #333; }

  .paper-letterhead { padding-bottom: 5pt; font-size: 8pt; }
  .paper-brand .mark { width: 11pt; height: 11pt; }
  .paper-head { gap: 16pt; }
  .paper-title { gap: 3pt; }
  .paper-title h2 { font-size: 17pt; }
  .paper-sub, .paper-origin, .paper-target { font-size: 8.5pt; }
  .paper-batch { padding-left: 14pt; min-width: 0; }
  .paper-batch-label, .paper-batch-alt { font-size: 8pt; }
  .paper-batch-value { font-size: 20pt; }
  .paper-batch-value .unit { font-size: 10pt; }

  .strip, .swatch { filter: grayscale(1); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet-paper .strip { height: 10pt; }
  .seg-gap { background: #fff; box-shadow: inset 0 0 0 0.75pt #999; }

  .chip { background: none !important; color: #000 !important; box-shadow: inset 0 0 0 0.6pt #555; padding: 0.5pt 4pt !important; font-size: 7.5pt !important; }
  tr[data-swapped='true'] > td { background: none; }

  .sheet-table { font-size: 8.5pt; margin-top: 0; }
  .sheet-table thead th { padding: 0 5pt 3pt; font-size: 7.5pt; border-bottom-width: 1pt; }
  .th-source { font-size: 6.5pt; }
  .sheet-table td { padding: 2.2pt 5pt; border-bottom: 0.5pt solid #ccc; }
  .sheet-name { gap: 5pt; }
  .swatch { width: 6pt; height: 6pt; }
  .sheet-grams { font-size: 10pt; min-width: 0; }
  .sheet-none { font-size: 7.5pt; }
  .sheet-table tfoot th, .sheet-table tfoot td { padding-top: 3pt; border-top-width: 1pt; }
  .sheet-table tfoot th { font-size: 8.5pt; }
  .sheet-table tfoot .sheet-grams { font-size: 11pt; }
  .sheet-table tr { break-inside: avoid; }
  .sheet-check { margin-top: -5pt; font-size: 7.5pt; }
  .sheet-check::before { width: 8pt; height: 8pt; background: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .paper-cost { gap: 3pt; padding-top: 6pt; }
  .paper-figure { padding: 0 16pt; }
  .paper-figure-value { font-size: 12pt; }
  .paper-figure.is-lead .paper-figure-value { font-size: 15pt; }
  .paper-figure-label { font-size: 7.5pt; }
  .paper-cost-missing { font-size: 10pt; color: #000; }

  .paper-notes { gap: 6pt 20pt; }
  .paper-note { gap: 1pt; }
  .paper-note h3, .paper-bench h3 { font-size: 8.5pt; }
  .paper-prose { font-size: 8.5pt; }

  .paper-bench { gap: 7pt; padding-top: 7pt; border-top-width: 1pt; break-inside: avoid; }
  .bench-row { grid-template-columns: 9rem minmax(0, 1fr); gap: 8pt; }
  .bench-label, .bench-ticks { font-size: 8.5pt; }
  .bench-box { width: 9pt; height: 9pt; border-width: 1pt; }
  .write-line { height: 15pt; border-bottom-width: 0.75pt; }
  .bench-row-sign { gap: 20pt; }
  .bench-row-sign .bench-sign:first-child { grid-template-columns: 9rem minmax(0, 1fr); }

  .paper-foot { margin-top: 2pt; padding-top: 5pt; gap: 1pt; break-inside: avoid; }
  .paper-disclaimer { font-size: 8.5pt; }
  .paper-foot .meta { font-size: 7pt; }
}
