/* QuinnGenealogy V2 — final print corrections, 2026-09-21 */
@media print {

  /* 1. Hero: print as ordinary document content.
     Background/overlay effects caused the page-1 text interference. */
  .hero,
  .page-hero,
  .site-hero,
  .home-hero,
  .qg-hero,
  [class*="hero"] {
    background-image:none !important;
    background:none !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    position:static !important;
  }

  .hero::before,.hero::after,
  .page-hero::before,.page-hero::after,
  .site-hero::before,.site-hero::after,
  .home-hero::before,.home-hero::after,
  .qg-hero::before,.qg-hero::after,
  [class*="hero"]::before,[class*="hero"]::after {
    content:none !important;
    display:none !important;
    background:none !important;
  }

  .hero *,
  .page-hero *,
  .site-hero *,
  .home-hero *,
  .qg-hero *,
  [class*="hero"] * {
    position:static !important;
    transform:none !important;
    text-shadow:none !important;
  }

  /* 2. Research cards should not split across sheets. */
  .card,
  .research-card,
  .evidence-card,
  .document-card,
  .profile-card,
  .person-card,
  .method-card,
  .research-path-card,
  [class*="card"] {
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }

  /* Keep headings with the content that follows them. */
  h1,h2,h3,h4,h5,h6 {
    break-after:avoid-page !important;
    page-break-after:avoid !important;
  }

  /* 3. A web footer must never consume a separate printed sheet. */
  footer,
  .site-footer,
  #site-footer,
  .qg-footer,
  [class*="site-footer"] {
    display:none !important;
  }
}
