/* Text section: one rich text body and an optional button. The editor sets size, colour, weight and alignment on each
   line with inline styles, so no rule here boxes a plain paragraph into a narrow column or fixes a line length.
   The body type rule is only the default look of a line that has no inline value; its spacing follows the live
   closing sentence's second paragraph (.eight-week-offer p + p).
   Three ids so these rules win over site rules that use id-level specificity (the site's link colour rule, for example). */

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-inner {
	box-sizing: content-box;
	max-width: 1050px;
	margin: 0 auto;
	padding: 0 25px;
	text-align: center;
}

/* A line the editor gives no alignment prints left, the way the editor's Visual tab draws it. The button sits outside
   the editor, so the text-align centre on the column around it centres the button. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body {
	text-align: left;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body,
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body p,
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body li {
	font-family: "Inter", sans-serif;
	font-size: 16px;
	line-height: 1.375;
	font-weight: 400;
	letter-spacing: 0;
	color: #645D56;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body p {
	margin: 0;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body p + p {
	margin-top: 16px;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body strong,
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body b {
	font-weight: 600;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body span[style*="font-size"] {
	line-height: 1.375;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body :is(h1, h2) :is(strong, b) {
	font-weight: inherit;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-button {
	display: inline-block;
	box-sizing: border-box;
	min-width: 230px;
	max-width: 100%;
	min-height: 48px;
	margin-top: 20px;
	padding: 0 24px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	line-height: 48px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: #FFFFFF;
	background-color: #5E30FF;
	border: 0;
	border-radius: 999px;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-button:hover,
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-button:focus,
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-button:focus-visible {
	color: #FFFFFF !important;
	text-decoration: none !important;
	background-color: #4A1FE6;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-inner > :first-child {
	margin-top: 0;
}

@media (max-width: 767px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-inner {
		max-width: 340px;
	}

	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body,
	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body p,
	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body li {
		font-size: 14px;
		line-height: 1.4286;
	}

	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body span[style*="font-size"] {
		line-height: 1.4286;
	}

	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-body p + p {
		margin-top: 22px;
	}

	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text-button {
		display: block;
		width: 100%;
		margin-top: 15px;
	}
}

/* A text row whose first line is a level-2 heading has room above it. The live page gets this from an empty spacer
   block (59px plus about 20px on desktop, 25px plus about 20px on phones) above the "A day on the 8 week challenge"
   heading. It is a margin because that spacer sits outside the coloured band; a row that does not start with a
   heading is not touched. The argument of :has() is wrapped in :where() because :has() takes the weight of its
   argument: with a bare h2:first-child this rule would outweigh the Zero top padding rules below and Zero top could
   not remove the space. :where() keeps the weights equal, so the file order decides. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text:has(.programs-text-body > :where(h2:first-child)) {
	margin-top: 79px;
}

@media (max-width: 1200px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text:has(.programs-text-body > :where(h2:first-child)) {
		margin-top: 46px;
	}
}

/* Padding input: Zero top and Zero bottom remove the row's own space above and below, which for a text row is only
   this margin. Scoped to the text root so the other sections are not touched, and placed after the margin rules so
   the order decides at equal weight. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-zero-top {
	margin-top: 0;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-zero-bottom {
	margin-bottom: 0;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-zero-top-bottom {
	margin-top: 0;
	margin-bottom: 0;
}

/* Padding input: Large is the 74px band of the Image + text and Info columns rows; Compact is a thin band such as a
   note. Both are space inside the row's background colour, so the margin above a leading heading is taken off. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-large {
	margin-top: 0;
	padding-top: 74px;
	padding-bottom: 74px;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-compact {
	margin-top: 0;
	padding-top: 20px;
	padding-bottom: 20px;
}

@media (max-width: 767px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-large {
		padding-top: 52px;
		padding-bottom: 47px;
	}

	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-compact {
		padding-top: 16px;
		padding-bottom: 16px;
	}
}

/* Large and Compact make the band's padding the whole gap above and below the text. A heading's own top margin, and the
   last line's bottom margin, would otherwise sit inside the band and add to it: a leading h2 measured 92px from the
   band top at 1440 and 65px at 390 instead of 74 and 52. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-large .programs-text-body > :first-child,
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-compact .programs-text-body > :first-child {
	margin-top: 0;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-large .programs-text-body > :last-child,
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text.programs-pad-compact .programs-text-body > :last-child {
	margin-bottom: 0;
}
