.csd-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--body);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-soft);
	margin-bottom: 24px;
	transition: color .2s var(--ease), gap .2s var(--ease);
}
.csd-back svg {
	width: 16px;
	height: 16px;
}
.csd-back:hover {
	color: var(--brand-text);
	gap: 11px;
}
.csd-h1 {
	margin-top: 14px;
	font-size: clamp(32px, 4.4vw, 48px);
	line-height: 1.14;
}
.csd-lede {
	margin-top: 18px;
}
.csd-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.csd-meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.csd-meta-label {
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-faint);
}
.csd-meta-value {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}

.csd-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 21 / 8;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--brand-tint), var(--mist));
	color: var(--brand-btn);
}
.csd-banner svg {
	width: 56px;
	height: 56px;
}
@media (max-width: 640px) {
	.csd-banner {
		aspect-ratio: 4 / 3;
	}
}

.csd-prose {
	max-width: 760px;
}
.csd-prose h2 {
	margin-bottom: 20px;
}
.csd-prose p {
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--ink-soft);
}
.csd-list {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.csd-list li {
	position: relative;
	padding-left: 26px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--ink-soft);
}
.csd-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--brand-btn);
}

.csd-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 40px;
}
.csd-stats.csd-stats-5 {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.csd-stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.csd-stat-value {
	font-family: var(--display);
	font-size: 32px;
	font-weight: 800;
	color: var(--brand-text);
}
.csd-stat-value.is-text {
	font-size: 18px;
	line-height: 1.3;
}
.csd-stat-label {
	font-size: 13.5px;
	color: var(--ink-soft);
}
.csd-results-note {
	margin-top: 20px;
	font-size: 13.5px;
	color: var(--ink-faint);
	font-style: italic;
}
@media (max-width: 900px) {
	.csd-stats {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 520px) {
	.csd-stats {
		grid-template-columns: 1fr;
	}
	.csd-meta {
		gap: 20px;
	}
}

.csd-spec-grid {
	margin-top: 24px;
	border-top: 1px solid var(--line);
}
.csd-spec-row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}
.csd-spec-label {
	font-size: 14.5px;
	color: var(--ink-faint);
}
.csd-spec-value {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink);
	text-align: right;
}

.csd-tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}
.csd-tag {
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	border-radius: 100px;
	background: var(--mist);
	border: 1px solid var(--line);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink);
}

.csd-sub {
	margin-top: 32px;
}
.csd-sub h3 {
	font-size: 19px;
	margin-bottom: 16px;
}
.csd-sub-item {
	margin-bottom: 18px;
}
.csd-sub-item:last-child {
	margin-bottom: 0;
}
.csd-sub-item h4 {
	font-size: 15.5px;
	margin: 0 0 4px;
	color: var(--ink);
}
.csd-sub-item p {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0;
}

.csd-cta {
	position: relative;
	overflow: hidden;
	background: var(--night);
	color: var(--night-text);
	text-align: center;
}
.csd-cta-texture {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 0%, rgba(184, 72, 15, 0.28), transparent 60%);
	pointer-events: none;
}
.csd-cta-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.csd-cta-inner .eyebrow {
	color: var(--brand-ondark);
}
.csd-cta-inner .h2 {
	color: var(--night-text);
	white-space: nowrap;
}
.csd-cta-inner p {
	color: var(--night-sub);
	margin-bottom: 12px;
}
@media (max-width: 640px) {
	.csd-cta-inner .h2 {
		white-space: normal;
	}
}

/* ---- Page-specific overrides (khadamat-turnstile-gate-installation only).
   Additive classes so the shared sample-case-study template is untouched. ---- */

.csd-prose-wide {
	max-width: 820px;
}
.csd-prose-wide > p {
	font-size: 17px;
}
.csd-prose-wide > ul.csd-list > li {
	font-size: 16px;
}
.csd-prose-wide .csd-spec-label,
.csd-prose-wide .csd-spec-value {
	font-size: 15.5px;
}
.csd-prose-wide .csd-sub-item h4 {
	font-size: 16.5px;
}
.csd-prose-wide .csd-sub-item p {
	font-size: 15.5px;
}

.csd-prose-overview {
	max-width: 920px;
}
.csd-prose-overview > p {
	font-size: 18px;
	line-height: 1.75;
}
.csd-prose-overview > p + p {
	margin-top: 16px;
}

.csd-prose-full {
	max-width: none;
}

.csd-app-grid {
	margin-top: 28px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.csd-app-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-1);
	transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.csd-app-card:hover {
	box-shadow: var(--shadow-2);
	border-color: var(--line-soft);
	transform: translateY(-2px);
}
.csd-app-icon {
	width: 42px;
	height: 42px;
	border-radius: var(--radius-sm);
	background: var(--brand-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.csd-app-icon svg {
	width: 20px;
	height: 20px;
	color: var(--brand-deep);
}
.csd-app-card span:last-child {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink);
}

.csd-cta-alt {
	background: linear-gradient(135deg, var(--brand-btn) 0%, var(--brand-btn-hover) 100%);
}
.csd-cta-alt .csd-cta-texture {
	background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
}

/* ---- 2026-09-22 round: header snapshot panel, solution feature/challenge
   grids, spec panel, achievements grid, and a light CTA variant, all
   page-specific (khadamat-turnstile-gate-installation only). ---- */

.csd-header-grid {
	display: grid;
	grid-template-columns: 1.3fr .95fr;
	gap: 48px;
	align-items: start;
}
.csd-header-main .csd-lede {
	max-width: 600px;
}
.csd-snapshot {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 26px 28px;
	box-shadow: var(--shadow-1);
}
.csd-snapshot-head {
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand-text);
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.csd-snapshot-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 13px 0;
}
.csd-snapshot-item + .csd-snapshot-item {
	border-top: 1px solid var(--line-soft);
}
.csd-snapshot-icon {
	width: 34px;
	height: 34px;
	border-radius: var(--radius-sm);
	background: var(--brand-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.csd-snapshot-icon svg {
	width: 16px;
	height: 16px;
	color: var(--brand-deep);
}
.csd-snapshot-label {
	display: block;
	font-family: var(--mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 3px;
}
.csd-snapshot-value {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.35;
}
@media (max-width: 860px) {
	.csd-header-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

.csd-feature-grid {
	margin-top: 28px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.csd-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}
.csd-feature-item-wide {
	grid-column: 1 / -1;
}
.csd-feature-check {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--brand-tint);
	color: var(--brand-deep);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-top: 1px;
}
.csd-feature-check svg {
	width: 13px;
	height: 13px;
}
.csd-feature-item p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-soft);
}
@media (max-width: 640px) {
	.csd-feature-grid {
		grid-template-columns: 1fr;
	}
}

.csd-challenge-block {
	margin-top: 44px;
}
.csd-challenge-block h3 {
	font-size: 20px;
	margin-bottom: 10px;
}
.csd-challenge-intro {
	max-width: 640px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0 0 22px;
}
.csd-challenge-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.csd-challenge-card {
	padding: 24px 22px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 3px solid var(--brand-btn);
	border-radius: var(--radius-md);
}
.csd-challenge-icon {
	width: 38px;
	height: 38px;
	border-radius: var(--radius-sm);
	background: var(--mist);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-deep);
	margin-bottom: 14px;
}
.csd-challenge-icon svg {
	width: 18px;
	height: 18px;
}
.csd-challenge-card h4 {
	font-size: 15.5px;
	margin: 0 0 8px;
	color: var(--ink);
}
.csd-challenge-card p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0;
}
@media (max-width: 860px) {
	.csd-challenge-grid {
		grid-template-columns: 1fr;
	}
}

.csd-spec-panel {
	margin-top: 28px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-1);
	overflow: hidden;
}
.csd-spec-cell {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.csd-spec-cell:nth-child(3n),
.csd-spec-cell:last-child {
	border-right: none;
}
.csd-spec-cell-label {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-faint);
}
.csd-spec-cell-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}
@media (max-width: 860px) {
	.csd-spec-panel {
		grid-template-columns: repeat(2, 1fr);
	}
	.csd-spec-cell:nth-child(3n) {
		border-right: 1px solid var(--line);
	}
	.csd-spec-cell:nth-child(2n) {
		border-right: none;
	}
}
@media (max-width: 480px) {
	.csd-spec-panel {
		grid-template-columns: 1fr;
	}
	.csd-spec-cell:nth-child(2n) {
		border-right: 1px solid var(--line);
	}
	.csd-spec-cell {
		border-right: none !important;
	}
}
.csd-spec-cell:nth-child(n+10) {
	border-bottom: none;
}
@media (max-width: 860px) {
	.csd-spec-cell:nth-child(n+10) {
		border-bottom: 1px solid var(--line);
	}
	.csd-spec-cell:last-child {
		border-bottom: none;
	}
}

.csd-achieve-grid {
	margin-top: 32px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.csd-achieve-card {
	padding: 26px 24px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.csd-achieve-num {
	display: block;
	font-family: var(--display);
	font-size: 26px;
	font-weight: 800;
	color: var(--line-soft);
	margin-bottom: 10px;
}
.csd-achieve-card h4 {
	font-size: 16px;
	margin: 0 0 8px;
	color: var(--ink);
}
.csd-achieve-card p {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0;
}
@media (max-width: 900px) {
	.csd-achieve-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.csd-achieve-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- 2026-09-22 round: The Challenge redesigned a second time as a
   connected step timeline (horizontal on desktop, vertical on mobile),
   replacing the numbered-row ledger from the round below. Solution
   section (intro, feature grid, challenge block) widened to full
   container width. Page-specific (khadamat-turnstile-gate-installation
   only). ---- */

.csd-timeline {
	display: flex;
	align-items: flex-start;
	margin-top: 44px;
}
.csd-timeline-item {
	flex: 1;
	min-width: 0;
	position: relative;
	padding: 0 18px;
	text-align: center;
}
.csd-timeline-item:not(:first-child)::before {
	content: '';
	position: absolute;
	top: 23px;
	left: calc(-50% + 23px);
	width: calc(100% - 46px);
	height: 2px;
	background: var(--line);
	z-index: 0;
}
.csd-timeline-badge {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--brand-btn);
	color: #fff;
	font-family: var(--display);
	font-size: 16px;
	font-weight: 800;
}
.csd-timeline-item h4 {
	font-size: 15.5px;
	margin: 0 0 8px;
	color: var(--ink);
}
.csd-timeline-item p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0;
}
@media (max-width: 900px) {
	.csd-timeline {
		flex-direction: column;
		margin-top: 36px;
	}
	.csd-timeline-item {
		width: 100%;
		text-align: left;
		padding: 0 0 32px 64px;
	}
	.csd-timeline-item:last-child {
		padding-bottom: 0;
	}
	.csd-timeline-item:not(:first-child)::before {
		content: none;
	}
	.csd-timeline-item:not(:last-child)::after {
		content: '';
		position: absolute;
		left: 23px;
		top: 46px;
		bottom: 0;
		width: 2px;
		background: var(--line);
	}
	.csd-timeline-badge {
		position: absolute;
		top: 0;
		left: 0;
		margin: 0;
	}
	.csd-timeline-item h4,
	.csd-timeline-item p {
		text-align: left;
	}
}

.csd-cta-soft {
	background: linear-gradient(135deg, var(--mist) 0%, var(--brand-tint) 100%);
}
.csd-cta-soft .csd-cta-texture {
	background: radial-gradient(circle at 50% 0%, rgba(184, 72, 15, 0.10), transparent 60%);
}
.csd-cta-soft .csd-cta-inner .eyebrow {
	color: var(--brand-text);
}
.csd-cta-soft .csd-cta-inner .h2 {
	color: var(--ink);
}
.csd-cta-soft .csd-cta-inner p {
	color: var(--ink-soft);
}
