/* Layout-only reserve space so the fixed #tam-ad-notice bar cannot cover page content.
   The notice is mounted on <html> (outside <body>) and is removed from the DOM when dismissed.
   These rules key only off that existing DOM state. They do not change notice copy, buttons,
   cookies, consent logic, or scripts. 200px is a sane max covering wrapped buttons and longer
   notice copy, plus the iOS safe-area inset. */
html:has(#tam-ad-notice) body {
  padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px));
}
html:has(#tam-ad-notice) h2 {
  scroll-margin-bottom: calc(200px + env(safe-area-inset-bottom, 0px));
}

/* /lp/ mobile only: the page's own stylesheet already sets body { padding-bottom: 96px }
   at max-width 700px for the .lp-sticky CTA. The rule above is more specific, so it
   replaced that 96px instead of adding to it. Keep both reserves while the notice is
   visible. body:has(.lp-sticky) is true only on the county LP pages; /lp/ itself has
   no sticky bar. */
@media (max-width: 700px) {
  html:has(#tam-ad-notice) body:has(.lp-sticky) {
    padding-bottom: calc(96px + 200px + env(safe-area-inset-bottom, 0px));
  }
}
