/* Public page gutters share the header's 1280px border-box canvas in every
   language. Inner reading measures, card padding and full-bleed backgrounds
   remain independent of this outer alignment. */
:root{--filesoft-canvas:1280px;--filesoft-gutter:48px}
@media(max-width:700px){:root{--filesoft-gutter:24px}}

/* Product, collection, service and enquiry templates. Only outer wraps count:
   nested screenshot disclosures and documentation sections keep their insets. */
body:has(>header.filesoft-header) main:not(.guide-main,.workflow-main,.study-main,.svg-main,.kit-main,.article-layout)>.wrap,
body:has(>header.filesoft-header) main>.download-section>.wrap,
body:has(>header.filesoft-header) main>.strip>.wrap{
 box-sizing:border-box;width:100%;max-width:var(--filesoft-canvas);
 margin-inline:auto;padding-inline:var(--filesoft-gutter);
}
/* A centered compatibility note can stay short without shifting its canvas. */
body:has(>header.filesoft-header) main>.wrap.compatibility>p{max-width:744px;margin-inline:auto}

/* Catalogs, tools, help and editorial pages: align their outer canvas while
   preserving the existing narrower text columns inside it. */
body:has(>header.filesoft-header)>main:is(.guide-main,.workflow-main,.study-main,.svg-main,.kit-main,.missing-page){
 box-sizing:border-box;width:100%;max-width:var(--filesoft-canvas);
 margin-inline:auto;padding-inline:var(--filesoft-gutter);
}

/* Documentation originally mixed content-box sizing with a different width. */
body:has(>header.filesoft-header) main>:is(.doc-heading,.doc-layout,.doc-index-body){
 box-sizing:border-box;width:100%;max-width:var(--filesoft-canvas);
 margin-inline:auto;padding-inline:var(--filesoft-gutter);
}

/* Theme pages and the homepage use full-width hero/purchase backgrounds. */
body:has(>header.filesoft-header) main>:is(.collection,.showcase,.included,.faq,.overview,.creator-section){
 box-sizing:border-box;width:100%;max-width:var(--filesoft-canvas);
 margin-inline:auto;padding-inline:var(--filesoft-gutter);
}
body:is(.collection-page,.product-page) main>:is(.hero,.purchase){
 padding-inline:max(var(--filesoft-gutter),calc((100% - var(--filesoft-canvas))/2 + var(--filesoft-gutter)));
}
body:is(.collection-page,.product-page) main>:is(.numbers,.palette-section,.more-themes){
 box-sizing:border-box;width:calc(100% - 2 * var(--filesoft-gutter));
 max-width:calc(var(--filesoft-canvas) - 2 * var(--filesoft-gutter));margin-inline:auto;
}
body:has(>header.filesoft-header)>:is(.site-feature,.product-choices),
body:has(>header.filesoft-header) main>.product-choices{
 box-sizing:border-box;width:100%;max-width:var(--filesoft-canvas);
 margin-inline:auto;padding-inline:var(--filesoft-gutter);
}
/* Callout cards align their outer border with the content edge. */
body:has(>header.filesoft-header) main>.service-invitation{
 box-sizing:border-box;width:calc(100% - 2 * var(--filesoft-gutter));
 max-width:calc(var(--filesoft-canvas) - 2 * var(--filesoft-gutter));margin-inline:auto;
}
/* DDR Explorer intentionally has a wider workspace and matching header. */
body:has(>header.filesoft-explorer-header)>:is(.site-language,.language-unavailable){
 max-width:1800px;padding-inline:3%;
}
@media(max-width:650px){
 body:has(>header.filesoft-explorer-header)>:is(.site-language,.language-unavailable){padding-inline:5%}
}
@media print{
 body:has(>header.filesoft-header)>main.article-layout{max-width:none;padding:0}
}
