/* Strakke, uitnodigende detailpagina voor losse flows. */

.hfl-single-flow {
	--hfl-detail-surface: #ffffff;
	--hfl-detail-soft: #f7f9fc;
	--hfl-detail-line: #e3e8f0;
	--hfl-detail-text: #16213a;
	--hfl-detail-muted: #69758a;
	--hfl-detail-pink: #f84d68;
	--hfl-detail-blue: #30b3ff;
	width: min(1240px, calc(100% - 2rem));
	max-width: 1240px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-block: clamp(1.5rem, 4vw, 4rem);
	box-sizing: border-box;
}

.hfl-single-flow .hfl-flow-article {
	display: grid;
	gap: clamp(1.25rem, 2vw, 2rem);
	width: 100%;
	margin: 0 auto;
}

.hfl-single-flow .hfl-back-link {
	margin: 0;
}

.hfl-single-flow .hfl-back-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #e500a4;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.hfl-single-flow .hfl-flow-header {
	position: relative;
	padding: clamp(1.5rem, 3vw, 3rem);
	border: 1px solid var(--hfl-detail-line);
	border-radius: 24px;
	background:
		radial-gradient(circle at 100% 0, rgba(48,179,255,.12), transparent 18rem),
		radial-gradient(circle at 0 100%, rgba(248,77,104,.10), transparent 16rem),
		var(--hfl-detail-surface);
	box-shadow: 0 22px 60px rgba(24,39,75,.08);
}

.hfl-single-flow .hfl-flow-category {
	margin: 0 0 .65rem;
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.hfl-single-flow .hfl-flow-title {
	margin: 0;
	max-width: 900px;
	color: var(--hfl-detail-text);
	font-size: clamp(38px, 5vw, 68px);
	font-weight: 850;
	line-height: .98;
	letter-spacing: -.045em;
}

.hfl-single-flow .hfl-flow-summary {
	max-width: 760px;
	margin: 1rem 0 0;
	color: var(--hfl-detail-muted);
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.6;
}

/* Detailbadge: dezelfde witte hartvorm als op de kaart. */
.hfl-single-flow .hfl-origin-badge {
	gap: .55rem;
	margin-bottom: 1rem;
	font-size: 14px;
}

.hfl-single-flow .hfl-origin-badge--community .hfl-origin-badge__icon {
	position: relative;
	width: 30px;
	height: 30px;
	background: var(--hfl-detail-pink) !important;
	font-size: 0 !important;
}

.hfl-single-flow .hfl-origin-badge--community .hfl-origin-badge__icon::before {
	content: "";
	width: 16px;
	height: 16px;
	background: #fff;
	clip-path: path("M8 14.2C6.8 12.6 1.7 9.3 1.7 5.3C1.7 3 3.3 1.4 5.5 1.4C6.8 1.4 7.7 2.1 8 3.1C8.3 2.1 9.2 1.4 10.5 1.4C12.7 1.4 14.3 3 14.3 5.3C14.3 9.3 9.2 12.6 8 14.2Z");
}

.hfl-single-flow .hfl-flow-hero {
	margin: 0;
	border: 1px solid var(--hfl-detail-line);
	border-radius: 22px;
	box-shadow: 0 18px 50px rgba(24,39,75,.08);
}

.hfl-single-flow .hfl-flow-meta {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	align-items: stretch;
	gap: 0 !important;
	margin: 0;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--hfl-detail-line);
	background: var(--hfl-detail-soft);
	box-shadow: none;
}

.hfl-single-flow .hfl-flow-meta__item {
	display: grid;
	align-content: center;
	justify-items: center;
	min-width: 0;
	padding: 0 1rem;
	text-align: center;
}

.hfl-single-flow .hfl-flow-meta__item + .hfl-flow-meta__item {
	border-left: 1px solid var(--hfl-detail-line);
}

.hfl-single-flow .hfl-flow-meta__item dt {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .07em;
}

.hfl-single-flow .hfl-flow-meta__item dd {
	margin: .3rem 0 0;
	font-size: 16px;
	color: var(--hfl-detail-text);
}

.hfl-single-flow .hfl-flow-content,
.hfl-single-flow .hfl-flow-requirements,
.hfl-single-flow .hfl-flow-steps,
.hfl-single-flow .hfl-flow-video,
.hfl-single-flow .hfl-flow-comments,
.hfl-single-flow .hfl-phase-one-details {
	max-width: none;
	margin: 0;
	padding: clamp(1.4rem, 2.5vw, 2.25rem);
	border: 1px solid var(--hfl-detail-line);
	border-radius: 20px;
	background: var(--hfl-detail-surface);
	box-shadow: 0 14px 38px rgba(24,39,75,.055);
}

.hfl-single-flow .hfl-flow-content {
	font-size: 16px;
	line-height: 1.75;
	color: #48566d;
}

.hfl-single-flow .hfl-flow-content p,
.hfl-single-flow .hfl-flow-content li {
	font-size: 16px;
	line-height: 1.75;
}

.hfl-single-flow .hfl-flow-content h2 {
	margin: 0 0 .85rem;
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.15;
}

.hfl-single-flow .hfl-flow-content h3 {
	margin: 1.5rem 0 .65rem;
	font-size: 21px;
	line-height: 1.3;
}

.hfl-single-flow .hfl-flow-content h4 {
	margin: 1.25rem 0 .5rem;
	font-size: 18px;
	line-height: 1.35;
}

.hfl-single-flow .hfl-flow-content > :first-child,
.hfl-single-flow section > :first-child {
	margin-top: 0;
}

.hfl-single-flow .hfl-flow-content > :last-child,
.hfl-single-flow section > :last-child {
	margin-bottom: 0;
}

.hfl-single-flow h2 {
	margin: 0 0 1rem;
	color: var(--hfl-detail-text);
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.15;
	letter-spacing: -.025em;
}

.hfl-single-flow h3 {
	color: var(--hfl-detail-text);
	font-size: 19px;
	line-height: 1.3;
}

.hfl-single-flow .hfl-phase-one-details {
	margin: 0 0 1.5rem;
	background: linear-gradient(135deg, #fbfdff, #fff8fd);
}

.hfl-single-flow .hfl-phase-one-details__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .8rem;
}

.hfl-single-flow .hfl-phase-one-details__grid > div {
	display: grid;
	gap: .35rem;
	min-width: 0;
	padding: 1rem;
	border: 1px solid var(--hfl-detail-line);
	border-radius: 14px;
	background: #fff;
}

.hfl-single-flow .hfl-phase-one-details__grid strong {
	font-size: 11px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--hfl-detail-muted);
}

.hfl-single-flow .hfl-phase-one-details__grid span {
	font-size: 15px;
	font-weight: 750;
	color: var(--hfl-detail-text);
}

.hfl-phase-one-details__file-count {
	font-size: 12px !important;
	font-weight: 600 !important;
	color: var(--hfl-detail-muted);
}

.hfl-single-flow .hfl-flow-requirements ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: .65rem;
	padding: 0;
	list-style: none;
}

.hfl-single-flow .hfl-flow-requirements li {
	margin: 0;
	padding: .8rem 1rem;
	border: 1px solid var(--hfl-detail-line);
	border-radius: 12px;
	background: var(--hfl-detail-soft);
}

/* Stappen als duidelijke kaarten, met perfect gecentreerde nummers. */
.hfl-single-flow .hfl-flow-steps__list {
	gap: 1rem;
}

.hfl-single-flow .hfl-flow-steps__item {
	position: relative;
	padding: 1.25rem 1.35rem 1.35rem;
	border-color: var(--hfl-detail-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(24,39,75,.045);
}

.hfl-single-flow .hfl-flow-steps__title {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin: 0 0 .8rem;
}

.hfl-single-flow .hfl-flow-steps__number {
	display: inline-grid !important;
	place-items: center !important;
	flex: 0 0 30px;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px;
	padding: 0 !important;
	border-radius: 50%;
	background: #ff00bb;
	color: #fff;
	font-size: 13px;
	font-weight: 850;
	line-height: 1 !important;
	text-align: center;
}

.hfl-single-flow .hfl-flow-steps__explanation {
	padding-left: 42px;
	color: #48566d;
	font-size: 16px;
	line-height: 1.7;
}

.hfl-single-flow .hfl-flow-steps__image {
	width: calc(100% - 42px);
	margin: 1rem 0 0 42px;
	border-radius: 14px;
}

.hfl-single-flow .hfl-flow-steps__warning,
.hfl-single-flow .hfl-flow-steps__tip {
	margin: .8rem 0 0 42px;
	padding: .75rem .9rem;
	border-radius: 10px;
	font-size: 14px;
}

/* Gerelateerde flows rustiger en compacter dan de hoofdinhoud. */
.hfl-single-flow .hfl-related-flows {
	margin-top: .5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hfl-detail-line);
}

.hfl-single-flow .hfl-related-flows h2 {
	font-size: 22px;
}

.hfl-single-flow .hfl-related-flows .hfl-flow-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.hfl-single-flow .hfl-related-flows .hfl-flow-card {
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(24,39,75,.045);
}

.hfl-single-flow .hfl-related-flows .hfl-flow-card__media {
	aspect-ratio: 16 / 9;
}

.hfl-single-flow .hfl-related-flows .hfl-flow-card__body {
	padding: 1rem;
	gap: .35rem;
}

.hfl-single-flow .hfl-related-flows .hfl-flow-card__title {
	font-size: 17px;
}

.hfl-single-flow .hfl-related-flows .hfl-flow-card__summary {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hfl-single-flow .hfl-related-flows .hfl-flow-card__meta {
	font-size: 12px;
}

.hfl-single-flow .hfl-related-flows .hfl-flow-card__link {
	padding: .55rem .9rem;
	font-size: 13px;
}

@media (max-width: 900px) {
	.hfl-single-flow .hfl-flow-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1rem 0 !important;
	}

	.hfl-single-flow .hfl-flow-meta__item:nth-child(odd) {
		border-left: 0;
	}

	.hfl-single-flow .hfl-phase-one-details__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hfl-single-flow .hfl-related-flows .hfl-flow-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.hfl-single-flow {
		width: calc(100% - 1rem);
		padding-inline: .5rem;
	}

	.hfl-single-flow .hfl-flow-header {
		padding: 1.35rem;
		border-radius: 18px;
	}

	.hfl-single-flow .hfl-flow-meta {
		grid-template-columns: 1fr !important;
		gap: .8rem !important;
	}

	.hfl-single-flow .hfl-flow-meta__item,
	.hfl-single-flow .hfl-flow-meta__item + .hfl-flow-meta__item {
		border-left: 0;
	}

	.hfl-single-flow .hfl-phase-one-details__grid,
	.hfl-single-flow .hfl-related-flows .hfl-flow-grid {
		grid-template-columns: 1fr;
	}

	.hfl-single-flow .hfl-flow-steps__explanation,
	.hfl-single-flow .hfl-flow-steps__image,
	.hfl-single-flow .hfl-flow-steps__warning,
	.hfl-single-flow .hfl-flow-steps__tip {
		width: 100%;
		margin-left: 0;
		padding-left: 0;
	}
}
