/**
 * Prime Academic Press — force layer v23.
 * Static page HTML: remove “huge” gaps above h2 section titles (Our Mission, etc.).
 * Causes: v19 h2 margin-top 1.15rem + p margin + <hr> margins + empty CMS blocks.
 */

.pkp_structure_main > .page .cmp_html_content h2,
.pkp_structure_main > .page h2 {
	margin-top: 0.5rem !important;
	margin-bottom: 0.35rem !important;
}

.pkp_structure_main > .page .cmp_html_content h2:first-of-type,
.pkp_structure_main > .page h2:first-of-type {
	margin-top: 0.3rem !important;
}

/* Tighten the band after a paragraph (most common before “Our Mission”) */
.pkp_structure_main > .page .cmp_html_content p + h2,
.pkp_structure_main > .page p + h2 {
	margin-top: 0.42rem !important;
}

/* If editors inserted <hr> before a section, don’t stack huge margins */
.pkp_structure_main > .page .cmp_html_content hr + h2,
.pkp_structure_main > .page hr + h2 {
	margin-top: 0.35rem !important;
}

.pkp_structure_main > .page .cmp_html_content p + hr,
.pkp_structure_main > .page p + hr {
	margin-top: 0.35rem !important;
	margin-bottom: 0.35rem !important;
}

.pkp_structure_main > .page .cmp_html_content hr,
.pkp_structure_main > .page hr {
	margin: 0.4rem 0 !important;
}

/* Paragraph spacing below intro — keep modest gap before next block */
.pkp_structure_main > .page .cmp_html_content p,
.pkp_structure_main > .page p {
	margin-bottom: 0.55rem !important;
}

.pkp_structure_main > .page .cmp_html_content p + p,
.pkp_structure_main > .page p + p {
	margin-top: 0 !important;
}
