/* Issue 47 overlap fix (Dec. 1, 2026).
   1) Print/PDF: nothing may run under the page footer (p. 1, p. 9, p. 25 and tight pages).
   2) Screen pages are scaled with transform; their spacing is now set by p47-page-fit.js from each
      page's real height so a taller page can no longer slide under the next page.
   Layout/spacing only: no copy, photo or poster is changed. */

/* ---- Print / PDF ---- */
@media print {
  /* p. 1: the "Tonight and this week" box ran 15px under the footer */
  html body section.page#front .mvfront47 > div:nth-of-type(2) > div:first-child > div{margin-bottom:1px!important}
  html body section.page#front .mvfront47{padding:3px 9px!important;margin:0 0 4px!important}
  html body section.page#front .stglead47{margin:0 0 5px!important;padding-bottom:4px!important}
  html body section.page#front .ap44{margin:0 0 3px!important;padding:1px 6px!important}
  html body section.page#front .fmast{padding-bottom:1px!important}
  html body section.page#front .stglead47 figcaption{line-height:1.2!important}
  html body section.page#front .calstrip44{margin:2px 0 0!important;padding:5px 6.72px!important}
  html body section.page#front .calstrip44 p.more{margin:0 0 2px!important}
  html body section.page#front .calstrip44 p.tonight46{margin:1px 0 2px!important}
  /* p. 9: the "Across both municipalities" box ran 11px under the footer */
  html body section.page#p47-wards2 .wacross46{margin-top:3px!important;padding:3px 8px!important}
  html body section.page#p47-wards2 .wacross46 ul{margin:4px 0 4px!important}
  html body section.page#p47-wards2 .wacross46 li{margin:0 0 2px!important}
  html body section.page#p47-wards2 .wacross46 p.src{margin:0 0 2px!important}
  /* p. 25: the unaltered Legion poster (8.15in tall) was taller than its frame, so it sat on top of the
     small "Advertisement" label and ran to within 8px of the footer. Scale it (no crop) to fit under the label. */
  html body section.page#p47-legion-ad .legionad47-poster{height:auto!important;max-height:7.55in!important;flex:1 1 0!important}
  html body section.page#p47-legion-ad .legionad47-poster img{max-height:7.5in!important;max-width:100%!important;width:auto!important;height:auto!important}
}
