@media print {
  /* Force a clean print canvas */
  body { background: #fff !important; background-image: none !important; color: #000 !important; }
  body * { box-shadow: none !important; backdrop-filter: none !important; }

  /* Hide chrome */
  .top-nav, .progress-bar,
  .results-summary-actions, .compare-head-actions,
  .compare-tray, #toast-root, .kbd-hint,
  .result-compare-toggle, .results-edit, .results-show-est,
  .optional-filter, .inline-toggle, .step-actions {
    display: none !important;
  }

  /* Show full disclaimer at top */
  .disclaimer-banner {
    background: #fff !important;
    border: 1px solid #888 !important;
    color: #222 !important;
    page-break-after: avoid;
  }

  /* Result cards: avoid splitting */
  .result-card, .cmp-section, .gate-page {
    page-break-inside: avoid;
    border: 1px solid #888 !important;
    background: #fff !important;
  }
  .result-card { margin-bottom: 12px; padding: 16px; }

  /* Match-status badges: drop colour and show as text */
  .status-badge { color: #000 !important; background: transparent !important; border: 1px solid #888; padding: 2px 8px; }
  .status-badge-dot { display: none; }

  /* Footer with dataset version + page number */
  body::after {
    content: 'QB CLEAR · dataset v2025-01 · Indicative only · Verify with each institution before applying';
    display: block;
    position: fixed; bottom: 0; left: 0; right: 0;
    border-top: 1px solid #888;
    padding: 6px 12px;
    font-size: 10px; color: #555;
    text-align: center;
  }

  /* Page setup */
  @page { margin: 18mm 14mm 24mm; size: A4; }
}
