@media print {

  body::before {
    content: "TrafficTorch.net ⚖️\A\A SEO Intent Audit Tool 🎯\A\A Report:\A " attr(data-url);
    display: block;
    height: 100vh;
    min-height: 100vh;
    page-break-after: always;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #4b5563;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 900;
    text-align: center;
    padding-top: 20vh;
    line-height: 1.4;
    white-space: pre;
    font-size: 3.5rem;
    text-shadow:
      -2px -2px 0 #fb923c,
      2px -2px 0 #fb923c,
      -2px 2px 0 #fb923c,
      2px 2px 0 #fb923c,
      -2px 0 0 #fb923c,
      2px 0 0 #fb923c,
      0 -2px 0 #fb923c,
      0 2px 0 #fb923c,
      0 10px 30px rgba(0,0,0,0.5);
  }

  /* Report starts cleanly on next page */
  #results-wrapper {
    page-break-before: always;
    margin-top: 0 !important;
  }

  /* Full-width content inside results (keeps previous full-page fix) */
  #results-wrapper,
  #results-wrapper .container,
  #results-wrapper .max-w-*,
  #results-wrapper .mx-auto {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1cm 1.2cm !important;
    box-sizing: border-box;
  }

  /* Prevent ugly page breaks */
  .score-card,
  .fixes-panel,
  .full-details,
  section > div,
  .grid,
  .flex {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Better text breaking */
  p, li, div {
    orphans: 3;
    widows: 3;
  }

  /* General print safety */
  body {
    background: white !important;
    color: black !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11pt;
  }

  /* Remove shadows */
  .shadow-lg,
  .shadow-xl,
  [class*="shadow"] {
    box-shadow: none !important;
  }

  /* ──────────────────────────────────────────────────────────────
     TARGETED HIDING – only the elements you requested to remove
  ─────────────────────────────────────────────────────────────── */
  /* How the SEO Intent Tool Works accordion */
  .max-w-4xl.mx-auto.my-16 details.group,
  /* Why Search Intent Matters accordion */
  .max-w-4xl.mx-auto.my-16 details.group:nth-of-type(2),
  /* SEO Intent Checklist section */
  #seo-ux-checklist,
  /* Deep Dive into SEO Intent Modules section */
  section.py-20.bg-gray-50.dark\:bg-gray-900,
  /* Tools grid (Keyword/Local/More tools) */
  .tools-grid,
  /* Author Bio & Credibility section */
  section.max-w-5xl.mx-auto.my-24,
  /* AddToAny share buttons (both instances) */
  div[style*="display: flex; justify-content: center; margin: 30px 0;"],
  .a2a_kit,
  /* Breadcrumbs */
  div.max-w-5xl.mx-auto.px-6.py-4.text-center,
  /* Bottom banner infographic */
  section.bottom-banner,
  /* Any leftover large containers that might slip through */
  .max-w-7xl.mx-auto {
    display: none !important;
  }

  /* ──────────────────────────────────────────────────────────────
     Keep showing fixes & expanded content
  ─────────────────────────────────────────────────────────────── */
  .fixes-panel,
  .full-details,
  .expand-content,
  .hidden.mt-4,
  .hidden.mt-6,
  .hidden.mt-8 {
    display: block !important;
  }

  /* Hide form/progress/header/footer/etc (your original) */
  #keyword-form,
  #analysis-progress,
  header,
  footer,
  nav,
  aside,
  .no-print,
  button,
  details > summary {
    display: none !important;
  }

/* Hide promotional / educational blocks via unique IDs – safe from JS class changes */
#author-bio,
#promo-high-impact-cards,
#promo-old-vs-modern-seo {
  display: none !important;
}
}