/*
 * SleepBaby.org 2.5.1 homepage editorial system.
 *
 * This release layer creates a compact chaptered reading path without hiding
 * or rewriting the recovered Workshop presentation. It is intentionally
 * scoped to the July homepage surface and is safe to load after v2.5.0.
 */

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor {
	--sb251-paper: #fffdf8;
	--sb251-paper-raised: #ffffff;
	--sb251-ink: #171728;
	--sb251-ink-soft: #454352;
	--sb251-night: #18203d;
	--sb251-plum: #49354f;
	--sb251-sage: #315f59;
	--sb251-lavender: #eee9f3;
	--sb251-mint: #e7f0ed;
	--sb251-blush: #f7e9e7;
	--sb251-line: #d8d5df;
	--sb251-line-strong: #aaa5b4;
	--sb251-focus: #175ea8;
	--sb251-shadow: 0 18px 44px rgba(24, 32, 61, .1);
	--sb251-shadow-small: 0 7px 20px rgba(24, 32, 61, .07);
	--sb251-radius: 14px;
	--sb251-radius-small: 9px;
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
	color: var(--sb251-ink);
	font-family: "Times New Roman", Times, serif !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor *,
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor *::before,
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor *::after {
	box-sizing: border-box;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor :is(a, button, input, select, textarea) {
	font-family: "Times New Roman", Times, serif !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor :is(a, button):focus-visible {
	outline: 3px solid var(--sb251-focus) !important;
	outline-offset: 3px !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor :is(
	.sb-home-chapter,
	.sb-home-reasons,
	.sb-home-reasons__list > li,
	.sb-home-library
) {
	scroll-margin-top: 92px;
}

/* Chapter index: compact like an admin toolbar, but never sticky. */
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters {
	display: flex;
	width: min(calc(100% - 24px), 1120px);
	align-items: center;
	gap: 12px;
	margin: -12px auto 24px;
	padding: 8px;
	border: 1px solid var(--sb251-line);
	border-radius: var(--sb251-radius-small);
	background: var(--sb251-paper);
	box-shadow: var(--sb251-shadow-small);
	color: var(--sb251-ink);
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters__label {
	flex: 0 0 auto;
	padding-inline: 8px 2px;
	color: var(--sb251-ink-soft);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters ul {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters li {
	min-width: 0;
	margin: 0;
	padding: 0;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 9px 12px;
	border: 1px solid transparent;
	border-radius: 7px;
	color: var(--sb251-night) !important;
	-webkit-text-fill-color: var(--sb251-night) !important;
	background: transparent;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.15;
	text-decoration: none;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters a:hover {
	border-color: var(--sb251-line);
	background: var(--sb251-lavender);
}

/* Shared chapter rhythm: one system, not a stack of unrelated cards. */
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapter {
	position: relative;
	margin-top: clamp(38px, 5vw, 60px) !important;
	padding-top: clamp(20px, 3vw, 30px) !important;
	border-top: 1px solid var(--sb251-line) !important;
	background: transparent !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapter::before {
	display: block;
	position: absolute;
	top: -2px;
	left: 0;
	width: 62px;
	height: 3px;
	border-radius: 3px;
	background: var(--sb251-sage);
	content: "";
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor :is(
	.sb-home-chapter--science,
	.sb-home-chapter--workshop,
	.sb-home-chapter--bonuses,
	.sb-home-chapter--reviews
) :is(h2, h3),
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor :is(
	.sb-home-chapter--science,
	.sb-home-chapter--workshop,
	.sb-home-chapter--bonuses,
	.sb-home-chapter--reviews
) :is(h2, h3) * {
	color: var(--sb251-ink) !important;
	-webkit-text-fill-color: var(--sb251-ink) !important;
	text-shadow: none !important;
}

/* Shorter, calmer decision panels; all live text remains opaque. */
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Exciting Download Button"] {
	height: auto !important;
	min-height: 0 !important;
	margin-block: clamp(34px, 5vw, 52px) !important;
	padding: clamp(24px, 4vw, 38px) !important;
	border: 1px solid rgba(255, 255, 255, .2) !important;
	border-radius: var(--sb251-radius) !important;
	background: var(--sb251-night) !important;
	box-shadow: 0 16px 36px rgba(24, 32, 61, .18) !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Exciting Download Button"] :is(
	p,
	span,
	strong,
	em,
	b,
	i,
	h2,
	h3
) {
	color: #fffefa !important;
	-webkit-text-fill-color: #fffefa !important;
	text-shadow: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Exciting Download Button"] .thrv_text_element {
	margin-block: 0 18px !important;
	padding: clamp(16px, 2.5vw, 22px) !important;
	border: 1px solid rgba(255, 255, 255, .18) !important;
	border-radius: var(--sb251-radius-small) !important;
	background: rgba(255, 255, 255, .08) !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Exciting Download Button"] :is(
	.sb-cro-upgraded-cta .sb-cro-cta,
	a.sb-cro-cta--legacy-upgraded,
	.tve_image_frame > a[href*="/purchase/"]
) {
	display: flex !important;
	width: min(100%, 560px) !important;
	min-height: 56px !important;
	align-items: center !important;
	justify-content: center !important;
	margin-inline: auto !important;
	padding: 12px 18px !important;
	border: 1px solid #254b47 !important;
	border-radius: 8px !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	background: var(--sb251-sage) !important;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .18) !important;
	font-size: clamp(18px, 2vw, 22px) !important;
	line-height: 1.15 !important;
	text-align: center !important;
	text-decoration: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Exciting Download Button"] :is(
	.sb-cro-upgraded-cta .sb-cro-cta,
	a.sb-cro-cta--legacy-upgraded,
	.tve_image_frame > a[href*="/purchase/"]
) :is(span, strong, em, b, i) {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Exciting Download Button"] :is(
	.sb-cro-upgraded-cta .sb-cro-cta,
	a.sb-cro-cta--legacy-upgraded,
	.tve_image_frame > a[href*="/purchase/"]
):hover {
	background: #274f4a !important;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .22) !important;
}

/* Illustration pacing: useful visual rests without tall decorative voids. */
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-tip-art {
	inline-size: clamp(88px, 10vw, 124px) !important;
	margin-block: 4px 14px !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor :is(
	[data-css="tve-u-1698df6d879"],
	[data-css="tve-u-1698dfe5106"],
	[data-css="tve-u-1698df53d70"]
) {
	inline-size: min(100%, 268px) !important;
	margin-block: 6px 20px !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Number Box 5"] {
	height: auto !important;
	min-height: 0 !important;
	margin-block: 18px !important;
	padding: clamp(22px, 3vw, 32px) !important;
	border: 1px solid var(--sb251-line) !important;
	border-radius: var(--sb251-radius) !important;
	background: var(--sb251-paper-raised) !important;
	box-shadow: var(--sb251-shadow-small) !important;
}

/* Baby-won't-sleep diagnostic zone. */
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons {
	width: min(calc(100% - 24px), 1040px) !important;
	margin: clamp(46px, 6vw, 70px) auto 42px !important;
	padding: clamp(30px, 5vw, 54px) !important;
	border: 1px solid var(--sb251-line) !important;
	border-top: 4px solid var(--sb251-plum) !important;
	border-radius: var(--sb251-radius) !important;
	background: var(--sb251-paper) !important;
	box-shadow: var(--sb251-shadow) !important;
	color: var(--sb251-ink) !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__eyebrow {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	margin: 0 0 14px !important;
	padding: 6px 10px !important;
	border: 1px solid #cfc6d6 !important;
	border-radius: 6px !important;
	color: var(--sb251-plum) !important;
	-webkit-text-fill-color: var(--sb251-plum) !important;
	background: var(--sb251-lavender) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: .01em !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons > h2 {
	max-width: 20ch;
	margin: 0 0 18px !important;
	color: var(--sb251-ink) !important;
	-webkit-text-fill-color: var(--sb251-ink) !important;
	font-size: clamp(34px, 5vw, 52px) !important;
	line-height: 1.02 !important;
	letter-spacing: -.035em !important;
	text-align: left !important;
	text-shadow: none !important;
	text-wrap: balance;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__intro {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 28px !important;
	margin: 0 0 28px !important;
	padding-bottom: 26px !important;
	border-bottom: 1px solid var(--sb251-line) !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__intro p {
	margin: 0 !important;
	color: var(--sb251-ink-soft) !important;
	-webkit-text-fill-color: var(--sb251-ink-soft) !important;
	font-size: clamp(17px, 1.8vw, 19px) !important;
	line-height: 1.55 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index {
	margin: 0 0 24px;
	padding: clamp(18px, 3vw, 26px);
	border: 1px solid var(--sb251-line);
	border-radius: var(--sb251-radius-small);
	background: var(--sb251-lavender);
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index-title {
	margin: 0 0 10px !important;
	color: var(--sb251-plum) !important;
	-webkit-text-fill-color: var(--sb251-plum) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: reason-index;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index li {
	margin: 0;
	padding: 0;
	counter-increment: reason-index;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index a {
	display: grid;
	min-height: 44px;
	grid-template-columns: 2ch minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	padding: 7px 9px;
	border: 1px solid transparent;
	border-radius: 6px;
	color: var(--sb251-night) !important;
	-webkit-text-fill-color: var(--sb251-night) !important;
	background: transparent;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index a::before {
	color: var(--sb251-plum);
	content: counter(reason-index, decimal-leading-zero);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index a:hover {
	border-color: #c4bacb;
	background: var(--sb251-paper-raised);
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__checklist {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
	column-gap: clamp(20px, 4vw, 42px);
	margin: 0 0 24px !important;
	padding: clamp(22px, 3.5vw, 34px) !important;
	border: 1px solid #b8cec8 !important;
	border-left: 5px solid var(--sb251-sage) !important;
	border-radius: var(--sb251-radius-small) !important;
	background: var(--sb251-mint) !important;
	box-shadow: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__checklist::after {
	display: none !important;
	content: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__checklist > :not(.sb-home-reasons__sticker) {
	grid-column: 1;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__checklist h3 {
	margin: 0 0 12px !important;
	color: var(--sb251-ink) !important;
	-webkit-text-fill-color: var(--sb251-ink) !important;
	font-size: clamp(24px, 3vw, 32px) !important;
	line-height: 1.08 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__checklist ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 22px;
	margin: 0 0 16px !important;
	padding-left: 20px !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__checklist :is(li, p) {
	color: #25302f !important;
	-webkit-text-fill-color: #25302f !important;
	font-size: 17px !important;
	line-height: 1.48 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__sticker {
	grid-column: 2;
	grid-row: 1 / span 3;
	float: none !important;
	width: 100% !important;
	max-width: 220px;
	align-self: center;
	margin: 0 !important;
	filter: drop-shadow(0 12px 16px rgba(49, 95, 89, .14));
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__safety {
	margin: 0 0 18px !important;
	padding: 20px 22px !important;
	border: 1px solid #d9c8c4 !important;
	border-left: 5px solid #824d45 !important;
	border-radius: var(--sb251-radius-small) !important;
	background: var(--sb251-blush) !important;
	box-shadow: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__safety h3 {
	margin: 0 0 7px !important;
	color: #572f2a !important;
	-webkit-text-fill-color: #572f2a !important;
	font-size: clamp(21px, 2.5vw, 27px) !important;
	line-height: 1.12 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__safety p {
	margin: 0 !important;
	color: #3b2b29 !important;
	-webkit-text-fill-color: #3b2b29 !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__list {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	list-style: none !important;
	counter-reset: sleep-reason;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__list > li {
	display: grid !important;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: clamp(14px, 2.5vw, 26px);
	margin: 0 !important;
	padding: clamp(22px, 3.5vw, 34px) 0 !important;
	border: 0 !important;
	border-top: 1px solid var(--sb251-line) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	counter-increment: sleep-reason;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__list > li::before {
	display: block !important;
	position: static !important;
	grid-column: 1;
	grid-row: 1 / span 8;
	width: auto !important;
	height: auto !important;
	margin: 2px 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--sb251-plum) !important;
	-webkit-text-fill-color: var(--sb251-plum) !important;
	background: transparent !important;
	content: counter(sleep-reason, decimal-leading-zero) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums;
	line-height: 1.2 !important;
	text-align: left !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__list > li > * {
	grid-column: 2;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__list h3 {
	margin: 0 0 10px !important;
	color: var(--sb251-ink) !important;
	-webkit-text-fill-color: var(--sb251-ink) !important;
	font-size: clamp(23px, 3vw, 31px) !important;
	line-height: 1.12 !important;
	letter-spacing: -.015em !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__list p {
	margin: 0 0 10px !important;
	color: var(--sb251-ink-soft) !important;
	-webkit-text-fill-color: var(--sb251-ink-soft) !important;
	font-size: 17px !important;
	line-height: 1.55 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons a {
	color: #234f6d !important;
	-webkit-text-fill-color: #234f6d !important;
	font-weight: 700;
	text-decoration-thickness: .08em;
	text-underline-offset: .14em;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__source-note {
	margin: 18px 0 0 !important;
	padding-top: 18px !important;
	border-top: 1px solid var(--sb251-line) !important;
	color: var(--sb251-ink-soft) !important;
	-webkit-text-fill-color: var(--sb251-ink-soft) !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
}

/* Curated current-guide hierarchy: three substantial guides, then a rail. */
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library {
	width: min(calc(100% - 24px), 1120px) !important;
	margin: 42px auto clamp(48px, 7vw, 76px) !important;
	padding: clamp(30px, 5vw, 54px) !important;
	border: 1px solid var(--sb251-line) !important;
	border-top: 4px solid var(--sb251-sage) !important;
	border-radius: var(--sb251-radius) !important;
	background: var(--sb251-paper) !important;
	box-shadow: var(--sb251-shadow) !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__header {
	display: block !important;
	margin: 0 0 24px !important;
	padding: 0 0 22px !important;
	border-bottom: 1px solid var(--sb251-line) !important;
	text-align: left !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__eyebrow {
	margin: 0 0 8px !important;
	color: var(--sb251-sage) !important;
	-webkit-text-fill-color: var(--sb251-sage) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: .03em !important;
	text-transform: uppercase;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__header h2 {
	max-width: 20ch;
	margin: 0 0 10px !important;
	color: var(--sb251-ink) !important;
	-webkit-text-fill-color: var(--sb251-ink) !important;
	font-size: clamp(32px, 4.6vw, 48px) !important;
	line-height: 1.04 !important;
	letter-spacing: -.03em !important;
	text-shadow: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__header > p:last-child {
	max-width: 62ch;
	margin: 0 !important;
	color: var(--sb251-ink-soft) !important;
	-webkit-text-fill-color: var(--sb251-ink-soft) !important;
	font-size: 18px !important;
	line-height: 1.45 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__grid {
	display: grid !important;
	grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
	gap: 16px !important;
	margin: 0 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card {
	min-width: 0;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--lead,
body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--compact {
	grid-column: span 4;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card__link {
	display: flex !important;
	height: 100%;
	min-height: 44px;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sb251-line) !important;
	border-radius: var(--sb251-radius-small) !important;
	color: var(--sb251-ink) !important;
	-webkit-text-fill-color: var(--sb251-ink) !important;
	background: var(--sb251-paper-raised) !important;
	box-shadow: var(--sb251-shadow-small) !important;
	text-decoration: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card__link:hover {
	border-color: var(--sb251-line-strong) !important;
	box-shadow: 0 10px 25px rgba(24, 32, 61, .11) !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-bottom: 1px solid var(--sb251-line);
	background: var(--sb251-lavender);
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card__meta {
	margin-bottom: 8px;
	color: var(--sb251-sage) !important;
	-webkit-text-fill-color: var(--sb251-sage) !important;
	font-size: 13px !important;
	font-weight: 700;
	line-height: 1.25 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card h3 {
	margin: 0 0 9px !important;
	color: var(--sb251-ink) !important;
	-webkit-text-fill-color: var(--sb251-ink) !important;
	font-size: clamp(21px, 2.4vw, 27px) !important;
	line-height: 1.12 !important;
	letter-spacing: -.01em !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card__excerpt {
	margin-bottom: 14px;
	color: var(--sb251-ink-soft) !important;
	-webkit-text-fill-color: var(--sb251-ink-soft) !important;
	font-size: 16px !important;
	line-height: 1.45 !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card__read {
	margin-top: auto;
	color: #234f6d !important;
	-webkit-text-fill-color: #234f6d !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: underline;
	text-decoration-thickness: .08em;
	text-underline-offset: .16em;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--compact .sb-home-guide-card__media {
	display: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--compact .sb-home-guide-card__link {
	border-top: 3px solid var(--sb251-plum) !important;
	box-shadow: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--compact .sb-home-guide-card__body {
	min-height: 172px;
	padding: 18px !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--compact h3 {
	font-size: clamp(19px, 2vw, 23px) !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--sb251-line);
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__all {
	display: inline-flex !important;
	min-height: 44px !important;
	align-items: center;
	justify-content: center;
	padding: 10px 15px !important;
	border: 1px solid var(--sb251-night) !important;
	border-radius: 7px !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	background: var(--sb251-night) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
}

body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__all:hover {
	background: #263052 !important;
}

/* Tablet hierarchy. */
@media (max-width: 920px) {
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters {
		align-items: flex-start;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--lead {
		grid-column: span 6;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--lead:nth-child(3) {
		grid-column: 1 / -1;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--compact {
		grid-column: span 4;
	}
}

/* Mobile-height compression: preserve every word while reducing long voids. */
@media (max-width: 767px) {
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-masthead {
		min-height: 54px !important;
		margin-bottom: 10px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters {
		display: block;
		width: calc(100% - 16px);
		margin: 0 auto 16px;
		padding: 7px;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters__label {
		display: block;
		padding: 5px 7px 3px;
		font-size: 14px;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters ul {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 3px;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters a {
		width: 100%;
		padding: 7px 5px;
		font-size: 14px;
		text-align: center;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapter {
		margin-top: 32px !important;
		padding-top: 18px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Exciting Download Button"] {
		margin-block: 30px !important;
		padding: 22px 16px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Exciting Download Button"] .thrv_text_element {
		margin-bottom: 14px !important;
		padding: 15px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-tip-art {
		inline-size: clamp(78px, 24vw, 100px) !important;
		margin-block: 0 10px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Number Box 5"] {
		margin-block: 14px !important;
		padding: 20px 16px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons,
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library {
		width: calc(100% - 16px) !important;
		padding: 26px 18px !important;
		border-radius: 11px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__intro {
		grid-template-columns: 1fr;
		gap: 12px !important;
		margin-bottom: 20px !important;
		padding-bottom: 20px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index {
		padding: 15px;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__checklist {
		display: block !important;
		padding: 21px 17px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__checklist ul {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__sticker {
		float: none !important;
		width: min(34vw, 112px) !important;
		margin: -2px auto 12px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__safety {
		padding: 18px 17px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__list > li {
		grid-template-columns: 34px minmax(0, 1fr);
		column-gap: 10px;
		padding-block: 22px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor :is(
		.sb-home-guide-card--lead,
		.sb-home-guide-card--lead:nth-child(3),
		.sb-home-guide-card--compact
	) {
		grid-column: 1 !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card__media {
		aspect-ratio: 16 / 8;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-guide-card--compact .sb-home-guide-card__body {
		min-height: 0;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__footer {
		justify-content: stretch;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library__all {
		width: 100%;
	}
}

@media (max-width: 520px) {
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters ul,
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons > h2 {
		font-size: clamp(30px, 9.4vw, 41px) !important;
	}
}

@media (max-width: 340px) {
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-chapters ul,
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__index ol {
		grid-template-columns: 1fr;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons,
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-library {
		width: calc(100% - 12px) !important;
		padding: 22px 13px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-reasons__list > li {
		grid-template-columns: 28px minmax(0, 1fr);
		column-gap: 8px;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor [data-ct-name="Exciting Download Button"] :is(
		.sb-cro-upgraded-cta .sb-cro-cta,
		a.sb-cro-cta--legacy-upgraded,
		.tve_image_frame > a[href*="/purchase/"]
	) {
		padding-inline: 12px !important;
		white-space: normal !important;
	}
}

@media (max-width: 300px) {
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-masthead {
		display: grid !important;
		width: calc(100% - 12px) !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 4px !important;
		padding: 7px !important;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-masthead__logo {
		justify-self: center;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-masthead__nav {
		display: grid !important;
		width: 100% !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor .sb-home-masthead__nav a {
		width: 100%;
		min-width: 0;
		padding-inline: 4px !important;
		font-size: 13px !important;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor *,
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor *::before,
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

@media (forced-colors: active) {
	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor :is(
		.sb-home-chapters,
		.sb-home-chapters a,
		[data-ct-name="Exciting Download Button"],
		.sb-home-reasons,
		.sb-home-reasons__index,
		.sb-home-reasons__checklist,
		.sb-home-reasons__safety,
		.sb-home-guide-card__link,
		.sb-home-library,
		.sb-home-library__all
	) {
		border: 1px solid CanvasText !important;
		box-shadow: none !important;
		forced-color-adjust: auto;
	}

	body.sb-home-precovid-2019.sleepbaby-homepage #tve_editor :is(a, button):focus-visible {
		outline: 3px solid Highlight !important;
	}
}
