html,
body {
    min-height: 100%;
}

body[data-community-preview="true"] {
    margin: 0;
    /* Tenant Community CSS remains the visual authority; do not impose the admin theme. */
}

body.body-community {
    /* Legacy site.community.js reveals this class with fadeIn after WebForms finishes loading.
       Core loads the stable asset contract in the head and never runs that legacy bundle, so
       every native public or preview portal must be visible without depending on JavaScript. */
    display: block;
}

body[data-community-preview="true"] .pageform.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

#sb-community-root[aria-busy="true"] {
    cursor: progress;
    /* Keep the current page fully painted until its replacement is ready. Dimming the entire
       header/content/footer on every GET caused a visible flash, not useful loading feedback. */
}

.sb-community-state {
    max-width: 42rem;
    margin: 4rem auto;
    padding: 2rem;
    border: 1px solid #dbe4ee;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .75rem 2rem rgb(15 23 42 / 8%);
}
