/* Final article presentation overrides. These rules load after the recovered
   theme layers so the reviewed plain Wayback-style shell stays readable. */

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content {
	box-sizing: border-box !important;
	width: 820px !important;
	max-width: calc(100% - 32px) !important;
	margin-right: auto !important;
	margin-left: auto !important;
	font-size: 18px !important;
	line-height: 1.72 !important;
}

/* The current archive layer also targets the body by ID. Match that
   specificity so the reading column is actually narrowed at desktop. */
body.sleepbaby-single-post #sleepbaby-article-body {
	box-sizing: border-box !important;
	width: 820px !important;
	max-width: calc(100% - 32px) !important;
	margin-right: auto !important;
	margin-left: auto !important;
	font-size: 18px !important;
	line-height: 1.72 !important;
}

body.sleepbaby-single-post #sleepbaby-article-body .sbds-article {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	font-size: 18px !important;
	line-height: 1.72 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content p,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content li,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content blockquote,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content summary {
	font-size: 18px !important;
	line-height: 1.72 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content h2,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content h3,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content h4 {
	width: 100% !important;
	max-width: 100% !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content h2 {
	font-size: 32px !important;
	line-height: 1.28 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content h3 {
	font-size: 26px !important;
	line-height: 1.3 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content h4 {
	font-size: 22px !important;
	line-height: 1.35 !important;
}

/* The modern conversion dock/route is not part of the simple July 24, 2021
   article view and was the off-center workshop box visible on desktop. */
body.sleepbaby-single-post.sleepbaby-single-post .sb-cro-dock,
body.sleepbaby-single-post.sleepbaby-single-post .sb-cro-dock--article,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content .sb-article-route-bar,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content .sb-cro-hero-module,
body.sleepbaby-single-post.sleepbaby-single-post .entry-content .sb-cro-inline {
	display: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post .sb-legacy-neve-article-cta__inner,
body.sleepbaby-single-post.sleepbaby-single-post .sb-legacy-neve-end-transition__inner {
	box-sizing: border-box !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

@media (max-width: 700px) {
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content {
		width: 100% !important;
		max-width: 100% !important;
		font-size: 17px !important;
		line-height: 1.64 !important;
	}

	body.sleepbaby-single-post #sleepbaby-article-body {
		width: 100% !important;
		max-width: 100% !important;
		font-size: 17px !important;
		line-height: 1.64 !important;
	}

	body.sleepbaby-single-post #sleepbaby-article-body .sbds-article {
		font-size: 17px !important;
		line-height: 1.64 !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content p,
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content li,
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content blockquote,
	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content summary {
		font-size: 17px !important;
		line-height: 1.64 !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content h2 {
		font-size: 27px !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post .entry-content.entry-content h3 {
		font-size: 23px !important;
	}
}

/* The live archive theme appends an inline display system after the
   enqueued styles. Match its #primary specificity so the recovered article
   typography remains a presentation override on every singular post. */
body.sleepbaby-single-post.sleepbaby-single-post #primary.site-main .content-shell--article .sb-article-v251 .entry-header h1.entry-title,
body.sleepbaby-single-post.sleepbaby-single-post #primary.site-main .content-shell--article .sb-article-v251 .entry-header h1.entry-title--medium,
body.sleepbaby-single-post.sleepbaby-single-post #primary.site-main .content-shell--article .sb-article-v251 .entry-header h1.entry-title--long {
	font-family: Georgia, serif !important;
	font-style: normal !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-shadow: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #primary.site-main #sleepbaby-article-body .sbds-article :where(p, li, blockquote, summary, h2, h3, h4, h5, h6, section, aside, ol, ul, details) {
	font-family: Georgia, serif !important;
	font-style: normal !important;
}

/* Sitewide plain-article pass: preserve each post's stored content while
   removing the newer card/surface treatment from every singular post. */
body.sleepbaby-single-post.sleepbaby-single-post .entry-header .entry-title,
body.sleepbaby-single-post.sleepbaby-single-post .entry-header .entry-title--medium,
body.sleepbaby-single-post.sleepbaby-single-post .entry-header .entry-title--long {
	font-family: Georgia, serif !important;
	font-style: normal !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-shadow: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post figure.entry-featured:not(.is-broken) {
	display: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 820px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding: 0 !important;
	background: #fff !important;
	color: #00063b !important;
	font-family: Georgia, serif !important;
	font-size: 16px !important;
	line-height: 1.72 !important;
}

/* These are presentation resets only. The existing paragraphs, headings,
   lists, figures, sources, links, and recommendation nodes remain in place. */
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > :where(p, aside, section, figure, ol, ul, blockquote, details):not(.sbcat-amazon-card):not(.sbua-amazon-section):not([data-sbua-visibility]) {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > :where(p, aside, section, figure, blockquote, details):not(.sbcat-amazon-card):not(.sbua-amazon-section):not([data-sbua-visibility]) {
	box-sizing: border-box !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > :where(ol, ul):not(.sbcat-amazon-card):not(.sbua-amazon-section):not([data-sbua-visibility]) {
	box-sizing: border-box !important;
	margin: 0 0 20px !important;
	padding-top: 0 !important;
	padding-right: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 1.45em !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > :where(p, li, blockquote, summary, details, section, aside, ol, ul) {
	font-family: Georgia, serif !important;
	font-size: 16px !important;
	line-height: 1.72 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > :where(h2, h3, h4) {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 42px 0 18px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font-family: Georgia, serif !important;
	font-style: normal !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	line-height: 1.3 !important;
	color: #00063b !important;
	-webkit-text-fill-color: #00063b !important;
	text-shadow: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > h2 {
	font-size: 30px !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > h3 {
	font-size: 25px !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > h4 {
	font-size: 21px !important;
}

/* Keep existing body media useful, but make it read as a normal article
   figure rather than a modern rounded card. */
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article img {
	max-width: 100% !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article figcaption {
	margin: 8px 0 20px !important;
	font-family: Georgia, serif !important;
	font-size: 14px !important;
	line-height: 1.55 !important;
	color: #4a5362 !important;
	text-align: left !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article a {
	color: #273a75 !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article details summary {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Flatten nested 2026 teaching surfaces as well, while leaving the
   recommendation owners' DOM/style worlds intact. */
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article :where(aside, section, figure, details, dl, dt, dd, ol, ul, li, div, span, p, a):not(.sbcat-amazon-card):not(.sbcat-amazon-card *):not(.sbua-amazon-section):not(.sbua-amazon-section *) {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article :where(section, aside, figure, details, dl, ol, ul, blockquote):not(.sbcat-amazon-card):not(.sbcat-amazon-card *):not(.sbua-amazon-section):not(.sbua-amazon-section *) {
	margin-top: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 20px !important;
	margin-left: 0 !important;
	padding: 0 !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article :where(ol, ul):not(.sbcat-amazon-card):not(.sbcat-amazon-card *):not(.sbua-amazon-section):not(.sbua-amazon-section *) {
	padding-left: 1.45em !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article :where(.sbds-video-card, .sbds-video-card__frame, .sbds-sources-disclosure, .sbds-sources-disclosure__content):not(.sbcat-amazon-card):not(.sbcat-amazon-card *):not(.sbua-amazon-section):not(.sbua-amazon-section *) {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
}

@media (max-width: 700px) {
	body.sleepbaby-single-post.sleepbaby-single-post .sb-legacy-neve-header__brand,
	body.sleepbaby-single-post.sleepbaby-single-post .sb-legacy-neve-header__brand img {
		width: 170px !important;
		height: 43px !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article {
		font-size: 16px !important;
		line-height: 1.68 !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > :where(p, li, blockquote, summary, details, section, aside, ol, ul) {
		font-size: 16px !important;
		line-height: 1.68 !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > h2 {
		font-size: 27px !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > h3 {
		font-size: 23px !important;
	}

	body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > h4 {
		font-size: 20px !important;
	}
}

/* Reader-first finish: keep the stored article and its protected artifacts,
   but remove optional sources, media, commerce, and post-source surfaces from
   the public reading view. */
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sb-sources-disclosure-host,
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbds-article > .sb-sources-disclosure-host ~ *,
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbcat-amazon-card,
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbua-amazon-section,
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body [data-sbua-visibility],
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body :where(aside, section):has(a[href*="amazon."]) {
	display: none !important;
}

/* Hide the complete video section, including its fallback YouTube link. */
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body :where(section[aria-labelledby="video-heading"], section:has(iframe[src*="youtube.com"], a[href*="youtube.com"], a[href*="youtu.be"])) {
	display: none !important;
}

/* The owned affiliate repair script may reassert display:block!important.
   Keep its inventory intact while collapsing its public presentation. */
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbua-amazon-section,
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body [data-sbua-visibility] {
	visibility: hidden !important;
	width: 0 !important;
	max-width: 0 !important;
	min-width: 0 !important;
	height: 0 !important;
	max-height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	box-shadow: none !important;
	top: auto !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body .sbua-amazon-section *,
body.sleepbaby-single-post.sleepbaby-single-post #sleepbaby-article-body [data-sbua-visibility] * {
	visibility: hidden !important;
}

/* Restore the original pink-circle article CTA. It links home normally and
   never triggers an automatic redirect or infinite-scroll handoff. */

/* Theme-rollback compatibility: the current article theme does not add the
   old sleepbaby-single-post body class. Keep the restored CTA's presentation
   independent of that implementation detail. */
.sb-legacy-neve-article-cta {
	display: block !important;
	box-sizing: border-box;
	width: 100% !important;
	margin: 46px 0 48px !important;
	padding: 26px 0 0 !important;
	border-top: 1px solid #e5e8f0 !important;
	background: #fff !important;
	font-family: Georgia, serif !important;
	color: #00063b !important;
}

.sb-legacy-neve-article-cta__inner {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	align-items: center !important;
	box-sizing: border-box !important;
	width: min(100% - 32px, 760px) !important;
	max-width: 760px !important;
	gap: 28px !important;
	margin: 0 auto !important;
	padding: 22px 24px !important;
	background: #fff8fb !important;
	border: 1px solid #f2dce7 !important;
	border-radius: 4px !important;
}

.sb-legacy-neve-article-cta__art img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-width: 360px !important;
	margin: 0 auto !important;
}

.sb-legacy-neve-article-cta__eyebrow {
	margin: 0 0 8px !important;
	color: #a35676 !important;
	font-size: 13px !important;
	letter-spacing: .06em !important;
	line-height: 1.4 !important;
	text-transform: uppercase !important;
}

.sb-legacy-neve-article-cta h2 {
	margin: 0 0 10px !important;
	color: #00063b !important;
	font-size: 24px !important;
	line-height: 1.25 !important;
}

.sb-legacy-neve-article-cta__quote {
	margin: 0 0 8px !important;
	color: #36384d !important;
	font-size: 16px !important;
	line-height: 1.55 !important;
}

.sb-legacy-neve-article-cta__attribution {
	margin: 0 !important;
	color: #687080 !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
}

.sb-legacy-neve-article-cta__button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	width: 118px !important;
	height: 118px !important;
	margin: 20px auto 0 !important;
	padding: 0 !important;
	border: 4px solid #fff !important;
	border-radius: 50% !important;
	background: #e875a4 !important;
	box-shadow: 0 5px 12px rgba(113, 48, 79, .22) !important;
	color: #fff !important;
	font-family: Georgia, serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-decoration: none !important;
}

/* If a cached pre-1.5.20 response briefly contains the old header, suppress
   only that legacy node and leave the theme's editorial header untouched. */
body.sb-affiliate-page--article .sb-legacy-neve-header {
	display: none !important;
}

/* Preserve the earlier reader-first presentation after the theme rollback.
   These selectors are limited to the article body and only affect optional
   presentation surfaces; the stored article copy remains unchanged. */
.sb-article-content .sb-sources-disclosure-host,
.sb-article-content .sbds-article > .sb-sources-disclosure-host ~ *,
.sb-article-content .sbcat-amazon-card,
.sb-article-content .sbua-amazon-section,
.sb-article-content [data-sbua-visibility],
.sb-article-content :where(aside, section):has(a[href*="amazon."]) {
	display: none !important;
}

.sb-article-content :where(section[aria-labelledby="video-heading"], section:has(iframe[src*="youtube.com"], a[href*="youtube.com"], a[href*="youtu.be"])) {
	display: none !important;
}

/* The reverted theme places the shopping and Workshop continuation beside
   the stored article node. End the reading view there; the restored CTA is
   injected after comments and remains the only article handoff. */
.sb-article-content > .sbds-article ~ * {
	display: none !important;
}

/* A separate repair script may insist on display:block!important for its
   inventory card. Collapse that card without deleting its stored data. */
.sb-article-content .sbua-amazon-section,
.sb-article-content [data-sbua-visibility] {
	visibility: hidden !important;
	width: 0 !important;
	max-width: 0 !important;
	min-width: 0 !important;
	height: 0 !important;
	max-height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	box-shadow: none !important;
	top: auto !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.sb-article-content .sbua-amazon-section *,
.sb-article-content [data-sbua-visibility] * {
	visibility: hidden !important;
}

@media (max-width: 760px) {
	.sb-legacy-neve-article-cta {
		margin-top: 36px !important;
		margin-bottom: 32px !important;
	}

	.sb-legacy-neve-article-cta__inner {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
		padding: 20px 16px 24px !important;
	}

	.sb-legacy-neve-article-cta__art img {
		max-width: 320px !important;
	}

	.sb-legacy-neve-article-cta__button {
		width: 108px !important;
		height: 108px !important;
	}
}
