/* Locks site chrome below page styles. Targets sidebar shipped with partials/nav.html */

@media (min-width: 901px) {
  /*
   * Many pages still set body { max-width; margin: 0 auto } for standalone prose.
   * With a fixed sidebar, that narrows/center-aligns the whole body and collides
   * with the rail. Business Lume pages (body.pt-lume) stay full bleed.
   */
  body.phyllux-site-shell:not(.shield-page):not(.pt-lume),
  body:not(.shield-page):not(.pt-lume).phyllux-site-shell {
    padding-left: clamp(268px, 22vw, 320px) !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  body.phyllux-site-shell:not(.pt-lume) .phyllux-sidebar {
    box-shadow:
      inset -1px 0 0 rgba(255, 255, 255, 0.04),
      8px 0 40px rgba(0, 0, 0, 0.35) !important;
  }
}

body.shield-page .phyllux-sidebar,
body.shield-page .phyllux-sidebar-backdrop,
body.shield-page .phyllux-topbar {
  display: none !important;
}

body.shield-page.phyllux-site-shell {
  padding-left: 0 !important;
  padding-top: 0 !important;
}

/* Phyllux Tech business: never inherit archive rail padding */
body.pt-lume.phyllux-site-shell {
  padding-left: 0 !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
