/**
 * Content chrome for WP-admin-created singles (no hand-ported markup).
 * Uses tokens.css only. Loaded instead of blog-article / case-story / service
 * experience CSS when those dedicated files are not applicable.
 */
body.space-content-chrome {
	background: var(--space-page-bg);
	color: var(--space-page-ink);
}

/* Generic WP pages created in admin — theme chrome, not default WP look. */
body.space-content-chrome .space-page-chrome {
	width: min(var(--space-page-max, 1440px), 100%);
	margin: 0 auto;
	padding: calc(var(--space-header-h) + 48px) clamp(22px, 5.6vw, 92px) 72px;
}

body.space-content-chrome .space-page-chrome__title,
body.space-content-chrome .space-page-chrome h1.wp-block-post-title {
	max-width: 900px;
	margin: 0 0 24px;
	color: var(--space-text);
	font-family: var(--font-hero);
	font-weight: 500;
	font-size: var(--space-h1);
	line-height: 1.06;
	letter-spacing: -0.05em;
}

body.space-content-chrome .space-page-chrome .wp-block-post-content {
	max-width: var(--space-content-max);
	color: var(--space-ink-soft);
	font-family: var(--font-body);
	font-size: var(--space-body);
	line-height: 1.7;
}

body.space-content-chrome .space-page-chrome .wp-block-post-content h2,
body.space-content-chrome .space-page-chrome .wp-block-post-content h3 {
	color: var(--space-text);
	font-family: var(--font-heading);
	letter-spacing: -0.03em;
}

body.space-content-chrome .space-page-chrome .wp-block-post-content a {
	color: var(--space-accent-hover);
}

body.space-content-chrome .blog-article-main,
body.space-content-chrome .case-detail {
	position: relative;
	isolation: isolate;
	max-width: var(--space-page-max);
	margin: 0 auto;
	padding: calc(var(--space-header-h) + 48px) clamp(22px, 5.6vw, 92px) 56px;
}

/* —— Shared hero —— */
body.space-content-chrome .article-hero,
body.space-content-chrome .case-detail-hero,
body.space-content-chrome .space-service-hero__inner {
	margin-bottom: 40px;
}

body.space-content-chrome .article-kicker,
body.space-content-chrome .case-detail-tag,
body.space-content-chrome .space-service-hero__eyebrow,
body.space-content-chrome .case-section-number {
	margin: 0 0 16px;
	color: var(--space-accent-strong);
	font-family: var(--font-body);
	font-size: var(--space-kicker);
	font-weight: 650;
	letter-spacing: 0.19em;
	text-transform: uppercase;
}

body.space-content-chrome .article-hero h1,
body.space-content-chrome .case-detail-hero h1,
body.space-content-chrome .space-service-hero__title {
	max-width: 1050px;
	margin: 0 0 18px;
	color: var(--space-text);
	font-family: var(--font-hero);
	font-weight: 500;
	font-size: var(--space-h1);
	line-height: 1.06;
	letter-spacing: -0.05em;
}

body.space-content-chrome .article-dek,
body.space-content-chrome .case-detail-lede,
body.space-content-chrome .space-service-hero__lead {
	max-width: 760px;
	margin: 0;
	color: var(--space-ink-soft);
	font-family: var(--font-body);
	font-size: var(--space-lede);
	line-height: 1.6;
}

body.space-content-chrome .article-meta,
body.space-content-chrome .case-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	align-items: flex-start;
	margin-top: 24px;
	color: var(--space-ink-faint);
	font-size: 13px;
}

body.space-content-chrome .case-detail-meta > div {
	display: grid;
	gap: 4px;
	min-width: 120px;
}

body.space-content-chrome .case-detail-meta span,
body.space-content-chrome .article-meta strong {
	color: var(--space-accent-strong);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.space-content-chrome .case-detail-meta strong {
	color: var(--space-text);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

body.space-content-chrome .article-hero-image {
	margin-top: 30px;
	height: clamp(220px, 32vw, 380px);
	overflow: hidden;
	border: 1px solid var(--space-border-soft);
	border-radius: var(--space-radius);
}

body.space-content-chrome .article-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.space-content-chrome .case-detail-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px;
	color: var(--space-ink-faint);
	font-size: 14px;
	text-decoration: none;
}

body.space-content-chrome .case-detail-back:hover {
	color: var(--space-text);
}

/* —— Article layout —— */
body.space-content-chrome .article-layout,
body.space-content-chrome .case-story {
	display: grid;
	grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
	margin: 28px 0 0;
}

body.space-content-chrome .article-toc,
body.space-content-chrome .case-index {
	position: sticky;
	top: calc(var(--space-header-h) + 16px);
	padding: 18px;
	border: 1px solid var(--space-border-soft);
	border-radius: var(--space-radius-sm);
	background: var(--space-card);
}

body.space-content-chrome .article-toc h2,
body.space-content-chrome .case-index h2 {
	margin: 0 0 12px;
	color: var(--space-text);
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

body.space-content-chrome .article-toc nav,
body.space-content-chrome .case-index nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

body.space-content-chrome .article-toc a,
body.space-content-chrome .case-index a {
	display: flex;
	padding: 10px 8px;
	color: var(--space-ink-soft);
	font-size: 14px;
	text-decoration: none;
	border-radius: 8px;
}

body.space-content-chrome .article-toc a:hover,
body.space-content-chrome .case-index a:hover,
body.space-content-chrome .article-toc a.is-active,
body.space-content-chrome .case-index a.is-active {
	color: var(--space-text);
	background: rgba(234, 166, 223, 0.08);
}

body.space-content-chrome .article-content,
body.space-content-chrome .case-story-content,
body.space-content-chrome .case-story-richtext {
	color: var(--space-ink-soft);
	font-family: var(--font-body);
	font-size: var(--space-body);
	line-height: 1.7;
}

body.space-content-chrome .article-content h2,
body.space-content-chrome .case-story-section h2,
body.space-content-chrome .article-section-title {
	margin: 0 0 14px;
	color: var(--space-text);
	font-family: var(--font-heading);
	font-size: var(--space-h2);
	letter-spacing: -0.03em;
}

body.space-content-chrome .article-content h3 {
	margin: 28px 0 10px;
	color: var(--space-text);
	font-size: 1.25rem;
}

body.space-content-chrome .article-content p,
body.space-content-chrome .case-story-section > p,
body.space-content-chrome .case-story-richtext p {
	margin: 0 0 16px;
}

body.space-content-chrome .article-content a,
body.space-content-chrome .case-story-richtext a {
	color: var(--space-accent-hover);
}

body.space-content-chrome .case-story-section {
	margin: 0 0 clamp(36px, 5vw, 64px);
}

body.space-content-chrome .case-approach-list,
body.space-content-chrome .case-result-list {
	display: grid;
	gap: 14px;
	margin-top: 18px;
}

body.space-content-chrome .case-approach-step,
body.space-content-chrome .case-result-item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: start;
	padding: 16px 18px;
	border: 1px solid var(--space-border-soft);
	border-radius: var(--space-radius-sm);
	background: var(--space-card);
}

body.space-content-chrome .process-step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(234, 166, 223, 0.14);
	color: var(--space-accent-strong);
	font-size: 12px;
	font-weight: 700;
}

body.space-content-chrome .case-result-item span {
	display: block;
	margin-bottom: 6px;
	color: var(--space-accent-strong);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.space-content-chrome .case-result-item h3 {
	margin: 0;
	color: var(--space-text);
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	letter-spacing: -0.03em;
}

body.space-content-chrome .case-result-item {
	grid-template-columns: 1fr;
}

/* —— Related / service bits —— */
body.space-content-chrome .article-related {
	margin-top: 48px;
}

body.space-content-chrome .article-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 18px;
}

body.space-content-chrome .mini-article {
	overflow: hidden;
	border: 1px solid var(--space-border-soft);
	border-radius: var(--space-radius-sm);
	background: var(--space-card);
}

body.space-content-chrome .mini-article img {
	display: block;
	width: 100%;
	height: 140px;
	object-fit: cover;
}

body.space-content-chrome .mini-article-copy {
	padding: 14px 16px 18px;
}

body.space-content-chrome .mini-article-copy span {
	color: var(--space-ink-faint);
	font-size: 12px;
}

body.space-content-chrome .mini-article-copy h3 {
	margin: 6px 0 10px;
	color: var(--space-text);
	font-size: 16px;
}

body.space-content-chrome .mini-article-copy a {
	color: var(--space-accent-hover);
	font-size: 14px;
	text-decoration: none;
}

body.space-content-chrome .space-service-hero {
	min-height: auto;
	padding: calc(var(--space-header-h) + 48px) var(--space-gutter) 40px;
	text-align: left;
	place-items: start;
}

body.space-content-chrome .space-service-hero__features {
	display: grid;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	color: var(--space-ink-soft);
	font-size: 15px;
}

body.space-content-chrome .space-service-hero__features li {
	position: relative;
	padding-left: 18px;
}

body.space-content-chrome .space-service-hero__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--space-accent-strong);
}

body.space-content-chrome .space-service-hero__button,
body.space-content-chrome .space-default-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--space-radius-pill);
	background: var(--space-accent);
	color: var(--space-on-accent);
	font-family: var(--font-body);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

body.space-content-chrome .space-service-hero__button:hover,
body.space-content-chrome .space-default-cta:hover {
	background: var(--space-accent-hover);
}

body.space-content-chrome [data-space-reveal] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity var(--space-dur) var(--space-ease), transform var(--space-dur) var(--space-ease);
}

body.space-content-chrome [data-space-reveal].is-visible {
	opacity: 1;
	transform: none;
}

body.space-content-chrome .discovery-call {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

@media (max-width: 900px) {
	body.space-content-chrome .article-layout,
	body.space-content-chrome .case-story {
		grid-template-columns: 1fr;
	}

	body.space-content-chrome .article-toc,
	body.space-content-chrome .case-index {
		position: static;
	}
}

@media (max-width: 650px) {
	body.space-content-chrome .blog-article-main,
	body.space-content-chrome .case-detail {
		padding: 102px 18px 38px;
	}

	body.space-content-chrome .article-hero h1,
	body.space-content-chrome .case-detail-hero h1 {
		font-size: clamp(36px, 10vw, 48px);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.space-content-chrome [data-space-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
