@media print {
  /* Page setup */
  @page {
    margin: 1cm;
  }

  /* Base reset for print */
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Hide non-essential UI elements */
  nav,
  button,
  .progress-dots,
  .tiles,
  .trust-strip,
  .back-button,
  [role="navigation"],
  .btn,
  .cta,
  .nav,
  .header-actions {
    display: none !important;
  }

  /* Show only the output document */
  body > *:not(#step-output) {
    display: none !important;
  }

  #step-output {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Remove amber accent colors (prints poorly in B&W) */
  * {
    color: #111 !important;
    border-color: #ccc !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Scripts display with left border in gray */
  .script-block,
  .script,
  blockquote {
    border-left: 3px solid #999 !important;
    padding-left: 1em !important;
    margin: 1em 0 !important;
    page-break-inside: avoid !important;
  }

  /* Page break control */
  .route-card,
  .script-block,
  .script {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Ensure links are visible */
  a {
    text-decoration: underline !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555 !important;
  }
}
