/*
 * CNTS Theme 0.1.3 — HUB WIDE ONLY
 *
 * Public/front-facing pages inherit the exact PROVEN 0.1.2 shell.
 * Desktop widening applies only to Admin Hub and Partner Hub screens.
 */

@media (min-width:1100px){

  /*
   * Admin Hub
   * Body/class selectors are deliberately redundant so whichever current
   * Platform marker is present, the operational shell can use the viewport.
   */
  body.cnts-admin-hub-screen .cnts-theme-entry-content,
  body.cnts-admin-hub-screen .cnts-admin-hub,
  body.cnts-admin-hub-screen .cnts-page,
  body.cnts-admin-hub-screen .cnts-container,
  body.cnts-viewer-admin .cnts-admin-hub,
  body.cnts-viewer-admin .cnts-admin-hub > .cnts-container,

  /*
   * Partner Hub
   */
  body.cnts-partner-hub-screen .cnts-theme-entry-content,
  body.cnts-partner-hub-screen .cnts-partner-hub,
  body.cnts-partner-hub-screen .cnts-page,
  body.cnts-partner-hub-screen .cnts-container,
  body.cnts-viewer-partner .cnts-partner-hub,
  body.cnts-viewer-partner .cnts-partner-hub > .cnts-container{
    box-sizing:border-box!important;
    width:calc(100vw - 48px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /*
   * Once inside a widened Hub, nested hub containers should consume their
   * parent instead of reintroducing the historical central max-width.
   */
  body.cnts-admin-hub-screen .cnts-admin-hub :is(.cnts-container,.cnts-page,.cnts-section),
  body.cnts-viewer-admin .cnts-admin-hub :is(.cnts-container,.cnts-page,.cnts-section),
  body.cnts-partner-hub-screen .cnts-partner-hub :is(.cnts-container,.cnts-page,.cnts-section),
  body.cnts-viewer-partner .cnts-partner-hub :is(.cnts-container,.cnts-page,.cnts-section){
    width:100%!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /*
   * Preserve the cinematic/hero copy proportions even though the hub workspace
   * below it is wider.
   */
  body.cnts-admin-hub-screen :is(.cnts-admin-hero,.cnts-partner-hub-hero) :is(h1,h2,p,.cnts-kicker,.cnts-eyebrow),
  body.cnts-partner-hub-screen :is(.cnts-admin-hero,.cnts-partner-hub-hero) :is(h1,h2,p,.cnts-kicker,.cnts-eyebrow){
    max-width:860px!important;
  }
}

@media (max-width:1099px){
  /* Mobile/tablet remain exactly on the PROVEN responsive rules. */
}


/* Unified CNTS Hub: operational workspace may use the desktop viewport. */
@media (min-width:1100px){
  body.cnts-hub-screen .cnts-theme-entry-content,
  body.cnts-unified-hub-screen .cnts-theme-entry-content,
  body.cnts-hub-screen .cnts-unified-hub,
  body.cnts-unified-hub-screen .cnts-unified-hub{
    box-sizing:border-box!important;
    width:calc(100vw - 48px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* Integrated Beta: hide public shell chrome inside same-origin Hub embedded workspaces. */
body.cnts-hub-embedded .cnts-theme-header,
body.cnts-hub-embedded header.cnts-theme-header,
body.cnts-hub-embedded .cnts-theme-footer,
body.cnts-hub-embedded footer.cnts-theme-footer{display:none!important}
body.cnts-hub-embedded{padding-top:0!important}
body.cnts-hub-embedded .cnts-theme-loop,
body.cnts-hub-embedded .cnts-theme-entry-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
