/*
 * Wass'Muffin Digital v4.0.1 - layout stability hotfix.
 * Addresses unexpected horizontal document movement/clipping and hidden
 * section content when a scroll reveal observer does not complete.
 * Scoped to the theme, and intentionally leaves content and SEO unchanged.
 */
html { overflow-x: clip; }
body.wmd-theme {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
body.wmd-theme .wmd-main,
body.wmd-theme .wmd-site-footer {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: clip;
}
body.wmd-theme .wmd-container {
    width: min(1280px, calc(100% - 72px));
    max-width: calc(100% - 72px);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}
body.wmd-theme .wmdx-hero-layout,
body.wmd-theme .wmdx-split-heading,
body.wmd-theme .wmdx-section-top,
body.wmd-theme .wmdx-tech-layout,
body.wmd-theme .wmdx-value-layout,
body.wmd-theme .wmd4-article-layout,
body.wmd-theme .wmd-contact-layout,
body.wmd-theme .wmd-footer-cta,
body.wmd-theme .wmd-cta {
    max-width: 100%;
    min-width: 0;
}
body.wmd-theme .wmdx-hero-layout > *,
body.wmd-theme .wmdx-split-heading > *,
body.wmd-theme .wmd4-article-layout > *,
body.wmd-theme .wmd-contact-layout > *,
body.wmd-theme .wmd-cta > *,
body.wmd-theme .wmd-footer-cta > * {
    min-width: 0;
}
/* A flaky/deferred reveal observer must never make actual site content vanish.
   Keep the original section order and styling, but don't hide the content. */
html.wmdx-reveal-enabled body.wmd-theme [data-reveal] {
    opacity: 1;
    transform: none;
}
/* Keep common cards and CTA actions contained when embedded fonts or saved
   Studio copy run longer than the offline test fixtures. */
body.wmd-theme .wmd-cta-copy,
body.wmd-theme .wmd-cta-actions,
body.wmd-theme .wmd-footer-cta-copy,
body.wmd-theme .wmdx-hero-content {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
}
@media (max-width: 940px) {
    body.wmd-theme .wmd-container {
        width: calc(100% - 38px);
        max-width: calc(100% - 38px);
    }
    body.wmd-theme .wmdx-hero-layout { grid-template-columns: minmax(0, 1fr); }
    body.wmd-theme .wmd4-article-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    body.wmd-theme .wmd-container {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
    }
    body.wmd-theme .wmd-cta,
    body.wmd-theme .wmd-footer-cta {
        width: 100%;
        max-width: 100%;
    }
    body.wmd-theme .wmd-cta-actions,
    body.wmd-theme .wmd-cta-actions a {
        max-width: 100%;
    }
}
@supports not (overflow: clip) {
    html, body.wmd-theme { overflow-x: hidden; }
    body.wmd-theme .wmd-main,
    body.wmd-theme .wmd-site-footer { overflow-x: hidden; }
}
