/* Shared full-bleed shell for Variation 3 pages.
   Apply via body class helpers in setup.php / page templates.
   Colors come from tokens.css (--space-page-bg / --space-page-ink). */

body.space-v3-page {
  background: var(--space-page-bg);
  color: var(--space-page-ink);
  overflow-x: clip;
}

body.space-v3-page .space-main,
body.space-v3-page .space-entry,
body.space-v3-page .wp-block-post-content,
body.space-v3-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.space-v3-page .space-main.has-hero-first {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.space-v3-page .space-entry > .space-eyebrow,
body.space-v3-page .space-entry > .wp-block-post-title,
body.space-v3-page .space-archive-head {
  display: none !important;
}

body.space-v3-page .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.space-v3-page .wp-block-post-content.is-layout-constrained > * {
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.space-v3-page .wp-site-blocks > *,
body.space-v3-page .is-layout-constrained > *,
body.space-v3-page .wp-block-post-content > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Default content pages that are not yet Variation 3 ports keep readable measure. */
body:not(.space-v3-page) .space-entry .wp-block-post-content {
  max-width: min(760px, 100%);
}
