/* static-fixes.css — robdix.com static archive.
   The static build strips ALL JavaScript. This file reproduces the intended default visual
   for the few JS-driven bits, and hides orphaned JS-only controls. Injected into every page
   <head> by the cleaner. Most of the site (writings-pro theme + Elementor /myths) renders
   correctly from its own inlined CSS, so this file is deliberately small. */


/* === writings-pro: "Back to Top" button ===
   A JS scroll widget. Without its JS it just shows the words "Back to Top" as stray vertical
   text in the corner of every page. Hide it — there's no scroll handler on a static page. */
.back-to-top { display: none !important; }


/* === Elementor /myths: full-width section content sprawl ===
   Non-boxed Elementor sections whose regenerated per-page CSS (post-*.css) is 404 at origin
   lose their inner max-width and can stretch edge-to-edge on very wide screens. Cap the inner
   container to the /myths content width; backgrounds still go full-bleed. */
.elementor-section:not(.elementor-section-boxed) > .elementor-container {
  max-width: 1140px; margin-left: auto; margin-right: auto;
}


/* === Elementor /myths: EmbedPress PDF viewer ===
   The JS PDF viewer is replaced by a plain <iframe> pointing at the localized PDF (browsers
   render PDFs natively). Ensure the iframe container keeps a usable height and the iframe
   fills it (the origin markup sets width:600% which we normalize). */
.pdfobject-container,
.embedpress-document-embed { min-height: 600px; }
iframe.embedpress-embed-document-pdf {
  width: 100% !important; height: 600px; max-width: 100%; display: block;
}
