/* The page around a sub-site's content: what the WordPress page around its iframe was. The header, footer and
   floating buttons have their own CSS in shadow roots (layout.css, see Layout.php); this is all that is shared
   with the page's own CSS. */
/* (html:not(:where(.ace-bare)): not in a bare window, see the end; same specificity as html) */
html:not(:where(.ace-bare)) { overflow-y: scroll; scroll-behavior: smooth; }  /* the theme's <html> */
@media screen { :where(html:not(.ace-bare)) { background-color: #00a3d8; } :where(html:not(.ace-bare)) :where(body) { background-color: #fefeff; } } /* the theme's: blue below a short page, #fefeff under the content (an app's own background wins) */
@media print { :where(html:not(.ace-bare)) { background-color: #00a3d8; } } /* the theme's print background (--brand-primary) */
html body { margin: 0; }

/* main.ace-app is the old iframe's box (.min-vh-iframe), div.ace-app-body the <body> inside it, with the
   browser's 8px margin. flow-root keeps the content's margins inside, as the iframe did. */
.ace-app { display: flow-root; min-height: 65vh; overflow-x: auto; } /* wide content scrolls in the box, not the page */
@media screen and (min-width: 300px) { html:not(:where(.ace-bare)) { scroll-padding-top: 180px; } } /* in-page links (#anchors) land below the fixed header, as they did in the iframe */
@media screen and (min-width: 880px) {
	.ace-app { min-height: calc(99vh - 131px - 152px); }
}
.ace-app-body { margin: 8px; }

/* a bare window (Layout::head's bare option: opened by an app's "Open ... in a new window" link): the pages as they
   were on their own, without the site's header and footer; the floating buttons stay */
html.ace-bare ace-header, html.ace-bare ace-footer { display: none; }
html.ace-bare .ace-app { display: block; min-height: 0; overflow-x: visible; }
