/* ── Print-Friendly Styles ──
 * Loaded via <link rel="stylesheet" href="/print.css" media="print">
 * Browsers fetch print stylesheets at low priority and never apply them
 * to screen rendering, so this CSS is excluded from the critical render
 * path and from Lighthouse's "unused CSS" screen-rendering budget.
 */
@media print {
  header, footer, nav, aside,
  .sidebar, .no-print,
  [data-radix-popper-content-wrapper],
  .climate-btn, button:not(.print-keep),
  .cookie-consent, .pwa-prompt,
  .mobile-bottom-nav {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  .print-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; }
  thead { display: table-header-group; }

  .card, [class*="Card"] {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .contract-content, .pdd-content {
    font-size: 11pt;
    line-height: 1.6;
  }

  @page {
    margin: 2cm;
    size: A4;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  .badge, [class*="Badge"] {
    border: 1px solid #999 !important;
    color: black !important;
    background: white !important;
  }
}
