/* Print chooser (fix 14 Nov 2026, ?v=20261114-print2) - shared add-on for all recipe pages.
   Dialog scrolls on short screens; z-index sits above Auto ads; buttons stay visible.
   print2: on iPhone/iPad, 100vh is taller than the visible screen, so also cap the box at 100dvh. */
.co-pp-head,.co-pp-no-page{display:none}
.co-pp-no-page{display:inline-block;font:600 .8rem/1.2 system-ui,sans-serif;color:#7c5b2e;background:#fff7e0;border:1px dashed #c2410c;border-radius:6px;padding:2px 8px;margin:4px 0}
.co-pp-back{position:fixed;inset:0;background:rgba(30,20,10,.55);z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:12px 0;box-sizing:border-box}
.co-pp-back[hidden]{display:none}
.co-pp{background:#fffdf7;border:3px solid #111;border-radius:14px;box-shadow:6px 6px 0 #c2410c;max-width:460px;width:92%;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:20px 22px;font:16px/1.4 system-ui,sans-serif;color:#111;display:flex;flex-direction:column;box-sizing:border-box}
.co-pp h2{font:800 1.4rem/1.1 "Bricolage Grotesque",system-ui,sans-serif;margin:0 0 4px;color:#c2410c}
.co-pp p.sub{margin:0 0 10px;font-size:.88rem;color:#555}
.co-pp .quick{font-size:.88rem;margin:0 0 8px}.co-pp .quick a{color:#c2410c;font-weight:700;cursor:pointer;text-decoration:underline}
.co-pp ul{list-style:none;margin:0 0 14px;padding:0;columns:1;overflow:auto;flex:1 1 auto;min-height:0}
.co-pp li label{display:flex;gap:10px;align-items:center;padding:5px 4px;border-bottom:1px solid #eee3cc;cursor:pointer}
.co-pp input{width:18px;height:18px;accent-color:#c2410c}
.co-pp .btns{display:flex;gap:10px;justify-content:flex-end;flex-shrink:0}
.co-pp button{font:700 1rem system-ui,sans-serif;border-radius:999px;padding:9px 18px;border:2px solid #111;cursor:pointer}
.co-pp .go{background:#111;color:#fff}.co-pp .cancel{background:#fff}
.co-pp .note{font-size:.78rem;color:#777;margin:8px 0 0}
@media print{
  html body.co-pp-on .co-pp-back{display:none!important}
  body.co-pp-on .rx-hero,body.co-pp-on .rx-photo,body.co-pp-on .ad,body.co-pp-on ins.adsbygoogle,body.co-pp-on [class*="ad-"],body.co-pp-on .co-pp-no-page,body.co-pp-on #rx-rate,body.co-pp-on .rx-shop-tools{display:none!important}
  body.co-pp-on .co-pp-off{display:none!important}
  body.co-pp-on #rx-history:not(.co-pp-off){display:block!important}
  body.co-pp-on .co-pp-head{display:block!important;border-bottom:2px solid #c2410c;padding:0 0 4pt;margin:0 0 6pt;font-family:system-ui,sans-serif}
  .co-pp-head .top{display:flex;justify-content:space-between;align-items:center}
  .co-pp-head .brand{display:flex;align-items:center;gap:6pt;font:700 10pt system-ui,sans-serif;color:#111}
  .co-pp-head .brand img{height:20pt;width:auto}
  .co-pp-head .num{font:600 8.5pt system-ui,sans-serif;color:#444;text-align:right}
  .co-pp-head h1{font:800 17pt/1.1 "Bricolage Grotesque",system-ui,sans-serif;margin:4pt 0 2pt;color:#111}
  .co-pp-head .sum{font-size:9pt;margin:0 0 2pt;color:#222}
  .co-pp-head .facts{font-size:8.5pt;line-height:1.35;color:#444;margin:0;white-space:normal;overflow-wrap:anywhere}
  body.co-pp-on .rx-card{box-shadow:none!important;border:0!important;margin:0 0 6pt!important;padding:0!important;break-inside:auto}
  body.co-pp-on .rx-card h2{font-size:12pt;margin:4pt 0 2pt;break-after:avoid}
  body.co-pp-on .rx-body{font-size:9.5pt;line-height:1.3}
  body.co-pp-on main,body.co-pp-on .rx{margin:0!important;padding:0!important;max-width:none!important}
}
@media print{
  body.co-pp-on .co-pp-head h1{text-shadow:none!important;-webkit-text-stroke:0!important}
  body.co-pp-on #ingredients,body.co-pp-on #method,body.co-pp-on #ingredients *,body.co-pp-on #method *{font-size:9.5pt!important;line-height:1.3!important}
  body.co-pp-on #ingredients h2,body.co-pp-on #method h2{font-size:12pt!important}
  body.co-pp-on .rx-step{padding:3pt 0!important}
}
/* print fix 8 Nov 2026: no adverts in any printout (chooser or Ctrl+P), ingredients stacked above method */
@media print{
  .co-ad,.rx-ad,ins.adsbygoogle,.adsbygoogle,.google-auto-placed,[id^="aswift"],[id^="google_ads"],[data-anchor-status],[data-ad-status],iframe{display:none!important;visibility:hidden!important;height:0!important}
  .rx-grid{display:block!important}
  .rx-grid>*,.rx-side,#ingredients,#method{width:auto!important;max-width:none!important;position:static!important;float:none!important;grid-column:auto!important}
  #ingredients{margin-bottom:8pt!important}
}

/* Optional main photo: hidden on screen and unless selected in the print chooser. */
.co-pp-photo{display:none}
@media print{
  body.co-pp-on .co-pp-photo:not(.co-pp-off){display:block!important}
}
