/* NutPro Herkomstdiagram */

.nph{
	--nph-box-bg:#ffffff;
	--nph-line:#e6e5df;
	--nph-connector:#dfe3d2;
	--nph-node-bg:#f8faf3;
	--nph-node-title:#2e2b28;
	--nph-node-sub:#8b8781;
	--nph-coltitle:#8b8781;
	--nph-dot:#628a1a;
	--nph-hub-bg:#a22135;
	--nph-hub-text:#ffffff;
	--nph-mark-bg:#ffffff;
	--nph-mark-size:64px;
	--nph-radius:8px;
	--nph-box-pad:34px;
	--nph-gap:30px;

	container-type:inline-size;
	container-name:nph;
}

.nph__box{
	position:relative;
	background:var(--nph-box-bg);
	border:1px solid var(--nph-line);
	border-radius:var(--nph-radius);
	padding:var(--nph-box-pad);
}

.nph__lines{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	overflow:visible;
	z-index:1;
	pointer-events:none;
}
.nph__lines path{
	fill:none;
	stroke:var(--nph-connector);
	stroke-width:1.4;
	stroke-dasharray:5 6;
	vector-effect:non-scaling-stroke;
}

.nph__grid{
	position:relative;
	z-index:2;
	display:grid;
	grid-template-columns:1fr 1.1fr 1fr;
	gap:var(--nph-gap);
	align-items:center;
}

.nph__coltitle{
	margin:0 0 16px;
	font-size:.72em;
	letter-spacing:.12em;
	text-transform:uppercase;
	color:var(--nph-coltitle);
	font-weight:600;
	line-height:1.4;
}

/* items */
.nph__node{
	display:flex;
	align-items:flex-start;
	gap:11px;
	background:var(--nph-node-bg);
	border:1px solid var(--nph-line);
	border-radius:var(--nph-radius);
	padding:13px 16px;
	margin-bottom:10px;
	text-decoration:none;
	transition:border-color .3s,background .3s,transform .3s cubic-bezier(.22,.61,.36,1);
}
.nph__node:last-child{margin-bottom:0}
.nph__node:hover{border-color:var(--nph-dot);transform:translateY(-2px)}

.nph__dot{
	width:8px;height:8px;
	border-radius:50%;
	background:var(--nph-dot);
	flex:none;
	margin-top:8px;
	font-style:normal;
}

.nph__node-text{min-width:0}
.nph__node b{
	display:block;
	font-size:.94em;
	font-weight:500;
	color:var(--nph-node-title);
	line-height:1.35;
}
.nph__node small{
	display:block;
	font-size:.8em;
	color:var(--nph-node-sub);
	line-height:1.45;
	margin-top:1px;
}

/* knooppunt */
.nph__hub{
	background:var(--nph-hub-bg);
	color:var(--nph-hub-text);
	border-radius:var(--nph-radius);
	padding:clamp(22px,2.6vw,32px);
	text-align:center;
}

.nph__mark{
	display:grid;
	place-items:center;
	width:var(--nph-mark-size);
	height:var(--nph-mark-size);
	border-radius:50%;
	background:var(--nph-mark-bg);
	margin:0 auto 16px;
}
.nph__mark img{
	width:55%;
	height:auto;
	display:block;
}

.nph__hub-title{
	display:block;
	font-size:1.16em;
	font-weight:700;
	line-height:1.25;
	color:var(--nph-hub-text);
}
.nph__hub-sub{
	display:block;
	font-size:.9em;
	opacity:.82;
	margin-top:4px;
	line-height:1.4;
}

.nph__facts{
	display:grid;
	gap:14px 22px;
	margin-top:18px;
	padding-top:16px;
	border-top:1px solid rgba(255,255,255,.22);
}
.nph__hub--cols-1 .nph__facts{grid-template-columns:1fr}
.nph__hub--cols-2 .nph__facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.nph__hub--cols-3 .nph__facts{grid-template-columns:repeat(3,minmax(0,1fr))}

/* een oneven laatste cijfer vult de hele rij */
.nph__hub--cols-2 .nph__fact:last-child:nth-child(odd){grid-column:1 / -1}

.nph__fact{
	font-size:.82em;
	opacity:.86;
	line-height:1.4;
	min-width:0;
}
.nph__fact em{
	display:block;
	font-style:normal;
	font-weight:700;
	font-size:1.35em;
	opacity:1;
	line-height:1.2;
}

/* ------------------------------------------------------------------
   Smalle ruimte: kolommen onder elkaar, lijnen verdwijnen
   ------------------------------------------------------------------ */
@container nph (max-width:860px){
	.nph__grid{grid-template-columns:1fr}
	.nph__lines{display:none}
	.nph__col--out .nph__coltitle{margin-top:18px}
	.nph__hub{order:0}
}

@supports not (container-type:inline-size){
	@media (max-width:860px){
		.nph__grid{grid-template-columns:1fr}
		.nph__lines{display:none}
		.nph__col--out .nph__coltitle{margin-top:18px}
	}
}

@media (max-width:480px){
	.nph__hub--cols-3 .nph__facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
