/* NBC v6.438 D1 — Desktop Container Contract
   Purpose: one coherent outer desktop shell while preserving internal reading measures.
   Mobile/tablet <=1023px intentionally untouched. */

@media (min-width: 1024px) {
  :root {
    --nbc-desktop-shell-max: 1680px;
    --nbc-desktop-shell-gutter: clamp(32px, 2.75vw, 64px);
    --nbc-desktop-shell-width: min(
      var(--nbc-desktop-shell-max),
      calc(100vw - (2 * var(--nbc-desktop-shell-gutter)))
    );
  }

  /* Global chrome follows the same horizontal axis as page content. */
  .site-header > .wrap,
  .site-footer > .wrap,

  /* Standard section shells. */
  body.page main > section > .wrap,
  body.page main > section > .sw,
  body.page main > section > .pp-wrap,
  body.page main > section > .dp-wrap,
  body.page main > section > .home-service-choice__inner,

  /* Hero bridges are section content, not separate narrower islands. */
  body.page main > .nbc-hero-bridge > .wrap,
  body.page main > section > .nbc-hero-bridge > .wrap,

  /* Executive-industry composite opening. */
  body.page main > section > .premium-hub-hero > .wrap,
  body.page main > section > .premium-hub-landscape > .wrap,

  /* Long-form articles: outer composition widens, reading measure stays internal. */
  body.page main > article > .ep-hero > .ep-hero-wrap,
  body.page main > article > .ep-signature-stage > .ep-hero-wrap,
  body.page main > article > .ep-article-layout,
  body.page main > article > .nbc-hero-bridge > .wrap,

  /* Guides have no wrapper around each chapter, so the chapter itself is the shell. */
  body.page main > article.guide-html > .guide-editorial-hero,
  body.page main > article.guide-html > section {
    width: var(--nbc-desktop-shell-width);
    max-width: var(--nbc-desktop-shell-max);
    margin-inline: auto;
    box-sizing: border-box;
  }

  /* Keep deliberate reading measures and internal components independent of shell width. */
  :where(
    .lede,
    .nbc-section-intro,
    .ep-lede,
    .ep-question,
    .article-copy,
    .service-hero-copy,
    .premium-hub-copy,
    .ac-intake-lede,
    .ac-founder-lede
  ) {
    box-sizing: border-box;
  }
}

@media (min-width: 1024px) {
  /* High-specificity owners in legacy profiles: normalize them to the same shell. */
  body.page.page-barometer #barometer > .wrap,
  body.page.page-digital-check #digital-check > .wrap,
  body.page.page-blog main.nbc-page-shell > section > .wrap,
  body.page.page-diagnose main.nbc-page-shell > section > .wrap,
  body.page.page-contact main.nbc-page-shell > section > .wrap,
  body.page.page-about main.nbc-page-shell > section > .wrap,
  body.page.page-home #situationen > .wrap {
    width: var(--nbc-desktop-shell-width);
    max-width: var(--nbc-desktop-shell-max);
    margin-inline: auto;
    box-sizing: border-box;
  }

  /* Guide chapters previously inherited a 64px article inset, causing an off-centre shell. */
  body.page main > article.guide-html {
    padding-inline: 0;
  }
}
