/* print.css — loaded with media="print". Prints only the shopping list
   (on tool pages) on Letter or A4, black on white. */

@page { margin: 14mm; }

@media print {
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; line-height: 1.4; }
  * { box-shadow: none !important; text-shadow: none !important; }
  a { color: #000 !important; text-decoration: none; }

  .site-header, .site-footer, .skip-link, .breadcrumb, .ad-slot, .mobile-summary,
  .no-print, .tool__form, .panel--project, .panel--assumptions, .tool-toolbar,
  .list-actions, .copy-fallback, .status-line, .segmented, .content, .tool-intro .lead,
  .results-empty, .unit-toggle, .menu-toggle, button { display: none !important; }

  /* On tool pages, keep only the results panel. */
  .tool { display: block !important; }
  .tool__results { position: static !important; max-height: none !important; overflow: visible !important; }
  .panel { border: 0 !important; padding: 0 !important; margin: 0 !important; }
  .panel__head .step-num { display: none; }

  .shopping-list { border: 1px solid #000 !important; padding: 10pt !important; }
  .stat, .stat--primary { background: #fff !important; border: 1px solid #000 !important; color: #000 !important; }
  .stat--primary .stat__value, .stat__label, .stat__note, .muted, .list__meta, .list__brand,
  .list__disclaimer, .list__url, .default-note, .list__assumptions dt { color: #000 !important; }
  .stat-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .callout { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; }
  .row--subtract th, .row--subtract td { color: #000 !important; }

  .table-scroll { overflow: visible !important; }
  table { width: 100% !important; border-collapse: collapse; }
  thead { display: table-header-group; }
  tr, th, td, .stat, .list__assumptions dl > * { page-break-inside: avoid; break-inside: avoid; }
  .data-table th, .data-table td { border-bottom: 1px solid #000 !important; color: #000 !important; }
  .list__table input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 12pt; height: 12pt; border: 1.5pt solid #000; border-radius: 2pt; }
  details > summary { list-style: none; }
  details > summary::-webkit-details-marker { display: none; }
  h1 { font-size: 16pt; margin: 0 0 4pt; }
  h2 { font-size: 13pt; }
  .reviewed, .result-extra > summary { display: none !important; }
}

@media print {
  .tool__setup, .choice-group, .subpanel, .legal-flag { display: none !important; }
  .notice { border: 1px solid #000 !important; background: #fff !important; color: #000 !important; }
}
