/* MGD Core 2.12.16 — section content width: Shop as reference.
 * Shop .mgd-store-wrap = max-width:1440px; width:calc(100% - clamp(32px,5vw,84px)).
 * Header/footer retain their separate shared 1860px shell norm (2.12.14).
 * Apply ONLY to a section's first-level layout wrapper, not text/cards/grids.
 */
:root {
  --mgd-content-shared-max: 1440px;
  --mgd-content-shared-side: clamp(32px, 5vw, 84px);
}
/* Home, Education, Troubles, Formation, About and specialised pages. */
html body.mgd-core-body .mgd-home-v2 #mgd-main-content#mgd-main-content > section > :is(
  .mgd-wrap, .mgdp-wrap, .mgd-container, .mgd-wrap--content,
  .mgd-refined-hero__inner, .mgd-refined-hero__heading, .mgd-hero-container
),
/* City pages use .mgd-city-page rather than #mgd-main-content. */
html body.mgd-core-body .mgd-home-v2 .mgd-city-page.mgd-city-page > section > :is(
  .mgd-wrap, .mgdp-wrap, .mgd-container, .mgd-wrap--content
),
/* Dedicated FAQ page has sections directly below .mgd-faq-page. */
html body.mgd-core-body .mgd-home-v2.mgd-faq-page.mgd-faq-page > section > :is(
  .mgd-wrap, .mgdp-wrap, .mgd-container, .mgd-wrap--content
) {
  box-sizing: border-box !important;
  width: calc(100% - var(--mgd-content-shared-side)) !important;
  max-width: var(--mgd-content-shared-max) !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Shop's established geometry is the source of truth; normalize its wrapper only
 * when an earlier page-specific override would otherwise change it. */
html body.mgd-core-body #mgd-store-root#mgd-store-root.mgd-store > section > .mgd-store-wrap {
  box-sizing: border-box !important;
  width: calc(100% - var(--mgd-content-shared-side)) !important;
  max-width: var(--mgd-content-shared-max) !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Preserve the layouts and the single-column mobile cards; only the outer width
 * and horizontal position change. */

/* Additional page structures that put a layout container one level deeper.
   Restrict to named structural wrappers, never to cards or text columns. */
html body.mgd-core-body .mgd-home-v2.mgd-home-v2 :is(#mgd-main-content#mgd-main-content,.mgd-city-page.mgd-city-page,.mgd-faq-page.mgd-faq-page)
  > section > :is(.mgd-wrap,.mgdp-wrap,.mgd-container,.mgd-wrap--content,.mgd-refined-hero__inner,.mgd-refined-hero__heading,.mgd-hero-container),
html body.mgd-core-body .mgd-home-v2.mgd-home-v2 > .mgd-page.mgd-page > section > :is(.mgd-wrap,.mgdp-wrap,.mgd-container,.mgd-wrap--content),
html body.mgd-core-body .mgd-home-v2.mgd-home-v2 > section > :is(.mgd-wrap,.mgdp-wrap,.mgd-container,.mgd-wrap--content) {
  box-sizing:border-box!important;
  width:calc(100% - var(--mgd-content-shared-side))!important;
  max-width:var(--mgd-content-shared-max)!important;
  margin-inline:auto!important;
  min-width:0!important;
  padding-inline:0!important;
}
/* Keep intentionally narrow content inside the 1440px section boundaries. */
