/* Keep the viewport width stable whenever a modal locks document scrolling. */
html:has(body:is(.maju-furniture,.maju-chair,.maju-academy)){scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:auto}
html:has(body:is(.maju-furniture,.maju-chair,.maju-academy):has(dialog[open])){scrollbar-gutter:stable}
/* Shared secondary-page header and homepage category treatment. */
body:is(.maju-furniture,.maju-chair,.maju-academy){--shared-header-drop:calc((83px + env(safe-area-inset-top)) * .15)}
body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head{position:fixed;z-index:1000;inset:0 0 auto;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;height:calc(83px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 5% 0;background:#fff!important;color:#252824;isolation:isolate;pointer-events:none}
body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head .brand{position:static;display:block;flex:none;width:auto;top:auto;left:auto;pointer-events:auto}
body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head .brand img{display:block;width:120px;height:auto;max-width:none;object-fit:contain;transform:translateY(var(--shared-header-drop))}
body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head .brand-descriptor{position:static;z-index:auto;display:block;margin:0 0 0 8px;color:#252824;font-size:24px;font-weight:200;line-height:1.2;letter-spacing:.03em;white-space:nowrap;transform:translateY(var(--shared-header-drop));opacity:var(--descriptor-opacity,1);transition:opacity .12s linear}
@media(min-width:1101px){
 body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head .brand img{width:126px}
 body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head .brand-descriptor{margin-left:2px}
}
body:is(.maju-furniture,.maju-chair,.maju-academy) .tools{position:fixed;z-index:1001;top:calc(env(safe-area-inset-top) + (83px - 38px) / 2);right:5%;display:flex;align-items:center;color:#000;transform:translateY(var(--shared-header-drop))}
body:is(.maju-furniture,.maju-chair,.maju-academy) .tool{width:38px;height:38px;display:flex;align-items:center;justify-content:center;color:inherit}
body:is(.maju-furniture,.maju-chair,.maju-academy) .shape{display:block;width:18px;height:18px;background:currentColor}
body:is(.maju-furniture,.maju-chair,.maju-academy) .circle{width:20px;height:20px;border-radius:50%}

/* The Academy's section labels follow the homepage's sticky category bar. */
body.maju-academy{--academy-category-size:16px}
body.maju-academy :is(.academy-introduction-heading,.academy-category){box-sizing:border-box;position:sticky;top:calc(83px + env(safe-area-inset-top));z-index:100;align-self:start;padding:9.6px 0;margin-top:0;background:#fff;isolation:isolate}
body.maju-academy :is(.academy-introduction-heading h2,.academy-category h2){box-sizing:border-box;width:120px;margin:0;text-align:center;font-family:'tablet-gothic',Arial,sans-serif;font-size:var(--academy-category-size);font-weight:600;line-height:1.5;letter-spacing:.1em;text-transform:uppercase}

/* Keep the footer wordmark and alignment identical to the homepage. */
body#top footer.site-footer .footer-logo{display:inline-block;width:auto;height:calc(1cap * 37.3 / 36.7 + 1.01635px);vertical-align:calc(-1cap * .6 / 36.7 - .01635px);fill:currentColor}
body:is(.maju-furniture,.maju-chair,.maju-academy) footer.site-footer .footer-descriptor{margin-left:calc(1em / 3);color:#000;letter-spacing:.03em}
@media(max-width:1100px){
 body:is(.maju-furniture,.maju-chair,.maju-academy){--shared-header-drop:calc((68px + env(safe-area-inset-top)) * .15)}
 body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head{height:calc(68px + env(safe-area-inset-top));padding-right:16px;padding-left:16px}
 body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head .brand-descriptor{font-size:22px}
 body:is(.maju-furniture,.maju-chair,.maju-academy) .tools{top:calc(env(safe-area-inset-top) + (68px - 38px) / 2);right:16px}
 body.maju-academy :is(.academy-introduction-heading,.academy-category){top:calc(68px + env(safe-area-inset-top))}
 body.maju-academy{--academy-category-size:16px;--academy-category-bar-height:44.7px}
}
@media(max-width:760px){
 body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head .brand img{width:104px}
 body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head .brand-descriptor{margin-left:4px;font-size:clamp(18.4889px,3.95vw,22px)}
 body.maju-academy{--academy-category-size:16px}
 body.maju-academy :is(.academy-introduction-heading,.academy-category){padding-top:9.6px;padding-bottom:9.6px}
 body.maju-academy :is(.academy-introduction-heading h2,.academy-category h2){width:104px}
}
@media(max-width:480px){
 body:is(.maju-furniture,.maju-chair,.maju-academy) .site-head{padding-right:12px;padding-left:12px}
 body:is(.maju-furniture,.maju-chair,.maju-academy) .tools{right:12px}
}

/* Academy category bars span the viewport, with labels on the logo's left edge. */
body.maju-academy{--academy-category-bar-height:45.7px}
body.maju-academy :is(.academy-introduction-heading,.academy-category){box-sizing:border-box;width:100vw;margin-left:calc(50% - 50vw + 7.5px);margin-right:calc(50% - 50vw + 7.5px);padding:9.6px 5%;background:#fff}
body.maju-academy :is(.academy-introduction-heading h2,.academy-category h2){width:auto;text-align:left}
body.maju-academy .academy-introduction-heading{grid-column:1/-1;grid-row:1}
body.maju-academy .academy-overview{grid-column:1/-1;grid-row:1;padding:var(--academy-category-bar-height) 0 0}
/* Match the Class grid: leave the first overview column open on wide layouts. */
body.maju-academy .overview-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--academy-gutter);row-gap:48px}
body.maju-academy .overview-grid>article:nth-child(1){grid-column:2;grid-row:1}
body.maju-academy .overview-grid>article:nth-child(2){grid-column:3;grid-row:1}
body.maju-academy .overview-grid>article:nth-child(3){grid-column:2;grid-row:2}
body.maju-academy .overview-grid>article:nth-child(4){grid-column:3;grid-row:2}
/* On narrow layouts, overview copy shares the Class copy's left edge. */
@media(max-width:1100px){body.maju-academy .overview-grid{margin-left:var(--academy-copy-offset);width:calc(100% - var(--academy-copy-offset))}}
/* Add a little more breathing room after section labels. */
body.maju-academy .academy-category{margin-bottom:52px}
@media(max-width:760px){body.maju-academy .academy-category{margin-bottom:40px}}
/* Keep the all-open/all-close control row visible above the policy table. */
body.maju-academy .policy-controls{margin-top:0}
/* The furniture listing photo begins on the Chair page's hero-photo line. */
body.maju-furniture .works-grid{margin-top:-113px}
@media(max-width:1100px){body.maju-academy :is(.academy-introduction-heading,.academy-category){padding-left:16px;padding-right:16px}}
@media(min-width:761px) and (max-width:1100px){body.maju-academy .overview-grid{grid-template-columns:minmax(0,1fr);column-gap:0}body.maju-academy .overview-grid>article:nth-child(n){grid-column:1;grid-row:auto}body.maju-furniture .works-grid{margin-top:-5px}}
@media(max-width:760px){body.maju-academy .overview-grid{grid-template-columns:minmax(0,1fr);column-gap:0}body.maju-academy .overview-grid>article:nth-child(n){grid-column:1;grid-row:auto}body.maju-furniture .works-grid{margin-top:-35px}}
@media(max-width:760px){body.maju-academy{--academy-category-bar-height:41.2px}body.maju-academy :is(.academy-introduction-heading,.academy-category){padding-left:16px;padding-right:16px}}
@media(max-width:480px){body.maju-academy :is(.academy-introduction-heading,.academy-category){padding-left:12px;padding-right:12px}}

/* Full-bleed white paint behind the inset Academy content grid. */
body.maju-academy :is(.academy-introduction-heading,.academy-category){width:100%;margin:0;padding:9.6px 0;background:transparent}
body.maju-academy :is(.academy-introduction-heading,.academy-category)::before{content:"";position:absolute;z-index:-1;inset:0 auto 0 50%;width:100vw;transform:translateX(-50%);background:#fff;pointer-events:none}
body.maju-academy :is(.academy-introduction-heading h2,.academy-category h2){position:relative;z-index:1;width:auto;margin:0;padding:0;text-align:left}
/* Match the Home category-to-photo breathing room at tablet and mobile sizes. */
@media(min-width:761px) and (max-width:1100px){body.maju-academy .academy-category{margin-bottom:18px}}
@media(max-width:760px){body.maju-academy .academy-category{margin-bottom:14px}}

/* Furniture's page label uses the same white full-width category band as Home. */
body.maju-furniture .page-intro h1{box-sizing:border-box;position:fixed;z-index:100;left:0;right:0;top:calc(83px + env(safe-area-inset-top));display:flex;align-items:center;width:100%;height:45.7px;min-height:0;margin:0;padding:9.6px 5%;background:#fff;color:#252824;text-align:left;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:.15em;text-transform:uppercase;transform:none}
body.maju-furniture .page-intro h1>span{display:block;width:auto;text-align:left;padding:0}
@media(max-width:1100px){body.maju-furniture .page-intro h1{top:calc(68px + env(safe-area-inset-top));height:44.7px;padding:9.6px 16px;font-size:16px}}
@media(max-width:760px){body.maju-furniture .page-intro h1{height:41.2px;padding:9.6px 16px;font-size:16px}}
@media(max-width:480px){body.maju-furniture .page-intro h1{padding-left:12px;padding-right:12px}}
/* Match the Chair hero photo's start point to the adjusted Furniture image. */
@media(min-width:761px) and (max-width:1100px){body.maju-chair .product-hero{padding-top:131px}}
@media(max-width:760px){body.maju-chair .product-hero{padding-top:123px}}
