/* R6: one content boundary for the header, page sections and footer. */
:root{
  --fkm-content-max:1260px;
  --fkm-page-gutter:40px;
  --fkm-content-width:min(calc(100% - 2 * var(--fkm-page-gutter)),var(--fkm-content-max));
  --fkm-side-inset:max(var(--fkm-page-gutter),calc((100% - var(--fkm-content-max)) / 2));
}
html{scrollbar-gutter:stable}
body .shell,
body.premium .shell,
body[data-page="prints"] .shell,
body.fkm-homepage-final .shell,
body .shared-header .shared-shell,
body .shared-footer .shared-shell{
  box-sizing:border-box;
  width:var(--fkm-content-width);
  max-width:var(--fkm-content-max);
  min-width:0;
  margin-inline:auto;
  padding-inline:0;
}

/* A panel's inner padding is intentional; its outer edges use the same grid. */
body .order-steps{
  width:var(--fkm-content-width);
  max-width:var(--fkm-content-max);
  margin-inline:auto;
}
body[data-page="prints"] .reference-category-strip{
  width:var(--fkm-content-width);
  max-width:var(--fkm-content-max);
  padding-inline:15px!important;
}
body.fkm-homepage-final .promo-strip{padding-inline:24px}

/* Independent page styles must not alter the shared navigation geometry. */
body .shared-header{
  font-family:Lato,Arial,sans-serif;
  font-size:14px;
  line-height:1.5;
  border:0;
  margin:0;
  padding:0;
}
body .shared-header .shared-header-inner{
  min-height:100px;
  height:auto;
  padding-block:0;
}
body .shared-header button{font-family:inherit}
body .shared-header .shared-brand img{margin:0;flex:none}
body .shared-header .shared-tools{margin-block:0;flex-shrink:0}
body .shared-footer .footer-grid{padding-inline:0}
body .shared-footer .footer-base{padding-inline:0}

/* Keep editor navigation and the workspace on the storefront's content lines. */
body.shared-editor .app-header{padding-inline:var(--fkm-side-inset)}
body.shared-editor .editor-root{
  width:var(--fkm-content-width);
  max-width:var(--fkm-content-max);
  margin-inline:auto;
}

@media(max-width:1024px){
  :root{--fkm-page-gutter:24px}
}
@media(max-width:1050px){
  body .shared-header .shared-header-inner{min-height:82px}
  body .shared-header .shared-nav{padding-inline:var(--fkm-side-inset)}
}
@media(max-width:850px){
  body[data-page="prints"] .reference-category-strip{padding-inline:10px!important}
}
@media(max-width:760px){
  body .shared-header .shared-upload{display:none}
}
@media(max-width:600px){
  :root{--fkm-page-gutter:18px}
  body.fkm-homepage-final .promo-strip{padding-inline:18px}
}
