/*
 * SleepBaby.org 2.4.7 candidate — 2026 article editorial system.
 *
 * Local-only prototype. This file is intentionally not enqueued. It changes
 * presentation only: article wording, Workshop pitch, reviews, destinations,
 * attribution, and the article-to-home traffic-temperature boundary remain
 * untouched.
 */

body.sleepbaby-single-post {
	--sb247-ink: #1d1a20;
	--sb247-copy: #39343c;
	--sb247-muted: #68616b;
	--sb247-paper: #fffefa;
	--sb247-canvas: #f4f4f1;
	--sb247-soft: #f7f7f4;
	--sb247-line: #d7d5d0;
	--sb247-line-strong: #aaa5ad;
	--sb247-plum: #35283e;
	--sb247-navy: #171f3b;
	--sb247-teal: #3f746c;
	--sb247-focus: #315f8a;
	--sb247-reading: 680px;
	--sb247-sheet: 920px;
	color: var(--sb247-ink);
	background: var(--sb247-canvas);
	font-family: "Times New Roman", Times, serif !important;
}

/* Flat, high-legibility 2026 wordmark. The illustrated asset remains in the
 * package for instant rollback; this layer changes presentation only. */
body.sleepbaby-single-post :is(.site-brand-logo--header, .site-brand-logo--footer) {
	content: url("../images/sleepbaby-wordmark-v247.svg") !important;
	object-fit: contain !important;
}

body.sleepbaby-single-post .site-header {
	min-height: 68px;
	padding-block: 8px;
	border-bottom: 1px solid var(--sb247-line);
	color: var(--sb247-ink);
	background: rgba(255, 254, 250, .985);
	box-shadow: none;
	backdrop-filter: blur(12px);
}

body.sleepbaby-single-post .site-menu a {
	min-height: 44px !important;
	border-radius: 3px;
	color: #26222a;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: color 140ms ease, background-color 140ms ease;
}

body.sleepbaby-single-post .site-menu a:hover,
body.sleepbaby-single-post .site-menu a:focus-visible {
	color: #111827 !important;
	background: #f1f0ec;
	box-shadow: none;
}

body.sleepbaby-single-post .site-menu-toggle {
	min-height: 48px !important;
	border-radius: 4px !important;
	box-shadow: none !important;
}

body.sleepbaby-single-post .site-main {
	overflow-x: clip;
	background: var(--sb247-canvas);
}

body.sleepbaby-single-post .content-shell--article {
	width: min(calc(100% - 32px), var(--sb247-sheet));
	margin-inline: auto;
	padding: clamp(42px, 6vw, 70px) clamp(28px, 7vw, 76px) 0 !important;
	border: 1px solid var(--sb247-line) !important;
	border-block-end: 0 !important;
	border-radius: 0 !important;
	background: var(--sb247-paper) !important;
	box-shadow: 0 1px 0 rgba(30, 28, 32, .04) !important;
}

body.sleepbaby-single-post .entry-header {
	width: min(100%, var(--sb247-reading));
	margin: 0 auto clamp(24px, 4vw, 38px);
	padding: 0;
	text-align: left;
}

body.sleepbaby-single-post .entry-kicker {
	display: inline-flex;
	min-height: 30px;
	margin: 0 0 18px;
	padding: 4px 0;
	border: 0;
	border-block-end: 1px solid var(--sb247-line-strong);
	border-radius: 0;
	color: #514557;
	background: transparent;
	font-size: 13px;
	letter-spacing: .095em;
	line-height: 1.2;
	text-align: left;
	text-transform: uppercase;
}

body.sleepbaby-single-post .entry-title {
	max-width: 15ch;
	margin: 0;
	color: #171419;
	font-size: clamp(2.7rem, 5.4vw, 4.4rem);
	font-weight: 700;
	font-style: normal;
	letter-spacing: -.038em;
	line-height: .98;
	text-align: left;
	text-wrap: balance;
}

body.sleepbaby-single-post .entry-meta {
	margin-top: 20px;
	color: var(--sb247-muted);
	font-size: 15px;
	letter-spacing: .015em;
	line-height: 1.35;
	text-align: left;
}

body.sleepbaby-single-post .sb-article-route-bar,
body.sleepbaby-single-post.sb-cro-intent--sleep_problem .sb-article-route-bar {
	position: relative;
	width: min(100%, var(--sb247-reading));
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "workshop purchase" "home home" !important;
	gap: 6px 18px;
	margin-inline: auto;
	padding: 15px 0 10px !important;
	border: 0 !important;
	border-block: 1px solid var(--sb247-line) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.sleepbaby-single-post .sb-article-route-bar::after {
	display: none !important;
}

body.sleepbaby-single-post .sb-article-route-bar__workshop {
	min-height: 44px !important;
	align-items: center;
	color: #2d2730 !important;
	font-size: 18px !important;
	line-height: 1.2 !important;
}

body.sleepbaby-single-post .sb-article-route-bar__purchase,
body.sleepbaby-single-post .sb-article-route-bar__purchase:visited,
body.sleepbaby-single-post .entry-content .sb-cro-inline .sb-cro-cta,
body.sleepbaby-single-post .entry-content .sb-cro-inline .sb-cro-cta:visited {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid #15111a !important;
	border-radius: 5px !important;
	color: #fffefa !important;
	-webkit-text-fill-color: #fffefa !important;
	background: var(--sb247-plum) !important;
	box-shadow: none !important;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

body.sleepbaby-single-post .sb-article-route-bar__purchase:hover,
body.sleepbaby-single-post .entry-content .sb-cro-inline .sb-cro-cta:hover {
	border-color: #173d38 !important;
	background: #28524c !important;
	filter: none !important;
	transform: translateY(-1px);
}

body.sleepbaby-single-post .sb-article-route-bar__home {
	min-height: 44px;
	justify-self: start;
	padding: 7px 0 3px;
	color: #4f4852 !important;
	font-size: 15px !important;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

body.sleepbaby-single-post .entry-featured {
	width: min(100%, var(--sb247-reading));
	margin: 26px auto 28px;
	min-height: 0;
	overflow: hidden;
	border: 0;
	border-radius: 3px !important;
	background: #ebeae6;
	box-shadow: none !important;
}

body.sleepbaby-single-post .entry-featured img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

body.sleepbaby-single-post .entry-content {
	width: min(100%, var(--sb247-reading));
	margin-inline: auto;
	color: var(--sb247-copy);
	font-size: clamp(18.5px, 1.2vw, 19.5px);
	letter-spacing: 0;
	line-height: 1.66;
	text-align: left;
	text-wrap: pretty;
}

body.sleepbaby-single-post .entry-content > p:first-child {
	padding-inline-start: 0;
	border-inline-start: 0;
	color: #282329;
	font-size: 1.055em;
	line-height: 1.63;
}

body.sleepbaby-single-post .entry-content p {
	margin-block: 0 1.02em;
}

body.sleepbaby-single-post .entry-content p + p {
	margin-top: 0;
}

body.sleepbaby-single-post .entry-content > h2 {
	max-width: 22ch;
	margin-block: 1.9em .55em;
	padding: .62em 0 0;
	border: 0;
	border-block-start: 1px solid var(--sb247-line);
	color: #1f1b21;
	background: none;
	font-size: clamp(1.85rem, 3vw, 2.35rem);
	letter-spacing: -.02em;
	line-height: 1.08;
	text-wrap: balance;
}

body.sleepbaby-single-post .entry-content h3 {
	max-width: 28ch;
	margin-block: 1.55em .46em;
	padding-inline-start: 0;
	border-inline-start: 0;
	color: #29232c;
	font-size: clamp(1.42rem, 2.2vw, 1.78rem);
	letter-spacing: -.012em;
	line-height: 1.14;
}

body.sleepbaby-single-post .entry-content > :is(ul, ol, dl, details, blockquote:not(.wp-block-pullquote)),
body.sleepbaby-single-post .entry-content > .sbds-article > :is(ul, ol, dl, details, blockquote:not(.wp-block-pullquote)) {
	border: 1px solid var(--sb247-line);
	border-radius: 3px;
	background: var(--sb247-soft);
	box-shadow: none;
}

/* Authored dark-gradient panels keep their own nested surfaces. Normalize
 * emphasis to one warm, opaque foreground that remains AA-safe even at the
 * lightest supported gradient stop. */
body.sleepbaby-single-post .entry-content :is(section, aside, div)[style*="linear-gradient"][style*="color:#fff"] :is(strong, b),
body.sleepbaby-single-post .entry-content :is(section, aside, div)[style*="linear-gradient"][style*="color: #fff"] :is(strong, b) {
	color: #fff3d6 !important;
	-webkit-text-fill-color: #fff3d6 !important;
}

body.sleepbaby-single-post .entry-content figure,
body.sleepbaby-single-post .entry-content :is(.wp-block-embed, .wp-block-video),
body.sleepbaby-single-post .entry-content :is(video, audio) {
	border-radius: 3px;
	box-shadow: none;
}

body.sleepbaby-single-post .entry-content :is(.wp-block-button__link, .wp-element-button, .sleepbaby-workshop-cta__button),
body.sleepbaby-single-post .entry-content :is(.wp-block-button__link, .wp-element-button, .sleepbaby-workshop-cta__button):visited {
	display: inline-flex;
	min-width: 44px;
	min-height: 48px !important;
	align-items: center;
	justify-content: center;
	padding: 10px 18px !important;
	border: 1px solid #15111a !important;
	border-radius: 5px !important;
	color: #fffefa !important;
	-webkit-text-fill-color: #fffefa !important;
	background: var(--sb247-plum) !important;
	box-shadow: none !important;
	text-align: center;
	text-decoration: none !important;
}

body.sleepbaby-single-post .entry-content figcaption,
body.sleepbaby-single-post .entry-content .wp-caption-text {
	padding: 9px 0 0;
	color: var(--sb247-muted);
	background: transparent;
	font-size: 15px;
	line-height: 1.4;
}

body.sleepbaby-single-post .entry-content .sb-cro-inline,
body.sleepbaby-single-post .entry-content .sb-cro-inline--priority {
	clear: both;
	margin-block: 1.45em 1.55em;
	padding: 18px 0 19px 18px !important;
	border: 0 !important;
	border-block: 1px solid var(--sb247-line) !important;
	border-inline-start: 2px solid var(--sb247-teal) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.sleepbaby-single-post .entry-content .sb-cro-inline--priority::after {
	display: none !important;
}

body.sleepbaby-single-post .entry-content .sb-cro-inline__label {
	max-width: 25ch;
	margin: 0 0 5px !important;
	color: #29232c !important;
	font-size: clamp(21px, 2vw, 24px) !important;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.08 !important;
	text-align: left !important;
}

body.sleepbaby-single-post .entry-content .sb-cro-inline__copy {
	max-width: 48ch;
	margin: 0 0 13px !important;
	color: #514a54 !important;
	font-size: 17px !important;
	line-height: 1.48 !important;
}

body.sleepbaby-single-post .entry-content .sb-cro-inline .sb-cro-cta {
	width: auto;
	min-width: min(100%, 264px);
	min-height: 48px;
}

body.sleepbaby-single-post .sb-cro-dock--article {
	border: 1px solid var(--sb247-line-strong);
	border-radius: 6px;
	background: rgba(255, 254, 250, .985);
	box-shadow: 0 8px 26px rgba(27, 23, 31, .14);
	backdrop-filter: blur(12px);
}

body.sleepbaby-single-post .sb-cro-dock--article .sb-cro-cta,
body.sleepbaby-single-post .sb-cro-dock--article .sb-cro-dismiss {
	min-height: 44px !important;
	border-radius: 4px !important;
}

body.sleepbaby-single-post .site-footer {
	padding: 32px clamp(18px, 5vw, 56px) max(26px, env(safe-area-inset-bottom));
	border-top: 1px solid #393945;
	color: #f7f6f2 !important;
	background: #15151e;
	box-shadow: none !important;
}

body.sleepbaby-single-post .site-footer :is(p, a, span, strong, em, small, li) {
	color: #f7f6f2 !important;
	-webkit-text-fill-color: #f7f6f2 !important;
	opacity: 1 !important;
}

body.sleepbaby-single-post .site-footer a {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 5px;
}

body.sleepbaby-single-post .site-footer-legal {
	border-top-color: #3b3a46;
}

@media (max-width: 767px) {
	body.sleepbaby-single-post .site-header {
		min-height: 62px;
		padding-inline: 14px;
	}

	body.sleepbaby-single-post .site-brand-logo-link--header {
		width: clamp(144px, 42vw, 176px);
	}

	body.sleepbaby-single-post .content-shell--article {
		width: 100%;
		padding: 26px 18px 0 !important;
		border-inline: 0 !important;
	}

	body.sleepbaby-single-post .entry-header {
		margin-bottom: 22px;
	}

	body.sleepbaby-single-post .entry-kicker {
		margin-bottom: 14px;
	}

	body.sleepbaby-single-post .entry-title {
		max-width: 16ch;
		font-size: clamp(2.25rem, 10.7vw, 3.1rem);
		line-height: .99;
	}

	body.sleepbaby-single-post .entry-meta {
		margin-top: 16px;
	}

	body.sleepbaby-single-post .sb-article-route-bar,
	body.sleepbaby-single-post .sb-article-route-bar:is(.sb-cro-variant--april *) {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas: "workshop" "purchase" "home" !important;
		gap: 5px !important;
		padding: 13px 0 8px !important;
	}

	body.sleepbaby-single-post .sb-article-route-bar__workshop {
		justify-content: flex-start;
		min-height: 44px !important;
		font-size: 17px !important;
	}

	body.sleepbaby-single-post .sb-article-route-bar__purchase {
		width: 100%;
		min-width: 0;
		min-height: 50px;
	}

	body.sleepbaby-single-post .sb-article-route-bar__home {
		width: 100%;
		justify-content: center;
		justify-self: stretch;
	}

	body.sleepbaby-single-post .entry-featured {
		margin-block: 22px 24px;
	}

	body.sleepbaby-single-post .entry-content {
		font-size: 18.25px;
		line-height: 1.64;
	}

	body.sleepbaby-single-post .entry-content .sb-cro-inline,
	body.sleepbaby-single-post .entry-content .sb-cro-inline--priority {
		margin-block: 1.25em 1.35em;
		padding: 16px 0 17px 14px !important;
	}

	body.sleepbaby-single-post .entry-content .sb-cro-inline .sb-cro-cta {
		width: 100%;
		min-height: 50px;
	}

	body.sleepbaby-single-post .sb-cro-dock--article {
		inset-inline: 8px;
		width: auto;
		max-width: none;
		padding: 5px !important;
	}
}

@media (max-width: 300px) {
	body.sleepbaby-single-post .site-header {
		padding-inline: 8px;
	}

	body.sleepbaby-single-post .site-brand-logo-link--header {
		width: 136px;
	}

	body.sleepbaby-single-post .site-menu-toggle {
		min-width: 78px !important;
		padding-inline: 7px !important;
	}

	body.sleepbaby-single-post .content-shell--article {
		padding-inline: 12px !important;
	}

	body.sleepbaby-single-post .entry-title {
		font-size: clamp(2.05rem, 11.5vw, 2.35rem) !important;
	}

	body.sleepbaby-single-post .entry-content,
	body.sleepbaby-single-post .entry-content .sb-cro-inline__copy {
		font-size: 17px !important;
	}
}

@media (hover: hover) and (pointer: fine) {
	body.sleepbaby-single-post .entry-featured img {
		transition: transform 360ms cubic-bezier(.2, .7, .2, 1);
	}

	body.sleepbaby-single-post .entry-featured:hover img {
		transform: scale(1.008);
	}
}

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

@media (forced-colors: active) {
	body.sleepbaby-single-post :is(.content-shell--article, .sb-article-route-bar, .entry-content .sb-cro-inline, .sb-cro-dock--article) {
		border: 2px solid CanvasText !important;
		box-shadow: none !important;
	}
}

@supports not (overflow: clip) {
	body.sleepbaby-single-post .site-main {
		overflow-x: hidden;
	}
}
