/* 5th Axis — Process Steps (numbered rail + card row) */

.axis5th-process {
	--axis5th-ps-columns: 4;
	--axis5th-ps-border: #e4e4e7;
	--axis5th-ps-card-padding: 32px;

	--axis5th-ps-badge-bg: #f4f4f5;
	--axis5th-ps-badge-color: #18181b;
	--axis5th-ps-line-color: #3f3f46;

	--axis5th-ps-icon-color: #a1a1aa;
	--axis5th-ps-icon-size: 24px;

	--axis5th-ps-title-color: #18181b;
	--axis5th-ps-desc-color: #71717a;
}

/* ── Rail ─────────────────────────────────────────────────── */

.axis5th-process__rail {
	display: grid;
	grid-template-columns: repeat( var( --axis5th-ps-columns ), minmax( 0, 1fr ) );
}

.axis5th-process__rail-col {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 12px;
}

.axis5th-process__num {
	flex: 0 0 auto;
	background: var( --axis5th-ps-badge-bg );
	color: var( --axis5th-ps-badge-color );
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 10px;
	white-space: nowrap;
}

.axis5th-process__rail-line {
	flex: 1 1 auto;
	height: 1px;
	background: var( --axis5th-ps-line-color );
	min-width: 0;
}

/* ── Cards ────────────────────────────────────────────────── */

.axis5th-process__cards {
	display: grid;
	grid-template-columns: repeat( var( --axis5th-ps-columns ), minmax( 0, 1fr ) );
	border-top: 1px solid var( --axis5th-ps-border );
}

.axis5th-process__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var( --axis5th-ps-card-padding );
	border-right: 1px solid var( --axis5th-ps-border );
}

.axis5th-process__card:last-child {
	border-right: none;
}

.axis5th-process__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var( --axis5th-ps-icon-color );
	font-size: var( --axis5th-ps-icon-size );
	line-height: 1;
	margin-bottom: 28px;
}

.axis5th-process__title {
	color: var( --axis5th-ps-title-color );
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
}

.axis5th-process__desc {
	color: var( --axis5th-ps-desc-color );
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
	max-width: 26em;
}

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

@media ( max-width: 1024px ) {
	.axis5th-process__rail,
	.axis5th-process__cards {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.axis5th-process__card:nth-child( 2n ) {
		border-right: none;
	}

	.axis5th-process__card:nth-child( n + 3 ) {
		border-top: 1px solid var( --axis5th-ps-border );
	}
}

@media ( max-width: 575px ) {
	.axis5th-process__rail,
	.axis5th-process__cards {
		grid-template-columns: 1fr;
	}

	.axis5th-process__card {
		border-right: none;
	}

	.axis5th-process__card:not( :first-child ) {
		border-top: 1px solid var( --axis5th-ps-border );
	}
}
