/* Even vertical spacing for a page. The "Majors Minors Even Spacing" component marks the page's content area
   with .even-spacing (see even-spacing.js); everything below then follows one gap instead of whatever each
   editor typed in. Empty spacer paragraphs and boxes are tagged .es-blank by the script and hidden. */
.even-spacing {
	--es-gap: 3rem;
}

.even-spacing[data-gap="tighter"] {
	--es-gap: 2rem;
}

.even-spacing[data-gap="roomier"] {
	--es-gap: 4.5rem;
}

.even-spacing .es-blank {
	display: none;
}

/* A divider line sits one gap below the section above it; the heading right after it only needs a short step. */
.even-spacing > hr {
	margin: var(--es-gap) 0 0;
}

.even-spacing > h2 {
	margin: var(--es-gap) 0 1.25rem;
}

.even-spacing > hr + h2 {
	margin-top: 1.5rem;
}

/* The Majors components bring their own inner padding; each one only needs the same step down from whatever is above it.
   Not "next to another embed": the hidden spacer boxes between them would break a sibling rule. */
.even-spacing > [data-section] {
	margin: var(--es-gap) 0 0;
}

/* The editor-only preview frame around a component, so the Omni Edit view follows the same rhythm. */
.even-spacing > .mb-8,
.even-spacing > .mb-10 {
	margin-block: 0;
}
