/**
 * Component: Ecosysteem
 *
 * De verbindingslijn tussen de knopen is decoratief en zit in CSS.
 * De betekenis staat in de tekst, zodat er niets verloren gaat wanneer
 * de lijn niet zichtbaar is.
 */

.bw-ecosysteem__chain {
	display: grid;
	gap: var(--bw-grid-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.bw-ecosysteem__node {
	position: relative;
	display: grid;
	justify-items: center;
	gap: var(--bw-space-2xs);
	text-align: center;
	padding-inline: var(--bw-space-2xs);
}

.bw-ecosysteem__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: var(--bw-radius-pill);
	border: 2px solid var(--bw-accent-text, var(--bw-caramel));
	color: var(--bw-accent-text, var(--bw-caramel));
	background: var(--bw-surface-bg, var(--bw-white));
	position: relative;
	z-index: 1;
}

.bw-ecosysteem__title {
	font-size: var(--bw-text-lg);
}

.bw-ecosysteem__text {
	font-size: var(--bw-text-sm);
	line-height: 1.5;
	color: var(--bw-surface-muted, var(--bw-text-muted));
	max-width: 22ch;
}

@media (min-width: 52rem) {
	.bw-ecosysteem__node::after {
		content: "";
		position: absolute;
		inset-block-start: 1.6rem;
		inset-inline-start: calc(50% + 1.9rem);
		width: calc(100% - 3.8rem + var(--bw-grid-gap));
		height: 2px;
		background: var(--bw-surface-border, var(--bw-border));
	}

	.bw-ecosysteem__node:last-child::after {
		display: none;
	}
}

.bw-ecosysteem__actions {
	justify-content: center;
	margin-block-start: var(--bw-space-xl);
}
