/* Same gap as the homepage (--section-gap: 48px / 36px / 28px). */

/* Full-width bands: the gap is split across the two sections that meet. */
.about-container > section,
.final-statement,
body > .csr-philosophy-section,
body > .focus-areas-section,
body > .governance-section,
body > .cta-section,
body > .facility-points,
body > .certifications-section,
body > .capabilities-section,
body > .facility-features,
body > .facility-showcase,
body > .content-section,
body > .contact-section,
.steroid-content > section,
.steroid-api-products-section,
.oncology-container > section,
.oncology-products,
.peptide-content-container > section,
.peptide-products,
.career-content > .section,
.career-content > .unique-section,
.career-content > .grow-section,
.career-content > .benefits-section,
.career-content > .hr-contact,
.career-content > .contact-form {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: calc(var(--section-gap) / 2);
    padding-bottom: calc(var(--section-gap) / 2);
}

.about-container,
.steroid-content,
.oncology-container,
.peptide-content-container {
    padding-top: 0;
    padding-bottom: 0;
}

.about-container > section:first-child,
body > .csr-philosophy-section,
body > .facility-points,
body > .facility-showcase,
.career-content > :first-child {
    margin-top: calc(var(--section-gap) / 2);
}

.final-statement,
body > .cta-section,
body > .facility-features,
body > .contact-section,
.steroid-content > section:last-child,
.oncology-container > section:last-child,
.peptide-content-container > section:last-child,
.career-content > :last-child {
    margin-bottom: calc(var(--section-gap) / 2);
}

/* Product listings sit above a hidden details block. */
.steroid-api-products-section,
.oncology-products,
.peptide-products {
    margin-top: calc(var(--section-gap) / 2);
    margin-bottom: calc(var(--section-gap) / 2);
}

.steroid-content:not([hidden]),
.oncology-container:not([hidden]),
.peptide-content-container:not([hidden]) {
    margin-top: calc(var(--section-gap) / -2);
}

/* Cards keep their inner padding. The gap is the margin between them. */
.rnd-container,
.main-content.container,
.main-content:has(> .content-section),
.faq-container {
    padding-top: 0;
    padding-bottom: 0;
}

.qs {
    padding-top: 0;
    padding-bottom: 0;
}

.qs-wrap {
    padding-bottom: 0;
}

.rnd-container > section,
.qs-wrap > section,
.main-content.container > section,
.main-content > .content-section,
.main-content > .newsletter-section {
    margin-top: var(--section-gap);
    margin-bottom: 0;
}

.rnd-container > section {
    margin-top: var(--section-gap) !important;
    margin-bottom: 0 !important;
}

.rnd-container > section:last-child,
.qs-wrap > section:last-child,
.main-content.container > section:last-child,
.main-content > section:last-child {
    margin-bottom: var(--section-gap);
}

.rnd-container > section:last-child {
    margin-bottom: var(--section-gap) !important;
}

.qa-panel {
    margin-top: var(--section-gap);
    margin-bottom: var(--section-gap);
}

/* Pages that are one block: same gap under the hero and above the footer. */
.blog-container {
    margin-top: var(--section-gap);
    margin-bottom: var(--section-gap);
}

.detail-wrapper,
.product-wrapper,
.global-presence:not(.gp-home) {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.main-container {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}
