/* hk-print.css — card-only printing for recipe pages (owner call 2026-09-09, matching HCN).
   Linked as <link rel="stylesheet" href="/hk-print.css" media="print"> ONLY on pages that carry a
   WPRM recipe card (injectPrintCss in transform.mjs + the recipe template). Everything outside the
   card is removed from the FLOW with display:none — never visibility:hidden, which keeps the hidden
   article's height and prints as blank trailing pages. */
.site-overlay, .offcanvas, #masthead, .site-header, .entry-header, .entry-single-header,
.section-footer-posts, #colophon, .site-footer, .pk-mobile-share-overlay, #fb-root,
.hk-author-box, .pk-share-buttons, .pk-share-buttons-block, .post-sidebar, aside, #secondary,
.entry-footer, .entry-meta, .cs-entry__post-media, .wprm-recipe-template-snippet,
.post-media, .entry-sidebar, .post-section, .hk-recipe-cta,
.site-content .cs-container > :not(#content),
.entry-content > :not(.wprm-recipe-container) { display: none !important; }

html, body, #page, .site-inner, .site-content, .cs-container, #content, #primary, #main,
article, .entry-container, .entry-content-wrap, .entry-content {
  margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important;
  min-height: 0 !important; height: auto !important; background: #fff !important;
}

/* Bare text nodes sitting directly in .entry-content (unwrapped prose between blocks) survive an
   element-level display:none, so collapse the container's own text and restore it on the card. */
.entry-content { font-size: 0 !important; line-height: 0 !important; }
.wprm-recipe-container { font-size: 16px !important; line-height: 1.5 !important; }
.wprm-recipe-container { position: static !important; box-shadow: none !important; margin: 0 !important; page-break-inside: auto; }
.wprm-recipe { border: none !important; }
.wprm-recipe-print, .wprm-recipe-pin, .wprm-recipe-link, .wprm-recipe-buttons,
.wprm-recipe-jump, .wprm-recipe-jump-to-video, .wprm-recipe-video-container, .wprm-recipe-share { display: none !important; }
.wprm-recipe-image img { max-width: 220px !important; height: auto !important; }
/* The card's trailing ornament (spacer + search-icon divider + spacer) can spill onto an otherwise
   blank last page; the recipe ends at the Notes block, so drop it. */
.wprm-recipe .wprm-spacer:last-child, .wprm-recipe .wprm-icon-shortcode:nth-last-child(2),
.wprm-recipe .wprm-spacer:nth-last-child(3) { display: none !important; }
a { text-decoration: none !important; color: inherit !important; }
