/* frontend/static/price_transparency/pt-print.css
   Loaded with media="print" — only applies when the user prints. */
@media print {
  /* Strip interactive chrome. */
  .pt-masthead-nav,
  .pt-dashboard-search,
  .pt-share-strip,
  .pt-procedure-summary-actions,
  .pt-procedure-filter,
  .pt-filter-row,
  .pt-sort-link::after,
  .pt-oop-form,
  .pt-link-arrow,
  form,
  button { display: none !important; }

  /* Force light background for ink-on-paper printing. */
  body { background: white !important; color: black !important; }
  .pt-card, .pt-leaderboard-tile-card, .pt-oop-widget,
  .pt-procedure-summary { background: transparent !important; box-shadow: none !important; }

  /* Always show URL for self-citing prints. */
  body::after {
    content: "Retrieved from " attr(data-print-url) " on " attr(data-print-date);
    display: block; font-size: 0.7rem; margin-top: 1.5rem;
    color: #666; border-top: 1px solid #ccc; padding-top: 0.5rem;
  }

  a { color: black; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.78em; color: #666; }

  table.pt-table { page-break-inside: auto; border-collapse: collapse; }
  table.pt-table tr { page-break-inside: avoid; page-break-after: auto; }
  table.pt-table th, table.pt-table td {
    border: 1px solid #999 !important; padding: 4px 8px !important;
  }

  /* Don't print the chart canvases — they're empty in print. */
  .pt-chart-wrap { display: none !important; }

  /* Hide the cite popover and the near-summary banner — both are
     interactive affordances; the printed footer ("Retrieved from <url>")
     already supplies the citation context. */
  .pt-citation-wrap, .pt-citation-popover, .pt-near-summary {
    display: none !important;
  }
}
