/* Spacing for consecutive text paragraphs inside .section containers
   (text-only sections and paragraphs placed after a card grid). */
.section > .container > p + p {
    margin-top: 16px;
}

.section > .container > div + p {
    margin-top: 28px;
}

/* style-custom.css caps the first paragraph of every section at 750px,
   so it wrapped earlier than the paragraphs below it. Same width for all. */
.section > .container > p:first-of-type {
    max-width: none;
}

/* style-custom.css also gives the first paragraph a 40px bottom margin (meant
   as the gap before a card grid). When another paragraph follows, use the
   same 16px gap as between the other paragraphs. */
.section > .container > p:first-of-type:has(+ p) {
    margin-bottom: 0;
}

/* An h2 that opens a new topic after a card/review block inside the same section. */
.section > .container > div + h2 {
    margin-top: 56px;
}
