/*!
 * TS Case Studies: front-end styles.
 *
 * All rules are scoped under `.tscs-scope` so they never leak into the rest
 * of the theme. Colors, fonts and spacing consume the theme's design tokens
 * (--ts-*, --fp-*) with hard fallbacks so the layout still looks correct on
 * a theme that doesn't expose those variables.
 */

.tscs-scope {
	/* Token bridge: map design tokens onto theme tokens (with fallbacks). */
	--fg-1: var(--ts-ink-900, #111827);
	--fg-2: var(--ts-ink-700, #374151);
	--fg-3: var(--ts-ink-500, #6B7280);
	--border-1: var(--ts-ink-200, #E5E7EB);
	/* Warmer plum-tinted hairline. The neutral grey border read as harsh
	   once cards sat on the tinted page. Same token the services hub uses. */
	--border-plum: var(--fp-border-2, #EBE1EC);
	/* Same hero gradient as the services hub, so both list pages share a
	   header treatment. */
	--grad-hero: var(--fp-grad-brand, linear-gradient(135deg, #2A1E30 0%, #4A3550 100%));
	--surface-tint: var(--ts-plum-50, #F6F3F6);

	/* --ts-plum-*/--ts-coral-400/500/--ts-ink-100/300/400/900/--ts-white are
	   already defined on :root by the theme, so they're left to inherit here.
	   (Redeclaring `--x: var(--x, fallback)` is a self-reference — per spec a
	   cyclic custom property computes to the guaranteed-invalid value, not the
	   fallback, which silently dropped every background/color using them.) */
	--ts-coral-300:  #F38473;
	--ts-coral-50:   #FDECE9;
	--ts-coral-600:  #B23422;

	--font-display: var(--fp-font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	--font-body:    var(--fp-font-body, 'Inter', system-ui, sans-serif);
	--font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	--container-max: var(--fp-container, 1200px);
	--gutter:        var(--fp-gutter, 24px);

	--shadow-sm:         var(--fp-shadow-sm, 0 2px 6px rgba(17, 24, 39, 0.05));
	--shadow-card-hover: var(--fp-shadow-md, 0 8px 24px rgba(17, 24, 39, 0.08));

	--d-fast: 160ms;
	--d-base: 240ms;
	--ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

	background: var(--ts-white);
	color: var(--fg-2);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
}

.tscs-scope * { box-sizing: border-box; }
.tscs-scope a { text-decoration: none; }
.tscs-scope img { max-width: 100%; height: auto; display: block; }
.tscs-scope svg { flex-shrink: 0; }

/* ─── Shared primitives ─────────────────────────────────────────────── */

.tscs-scope .ts-eyebrow {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ts-plum-600);
}

.tscs-scope .ts-badge {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ts-plum-50);
	color: var(--ts-plum-700);
	line-height: 1;
}
.tscs-scope .ts-badge.b-ai    { background: #EEF2FF; color: #4338CA; }
.tscs-scope .ts-badge.b-cv    { background: #ECFDF5; color: #047857; }
.tscs-scope .ts-badge.b-pm    { background: var(--ts-plum-50); color: var(--ts-plum-700); }
.tscs-scope .ts-badge.b-agile { background: #FFF7ED; color: #C2410C; }
.tscs-scope .ts-badge.b-ux    { background: var(--ts-coral-50); color: var(--ts-coral-600); }
.tscs-scope .ts-badge.b-ops   { background: #F1F5F9; color: #334155; }

.tscs-scope .ts-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	padding: 12px 20px;
	border-radius: 10px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform var(--d-fast) var(--ease-out),
	            box-shadow var(--d-base) var(--ease-out),
	            background var(--d-fast);
	text-decoration: none;
}
.tscs-scope .ts-btn svg { width: 16px; height: 16px; }
.tscs-scope .ts-btn-lg { padding: 16px 24px; font-size: 15px; }
.tscs-scope .ts-btn-sm { padding: 8px 12px; font-size: 13px; }
.tscs-scope .ts-btn-primary {
	background: var(--ts-white);
	color: var(--ts-plum-700);
}
.tscs-scope .ts-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(17, 24, 39, 0.12); }

/* ─── Archive page surface ──────────────────────────────────────────── */

/* The listing used to be white cards on a white page, separated only by 1px
   grey borders — which is what made it read flat. Tinting the archive gives
   the cards a ground to sit on; they now carry a resting shadow too. Scoped
   to .tscs-archive so the single case study page keeps its white canvas. */
.tscs-scope.tscs-archive { background: var(--surface-tint); }

/* ─── Page hero (archive) ───────────────────────────────────────────── */

/* Dark gradient band, matching .svc-hero on the services hub. */
.tscs-scope .p-hero {
	background: var(--grad-hero);
	color: #fff;
	padding: 40px var(--gutter) 56px;
	margin-bottom: 32px;
}
.tscs-scope .p-hero-inner { max-width: var(--container-max); margin: 0 auto; }
.tscs-scope .p-hero .ts-eyebrow { margin-bottom: 8px; color: var(--ts-coral-300); }

.tscs-scope .cs-crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 20px;
}
.tscs-scope .cs-crumb a { color: rgba(255, 255, 255, 0.8); }
.tscs-scope .cs-crumb a:hover { color: #fff; }
.tscs-scope .cs-crumb svg { width: 14px; height: 14px; opacity: 0.6; }
.tscs-scope .p-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.05;
	color: #fff;
	margin: 0 0 16px;
	max-width: 820px;
}
.tscs-scope .p-hero h1 .accent { color: var(--ts-coral-400); }
.tscs-scope .p-hero .lede {
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	max-width: 640px;
	margin: 0 0 24px;
}
.tscs-scope .p-hero .meta-row {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.tscs-scope .p-hero .meta-item {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}
.tscs-scope .p-hero .meta-item svg { width: 15px; height: 15px; color: var(--ts-coral-300); }
.tscs-scope .p-hero .meta-item strong { color: #fff; font-weight: 600; }
.tscs-scope .p-hero .meta-item a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ─── Filters ───────────────────────────────────────────────────────── */

.tscs-scope .filters {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 8px var(--gutter) 24px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.tscs-scope .chip {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--border-1);
	color: var(--fg-2);
	cursor: pointer;
	transition: all var(--d-base);
	text-decoration: none;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}
.tscs-scope .chip { border-color: var(--border-plum); box-shadow: var(--shadow-sm); }
.tscs-scope .chip:hover { border-color: var(--ts-plum-300); color: var(--ts-plum-700); }
.tscs-scope .chip.active { background: var(--ts-plum-600); border-color: var(--ts-plum-600); color: #fff; }
.tscs-scope .chip .count { font-family: var(--font-mono); font-weight: 500; margin-left: 4px; opacity: 0.7; font-size: 11px; }

/* ─── Featured case card (archive) ──────────────────────────────────── */

.tscs-scope .featured { max-width: var(--container-max); margin: 0 auto 24px; padding: 0 var(--gutter); }
.tscs-scope .feat-card {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	background: #fff;
	border: 1px solid var(--border-plum);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-card-hover);
}
.tscs-scope .feat-visual {
	background: linear-gradient(135deg, #0B0610 0%, #180F1D 60%, #2A1E30 100%);
	position: relative;
	padding: 40px 36px;
	color: #fff;
	min-height: 460px;
	overflow: hidden;
}
.tscs-scope .feat-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 82% 18%, rgba(196, 181, 253, 0.28), transparent 40%),
		radial-gradient(circle at 12% 88%, rgba(240, 85, 63, 0.22), transparent 45%);
	pointer-events: none;
}
.tscs-scope .feat-visual .fv-inner {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.tscs-scope .featured-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ts-coral-300);
	margin-bottom: 8px;
}
.tscs-scope .featured-tag svg { width: 13px; height: 13px; }
.tscs-scope .feat-visual h2 {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.12;
	color: #fff;
	margin: 0 0 16px;
	max-width: 420px;
}
.tscs-scope .feat-visual .feat-visual-lede {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
	margin: 0 0 24px;
	max-width: 380px;
}
.tscs-scope .fv-metrics {
	margin-top: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.tscs-scope .fv-metric .num {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1;
}
.tscs-scope .fv-metric .lbl { font-size: 11px; color: rgba(255, 255, 255, 0.65); margin-top: 8px; line-height: 1.4; }

/* Featured image fills the whole visual panel when present. */
.tscs-scope .feat-visual.has-image { padding: 0; min-height: 460px; }
.tscs-scope .feat-visual .feat-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.tscs-scope .feat-visual.has-image::before { z-index: 1; }
.tscs-scope .feat-visual.has-image .fv-inner { padding: 40px 36px; }

/* Scan-viz decoration (used when no featured image). */
.tscs-scope .scan-viz {
	position: absolute;
	right: -30px;
	top: 40%;
	transform: translateY(-50%);
	width: 240px;
	height: 240px;
	opacity: 0.32;
	pointer-events: none;
}
/* Rings alone carry the decoration. The corner brackets and dots on top of
   them turned the panel into a diagram competing with the title. */
.tscs-scope .scan-viz .bracket,
.tscs-scope .scan-viz .dot { display: none; }
.tscs-scope .scan-viz .ring { position: absolute; inset: 0; border: 1.5px dashed rgba(196, 181, 253, 0.5); border-radius: 50%; }
.tscs-scope .scan-viz .ring.r2 { inset: 14%; border-color: rgba(196, 181, 253, 0.35); }
.tscs-scope .scan-viz .ring.r3 { inset: 28%; border-color: rgba(240, 85, 63, 0.5); border-style: solid; }
.tscs-scope .scan-viz .dot { position: absolute; width: 6px; height: 6px; background: var(--ts-coral-400); border-radius: 50%; box-shadow: 0 0 12px var(--ts-coral-400); }
.tscs-scope .scan-viz .dot.d1 { top: 22%; left: 30%; }
.tscs-scope .scan-viz .dot.d2 { top: 44%; right: 28%; }
.tscs-scope .scan-viz .dot.d3 { bottom: 26%; left: 44%; }
.tscs-scope .scan-viz .bracket { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, 0.6); }
.tscs-scope .scan-viz .bracket.tl { top: 12%; left: 12%; border-right: 0; border-bottom: 0; }
.tscs-scope .scan-viz .bracket.tr { top: 12%; right: 12%; border-left: 0; border-bottom: 0; }
.tscs-scope .scan-viz .bracket.bl { bottom: 12%; left: 12%; border-right: 0; border-top: 0; }
.tscs-scope .scan-viz .bracket.br { bottom: 12%; right: 12%; border-left: 0; border-top: 0; }

.tscs-scope .feat-body { padding: 40px; display: flex; flex-direction: column; }
.tscs-scope .feat-body .kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tscs-scope .feat-body h3 {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--ts-plum-600);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 20px 0 8px;
}
.tscs-scope .feat-body h3:first-of-type { margin-top: 0; }
.tscs-scope .feat-body .rich-excerpt { font-size: 14.5px; line-height: 1.65; color: var(--fg-2); margin: 0; }
.tscs-scope .feat-body .rich-excerpt p { margin: 0; }
.tscs-scope .feat-body .read-more {
	margin-top: auto;
	padding-top: 24px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	color: var(--ts-plum-600);
	display: inline-flex;
	gap: 6px;
	align-items: center;
	transition: gap var(--d-base);
}
.tscs-scope .feat-body .read-more:hover { color: var(--ts-plum-700); gap: 10px; }
.tscs-scope .feat-body .read-more svg { width: 15px; height: 15px; }

/* ─── Case grid ─────────────────────────────────────────────────────── */

.tscs-scope .cases { max-width: var(--container-max); margin: 24px auto 0; padding: 0 var(--gutter); }
.tscs-scope .cases-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
	gap: 16px;
	flex-wrap: wrap;
}
.tscs-scope .cases-head h2 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--fg-1);
	margin: 0;
}
.tscs-scope .cases-head .count-note { font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); }

.tscs-scope .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tscs-scope .case {
	background: #fff;
	border: 1px solid var(--border-plum);
	border-radius: 14px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--d-base) var(--ease-out),
	            transform var(--d-base) var(--ease-out),
	            border-color var(--d-base);
	color: inherit;
	position: relative;
}
.tscs-scope .case:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); border-color: var(--ts-plum-200); }
.tscs-scope .case-thumb {
	margin: -24px -24px 20px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	position: relative;
	background: linear-gradient(135deg, #0B0610 0%, #180F1D 60%, #2A1E30 100%);
}
.tscs-scope .case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Abstract fallback pattern shown in .case-thumb when a case study has no
   featured image, so every card in the grid keeps the same thumb height —
   an imageless card no longer collapses shorter than its row siblings. */
.tscs-scope .case-viz { position: absolute; inset: 0; overflow: hidden; }
.tscs-scope .case-viz .ring { position: absolute; inset: 20%; border: 1.5px dashed rgba(196, 181, 253, 0.45); border-radius: 50%; }
.tscs-scope .case-viz .ring.r2 { inset: 34%; border-color: rgba(240, 85, 63, 0.4); border-style: solid; }
.tscs-scope .case-viz .dot { position: absolute; width: 5px; height: 5px; background: var(--ts-coral-400); border-radius: 50%; box-shadow: 0 0 10px var(--ts-coral-400); }
.tscs-scope .case-viz .dot.d1 { top: 30%; left: 38%; }
.tscs-scope .case-viz .dot.d2 { bottom: 28%; right: 34%; }
.tscs-scope .case-viz.v2 .ring { inset: 22% 42% 22% 10%; }
.tscs-scope .case-viz.v2 .ring.r2 { inset: 36% 54% 36% 24%; }
.tscs-scope .case-viz.v3 .ring { inset: 10% 10% 38% 38%; }
.tscs-scope .case-viz.v3 .ring.r2 { inset: 22% 22% 50% 50%; }
.tscs-scope .case-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tscs-scope .case h3 {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--fg-1);
	margin: 0 0 12px;
	line-height: 1.3;
}
.tscs-scope .case .prob { font-size: 13.5px; line-height: 1.6; color: var(--fg-2); margin: 0 0 20px; }
/* One divider per card, not three. The metrics keep a hairline rule (it
   separates numbers from prose); the footer row below now relies on spacing
   alone, and the dashed style is gone — dashed + solid + the tag row read as
   clutter at grid density. */
.tscs-scope .case-metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	padding: 16px 0 4px;
	border-top: 1px solid var(--border-plum);
	margin-top: auto;
}
.tscs-scope .cm .n {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 800;
	color: var(--ts-plum-600);
	letter-spacing: -0.015em;
	line-height: 1;
}
.tscs-scope .cm .l { font-size: 11px; color: var(--fg-3); margin-top: 4px; line-height: 1.4; }
.tscs-scope .case .footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	padding-top: 16px;
	font-size: 12px;
	color: var(--fg-3);
}
.tscs-scope .case .footer-row .role { font-family: var(--font-display); font-weight: 600; color: var(--fg-1); }
.tscs-scope .case .arr { color: var(--ts-plum-600); display: inline-flex; }
.tscs-scope .case .arr svg { width: 16px; height: 16px; }

/* ─── Approach strip (archive footer) ───────────────────────────────── */

/* The band used to be a tinted strip on a white page. The page is tinted
   now, so it needs no fill or border of its own — the white step cards give
   it all the definition it needs. */
.tscs-scope .approach {
	margin: 24px 0 0;
	padding: 60px var(--gutter);
}
.tscs-scope .approach-in {
	max-width: var(--container-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 56px;
	align-items: start;
}
.tscs-scope .approach h2 {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--fg-1);
	margin: 8px 0 16px;
	line-height: 1.15;
}
.tscs-scope .approach .lede { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0; max-width: 320px; }
.tscs-scope .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tscs-scope .step { background: #fff; border: 1px solid var(--border-plum); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); }
.tscs-scope .step .n { font-family: var(--font-mono); font-size: 11px; color: var(--ts-plum-400); letter-spacing: 0.14em; margin-bottom: 8px; }
.tscs-scope .step h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--fg-1); margin: 0 0 8px; }
.tscs-scope .step p { font-size: 13px; line-height: 1.55; color: var(--fg-2); margin: 0; }

/* ─── CTA band, now shared: see .fp-cta-* in bootstrap-theme-child/assets/css/front-page.css ─── */

/* ─── Single case study: breadcrumb & hero ─────────────────────────── */

.tscs-scope .case-hero {
	position: relative;
	overflow: hidden;
	padding: 28px var(--gutter) 20px;
	margin-bottom: 20px;
	color: #fff;
	background-color: var(--ts-plum-600);
	background-image: linear-gradient(120deg, var(--ts-plum-700) 0%, var(--ts-plum-500) 100%);
}
.tscs-scope .case-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 48px 48px;
}
.tscs-scope .case-hero-inner { position: relative; z-index: 1; max-width: var(--container-max); margin: 0 auto; }
.tscs-scope .case-hero .crumb {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 13px;
	color: rgba(255, 255, 255, .65);
	margin-bottom: 16px;
}
.tscs-scope .case-hero .crumb a { color: rgba(255, 255, 255, .9); font-weight: 500; }
.tscs-scope .case-hero .crumb a:hover { color: #fff; }
.tscs-scope .case-hero .crumb svg { width: 12px; height: 12px; color: rgba(255, 255, 255, .5); }
.tscs-scope .case-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tscs-scope .case-hero .tags .ts-badge {
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(4px);
	transition: background var(--d-base);
}
.tscs-scope .case-hero .tags a.ts-badge:hover { background: rgba(255, 255, 255, .2); }
.tscs-scope .case-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
	margin: 0 0 16px;
	max-width: 900px;
	text-wrap: balance;
}
.tscs-scope .case-hero h1 .accent { color: var(--ts-coral-300); }
.tscs-scope .case-hero .lede { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .85); margin: 0; max-width: 720px; }

.tscs-scope .meta-strip-wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.tscs-scope .meta-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--border-1);
}
.tscs-scope .meta-strip .m-lbl {
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fg-3);
	margin-bottom: 8px;
}
.tscs-scope .meta-strip .m-val {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--fg-1);
}

/* ─── Single: article layout ───────────────────────────────────────── */

.tscs-scope .article-wrap {
	max-width: var(--container-max);
	margin: 24px auto 0;
	padding: 0 var(--gutter);
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 64px;
	align-items: start;
}

.tscs-scope .toc { position: sticky; top: 96px; font-size: 13px; }
/* .ts-sp-side-label / .ts-sp-toc* (rendered by ts_render_toc_sidebar()) now
   live in the theme's global style.css (TOC SIDEBAR section) so this and
   the single-post template share one definition. */

.tscs-scope .article { max-width: 720px; }
.tscs-scope .section-block { margin-bottom: 24px; scroll-margin-top: 96px; }
.tscs-scope .section-block > .eyebrow {
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ts-plum-600);
	margin-bottom: 8px;
	display: block;
}
.tscs-scope .section-block > h2 {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--fg-1);
	margin: 0 0 16px;
	line-height: 1.3;
}
.tscs-scope .section-block .rich p { font-size: 16.5px; line-height: 1.75; color: var(--fg-2); margin: 0 0 16px; }
.tscs-scope .section-block .rich p strong { color: var(--fg-1); font-weight: 600; }
.tscs-scope .section-block .rich ul,
.tscs-scope .section-block .rich ol { margin: 12px 0 20px; padding-left: 24px; font-size: 16.5px; line-height: 1.75; color: var(--fg-2); }
.tscs-scope .section-block .rich blockquote {
	border-left: 3px solid var(--ts-coral-400);
	padding: 8px 0 8px 24px;
	margin: 24px 0;
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--fg-1);
	font-weight: 500;
}

/* Impact grid, reused for outcome */
.tscs-scope .impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.tscs-scope .impact .cell {
	background: #F6F3F6;
	border: 1px solid #E9E3FB;
	border-radius: 12px;
	padding: 24px 20px;
}
.tscs-scope .impact .n { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--ts-plum-600); letter-spacing: -0.02em; line-height: 1; }
.tscs-scope .impact .n .unit { font-size: 16px; font-weight: 700; color: var(--ts-plum-400); }
.tscs-scope .impact .l { font-size: 12px; color: var(--fg-2); margin-top: 8px; line-height: 1.5; }
.tscs-scope .cm .n .unit { font-size: 14px; font-weight: 700; color: var(--ts-plum-400); }
.tscs-scope .fv-metric .num .unit { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.65); }

/* ─── Single: Decisions & tradeoffs section ────────────────────────── */

.tscs-scope .decisions-block .rich > * + * { margin-top: 16px; }
.tscs-scope .decisions-block .rich > h3,
.tscs-scope .decisions-block .rich > h4 {
	background: #fff;
	border: 1px solid var(--border-1);
	border-left: 3px solid var(--ts-plum-500);
	border-radius: 10px;
	padding: 20px 20px 8px;
	margin: 16px 0 0;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--fg-1);
	line-height: 1.35;
}
.tscs-scope .decisions-block .rich > h3 + p,
.tscs-scope .decisions-block .rich > h4 + p {
	background: #fff;
	border: 1px solid var(--border-1);
	border-top: 0;
	border-left: 3px solid var(--ts-plum-500);
	border-radius: 0 0 10px 10px;
	padding: 0 20px 20px;
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fg-2);
}

/* ─── Single: What I learned (check list) ──────────────────────────── */

.tscs-scope .lessons-block .rich ul {
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
	display: grid;
	gap: 12px;
	font-size: inherit;
}
.tscs-scope .lessons-block .rich ul li {
	position: relative;
	padding-left: 32px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--fg-2);
	margin: 0;
}
.tscs-scope .lessons-block .rich ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ts-plum-50);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1E30' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
}
.tscs-scope .lessons-block .rich ul li strong { color: var(--fg-1); font-weight: 600; }

/* ─── Optional pull quote (blockquote.pull) ─────────────────────────── */

.tscs-scope .section-block .rich blockquote.pull {
	border-left: 3px solid var(--ts-coral-400);
	background: transparent;
	padding: 8px 0 8px 24px;
	margin: 24px 0;
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--fg-1);
	font-weight: 500;
}

/* ─── Single: related & prev/next ──────────────────────────────────── */

.tscs-scope .related-wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter) 24px; }
.tscs-scope .related-wrap h2 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--fg-1);
	margin: 0 0 16px;
}
.tscs-scope .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tscs-scope .pn-wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter) 24px; }
.tscs-scope .pn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 24px; border-top: 1px solid var(--border-1); }
.tscs-scope .pn {
	background: #fff;
	border: 1px solid var(--border-1);
	border-radius: 12px;
	padding: 24px;
	transition: box-shadow var(--d-base), transform var(--d-base), border-color var(--d-base);
	display: block;
	color: inherit;
}
.tscs-scope .pn:hover { box-shadow: var(--shadow-card-hover); border-color: var(--ts-plum-200); transform: translateY(-2px); }
.tscs-scope .pn .dir {
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fg-3);
	display: flex;
	gap: 6px;
	align-items: center;
	margin-bottom: 8px;
}
.tscs-scope .pn .dir svg { width: 12px; height: 12px; }
.tscs-scope .pn.next { text-align: right; }
.tscs-scope .pn.next .dir { justify-content: flex-end; }
.tscs-scope .pn h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--fg-1); margin: 0; letter-spacing: -0.01em; line-height: 1.3; }

/* ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.tscs-scope .feat-card,
	.tscs-scope .approach-in,
	.tscs-scope .grid,
	.tscs-scope .steps,
	.tscs-scope .related-grid,
	.tscs-scope .pn-grid { grid-template-columns: 1fr; }

	.tscs-scope .feat-body { padding: 32px 28px; }
	.tscs-scope .scan-viz { display: none; }
	.tscs-scope .p-hero { padding: 32px var(--gutter) 40px; margin-bottom: 24px; }
	.tscs-scope .p-hero .meta-row { gap: 16px 20px; }

	.tscs-scope .article-wrap { grid-template-columns: 1fr; gap: 32px; }
	.tscs-scope .toc { position: static; }
	.tscs-scope .meta-strip { grid-template-columns: 1fr 1fr; gap: 20px; }
	.tscs-scope .impact { grid-template-columns: 1fr; }
}
