/* WP-24 Part 19–20 — My Plan Print Stylesheet */
@media print {
  /* Hide non-essential chrome */
  .site-header,
  .site-footer,
  .mobile-nav-drawer,
  .mobile-nav-overlay,
  .skip-link,
  .btn,
  form,
  nav,
  #print-btn,
  #export-btn,
  .no-print {
    display: none !important;
  }

  /* Base */
  body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    margin: 0;
    padding: 0 0.5in;
  }

  /* My Plan print header */
  .print-header {
    display: block !important;
    border-bottom: 2pt solid #1a365d;
    padding-bottom: .5rem;
    margin-bottom: 1rem;
  }

  .print-header h1 {
    font-size: 18pt;
    font-weight: bold;
    margin: 0 0 .2rem;
  }

  .print-header p {
    font-size: 9pt;
    color: #555;
    margin: 0;
  }

  /* Section headings */
  h2, h3 {
    page-break-after: avoid;
    font-family: Arial, sans-serif;
  }

  h2 {
    font-size: 13pt;
    border-bottom: 1pt solid #ccc;
    padding-bottom: 3pt;
    margin-top: 1.2rem;
  }

  h3 {
    font-size: 11pt;
  }

  /* Profile section cards */
  .profile-section {
    border: 1pt solid #ddd;
    border-radius: 0;
    padding: .5rem;
    margin-bottom: .75rem;
    page-break-inside: avoid;
  }

  /* Table formatting */
  table {
    border-collapse: collapse;
    width: 100%;
  }
  th, td {
    border: 1pt solid #ddd;
    padding: 4pt 6pt;
    font-size: 10pt;
    text-align: left;
  }
  th {
    background: #f0f4f8;
  }

  /* Badges — print as text */
  .badge {
    border: 1pt solid #999;
    background: transparent;
    color: #000;
    font-size: 8pt;
    padding: 1pt 4pt;
  }

  /* My Plan saved organization list */
  .plan-org-card {
    border: 1pt solid #ddd;
    margin-bottom: .5rem;
    padding: .4rem;
    page-break-inside: avoid;
  }

  /* Page break hints */
  .page-break-before { page-break-before: always; }
  .page-break-avoid  { page-break-inside: avoid; }

  /* Links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555;
  }

  a[href^="/"]::after {
    content: " (canadianinsuranceregistry.ca" attr(href) ")";
    font-size: 8pt;
    color: #555;
  }

  a.no-print-url::after {
    content: "";
  }

  /* Footer */
  .print-footer {
    display: block !important;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 8pt;
    color: #888;
    border-top: 1pt solid #ddd;
    padding-top: 4pt;
    text-align: center;
  }
}
