/* Stage 10AG-A: first-screen type rhythm on the five product-family pages only. */
body:is(.page-id-132,.page-id-15,.page-id-40,.page-id-42) main .entry-content > section:first-of-type {
  margin-block-start: .75rem;
}
body:is(.page-id-132,.page-id-15,.page-id-40,.page-id-42) main .entry-content > section:first-of-type > .eyebrow {
  margin-block: 0 .625rem;
}
body:is(.page-id-132,.page-id-15,.page-id-40,.page-id-42) main .entry-content > section:first-of-type > .eyebrow + p {
  margin-block-start: 0;
}
body.page-id-14 .category-hero .page-breadcrumb + .hesent-eyebrow {
  margin-block-start: 1rem;
}
body.page-id-14 .category-hero .hesent-eyebrow + h1 {
  margin-block-start: .75rem;
}
body.page-id-14 .category-hero .hesent-eyebrow + h1 + p {
  margin-block-start: 1.25rem;
}

/* Stage 10AH-A: Guide only. Match Punch's 47.5rem product-content rail. */
body.page-id-14 main #primary-guide-systems > :is(.alignwide, section, .hesent-product-rfq-band) {
  box-sizing: border-box;
  width: min(100%, 47.5rem) !important;
  max-width: 47.5rem !important;
  margin-inline: auto !important;
}

/* Restore an intentional inset that the earlier width layer zeroed out. */
body.page-id-14 main #primary-guide-systems > section:not(.hesent-product-rfq-band) {
  padding: clamp(1.5rem, 2.5vw, 2rem) !important;
}

body.page-id-14 main #primary-guide-systems > .hesent-product-rfq-band {
  padding: clamp(1.5rem, 3vw, 2.5rem) !important;
}

/* Stage 10AI-B: keep the paired CNC module actions aligned on desktop. */
@media (min-width: 900px) {
  body.page-id-40 main .hesent-product-module-grid .hesent-product-module__actions {
    display: grid;
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
    align-items: stretch;
    gap: 8px;
  }

  body.page-id-40 main .hesent-product-module-grid .hesent-product-module__actions a {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 11px;
    white-space: nowrap;
  }
}

/* Below desktop width, make the pair an intentional full-width stack. */
@media (max-width: 899px) {
  body.page-id-40 main .hesent-product-module-grid .hesent-product-module__actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
  }

  body.page-id-40 main .hesent-product-module-grid .hesent-product-module__actions a {
    width: 100%;
  }
}
