/* Blog embed mode: the blog shown inside the app (Articles tab web view)
   or the web dashboard's Articles panel (iframe). /blog/embed.js puts
   `app-embed` on <html> before first paint when the URL carries ?app=1.
   Without that class nothing here applies, so public visitors see the
   blog unchanged.

   Hidden: the site header (logo, links, "Create free account"), the
   sign-up cards, and the footer. The footer's legal line (blog index:
   "Educational content, not veterinary advice") stays visible. The site
   header is sticky, not fixed, so there is no body offset to undo. */

html.app-embed .land-nav,
html.app-embed .nav-cta,
html.app-embed .cta-card,
html.app-embed .cta-sec { display: none !important; }

html.app-embed body { padding-top: 0; }

/* Footer: keep only the disclaimer; drop footers that have none. */
html.app-embed .land-footer > :not(.lf-legal) { display: none !important; }
html.app-embed .land-footer:not(:has(.lf-legal)) { display: none !important; }
html.app-embed .land-footer { border-top: 0; padding-top: 8px; }

/* Klaviyo onsite forms (popups, flyouts, teaser tabs) injected at runtime
   by klaviyo.js; the reader is already signed in to the app. */
html.app-embed div[class*="kl-private-reset-css"],
html.app-embed div[class*="klaviyo-form"],
html.app-embed [class^="kl-teaser"],
html.app-embed [aria-label="POPUP Form"],
html.app-embed [aria-label="FLYOUT Form"] { display: none !important; }
