/*
 * Blog posts on the five steps (inc/blog.php, review r1 1.10, funnelexec-blog-post-mockup.html):
 * the step label under the breadcrumb, the post with its rail (beside it on desktop, after it on
 * phones), the mini five-steps diagram, stat callouts in post bodies, the step filter on /blog/ and
 * "From the blog" on product pages. Existing tokens only.
 */

/* ---------- Step label (under the breadcrumb, and the step filter's heading) ---------- */
.fx-post-step {
	margin: 16px 0 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: var(--wp--custom--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--brand);
}
.fx-post-step a,
.fx-blog-step .fx-post-step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--radius--pill);
	color: inherit;
	text-decoration: none;
}
.fx-post-step a:hover { background: rgba(176, 124, 255, 0.12); /* no token: lit at 12% */ }
.fx-post-step a:focus-visible { outline: 2px solid var(--wp--preset--color--lit); outline-offset: 2px; }
.fx-band--ink .fx-post-step { color: var(--wp--preset--color--lit); }
.fx-post-step__mark {
	width: 7px;
	height: 7px;
	background: currentColor;
	transform: rotate(45deg);
}
.fx-resources-hero .fx-post-step + .fx-resources-single__title { margin-top: 16px; }

/* ---------- Post and rail ---------- */
.fx-post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
}
.fx-post-main { min-width: 0; }
@media (min-width: 1024px) {
	.fx-post-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 56px;
		align-items: start;
	}
	.fx-rail {
		position: sticky;
		top: 92px; /* under the sticky header */
	}
	.admin-bar .fx-rail { top: calc(92px + var(--wp-admin--admin-bar--height, 0px)); }
}

.fx-rail {
	display: grid;
	gap: 16px;
	align-content: start;
	font-size: 15px;
	line-height: 1.5;
}
.fx-rail > * { margin: 0; }
.fx-rail__card {
	padding: 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--white);
}
.fx-rail .fx-rail__k {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--mono-sm);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--fg-3);
}
.fx-rail__line { margin: 14px 0 0; color: var(--wp--preset--color--fg-2); }
.fx-rail__product {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--border);
}
.fx-rail__product-text { display: grid; gap: 2px; min-width: 0; }
.fx-rail__product-text strong { color: var(--wp--preset--color--ink); }
.fx-rail__product-text span { font-size: 13px; color: var(--wp--preset--color--fg-3); }
.fx-rail__product a,
.fx-rail__all a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 600;
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}
.fx-rail__product a:hover,
.fx-rail__all a:hover { text-decoration: underline; }

/* Check your own funnel: the one dark card */
.fx-rail__check {
	padding: 20px;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--fg-on-dark-2);
}
.fx-rail__check .fx-rail__k { color: var(--wp--preset--color--lit); }
.fx-rail__question {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	color: var(--wp--preset--color--white);
}
.fx-rail__cta { margin: 16px 0 0; }
.fx-rail__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	width: 100%;
	text-align: center;
	text-decoration: none;
}
.fx-rail__button:focus-visible { outline: 2px solid var(--wp--preset--color--lit); outline-offset: 2px; }
.fx-rail__sub { margin: 12px 0 0; font-size: 13px; color: var(--wp--preset--color--fg-on-dark-3); }
.fx-rail__sub strong { color: var(--wp--preset--color--fg-on-dark-2); font-weight: 600; }

/* More on <step> */
.fx-rail__more ul { margin: 0; padding: 0; list-style: none; }
.fx-rail__more li + li { border-top: 1px solid var(--wp--preset--color--border); }
.fx-rail__more li a {
	display: block;
	padding: 10px 0;
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	text-decoration: none;
}
.fx-rail__more li:first-child a { padding-top: 0; }
.fx-rail__more li a:hover { color: var(--wp--preset--color--brand); }
.fx-rail__all { margin: 6px 0 0; font-size: 14px; }

/* ---------- Mini five steps (the rail, the step filter) ---------- */
.fx-steps-mini {
	display: grid;
	gap: 6px;
	padding: 10px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--wp--preset--color--fg-on-dark-3);
	text-align: center;
}
.fx-steps-mini__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.fx-steps-mini__observe,
.fx-steps-mini__step,
.fx-steps-mini__foundation {
	display: block;
	padding: 6px 0;
	border: 1px solid var(--wp--preset--color--ink-700);
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fx-steps-mini__observe { padding: 4px; border-style: dashed; border-color: var(--wp--preset--color--fg-on-dark-3); }
.fx-steps-mini__foundation { padding: 4px; background: var(--wp--preset--color--ink-800); }
.fx-steps-mini .is-also {
	border-color: rgba(176, 124, 255, 0.5); /* no token: lit at 50% */
	color: var(--wp--preset--color--fg-on-dark-2);
}
.fx-steps-mini .is-lit {
	border-color: var(--wp--preset--color--lit);
	border-style: solid;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--lit);
	background: rgba(176, 124, 255, 0.12); /* no token: lit at 12% */
	color: var(--wp--preset--color--lit);
	font-weight: 600;
}

/* Blind-spot diagrams in post bodies (blocks/blind-spot): the product diagram panel, spaced like a stat callout */
.wp-block-post-content .fx-blind-spot { margin-block: 32px; }

/* ---------- Stat callouts in post bodies: <p class="fx-post-stat"><strong>30–40%</strong> of leads ...</p> ---------- */
.wp-block-post-content .fx-post-stat,
.fx-post-stat {
	margin-block: 32px;
	padding: 20px 24px;
	border-left: 3px solid var(--wp--preset--color--brand);
	border-radius: 0 var(--wp--custom--radius--md) var(--wp--custom--radius--md) 0;
	background: var(--wp--preset--color--brand-50);
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: 1.5;
	color: var(--wp--preset--color--fg-2);
}
.fx-post-stat > strong:first-child {
	display: block;
	margin-bottom: 6px;
	font-size: clamp(36px, 5vw, 48px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink);
}

/* ---------- Step filter on /blog/?step=<slug> ---------- */
.fx-blog-step {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.fx-blog-step .fx-post-step { margin: 0; color: var(--wp--preset--color--brand); }
.fx-blog-step__line { margin: 12px 0 0; max-width: 60ch; font-size: var(--wp--preset--font-size--body-lg); color: var(--wp--preset--color--fg-2); }
@media (max-width: 600px) {
	.fx-blog-step { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ---------- From the blog (product pages) ---------- */
.fx-band--ruled { border-top: 1px solid var(--wp--preset--color--border); }
.fx-product-blog__head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fx-product-blog__all { margin: 0; font-weight: 600; }
.fx-product-blog__all a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--wp--preset--color--brand); text-decoration: none; }
.fx-product-blog__all a:hover { text-decoration: underline; }
.fx-product-blog__card .fx-mono-label { margin: 0 0 10px; color: var(--wp--preset--color--brand); }
.fx-product-blog__card .fx-mono-label a { color: inherit; text-decoration: none; }
