/* R26.6.1: full-width host for independent per-crystal layouts. */
body.single-zg_crystal .zcl-custom-layout-page.zcl-has-independent-layout {
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:both!important;
  grid-column:1 / -1!important;
  flex:0 0 100%!important;
  box-sizing:border-box!important;
}
body.single-zg_crystal .zcl-custom-layout-page.zcl-has-independent-layout > .zg19 {
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}

/* R43.2: Legacy zg_crystal content-width contract.
   Scoped to the legacy zcl-detail branch; independent article_layout pages remain untouched.
   Avoid percentage-based intrinsic grid track sizing and nested shrink-to-fit. */
body.single-zg_crystal main.zcl-detail {
  display:block!important; width:100%!important; max-width:none!important; min-width:0!important;
  float:none!important; clear:both!important; box-sizing:border-box!important;
}
body.single-zg_crystal main.zcl-detail .zcl-detail-inner {
  display:block; width:min(1440px,calc(100% - 44px)); max-width:100%; min-width:0; margin-inline:auto;
}
body.single-zg_crystal main.zcl-detail .zcl-detail-inner.zcl-detail-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px;
}
body.single-zg_crystal main.zcl-detail .zcl-detail-content,
body.single-zg_crystal main.zcl-detail .zcl-detail-content > article.zg19 {
  display:block!important; width:100%!important; max-width:100%!important; min-width:0!important;
  float:none!important; box-sizing:border-box!important;
}
body.single-zg_crystal main.zcl-detail article.zg19 > .zg19-hero {
  display:grid; width:100%; max-width:100%; min-width:0;
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,4vw,64px);
  padding:clamp(32px,5vw,76px) clamp(18px,3vw,44px);
}
body.single-zg_crystal main.zcl-detail article.zg19 > .zg19-hero > div {
  min-width:0; width:100%; max-width:100%;
}
body.single-zg_crystal main.zcl-detail article.zg19 > .zg19-hero > div:first-child > p {
  width:auto; max-width:100%; min-width:0; overflow-wrap:normal;
}
body.single-zg_crystal main.zcl-detail article.zg19 .zg19-body {
  width:calc(100% - 48px); max-width:100%; min-width:0;
}
@media (max-width:767px) {
  body.single-zg_crystal main.zcl-detail .zcl-detail-inner {width:calc(100% - 28px)}
  body.single-zg_crystal main.zcl-detail .zcl-detail-inner.zcl-detail-grid {display:flex;flex-direction:column;gap:0}
  body.single-zg_crystal main.zcl-detail article.zg19 > .zg19-hero {
    display:block; padding:24px 18px 30px;
  }
  body.single-zg_crystal main.zcl-detail article.zg19 .zg19-body {width:calc(100% - 36px)}
}

/* R43.3: verified browser fix for WoodMart #main-content 12-column grid.
   Applies to legacy Crystal Library detail only, not article_layout pages.
   Browser-only test: Citrine legacy main 71.83px -> 1192px at desktop. */
body.single-zg_crystal #main-content > main.zcl-detail {
  grid-column: 1 / -1 !important;
  min-width: 0;
}
