@layer modules {
  /* =============================================================
     SINGLE POST LAYOUT
     ============================================================= */

  body.single-post main {
    padding-block: var(--space-2xl);
  }

  /* =============================================================
     SECTION RHYTHM
     Non-full-width group blocks inside post content get vertical
     breathing room. Alignfull sections and their spacing are
     handled in blocks.css or by the child theme.
     ============================================================= */

  .wp-block-post-content > .wp-block-group:not([class*="alignfull"]) {
    padding-block: var(--space-3xl);
  }

  /* =============================================================
     PAGE / ARCHIVE BREATHING ROOM
     ============================================================= */

  body.blog main,
  body.archive main,
  body.page main {
    padding-block: var(--space-3xl);
  }

  /* Home page manages its own section spacing via alignfull groups */
  body.home main {
    padding-block: 0;
  }
}
