/* Print styles for the whole site, loaded with media="print".
   Goal: when an owner prints a calculator result, the checklist score or an article,
   they get the content, not the menus, chat button and sales banners. */
@page { margin: 14mm; }

/* site chrome */
.ocf-topbar, .ocf-header, .ocf-mega-menu, .ocf-footer, .ocf-skip,
.fai, .fc-mbar, .ocf-sticky-cta, #consultation, .ocf-cta-grid,
.fc-progress, .fc-aside, .fc-share-row, .fc-related-wrap, .fc-back,
.gl-bar, .gl-search, .gl-box--cta, .rh-band {
    display: none !important;
}

/* intro and sales sections on the three tool pages: print the inputs and results only */
#ckHero, #ckHowItWorks, #ckLeadCapture, .ck-cta-mega, .ck-restart-wrap,
#fcHero, #fcHowItWorks, #fcLeadCapture, .fc-cta-section,
#wsHero, #wsHowItWorks, #wsLeadCapture, .ws-cta-section {
    display: none !important;
}

body, body.ocf-page { background: #fff !important; color: #000 !important; padding-bottom: 0 !important; }
main { padding: 0 !important; margin: 0 !important; }

/* keep scores, bars and highlights in colour so results stay readable */
.ck-results-section, .fc-results-section, .ws-results-section, .rh-tank, table, .gl-def {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* never split a result card, table row or heading from what follows it */
table, tr, .ck-result-card, .fc-result-card, .gl-card, .gl-def { break-inside: avoid; }
h1, h2, h3 { break-after: avoid; }

/* show where a link goes when the page is on paper */
.fc-prose a[href^="/"]::after, .gl-body a[href^="/"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; word-break: break-all; }
.fc-prose a.fc-gloss::after { content: none; }
