/* Scorecard full report: print and "Save as PDF" (issue #70; Wayne, 17 October 2026).
   Loaded with media="print" on the scorecard pages only, after site.css and scorecard.css, so it
   changes nothing on screen or anywhere else on the site. site.css's own print block already forces
   the light palette (black on white, accent #1D5C4A, which stays dark in greyscale).
   The footer and page numbers use @page margin boxes (Chromium-based browsers; others print without
   them). The slim header is the report's own .sc-print-head, hidden on screen with [hidden]. */

@page{
  size:A4;
  margin:16mm 16mm 18mm;
  @bottom-left{content:"waynegibbins.com \00B7  wgibbins@pm.me";font:8pt/1.2 "Inter","Inter Fallback",system-ui,sans-serif;color:#555}
  @bottom-right{content:"Page " counter(page) " of " counter(pages);font:8pt/1.2 "Inter","Inter Fallback",system-ui,sans-serif;color:#555}
}

/* Only the report prints: no site chrome, no hero, no free result around it, no forms or buttons. */
body:has(.sc-report) header.site,
body:has(.sc-report) footer.site,
body:has(.sc-report) .skip-link,
body:has(.sc-report) .draftbar,
body:has(.sc-report) .theme-toggle,
body:has(.sc-report) main > section.hero,
body:has(.sc-report) main > section:not(:has(.sc-report)),
body:has(.sc-report) .section-head,
body:has(.sc-report) .sc-result > :not([data-sc-report]),
body:has(.sc-report) .sc-call,
body:has(.sc-report) .sc-gate,
body:has(.sc-report) .sc-notfit:not(.sc-report .sc-notfit),
.sc-report .btns,
.sc-report .btn,
.sc-report .more,
.sc-report .sc-screen-meta,
.sc-noprint{display:none!important}
/* server-rendered result page links ("Open your full report") never print */
body:has(.sc-report) main p.btns{display:none!important}

body:has(.sc-report){font-size:10.5pt;line-height:1.45}
body:has(.sc-report) main > section{padding:0!important;border:0!important;margin:0}
body:has(.sc-report) .wrap{max-width:none;padding:0}
.sc-result,.sc-report{max-width:none!important;width:auto!important;margin:0!important;padding:0!important}

/* Slim header, first page */
.sc-print-head[hidden]{display:block!important}
.sc-print-head{border-bottom:1pt solid #1D5C4A;padding:0 0 3mm;margin:0 0 6mm}
.sc-print-brand{margin:0;font:600 11pt/1.3 "Source Serif 4","Serif Fallback",Georgia,serif;color:#000}
.sc-print-meta{margin:1mm 0 0;font-size:8.5pt;color:#3a3a3a}

/* Headings and type */
.sc-report h2{font-size:20pt;margin:0 0 3mm;break-after:avoid}
.sc-report h3{font-size:13pt;margin:7mm 0 2mm!important;break-after:avoid}
.sc-report h4{font-size:11pt;margin:0 0 1.5mm;break-after:avoid}
.sc-report p{orphans:3;widows:3}
.sc-report .lede{font-size:11pt;color:#000}
.sc-report a{color:#000;text-decoration:none}
.sc-report a::after{content:none!important}

/* Score and bars: keep the fill whatever the "Background graphics" setting */
.sc-score{break-inside:avoid;margin:0 0 4mm}
.sc-score-num .num{font-size:40pt!important;line-height:1}
.sc-meter{-webkit-print-color-adjust:exact;print-color-adjust:exact;height:3mm}
.sc-bars{break-inside:avoid}
.sc-bar{break-inside:avoid}
.badge{-webkit-print-color-adjust:exact;print-color-adjust:exact}

/* Blocks never split; a heading stays with what follows */
.sc-cat,.sc-insight,.sc-next,.card,.sc-score,.sc-bars{break-inside:avoid;page-break-inside:avoid}
.sc-cat{padding:2.5mm 0!important}
.card{border:0.75pt solid #999!important;box-shadow:none!important;padding:4mm!important}

/* Insights: label and source stay legible */
.sc-insight{border-left:2pt solid #1D5C4A!important;padding:2mm 0 2mm 4mm!important;margin:0 0 3mm!important;background:none!important}
.sc-insight-label{font-size:8pt;letter-spacing:.06em;text-transform:uppercase;color:#1D5C4A;margin:0 0 1mm}
.sc-source{font-size:8.5pt;color:#333!important;margin:1mm 0 0}
.form-note{color:#333!important}
