/* Keep the approved composition; use one content edge at every breakpoint. */
html body.materials301.materials303.editorial-site.page-materials.material-library254 .materials-stage313 .material-category-hero,
html body.materials301.materials303.materials-stage313-ready.editorial-site.page-materials.material-library254 #catalog.catalog-section{
 width:88%!important;
 max-width:1280px!important;
 margin-inline:auto!important;
}

/* The rail starts at the first card, then sticks below the fixed header. */
html body.materials301.materials303.materials-stage313-ready.editorial-site.page-materials.material-library254 #catalog .catalog-sidebar{
 padding-top:0!important;
 margin-top:70px!important;
 margin-bottom:0!important;
 top:112px!important;
}

/* Natural height is retained for every language and product name. */
html body.materials301.materials303.editorial-site.page-materials.material-library254 .materials-stage313 #material-category-title,
html body.materials301.materials303.editorial-site.page-materials.material-library254 #catalog .browse-label,
html body.materials301.materials303.editorial-site.page-materials.material-library254 #catalog .material-category-label303{
 min-width:0;
 overflow-wrap:anywhere;
 word-break:normal;
}

/* The lower-background pause control may share this existing toolbar row. */
html body.materials301.materials303.editorial-site.page-materials.material-library254 #catalog .catalog-toolbar301{
 flex-direction:row;
 align-items:center;
 gap:12px;
}
html body.materials301.materials303.editorial-site.page-materials.material-library254 #catalog .catalog-search301{
 min-width:0;
 flex:0 1 300px;
}

@media(max-width:800px){
 html body.materials301.materials303.editorial-site.page-materials.material-library254 .materials-stage313 .material-category-hero,
 html body.materials301.materials303.materials-stage313-ready.editorial-site.page-materials.material-library254 #catalog.catalog-section{
  width:calc(100% - 40px)!important;
 }
 html body.materials301.materials303.materials-stage313-ready.editorial-site.page-materials.material-library254 #catalog .catalog-sidebar{
  margin-top:0!important;
  margin-bottom:16px!important;
  top:auto!important;
 }
 html body.materials301.materials303.editorial-site.page-materials.material-library254 #catalog .catalog-search301{
  flex:1 1 0%;
  width:auto;
 }
}
