/*
 * SleepBaby.org 2.5.8 article interaction and sources hardening.
 *
 * This late, cache-safe layer retains the 2.5.6 editorial reset while making
 * reference links and wide data tables reliably usable on narrow screens,
 * then progressively compacts true end-of-article evidence blocks.
 */

body.sleepbaby-single-post :is(
	.site-brand-logo-link--header,
	.site-brand-logo-link--footer
) {
	display: inline-flex !important;
	min-width: 44px !important;
	min-height: 44px !important;
	align-items: center;
	justify-content: center;
}

/*
 * Reference links are enhanced by article-v257.js. The real anchor box—not a
 * decorative pseudo-element—owns an explicit, non-overlapping 44px target.
 * Its inline footprint is reserved in layout so adjacent citations and the
 * following prose can never sit beneath an ambiguous hit area.
 */
body.sleepbaby-single-post .entry-content a[data-sb-article-reference-link] {
	display: inline-flex !important;
	min-width: 44px !important;
	min-height: 44px !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin-inline: 2px !important;
	padding-inline: 8px !important;
	border-radius: 6px;
	vertical-align: middle;
}

body.sleepbaby-single-post .entry-content sup > a[data-sb-article-reference-link] {
	width: 44px !important;
	height: 44px !important;
	margin: 0 2px !important;
	padding: 0 !important;
	line-height: 1 !important;
	vertical-align: middle;
}

/*
 * WordPress table figures and unwrapped legacy tables receive the same
 * keyboard-focusable region class from article-v257.js. The table itself
 * remains a semantic table; only its labeled parent owns horizontal scroll.
 */
body.sleepbaby-single-post .entry-content .sb-article-table-scroll {
	display: block !important;
	max-width: 100% !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	overscroll-behavior-inline: contain;
	scrollbar-color: #725d7d #eee8f0;
	scrollbar-gutter: stable;
	scrollbar-width: auto;
	touch-action: pan-x;
	-webkit-overflow-scrolling: touch;
}

body.sleepbaby-single-post .entry-content .sb-article-table-scroll > table,
body.sleepbaby-single-post .entry-content .wp-block-table.sb-article-table-scroll > table {
	display: table !important;
	width: 100% !important;
	max-width: none !important;
	overflow: visible !important;
	border-collapse: collapse;
}

body.sleepbaby-single-post .entry-content .sb-article-table-scroll:focus-visible {
	outline: 3px solid var(--sb256-focus, #0b65b1) !important;
	outline-offset: 4px !important;
}

body.sleepbaby-single-post .entry-content .sb-article-table-scroll::-webkit-scrollbar {
	height: 11px;
}

body.sleepbaby-single-post .entry-content .sb-article-table-scroll::-webkit-scrollbar-track {
	border-radius: 999px;
	background: #eee8f0;
}

body.sleepbaby-single-post .entry-content .sb-article-table-scroll::-webkit-scrollbar-thumb {
	border: 2px solid #eee8f0;
	border-radius: 999px;
	background: #725d7d;
}

@media (max-width: 768px) {
	body.sleepbaby-single-post .entry-content > .sb-article-table-scroll,
	body.sleepbaby-single-post .entry-content > .wp-block-table.sb-article-table-scroll {
		width: 100% !important;
		max-width: 100% !important;
		margin: 32px 0 42px !important;
		padding: 0 0 3px !important;
		border: 1px solid var(--sb256-line, #d9cedd) !important;
		border-radius: 16px !important;
		background: var(--sb256-paper-bright, #fff) !important;
		box-shadow: 0 12px 28px rgba(54, 36, 61, .1) !important;
	}

	body.sleepbaby-single-post .entry-content .sb-article-table-scroll > table,
	body.sleepbaby-single-post .entry-content .wp-block-table.sb-article-table-scroll > table {
		width: max-content !important;
		min-width: 40rem !important;
		font-size: 16px !important;
		line-height: 1.4 !important;
	}

	body.sleepbaby-single-post .entry-content .sb-article-table-scroll :is(th, td) {
		min-width: 9.5rem;
		padding: 11px 12px !important;
		overflow-wrap: normal !important;
		word-break: normal !important;
	}
}

@media (forced-colors: active) {
	body.sleepbaby-single-post .entry-content :is(
		a[data-sb-article-reference-link],
		.sb-article-table-scroll
	) {
		border: 1px solid LinkText !important;
	}
}

/* Progressive Sources/References disclosure. Unenhanced/no-JS source markup
 * never matches these data attributes and therefore remains fully visible. */
body.sleepbaby-single-post .entry-content [data-sb-sources-enhanced="1"] {
	width: 100% !important;
	max-width: 100% !important;
	margin: 34px 0 42px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--sb256-ink, #33223b) !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: "Times New Roman", Times, serif !important;
	font-size: 16px !important;
	line-height: 1.55 !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: clip;
	border: 1px solid #cdbfd2 !important;
	border-radius: 18px !important;
	color: #33223b !important;
	background: linear-gradient(135deg, #fffdf9 0%, #faf2fb 100%) !important;
	box-shadow: 0 13px 30px rgba(54, 36, 61, .1) !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__summary {
	display: flex !important;
	min-height: 56px !important;
	align-items: center !important;
	gap: 10px !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 9px 14px !important;
	list-style: none !important;
	color: #33223b !important;
	-webkit-text-fill-color: #33223b !important;
	background: #fffdf9 !important;
	font-family: "Times New Roman", Times, serif !important;
	cursor: pointer;
	touch-action: manipulation;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__summary::-webkit-details-marker {
	display: none !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__mark {
	display: inline-flex !important;
	width: 34px !important;
	height: 34px !important;
	flex: 0 0 34px !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid #9d7baa !important;
	border-radius: 50% !important;
	color: #4b2859 !important;
	-webkit-text-fill-color: #4b2859 !important;
	background: #f2e5f5 !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__label {
	min-width: 0;
	flex: 1 1 auto;
	color: #33223b !important;
	-webkit-text-fill-color: #33223b !important;
	font-size: clamp(18px, 2.2vw, 21px) !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__count {
	flex: 0 0 auto;
	color: #5b3d65 !important;
	-webkit-text-fill-color: #5b3d65 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	white-space: nowrap;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__chevron {
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	color: #4b2859 !important;
	transform: rotate(45deg) translate(-2px, -2px);
	transform-origin: center;
	transition: transform .16s ease;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure[open] > .sb-sources-disclosure__summary {
	border-bottom: 1px solid #d9cedd !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure[open] .sb-sources-disclosure__chevron {
	transform: rotate(225deg) translate(-2px, -2px);
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__summary:focus-visible {
	outline: 3px solid var(--sb256-focus, #0b65b1) !important;
	outline-offset: -4px !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__content {
	box-sizing: border-box !important;
	padding: 18px clamp(16px, 3.2vw, 28px) 22px !important;
	color: #3c3041 !important;
	background: #fffdf9 !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__original-heading {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__content :is(ol, ul) {
	display: grid !important;
	gap: 10px !important;
	margin: 0 !important;
	padding-left: 1.35rem !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__content li {
	margin: 0 !important;
	padding: 0 0 0 3px !important;
	color: #3c3041 !important;
	font-size: 16px !important;
	line-height: 1.55 !important;
}

body.sleepbaby-single-post .entry-content .sb-sources-disclosure__content a[data-sb-article-reference-link] {
	max-width: 100% !important;
	min-height: 44px !important;
	color: #315f7d !important;
	-webkit-text-fill-color: #315f7d !important;
	line-height: 1.35 !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px !important;
	white-space: normal !important;
	overflow-wrap: anywhere !important;
}

@media (max-width: 360px) {
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure__summary {
		gap: 8px !important;
		padding-inline: 11px !important;
	}

	body.sleepbaby-single-post .entry-content .sb-sources-disclosure__mark {
		width: 30px !important;
		height: 30px !important;
		flex-basis: 30px !important;
		font-size: 17px !important;
	}

	body.sleepbaby-single-post .entry-content .sb-sources-disclosure__count {
		font-size: 13px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure,
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure * {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media (forced-colors: active) {
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure,
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure__summary,
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure__mark,
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure__content {
		border-color: CanvasText !important;
		color: CanvasText !important;
		-webkit-text-fill-color: CanvasText !important;
		background: Canvas !important;
		box-shadow: none !important;
	}

	body.sleepbaby-single-post .entry-content .sb-sources-disclosure :is(
		.sb-sources-disclosure__label,
		.sb-sources-disclosure__count,
		.sb-sources-disclosure__chevron,
		li
	) {
		color: CanvasText !important;
		-webkit-text-fill-color: CanvasText !important;
	}

	body.sleepbaby-single-post .entry-content .sb-sources-disclosure__content a[data-sb-article-reference-link] {
		color: LinkText !important;
		-webkit-text-fill-color: LinkText !important;
		border-color: LinkText !important;
	}
}

@media print, (scripting: none) {
	body.sleepbaby-single-post .entry-content [data-sb-sources-enhanced="1"] {
		margin: 18pt 0 !important;
	}

	body.sleepbaby-single-post .entry-content .sb-sources-disclosure {
		overflow: visible !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	body.sleepbaby-single-post .entry-content .sb-sources-disclosure > .sb-sources-disclosure__summary {
		display: none !important;
	}

	body.sleepbaby-single-post .entry-content .sb-sources-disclosure > .sb-sources-disclosure__content {
		display: block !important;
		padding: 0 !important;
		background: transparent !important;
	}

	body.sleepbaby-single-post .entry-content .sb-sources-disclosure__original-heading {
		position: static !important;
		width: auto !important;
		height: auto !important;
		margin: 0 0 10pt !important;
		overflow: visible !important;
		clip: auto !important;
		clip-path: none !important;
		white-space: normal !important;
	}
}

/* Article Flow color contract -------------------------------------------------
 *
 * Article Flow authors deliberately use small, self-contained teaching cards.
 * The general article typography layer must never repaint their light cards
 * with pale type or their dark cards with the default blue article link. Known
 * component classes work without JavaScript; the data attributes added by
 * article-v258.js extend the same contract to future component output. */
body.sleepbaby-single-post .entry-content :is(
	.sbds-escape-decoder,
	.sbds-transition-plan,
	.sbds-tonight-path,
	.sbds-affiliate-module,
	.sbds-video-card,
	.sbds-final-cta,
	.sabb-box,
	[data-sb-kacey-story],
	[data-sb-article-flow-surface]
) {
	box-sizing: border-box !important;
	max-width: 100% !important;
	font-family: "Times New Roman", Times, serif !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-escape-decoder,
	.sbds-transition-plan
) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: clamp(12px, 2vw, 18px) !important;
	padding: clamp(12px, 2.4vw, 20px) !important;
	overflow: hidden !important;
	border: 1px solid #cdbfd2 !important;
	border-radius: 26px !important;
	background: linear-gradient(145deg, #f8f2fa 0%, #edf7f3 100%) !important;
	box-shadow: 0 18px 42px rgba(54, 36, 61, .1) !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-escape-decoder > section,
	.sbds-transition-plan > section,
	.sbds-tonight-path > li,
	[data-sb-article-flow-card="1"]
) {
	box-sizing: border-box !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: clamp(17px, 2.5vw, 23px) !important;
	overflow: hidden !important;
	border: 1px solid #c9bbce !important;
	border-radius: 19px !important;
	color: #33243b !important;
	-webkit-text-fill-color: #33243b !important;
	background: #fffdf9 !important;
	box-shadow: 0 9px 22px rgba(54, 36, 61, .075) !important;
}

body.sleepbaby-single-post .entry-content .sbds-escape-decoder > section:nth-child(1) {
	border-color: #d8a3ae !important;
	background: linear-gradient(145deg, #fff7f7, #fff0f3) !important;
}

body.sleepbaby-single-post .entry-content .sbds-escape-decoder > section:nth-child(2) {
	border-color: #d7b28e !important;
	background: linear-gradient(145deg, #fffaf3, #fff3e7) !important;
}

body.sleepbaby-single-post .entry-content .sbds-escape-decoder > section:nth-child(3) {
	border-color: #9fc9bf !important;
	background: linear-gradient(145deg, #f5fcf9, #e9f7f2) !important;
}

body.sleepbaby-single-post .entry-content .sbds-escape-decoder > section:nth-child(4) {
	border-color: #baabd0 !important;
	background: linear-gradient(145deg, #fbf8fd, #f0eafa) !important;
}

body.sleepbaby-single-post .entry-content .sbds-transition-plan > section:nth-child(1) {
	border-color: #d8cadf !important;
	background: linear-gradient(145deg, #fffefa, #f7f1fb) !important;
}

body.sleepbaby-single-post .entry-content .sbds-transition-plan > section:nth-child(2) {
	border-color: #e0b995 !important;
	background: linear-gradient(145deg, #fffaf5, #fff0e4) !important;
}

body.sleepbaby-single-post .entry-content .sbds-transition-plan > section:nth-child(3) {
	border-color: #9fc9bf !important;
	background: linear-gradient(145deg, #f5fcf9, #e7f6f1) !important;
}

body.sleepbaby-single-post .entry-content .sbds-transition-plan > section:nth-child(4) {
	border-color: #baabd0 !important;
	background: linear-gradient(145deg, #fbf8fd, #efe8f8) !important;
}

/* Light Article Flow surfaces always own their descendants' final foreground. */
body.sleepbaby-single-post .entry-content :is(
	.sbds-escape-decoder > section,
	.sbds-transition-plan > section,
	.sbds-tonight-path > li,
	.sbds-affiliate-module,
	.sabb-box,
	.sbds-answer,
	.sbds-safety-rail,
	[data-sb-kacey-story],
	[data-sb-article-flow-surface="light"]
) {
	color: #33243b !important;
	-webkit-text-fill-color: #33243b !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-escape-decoder > section,
	.sbds-transition-plan > section,
	.sbds-tonight-path > li,
	.sbds-affiliate-module,
	.sabb-box,
	.sbds-answer,
	.sbds-safety-rail,
	[data-sb-kacey-story],
	[data-sb-article-flow-surface="light"]
) :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, b, em, i, small, blockquote, figcaption) {
	color: #33243b !important;
	-webkit-text-fill-color: #33243b !important;
	opacity: 1 !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-escape-decoder > section,
	.sbds-transition-plan > section,
	.sbds-tonight-path > li,
	.sbds-affiliate-module,
	.sabb-box,
	.sbds-answer,
	.sbds-safety-rail,
	[data-sb-kacey-story],
	[data-sb-article-flow-surface="light"]
) :is(h2, h3, h4) {
	max-width: none !important;
	margin: .24rem 0 .72rem !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: clamp(1.45rem, 3vw, 2rem) !important;
	line-height: 1.08 !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-escape-decoder > section,
	.sbds-transition-plan > section,
	.sbds-tonight-path > li,
	.sbds-affiliate-module,
	.sabb-box,
	.sbds-answer,
	.sbds-safety-rail,
	[data-sb-kacey-story],
	[data-sb-article-flow-surface="light"]
) a:not(.sbds-affiliate-module__button):not(.sabb-box__button):not(.sbds-final-cta__button),
body.sleepbaby-single-post .entry-content :is(
	.sbds-escape-decoder > section,
	.sbds-transition-plan > section,
	.sbds-tonight-path > li,
	.sbds-affiliate-module,
	.sabb-box,
	.sbds-answer,
	.sbds-safety-rail,
	[data-sb-kacey-story],
	[data-sb-article-flow-surface="light"]
) a:not(.sbds-affiliate-module__button):not(.sabb-box__button):not(.sbds-final-cta__button):is(:visited, :hover, :focus, :active) {
	color: #24536f !important;
	-webkit-text-fill-color: #24536f !important;
	text-decoration-color: #527c94 !important;
}

/* Compact authored labels become deliberate signposts instead of stray text. */
body.sleepbaby-single-post .entry-content :is(
	.sbds-component-label,
	.sbds-video-label,
	.sbds-cta-eyebrow,
	.sabb-box__eyebrow,
	[data-sb-article-flow-label="1"]
) {
	display: inline-flex !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 32px !important;
	align-items: center !important;
	box-sizing: border-box !important;
	margin: 0 0 11px !important;
	padding: 6px 11px !important;
	border: 1px solid #b99bc3 !important;
	border-radius: 999px !important;
	color: #4d2c59 !important;
	-webkit-text-fill-color: #4d2c59 !important;
	background: #f3e8f5 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .075em !important;
	line-height: 1.25 !important;
	text-transform: uppercase !important;
}

body.sleepbaby-single-post .entry-content .sbds-escape-decoder > section:nth-child(1) .sbds-component-label {
	border-color: #c57d8c !important;
	color: #713448 !important;
	-webkit-text-fill-color: #713448 !important;
	background: #ffe1e7 !important;
}

body.sleepbaby-single-post .entry-content .sbds-escape-decoder > section:nth-child(2) .sbds-component-label {
	border-color: #b7804f !important;
	color: #67401f !important;
	-webkit-text-fill-color: #67401f !important;
	background: #ffe5ca !important;
}

body.sleepbaby-single-post .entry-content .sbds-escape-decoder > section:nth-child(3) .sbds-component-label {
	border-color: #5f9a8d !important;
	color: #255a50 !important;
	-webkit-text-fill-color: #255a50 !important;
	background: #d9f1ea !important;
}

body.sleepbaby-single-post .entry-content .sbds-escape-decoder > section:nth-child(4) .sbds-component-label {
	border-color: #8a72aa !important;
	color: #4b3768 !important;
	-webkit-text-fill-color: #4b3768 !important;
	background: #e9def4 !important;
}

/* The proven route remains visually intact, including its nested arrow. */
body.sleepbaby-single-post .entry-content .sb-article-route-bar a.sb-article-route-bar__home:is(:link, :visited, :hover, :focus, :active),
body.sleepbaby-single-post .entry-content .sb-article-route-bar a.sb-article-route-bar__home:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	text-decoration-color: #fffdf8 !important;
}

body.sleepbaby-single-post .entry-content .sb-article-route-bar {
	box-sizing: border-box !important;
}

@media (max-width: 1024px) {
	body.sleepbaby-single-post .entry-content .sb-article-route-bar {
		width: 100% !important;
		max-width: 100% !important;
		margin-inline: 0 !important;
		inset-inline: auto !important;
		transform: none !important;
	}
}

/* Hypothetical teaching scene. */
body.sleepbaby-single-post .entry-content [data-sb-kacey-story] {
	padding: clamp(20px, 3.4vw, 30px) !important;
	border: 1px solid #c9b7d4 !important;
	border-inline-start: 7px solid #8064aa !important;
	border-radius: 5px 24px 24px 5px !important;
	background: linear-gradient(145deg, #fffdf9, #f5eef9) !important;
	box-shadow: 0 15px 34px rgba(54, 36, 61, .09) !important;
}

/* Affiliate recommendation: explicit external action, never blue-on-purple. */
body.sleepbaby-single-post .entry-content .sbds-affiliate-module {
	padding: clamp(20px, 3.5vw, 30px) !important;
	border: 1px solid #aa8db8 !important;
	border-radius: 24px !important;
	background:
		radial-gradient(circle at 92% 9%, rgba(244, 209, 222, .7), transparent 25%),
		linear-gradient(145deg, #fffdf9 0%, #f3ecf8 54%, #eaf6f1 100%) !important;
	box-shadow: 0 18px 42px rgba(54, 36, 61, .12) !important;
}

body.sleepbaby-single-post .entry-content .sbds-affiliate-module a.sbds-affiliate-module__button:is(:link, :visited, :hover, :focus, :active) {
	display: inline-flex !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 52px !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 11px 17px !important;
	border: 2px solid #5f436e !important;
	border-radius: 999px !important;
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: linear-gradient(135deg, #694975, #3d2949) !important;
	box-shadow: 0 10px 23px rgba(54, 36, 61, .2) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	text-decoration: none !important;
}

body.sleepbaby-single-post .entry-content .sbds-affiliate-module a.sbds-affiliate-module__button:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
}

body.sleepbaby-single-post .entry-content .sbds-affiliate-module a.sbds-affiliate-module__button:hover {
	border-color: #315f57 !important;
	background: linear-gradient(135deg, #4e7067, #314b47) !important;
}

/* Reusable search-assist box from the article plugin. */
body.sleepbaby-single-post .entry-content .sabb-box {
	padding: clamp(20px, 3.4vw, 30px) !important;
	border: 1px solid #b8a5c1 !important;
	border-radius: 24px !important;
	color: #33243b !important;
	-webkit-text-fill-color: #33243b !important;
	background:
		radial-gradient(circle at 10% 12%, rgba(191, 230, 219, .62), transparent 26%),
		linear-gradient(145deg, #fffdf9, #f4edf8) !important;
	box-shadow: 0 17px 38px rgba(54, 36, 61, .11) !important;
}

/* The reusable search-assist plugin can inject a late dark night-sky layer on
 * pseudo-elements. The component is intentionally a light premium surface,
 * so neutralize every decorative paint layer rather than trusting the root's
 * computed background-color (which does not describe the final pixels). */
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sabb-box.sabb-box::before,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sabb-box.sabb-box::after {
	content: none !important;
	display: none !important;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

body.sleepbaby-single-post .entry-content .sabb-box a.sabb-box__button:is(:link, :visited, :hover, :focus, :active) {
	display: inline-flex !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 52px !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 11px 17px !important;
	border: 2px solid #51365e !important;
	border-radius: 999px !important;
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: linear-gradient(135deg, #654573, #3c2847) !important;
	box-shadow: 0 10px 23px rgba(54, 36, 61, .2) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	text-decoration: none !important;
}

body.sleepbaby-single-post .entry-content .sabb-box a.sabb-box__button:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
}

body.sleepbaby-single-post .entry-content .sabb-box a.sabb-box__button:hover {
	border-color: #315f57 !important;
	background: linear-gradient(135deg, #4e7067, #314b47) !important;
}

/* Runtime Amazon ideas keep the plugin's article-specific palette while the
 * theme supplies a calmer 2026 shell. The two choices intentionally remain
 * distinct: practical is blue; luxury is indigo/plum. */
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section {
	display: block !important;
	box-sizing: border-box !important;
	max-width: 100% !important;
	padding: clamp(20px, 3.4vw, 30px) !important;
	overflow: hidden !important;
	border: 2px solid var(--sbua-accent, #f6b8cf) !important;
	border-radius: 24px !important;
	color: var(--sbua-ink, #7d4860) !important;
	-webkit-text-fill-color: var(--sbua-ink, #7d4860) !important;
	background: var(--sbua-bg, #fff1f6) !important;
	background-image: radial-gradient(circle at 92% 10%, rgba(255, 255, 255, .78), transparent 28%) !important;
	box-shadow: 0 17px 38px color-mix(in srgb, var(--sbua-ink, #7d4860) 14%, transparent) !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section :is(h2, p, small) {
	max-width: none !important;
	color: var(--sbua-ink, #7d4860) !important;
	-webkit-text-fill-color: var(--sbua-ink, #7d4860) !important;
	opacity: 1 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-kicker {
	display: inline-flex !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 32px !important;
	align-items: center !important;
	box-sizing: border-box !important;
	margin: 0 0 11px !important;
	padding: 6px 11px !important;
	border: 1px solid var(--sbua-accent, #f6b8cf) !important;
	border-radius: 999px !important;
	color: var(--sbua-ink, #7d4860) !important;
	-webkit-text-fill-color: var(--sbua-ink, #7d4860) !important;
	background: color-mix(in srgb, var(--sbua-accent, #f6b8cf) 28%, #fffdf9) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .075em !important;
	line-height: 1.25 !important;
	text-transform: uppercase !important;
}

body.sleepbaby-single-post .entry-content .sbua-amazon-section .sbua-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 12px !important;
	max-width: 100% !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:is(:link, :visited, :hover, :focus, :active) {
	display: flex !important;
	min-width: 0 !important;
	min-height: 92px !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 16px !important;
	border: 2px solid rgba(255, 255, 255, .3) !important;
	border-radius: 18px !important;
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: #123d70 !important;
	box-shadow: 0 10px 23px rgba(21, 55, 94, .22) !important;
	filter: none !important;
	opacity: 1 !important;
	line-height: 1.28 !important;
	text-align: center !important;
	text-decoration: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:first-child:is(:link, :visited) {
	border-color: #2c6da5 !important;
	background: linear-gradient(145deg, #123d70, #1b548d) !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:nth-child(2):is(:link, :visited) {
	border-color: #6d5fa7 !important;
	background: linear-gradient(145deg, #2f2b69, #604f98) !important;
	box-shadow: 0 10px 25px rgba(55, 43, 105, .24) !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	opacity: 1 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:first-child:is(:hover, :focus) {
	border-color: #3d84bd !important;
	background: linear-gradient(145deg, #185083, #2670ad) !important;
	filter: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:nth-child(2):is(:hover, :focus) {
	border-color: #8172bb !important;
	background: linear-gradient(145deg, #3b377e, #6c5aa5) !important;
	filter: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:first-child:active {
	background: linear-gradient(145deg, #0e315c, #174676) !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:nth-child(2):active {
	background: linear-gradient(145deg, #27235a, #514284) !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:is(:focus, :focus-visible) {
	outline: 3px solid #24536f !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 3px #fffdf8 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a::before,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a::after {
	content: none !important;
	display: none !important;
	background: none !important;
	background-image: none !important;
	opacity: 0 !important;
}

/* Dark owned surfaces always own the final foreground, even when a writer's
 * inline color is later superseded by the broad article heading/link layer. */
body.sleepbaby-single-post .entry-content :is(
	.sbds-video-card,
	.sbds-final-cta,
	[data-sb-background-owned="required"],
	[data-sb-article-flow-surface="dark"]
) {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-video-card,
	.sbds-final-cta,
	[data-sb-background-owned="required"],
	[data-sb-article-flow-surface="dark"]
) :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, b, em, i, small, blockquote, figcaption) {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	opacity: 1 !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-video-card,
	.sbds-final-cta,
	[data-sb-background-owned="required"],
	[data-sb-article-flow-surface="dark"]
) :is(h2, h3, h4) {
	max-width: none !important;
	margin: .24rem 0 .72rem !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-video-card,
	.sbds-final-cta,
	[data-sb-background-owned="required"],
	[data-sb-article-flow-surface="dark"]
) a:not(.sbds-final-cta__button),
body.sleepbaby-single-post .entry-content :is(
	.sbds-video-card,
	.sbds-final-cta,
	[data-sb-background-owned="required"],
	[data-sb-article-flow-surface="dark"]
) a:not(.sbds-final-cta__button):is(:visited, :hover, :focus, :active) {
	color: #ffe2a3 !important;
	-webkit-text-fill-color: #ffe2a3 !important;
	text-decoration-color: #ffe2a3 !important;
}

/* Keep normal and visited rules separate: Chromium deliberately sanitizes
 * some mixed :visited selector lists. Repeated component scope also beats
 * late broad plugin/article link rules without depending on source order. */
body.sleepbaby-single-post .entry-content .sbds-video-card.sbds-video-card a[href],
body.sleepbaby-single-post .entry-content [data-sb-article-flow-surface="dark"][data-sb-article-flow-surface="dark"] a[href]:not(.sbds-final-cta__button) {
	color: #ffe2a3 !important;
	-webkit-text-fill-color: #ffe2a3 !important;
	text-decoration-color: #ffe2a3 !important;
}

body.sleepbaby-single-post .entry-content .sbds-video-card.sbds-video-card a[href]:visited,
body.sleepbaby-single-post .entry-content [data-sb-article-flow-surface="dark"][data-sb-article-flow-surface="dark"] a[href]:not(.sbds-final-cta__button):visited {
	color: #ffe2a3 !important;
	-webkit-text-fill-color: #ffe2a3 !important;
	text-decoration-color: #ffe2a3 !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-video-card,
	.sbds-final-cta,
	[data-sb-background-owned="required"],
	[data-sb-article-flow-surface="dark"]
) :is(.sbds-video-label, .sbds-cta-eyebrow, [data-sb-article-flow-label="1"]) {
	border-color: #e0b85f !important;
	color: #ffe3a8 !important;
	-webkit-text-fill-color: #ffe3a8 !important;
	background: rgba(255, 227, 168, .1) !important;
}

body.sleepbaby-single-post .entry-content .sbds-video-card {
	padding: clamp(21px, 3.5vw, 31px) !important;
	border: 2px solid #b596d2 !important;
	border-radius: 25px !important;
	background:
		radial-gradient(circle at 90% 10%, rgba(255, 214, 138, .15), transparent 26%),
		linear-gradient(145deg, #2d1d49, #1d1530) !important;
	box-shadow: 0 20px 46px rgba(37, 24, 63, .27) !important;
}

body.sleepbaby-single-post .entry-content .sbds-video-card .sbds-video-frame {
	max-width: 100% !important;
	border-color: #f3cf80 !important;
	background: #0f0b19 !important;
}

body.sleepbaby-single-post .entry-content .sbds-video-card .sbds-video-takeaway {
	padding: 14px 16px !important;
	border: 1px solid #7ea99f !important;
	border-radius: 15px !important;
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: #3c3158 !important;
}

body.sleepbaby-single-post .entry-content .sbds-final-cta {
	padding: clamp(25px, 4.2vw, 38px) !important;
	border: 2px solid #b596d2 !important;
	border-radius: 27px !important;
	background:
		radial-gradient(circle at 88% 10%, rgba(245, 214, 142, .19), transparent 25%),
		radial-gradient(circle at 12% 90%, rgba(126, 202, 184, .15), transparent 28%),
		linear-gradient(145deg, #492c65, #2d1d49) !important;
	box-shadow: 0 22px 50px rgba(45, 28, 72, .28) !important;
}

body.sleepbaby-single-post .entry-content .sbds-final-cta a.sbds-final-cta__button:is(:link, :visited, :hover, :focus, :active) {
	display: inline-flex !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 56px !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 12px 19px !important;
	border: 2px solid #c8e3da !important;
	border-radius: 999px !important;
	color: #2f2037 !important;
	-webkit-text-fill-color: #2f2037 !important;
	background: linear-gradient(115deg, #dff3e9 0%, #f9e4e7 100%) !important;
	box-shadow: 0 13px 28px rgba(17, 10, 24, .28) !important;
	font-weight: 700 !important;
	line-height: 1.22 !important;
	text-align: center !important;
	text-decoration: none !important;
}

body.sleepbaby-single-post .entry-content .sbds-final-cta a.sbds-final-cta__button:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
	color: #2f2037 !important;
	-webkit-text-fill-color: #2f2037 !important;
}

body.sleepbaby-single-post .entry-content .sbds-final-cta a.sbds-final-cta__button:hover {
	border-color: #f2d58d !important;
	background: linear-gradient(115deg, #f2d798, #f5dce5) !important;
}

body.sleepbaby-single-post .entry-content :is(
	.sbds-affiliate-module__button,
	.sabb-box__button,
	.sbds-final-cta__button
):focus-visible {
	outline: 3px solid #0b65b1 !important;
	outline-offset: 4px !important;
}

/* The final action sits on plum, so its focus halo must remain visibly above
 * the 3:1 non-text contrast boundary against every stop in that surface. */
body.sleepbaby-single-post .entry-content .sbds-final-cta .sbds-final-cta__button:focus-visible {
	outline-color: #fffdf8 !important;
}

body.sleepbaby-single-post .entry-content .sb-article-route-bar .sb-article-route-bar__home:focus-visible {
	outline: 3px solid #fffdf8 !important;
	outline-offset: 4px !important;
}

/* Authored end bridges sometimes own a gold action inside a dark inline
 * panel. Keep that self-painted action out of the broad dark-parent link
 * reset, and bind the anchor plus every nested label to one complete state
 * contract. This permanently fixes the Wheels final bridge and equivalent
 * future components using the same semantic marker. */
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:is(:link, :visited, :hover, :focus, :active),
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
	color: #392541 !important;
	-webkit-text-fill-color: #392541 !important;
	text-decoration-color: #392541 !important;
	text-shadow: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:is(:link, :visited, :hover, :focus, :active) {
	min-height: 44px !important;
	background: #ffd49d !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:is(:hover, :focus) {
	background: #f5c27f !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:active {
	background: #eab56e !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:focus-visible {
	outline: 3px solid #fffdf8 !important;
	outline-offset: 4px !important;
}

/* April's bridge buttons sit on dark gradients, while the final purchase
 * button is light. Scope the white label/focus ownership to --bridge so the
 * two button families can never split their foreground again. */
body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer a.sbh2020-download.sbh2020-download--bridge:is(:link, :visited, :hover, :focus, :active),
body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer a.sbh2020-download.sbh2020-download--bridge:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	text-decoration-color: #fffdf8 !important;
	text-shadow: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer a.sbh2020-download.sbh2020-download--bridge:focus-visible {
	outline: 3px solid #fffdf8 !important;
	outline-offset: 4px !important;
}

/* Pair the two April surfaces with their foregrounds atomically. Later
 * legacy heading/glyph rules may not repaint only half of either component. */
body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer .sbh2020-bonuses__title.sbh2020-bonuses__title {
	color: #fffdf8 !important;
	background: #2b1932 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer .sbh2020-bonuses__title.sbh2020-bonuses__title :is(h2, h2 span, h2 strong, h2 em) {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	text-shadow: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer .sbh2020-discover__box.sbh2020-discover__box li > span {
	border-color: rgba(255, 255, 255, .58) !important;
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: #5a4568 !important;
	text-shadow: none !important;
}

@media (max-width: 680px) {
	body.sleepbaby-single-post .entry-content :is(.sbds-escape-decoder, .sbds-transition-plan) {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-affiliate-module__button,
		.sabb-box__button,
		.sbds-final-cta__button
	) {
		width: 100% !important;
	}
}

@media (max-width: 320px) {
	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder,
		.sbds-transition-plan,
		.sbds-affiliate-module,
		.sbds-video-card,
		.sbds-final-cta,
		.sabb-box,
		[data-sb-kacey-story]
	) {
		border-radius: 18px !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-component-label,
		.sbds-video-label,
		.sbds-cta-eyebrow,
		.sabb-box__eyebrow,
		[data-sb-article-flow-label="1"]
	) {
		border-radius: 12px !important;
		letter-spacing: .04em !important;
		text-transform: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder,
		.sbds-transition-plan,
		.sbds-affiliate-module,
		.sbds-video-card,
		.sbds-final-cta,
		.sabb-box,
		[data-sb-kacey-story],
		[data-sb-article-flow-surface]
	),
	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder,
		.sbds-transition-plan,
		.sbds-affiliate-module,
		.sbds-video-card,
		.sbds-final-cta,
		.sabb-box,
		[data-sb-kacey-story],
		[data-sb-article-flow-surface]
	) * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end],
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:is(:link, :visited, :hover, :focus, :active),
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i),
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer a.sbh2020-download.sbh2020-download--bridge:is(:link, :visited, :hover, :focus, :active),
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer a.sbh2020-download.sbh2020-download--bridge:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i),
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer .sbh2020-bonuses__title.sbh2020-bonuses__title,
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer .sbh2020-bonuses__title.sbh2020-bonuses__title :is(h2, h2 span, h2 strong, h2 em),
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer .sbh2020-discover__box.sbh2020-discover__box li > span {
		border-color: ButtonText !important;
		color: ButtonText !important;
		-webkit-text-fill-color: ButtonText !important;
		background: ButtonFace !important;
		box-shadow: none !important;
		forced-color-adjust: auto !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder,
		.sbds-transition-plan,
		.sbds-escape-decoder > section,
		.sbds-transition-plan > section,
		.sbds-tonight-path > li,
		.sbds-affiliate-module,
		.sbds-video-card,
		.sbds-final-cta,
		.sabb-box,
		[data-sb-kacey-story],
		[data-sb-component],
		[data-sb-article-flow-surface],
		[data-sb-article-flow-card]
	) {
		border: 2px solid CanvasText !important;
		color: CanvasText !important;
		-webkit-text-fill-color: CanvasText !important;
		background: Canvas !important;
		box-shadow: none !important;
		forced-color-adjust: auto !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder,
		.sbds-transition-plan,
		.sbds-affiliate-module,
		.sbds-video-card,
		.sbds-final-cta,
		.sabb-box,
		[data-sb-kacey-story],
		[data-sb-component],
		[data-sb-article-flow-surface]
	) :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, b, em, i, small, blockquote, figcaption),
	body.sleepbaby-single-post .entry-content :is(
		.sbds-component-label,
		.sbds-video-label,
		.sbds-cta-eyebrow,
		.sabb-box__eyebrow,
		[data-sb-article-flow-label]
	) {
		border-color: CanvasText !important;
		color: CanvasText !important;
		-webkit-text-fill-color: CanvasText !important;
		background: Canvas !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder,
		.sbds-transition-plan,
		.sbds-affiliate-module,
		.sbds-video-card,
		.sbds-final-cta,
		.sabb-box,
		[data-sb-kacey-story],
		[data-sb-article-flow-surface]
	) a:not(.sbds-affiliate-module__button):not(.sabb-box__button):not(.sbds-final-cta__button) {
		color: LinkText !important;
		-webkit-text-fill-color: LinkText !important;
		text-decoration-color: LinkText !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-affiliate-module__button,
		.sabb-box__button,
		.sbds-final-cta__button
	) {
		border: 2px solid ButtonText !important;
		color: ButtonText !important;
		-webkit-text-fill-color: ButtonText !important;
		background: ButtonFace !important;
		box-shadow: none !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-affiliate-module__button,
		.sabb-box__button,
		.sbds-final-cta__button
	) :is(span, strong, em, b, i) {
		border: 0 !important;
		color: ButtonText !important;
		-webkit-text-fill-color: ButtonText !important;
		background: transparent !important;
		box-shadow: none !important;
	}
}

@media print {
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end],
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:is(:link, :visited, :hover, :focus, :active),
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content [data-sb-fresh-end][data-sb-fresh-end] a:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i),
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer a.sbh2020-download.sbh2020-download--bridge:is(:link, :visited, :hover, :focus, :active),
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer a.sbh2020-download.sbh2020-download--bridge:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i),
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer .sbh2020-bonuses__title.sbh2020-bonuses__title,
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer .sbh2020-bonuses__title.sbh2020-bonuses__title :is(h2, h2 span, h2 strong, h2 em),
	body.sleepbaby-single-post.sleepbaby-single-post .sleepbaby-article-archive-footer.sleepbaby-article-archive-footer .sbh2020-discover__box.sbh2020-discover__box li > span {
		border-color: #000 !important;
		color: #000 !important;
		-webkit-text-fill-color: #000 !important;
		background: #fff !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder,
		.sbds-transition-plan,
		.sbds-escape-decoder > section,
		.sbds-transition-plan > section,
		.sbds-tonight-path > li,
		.sbds-affiliate-module,
		.sbds-video-card,
		.sbds-final-cta,
		.sabb-box,
		[data-sb-kacey-story],
		[data-sb-component],
		[data-sb-article-flow-surface],
		[data-sb-article-flow-card]
	) {
		border: 1pt solid #222 !important;
		color: #000 !important;
		-webkit-text-fill-color: #000 !important;
		background: #fff !important;
		box-shadow: none !important;
		break-inside: avoid;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder,
		.sbds-transition-plan,
		.sbds-affiliate-module,
		.sbds-video-card,
		.sbds-final-cta,
		.sabb-box,
		[data-sb-kacey-story],
		[data-sb-component],
		[data-sb-article-flow-surface]
	) :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, b, em, i, small, blockquote, figcaption, a),
	body.sleepbaby-single-post .entry-content :is(
		.sbds-component-label,
		.sbds-video-label,
		.sbds-cta-eyebrow,
		.sabb-box__eyebrow,
		[data-sb-article-flow-label]
	) {
		color: #000 !important;
		-webkit-text-fill-color: #000 !important;
		background: #fff !important;
		box-shadow: none !important;
	}
}

@media (max-width: 680px) {
	body.sleepbaby-single-post .entry-content .sbua-amazon-section .sbua-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

@media (max-width: 320px) {
	body.sleepbaby-single-post .entry-content .sbua-amazon-section {
		border-radius: 18px !important;
	}

	body.sleepbaby-single-post .entry-content .sbua-amazon-section .sbua-kicker {
		border-radius: 12px !important;
		letter-spacing: .04em !important;
		text-transform: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.sleepbaby-single-post .entry-content .sbua-amazon-section,
	body.sleepbaby-single-post .entry-content .sbua-amazon-section * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure.sb-sources-disclosure,
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure.sb-sources-disclosure .sb-sources-disclosure__summary.sb-sources-disclosure__summary,
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure.sb-sources-disclosure .sb-sources-disclosure__summary.sb-sources-disclosure__summary :is(span, strong, em, b, i),
	body.sleepbaby-single-post .entry-content .sb-sources-disclosure.sb-sources-disclosure .sb-sources-disclosure__content.sb-sources-disclosure__content :is(h1, h2, h3, h4, p, li, span, strong, em, b, i) {
		border-color: CanvasText !important;
		color: CanvasText !important;
		-webkit-text-fill-color: CanvasText !important;
		background: Canvas !important;
		box-shadow: none !important;
	}

	body.sleepbaby-single-post .entry-content .sb-sources-disclosure.sb-sources-disclosure .sb-sources-disclosure__content.sb-sources-disclosure__content a[data-sb-article-reference-link][data-sb-article-reference-link]:is(:link, :visited, :hover, :focus, :active) {
		border-color: LinkText !important;
		color: LinkText !important;
		-webkit-text-fill-color: LinkText !important;
		text-decoration-color: LinkText !important;
	}

	body.sleepbaby-single-post .entry-content .sb-article-route-bar.sb-article-route-bar a.sb-article-route-bar__home.sb-article-route-bar__home:is(:link, :visited, :hover, :focus, :active),
	body.sleepbaby-single-post .entry-content .sb-article-route-bar.sb-article-route-bar a.sb-article-route-bar__home.sb-article-route-bar__home:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
		color: LinkText !important;
		-webkit-text-fill-color: LinkText !important;
		text-decoration-color: LinkText !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder.sbds-escape-decoder.sbds-escape-decoder,
		.sbds-transition-plan.sbds-transition-plan.sbds-transition-plan,
		.sbds-affiliate-module.sbds-affiliate-module.sbds-affiliate-module,
		.sbds-video-card.sbds-video-card.sbds-video-card,
		.sbds-final-cta.sbds-final-cta.sbds-final-cta,
		.sabb-box.sabb-box.sabb-box,
		.sbua-amazon-section.sbua-amazon-section.sbua-amazon-section,
		[data-sb-kacey-story][data-sb-kacey-story][data-sb-kacey-story],
		[data-sb-article-flow-surface][data-sb-article-flow-surface][data-sb-article-flow-surface]
	) :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, b, em, i, small, blockquote, figcaption),
	body.sleepbaby-single-post .entry-content :is(
		.sbds-component-label.sbds-component-label.sbds-component-label,
		.sbds-video-label.sbds-video-label.sbds-video-label,
		.sbds-cta-eyebrow.sbds-cta-eyebrow.sbds-cta-eyebrow,
		.sabb-box__eyebrow.sabb-box__eyebrow.sabb-box__eyebrow,
		.sbua-kicker.sbua-kicker.sbua-kicker
	)[data-sb-article-flow-label][data-sb-article-flow-label] {
		border-color: CanvasText !important;
		color: CanvasText !important;
		-webkit-text-fill-color: CanvasText !important;
		background: Canvas !important;
		box-shadow: none !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-escape-decoder.sbds-escape-decoder.sbds-escape-decoder,
		.sbds-transition-plan.sbds-transition-plan.sbds-transition-plan,
		.sbds-affiliate-module.sbds-affiliate-module.sbds-affiliate-module,
		.sbds-video-card.sbds-video-card.sbds-video-card,
		.sbds-final-cta.sbds-final-cta.sbds-final-cta,
		.sabb-box.sabb-box.sabb-box,
		.sbua-amazon-section.sbua-amazon-section.sbua-amazon-section,
		[data-sb-kacey-story][data-sb-kacey-story][data-sb-kacey-story],
		[data-sb-article-flow-surface][data-sb-article-flow-surface][data-sb-article-flow-surface]
	) a:not(.sbds-affiliate-module__button):not(.sabb-box__button):not(.sbds-final-cta__button) {
		color: LinkText !important;
		-webkit-text-fill-color: LinkText !important;
		text-decoration-color: LinkText !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-affiliate-module.sbds-affiliate-module,
		.sbds-final-cta.sbds-final-cta,
		.sabb-box.sabb-box
	) :is(
		.sbds-affiliate-module__button,
		.sbds-final-cta__button,
		.sabb-box__button
	):is(:link, :visited, :hover, :focus, :active) {
		border-color: ButtonText !important;
		color: ButtonText !important;
		-webkit-text-fill-color: ButtonText !important;
		background: ButtonFace !important;
		box-shadow: none !important;
	}

	body.sleepbaby-single-post .entry-content :is(
		.sbds-affiliate-module.sbds-affiliate-module,
		.sbds-final-cta.sbds-final-cta,
		.sabb-box.sabb-box
	) :is(
		.sbds-affiliate-module__button,
		.sbds-final-cta__button,
		.sabb-box__button
	):is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
		border: 0 !important;
		color: ButtonText !important;
		-webkit-text-fill-color: ButtonText !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section,
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section :is(h2, p, small, .sbua-kicker) {
		border-color: CanvasText !important;
		color: CanvasText !important;
		-webkit-text-fill-color: CanvasText !important;
		background: Canvas !important;
		box-shadow: none !important;
		forced-color-adjust: auto !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:is(:link, :visited, :hover, :focus, :active) {
		border-color: ButtonText !important;
		color: ButtonText !important;
		-webkit-text-fill-color: ButtonText !important;
		background: ButtonFace !important;
		box-shadow: none !important;
		forced-color-adjust: auto !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content .sbua-amazon-section.sbua-amazon-section .sbua-grid.sbua-grid > a:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
		border: 0 !important;
		color: ButtonText !important;
		-webkit-text-fill-color: ButtonText !important;
		background: transparent !important;
		box-shadow: none !important;
		forced-color-adjust: auto !important;
	}

	/*
	 * Authored Article Flow labels carry intentionally specific normal-mode
	 * palette rules (and legacy Article Flow output can append its own rules
	 * late).  Repeat the component scope here so the system palette always
	 * wins in forced-colors, even without relying on the JS-added label flag.
	 */
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content :is(
		.sbds-escape-decoder.sbds-escape-decoder,
		.sbds-transition-plan.sbds-transition-plan,
		.sbds-affiliate-module.sbds-affiliate-module,
		.sbds-video-card.sbds-video-card,
		.sbds-final-cta.sbds-final-cta,
		.sabb-box.sabb-box,
		.sbua-amazon-section.sbua-amazon-section,
		[data-sb-kacey-story][data-sb-kacey-story],
		[data-sb-article-flow-surface][data-sb-article-flow-surface]
	) :is(
		.sbds-component-label.sbds-component-label,
		.sbds-video-label.sbds-video-label,
		.sbds-cta-eyebrow.sbds-cta-eyebrow,
		.sabb-box__eyebrow.sabb-box__eyebrow,
		.sbua-kicker.sbua-kicker,
		[data-sb-article-flow-label][data-sb-article-flow-label]
	) {
		border-color: CanvasText !important;
		color: CanvasText !important;
		-webkit-text-fill-color: CanvasText !important;
		background: Canvas !important;
		box-shadow: none !important;
		forced-color-adjust: auto !important;
	}
}

@media print {
	body.sleepbaby-single-post .entry-content .sbua-amazon-section {
		border: 1pt solid #222 !important;
		color: #000 !important;
		-webkit-text-fill-color: #000 !important;
		background: #fff !important;
		box-shadow: none !important;
		break-inside: avoid;
	}

	body.sleepbaby-single-post .entry-content .sbua-amazon-section :is(h2, p, small, .sbua-kicker, a, span, strong) {
		color: #000 !important;
		-webkit-text-fill-color: #000 !important;
		background: #fff !important;
		box-shadow: none !important;
	}
}
