/* Site-wide vertical rhythm, loaded after every other stylesheet.
   Sections are separated by one gap (--space-section): 56 px on phones, growing to 96 px on
   wide screens. A content section that follows another shares that gap instead of adding its
   own top padding, because the page background is the same white throughout. A heading sits
   --space-heading above its text, including two-column sections that stack on phones.
   Sections with their own background (the homepage What We Do band) always keep full padding.
   The `main:not(#rhythm)` prefix gives these rules the weight to replace the many earlier
   per-page values without !important. Market Insights pages keep their own data layout. */
:root {
  --space-section: clamp(56px, 8vw, 96px);
  --space-block: clamp(32px, 4vw, 48px);
  --space-heading: 24px;
}

main:not(#rhythm) :is(.section, .connection-section, .service-editorial, .journal-library, .journal-related, .approach-principles, .not-found) {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
/* Only plain white sections share a gap. The homepage What We Do band is a dark panel with its
   own inner padding, and the section after it needs a full gap of its own. */
main:not(#rhythm) .section + .section {
  padding-top: 0;
}
/* The homepage contact strip already ends in a card, so the route statement keeps one block gap. */
main:not(#rhythm) .showcase-services { padding-bottom: 0; }
main:not(#rhythm) .showcase-services + .connection-section { padding-top: var(--space-block); }
/* The route's closing rule sits one block below the route, and the section gap follows it. */
main:not(#rhythm) .journey-layout { padding-bottom: var(--space-block); }

/* Headings above their content. */
main:not(#rhythm) .split h2 { margin-bottom: var(--space-heading); }
main:not(#rhythm) .section-heading { margin-bottom: var(--space-block); }
@media (max-width: 850px) {
  main:not(#rhythm) .split { gap: var(--space-heading); }
  main:not(#rhythm) .split > div:first-child > h2:only-child { margin-bottom: 0; }
  main:not(#rhythm) .about-approach-grid { gap: var(--space-heading); }
  main:not(#rhythm) .management-grid { margin-top: var(--space-block); }
}

/* One body-text size. Every paragraph and list item in the page content is 16 px, whatever the
   component, so body copy cannot drift again. Exempt only: the 24 px display statements, small
   labels and status lines (eyebrows, roles, source notes, meta, hints, counts, legends), text for
   screen readers, and the tiny labels drawn inside card graphics. */
main:not(#body-text) :is(p, li):not(
  .buyer-statement, .purpose-statement, .about-approach-tagline, .approach-statement,
  .mi-sr, .mi-source, .mi-report-meta, .hub-eyebrow, .highlight-eyebrow, .eyebrow, .leader-role,
  .article-share-status, .form-hint, .form-note, .journal-feature-meta, .journal-result-count,
  .trade-status, .monthly-hint, .monthly-status, .fd-readout, .mi-results,
  .fd-crop, .fd-plant, .fd-grow, .fd-harvest, .fd-key-food, .fd-key-oils, .fd-key-grains, .fd-key-other
):not(.team-priority p, .approach-heading p, .fd-crop p, .bento-visual *, [aria-hidden="true"] *) {
  font-size: var(--text-16);
}
