/* Vertical spacing (pm B216 spacing audit, 2026-10-25:
   pm/docs/wp-retire-spacing-audit-2026-10-25.md). Linked on every page by
   scripts/request_items.py, so the 3 Nov re-snapshot links it again.

   Rule A is not here: it is a build step (request_items.unwrap_desktop_padding).
   Padding the page builder's editor set for desktop only sat inside a
   `min-width: 991px` block with no tablet or phone value, so below 991px those
   rows and sections had none; the block is unwrapped, so every width gets the
   desktop value. The header and footer are the shared files' business
   (site/_partials/, menu.css); nothing here touches them. */

/* B. Phones: a row of two half-width columns, one starting with an image and
   one ending with text (the book pages' cover and text, the request button
   last), stacks with no gap: the text's last paragraph has no bottom margin
   and the columns none. A 40px gap between the stacked columns. row-gap acts
   only between the stacked lines, never at the row's top or bottom, whatever
   the builder's `order` swap puts first. Rows that space themselves with a
   divider are left alone. */
@media (max-width: 767px) {
  #tm_builder_outer_content .tm_pb_row:has(> .tm_pb_column_1_2 > .tm_pb_image:first-child):has(> .tm_pb_column_1_2 > .tm_pb_text:last-child):not(:has(> .tm_pb_column > .tm_pb_divider)) {
    row-gap: 40px;
  }
}

/* C. Blog, date and category archives: the theme's 3em under the page-title
   band, which its own builder override takes away (the custom post type
   archives keep it, 54px). */
.use-tm-pb-builder.position-fullwidth:is(.blog, .archive) .site-content_wrap {
  margin-top: 3em;
}

/* D. Pages that set no spacing of their own at any width, desktop included:
   the product pages' 40px under the page-title band and 80px above the
   footer. These change desktop too (Sam's look). */
.page-id-3902  #tm_builder_outer_content .tm_pb_section_0,  /* /privacy-policy/ */
.page-id-42741 #tm_builder_outer_content .tm_pb_section_0,  /* /research-participant-privacy-notice/ */
.page-id-3897  #tm_builder_outer_content .tm_pb_section_0,  /* /terms-conditions/ */
.page-id-4831  #tm_builder_outer_content .tm_pb_section_0 { /* /white-papers/ */
  padding-top: 40px;
  padding-bottom: 80px;
}
.page-id-19423 #tm_builder_outer_content .tm_pb_section_0 { padding-bottom: 80px; } /* /community-builder-action-cards/ */
.page-id-4775  #tm_builder_outer_content .tm_pb_row_8     { padding-bottom: 40px; } /* /books/ "Our Products" */
.page-id-4167  #tm_builder_outer_content .tm_pb_section_0 { padding-top: 20px; }    /* /contact-us/ (20px -> 40px) */

/* A button added to a page that never had a form, under a band's columns
   (request-items.json "center"; /social-age/). */
.request-cta-added--center {
  text-align: center;
}
