/* 1.9.41 — unified layout width across header, search, main content and footer. */
body.imai-page-width-full{--imai-layout-max:none;--imai-layout-gutter:clamp(12px,1.5vw,28px)}
body.imai-page-width-wide{--imai-layout-max:1480px;--imai-layout-gutter:clamp(12px,2vw,32px)}
body.imai-page-width-medium{--imai-layout-max:1120px;--imai-layout-gutter:clamp(12px,2vw,32px)}
body:is(.imai-page-width-full,.imai-page-width-wide,.imai-page-width-medium) :is(.site-header .shell,.site-footer .shell,.imai-global-search.shell,.home-content.shell,.imai-modern-page,.imai-v2-home.shell,.shell.home-content){
 width:calc(100% - 2 * var(--imai-layout-gutter))!important;
 max-width:var(--imai-layout-max)!important;
 margin-inline:auto!important;
 min-width:0;
}
/* Ensure a full-width header is not capped by the modern template's 1240px rule. */
body.imai-template-modern.imai-page-width-full .site-header .shell{max-width:none!important}
body.imai-page-width-full .site-header,body.imai-page-width-full .site-footer{width:100%}
body.imai-page-width-full .topbar{min-width:0}
body.imai-page-width-full .main-nav{min-width:0}
@media(max-width:700px){
 body:is(.imai-page-width-full,.imai-page-width-wide,.imai-page-width-medium){--imai-layout-gutter:11px}
 body.imai-page-width-full .site-header .shell{flex-wrap:wrap}
}
