/* The ported responsive rules in programs.css assume exactly three items; these make two to five items share the row
   equally. With three items they give the same widths as before. Three ids so these rules win over the ported
   body:not(#_):not(#_) rules at the end of programs.css. Below 930px the row stacks; the stacked layout is touched only
   by the No border rules at the end of this file. */

@media (min-width: 1024px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content > div {
		flex: 1 1 0;
		min-width: 0;
		width: auto;
		margin: 0;
	}
}

@media (min-width: 1024px) and (max-width: 1200px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content {
		gap: 20px;
	}

	/* The ported rules set the picture to the column width only from 1201px up, so in wider columns here it would stop short of the column's edge. */
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content > div img {
		width: 100%;
		height: auto;
	}
}

/* The ported rule makes every column 304px from 1201px up. The cap keeps that for two and three items and centres
   them; four and five items still share the 960px row. */
@media (min-width: 1201px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content {
		justify-content: center;
	}

	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content > div {
		max-width: 304px;
	}
}

/* The ported rule keeps flex: 1 0 250px and a sideways scroll here, so four or five items scroll the row sideways. */
@media (min-width: 930px) and (max-width: 1023px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content {
		gap: 20px;
	}

	/* The scrolling row clips anything outside its padding box, so the 1px left, right and bottom margins keep those edges of each card's 1px ring visible; the top edge stays clipped, as with the ported rules. */
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content > div {
		margin: 0 1px 1px;
	}
}

/* Narrower columns keep some width for the text. Left and right only: the padding shorthand would also clear the top and bottom padding of the text block. */
@media (min-width: 1024px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-count-4 .nr-unrivalled-support-text,
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-count-5 .nr-unrivalled-support-text {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* The ported rule centres the paragraph in a 325px box, which indents it in a wide column; the paragraph fills the text area and starts on the title's line. */
@media (min-width: 1024px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content .nr-unrivalled-support-text p {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}
}

/* Item border set to "No border": no ring, corners or card background, and the text starts on the picture's line.
   Placed after the four- and five-item text padding rule (same weight), so its left and right padding of 0 wins. */
body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-border-none > div {
	box-shadow: none;
	border-radius: 0;
	background: transparent;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-border-none .nr-unrivalled-support-text {
	padding-left: 0;
	padding-right: 0;
}

/* Without a border the paragraph also starts flush with the picture at every width, including the stacked layout. */
body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-border-none .nr-unrivalled-support-text p {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* Padding input: Zero top and Zero bottom remove the section's own padding above and below (it changes at 1200px and
   767px in the ported rules). Scoped to the Columns root so no other section is touched; the id in the selector gives
   these rules more weight than the ported ones. */
body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support.programs-pad-zero-top {
	padding-top: 0;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support.programs-pad-zero-bottom {
	padding-bottom: 0;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support.programs-pad-zero-top-bottom {
	padding-top: 0;
	padding-bottom: 0;
}

/* Round icon look. The values for 768px and wider were measured on the live evvr menopause page; the sizes at 767px and narrower are this theme's own.
 * Keep this block after the four- and five-item text padding rule above: both have the same weight, so only the later one gives the text block its padding of 0.
 * The title alignment needs !important to beat the ported !important rule at 767px and narrower.
 * These rules also style the stacked layout; the note in the file header that only the No border rules touch it predates this block. */
body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-look-icon > div {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	text-align: center;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-look-icon > div img {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: contain;
	margin: 0 auto;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-look-icon .nr-unrivalled-support-text {
	padding: 0;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-look-icon .nr-unrivalled-support-text .nr-section-title {
	margin: 16px 0;
	font-family: "Montserrat", sans-serif;
	font-size: 18px;
	line-height: 22px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center !important;
	color: #111111;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-look-icon .nr-unrivalled-support-text p {
	max-width: 327px;
	margin: 0 auto;
	font-family: "Inter", sans-serif;
	font-size: 18px;
	line-height: 28px;
	text-align: center;
	color: #111111;
}

@media (max-width: 767px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-look-icon .nr-unrivalled-support-text .nr-section-title {
		font-size: 16px;
		line-height: 22px;
	}

	body.single-sa28_programs:not(#_):not(#_):not(#_) #nr-unrivalled-support-content.programs-columns-look-icon .nr-unrivalled-support-text p {
		font-size: 16px;
		line-height: 24px;
	}
}
