/* ==========================================================================
   TeamCNF process (the "How we work" block)
   The steps as photo cards along a red line: a vertical line with a glowing
   dot per step on phones, a horizontal line through four staggered cards on
   wide screens. The step number is outlined text.
   Every value comes from the theme tokens (theme.json): --wp--preset--* and
   --wp--custom--*.
   ========================================================================== */
.tcnf-steps {
	position: relative;
	display: grid;
	gap: var(--wp--preset--spacing--50);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The red line the steps hang on */
.tcnf-steps::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--wp--preset--spacing--50);
	width: var(--wp--custom--border-thick);
	background: var(--wp--custom--accent-line-vertical);
	box-shadow: var(--wp--preset--shadow--glow);
}

/* Scoped under .tcnf-process so the larger radius wins over .tcnf-glass */
.tcnf-process .tcnf-step {
	position: relative;
	display: grid;
	gap: var(--wp--preset--spacing--20);
	margin: 0 0 0 var(--wp--preset--spacing--70);
	padding: var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--xl);
}

/* A glowing dot on the line beside each step */
.tcnf-process .tcnf-step::before {
	content: "";
	position: absolute;
	top: var(--wp--preset--spacing--70);
	left: calc(var(--wp--preset--spacing--50) + 1px - var(--wp--preset--spacing--30) / 2 - var(--wp--preset--spacing--70));
	width: var(--wp--preset--spacing--30);
	height: var(--wp--preset--spacing--30);
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: var(--wp--preset--shadow--glow-strong);
}

.tcnf-process .tcnf-step__media {
	aspect-ratio: 16 / 10;
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: none;
}

.tcnf-step__body {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
}

.tcnf-step__body > * {
	margin: 0;
}

.tcnf-step__num {
	color: transparent;
	-webkit-text-stroke: 1px var(--wp--custom--text--outline);
	font-size: var(--wp--preset--font-size--stat-small);
	font-weight: 600;
	line-height: var(--wp--custom--leading--tight);
}

.tcnf-step__body h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

.tcnf-step__body p {
	font-size: var(--wp--preset--font-size--small);
}

@media (min-width: 640px) and (max-width: 899px) {
	.tcnf-process .tcnf-step {
		grid-template-columns: 0.9fr 1fr;
		align-items: center;
	}
}

@media (min-width: 900px) {
	.tcnf-steps {
		grid-template-columns: repeat(4, 1fr);
		align-items: start;
		gap: var(--wp--custom--grid);
	}

	.tcnf-steps::before {
		top: 50%;
		bottom: auto;
		left: 0;
		right: 0;
		width: auto;
		height: var(--wp--custom--border-thick);
		background: var(--wp--preset--gradient--accent-line);
	}

	.tcnf-process .tcnf-step {
		margin-left: 0;
	}

	.tcnf-process .tcnf-step::before {
		display: none;
	}

	.tcnf-process .tcnf-step:nth-child(even) {
		margin-top: var(--wp--preset--spacing--80);
	}
}

/* Editor placeholder when the block has no content yet */
.tcnf-process-empty {
	padding: var(--wp--preset--spacing--50);
	border: 1px dashed var(--wp--custom--glass--border);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--custom--text--meta);
	font-size: var(--wp--preset--font-size--small);
}
