/* MeetSpan — Print styles (Phase 2) */
@media print {
  /* Use clean paper-friendly output */
  html, body {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide chrome + interactive UI */
  header, nav, footer,
  .ms-site-header, .ms-site-footer,
  .ms-skip-link,
  .ms-back-to-top, #back-to-top, [data-back-to-top],
  .ms-ad-slot,
  .no-print, .print-hidden,
  button, .btn, .button,
  .ms-toc, .toc, .quick-links,
  .ms-actions, .ms-controls,
  .cookie, .banner, .notice {
    display: none !important;
  }

  /* Expand containers that normally scroll */
  .overflow-x-auto, .overflow-auto, .overflow-y-auto,
  [style*="overflow"], [class*="overflow-"] {
    overflow: visible !important;
  }

  /* Ensure <details> content prints even when collapsed */
  details {
    display: block !important;
  }
  details > summary {
    display: none !important;
  }
  details:not([open]) > *:not(summary) {
    display: block !important;
  }

  /* Tables print correctly across pages */
  table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
  tr, th, td {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Avoid cutting cards/sections awkwardly */
  section, article, .card, .panel, .ms-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Remove heavy visuals */
  .shadow, .shadow-sm, .shadow-md, .shadow-lg,
  [class*="shadow"] {
    box-shadow: none !important;
  }
  [class*="backdrop-blur"], .backdrop-blur {
    backdrop-filter: none !important;
  }

  /* Link styling (keep readable) */
  a, a:visited {
    color: #000 !important;
    text-decoration: underline !important;
  }
}
