.fc_handover_rail .handover {
	margin-top: var(--gap-l);
}

.fc_handover_rail .handover_rail {
	--rail-gap: var(--gap-m);
	--line-col: rgba(40, 52, 70, 0.14);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: var(--rail-gap);
}

.fc_handover_rail.bg_blue .handover_rail {
	--line-col: rgba(255, 255, 255, 0.16);
}

.fc_handover_rail .node {
	position: relative;
	padding-top: 40px;
}

/* the dot */
.fc_handover_rail .node::before {
	content: '';
	position: absolute;
	top: 5px;
	left: 0;
	z-index: 1;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--white);
	border: 2px solid rgba(40, 52, 70, 0.28);
	box-sizing: border-box;
}

.fc_handover_rail.bg_blue .node::before {
	background: var(--deep-blue);
	border-color: rgba(255, 255, 255, 0.32);
}

/* the connecting segment — one per node, so any number of stages works */
.fc_handover_rail .node::after {
	content: '';
	position: absolute;
	top: 11px;
	left: 0;
	width: calc(100% + var(--rail-gap));
	height: 2px;
	background: var(--line-col);
}

/* everything from the highlighted stage onwards turns gold */
.fc_handover_rail .node_live,
.fc_handover_rail .node_live~.node {
	--line-col: var(--yellow);
}

.fc_handover_rail .node:last-child::after {
	width: 100%;
	background: linear-gradient(90deg, var(--line-col) 0%, rgba(248, 193, 0, 0) 100%);
}

.fc_handover_rail .node_live::before {
	background: var(--yellow);
	border-color: var(--yellow);
	box-shadow: 0 0 0 5px rgba(248, 193, 0, 0.22);
}

.fc_handover_rail .node_key {
	display: block;
	margin-bottom: 5px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.fc_handover_rail .node_live .node_key {
	color: var(--yellow);
}

.fc_handover_rail .node_desc {
	display: block;
	font-size: 0.85rem;
	line-height: 1.5;
	opacity: 0.75;
}

@media (max-width: 720px) {
	.fc_handover_rail .handover_rail {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.fc_handover_rail .node {
		padding-top: 0;
		padding-left: 32px;
		padding-bottom: 26px;
	}

	.fc_handover_rail .node::before {
		top: 4px;
	}

	/* rotate the segment to run down the left edge */
	.fc_handover_rail .node::after {
		top: 10px;
		left: 6px;
		width: 2px;
		height: calc(100% + 4px);
	}

	.fc_handover_rail .node:last-child::after {
		height: 100%;
		background: linear-gradient(180deg, var(--line-col) 0%, rgba(248, 193, 0, 0) 100%);
	}
}
