/**
 * Statuspagina [pk_status].
 * Kleuren en fonts komen uit Avada (var(--awb-*)), zodat een wijziging in de
 * Global Options hier vanzelf doorwerkt. Geen eigen hexwaarden.
 */

.pk-status {
	display: grid;
	gap: 64px;
}

/* Groep ------------------------------------------------------------------ */

.pk-status-groep {
	scroll-margin-top: 120px;
}

.pk-status-groep__kop {
	max-width: 768px;
	margin-bottom: 24px;
}

.pk-status-groep__titel {
	margin: 0 0 8px;
}

.pk-status-groep__intro {
	margin: 0 0 12px;
	color: var(--awb-color6);
}

.pk-status-groep__meta {
	margin: 0 0 8px;
	font-size: var(--awb-typography5-font-size);
	font-weight: 500;
	color: var(--awb-color6);
}

.pk-voortgang {
	height: 8px;
	max-width: 768px;
	overflow: hidden;
	background: var(--awb-color3);
	border-radius: 999px;
}

.pk-voortgang__balk {
	display: block;
	height: 100%;
	background: var(--awb-color5);
	border-radius: inherit;
}

/* Taken ------------------------------------------------------------------ */

.pk-status-taken,
.pk-taak__stappen,
.pk-status-overzicht {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pk-status-taken {
	display: grid;
	gap: 12px;
}

.pk-taak {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 16px;
	padding: 20px 24px;
	background: var(--awb-color1);
	border: 1px solid var(--awb-color3);
	border-radius: 16px;
}

.pk-taak--klaar {
	background: var(--awb-color2);
}

.pk-taak__icoon {
	margin-top: 2px;
	color: var(--awb-color6);
}

.pk-taak__icoon--bezig,
.pk-taak__icoon--klaar {
	color: var(--awb-color5);
}

.pk-taak__inhoud {
	min-width: 0;
}

/* .pk-status ervoor: wint van Avada's ".post-content h3". */
.pk-status .pk-taak__titel {
	margin: 0 0 8px;
	font-family: var(--awb-typography2-font-family);
	font-size: var(--awb-typography2-font-size);
	font-weight: var(--awb-typography2-font-weight);
	line-height: var(--awb-typography2-line-height);
	letter-spacing: var(--awb-typography2-letter-spacing);
	color: var(--awb-color8);
}

.pk-taak__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0;
	font-size: var(--awb-typography5-font-size);
	color: var(--awb-color6);
}

.pk-taak__deadline--verlopen {
	color: var(--awb-custom_color_7);
}

.pk-taak__toelichting {
	max-width: 66ch;
	margin: 12px 0 0;
}

.pk-taak__link {
	margin: 8px 0 0;
	font-weight: 500;
}

.pk-taak__stappen-teller {
	margin: 16px 0 8px;
	font-size: var(--awb-typography5-font-size);
	font-weight: 600;
	color: var(--awb-color8);
}

.pk-taak__stappen {
	display: grid;
	gap: 6px;
}

.pk-stap {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--awb-typography5-font-size);
	line-height: var(--awb-typography5-line-height);
}

.pk-stap__icoon {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--awb-color6);
}

.pk-stap--klaar .pk-stap__icoon {
	color: var(--awb-color5);
}

.pk-stap--klaar > span:not(.screen-reader-text) {
	color: var(--awb-color6);
}

/* Labels ------------------------------------------------------------------ */

.pk-label {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--awb-color8);
	background: var(--awb-color2);
	border: 1px solid var(--awb-color3);
	border-radius: 999px;
}

.pk-label--klaar {
	color: var(--awb-color4);
	background: var(--awb-color7);
	border-color: transparent;
}

.pk-label--bezig {
	background: var(--awb-custom_color_3);
	border-color: transparent;
}

/* Wat PK moet doen springt eruit. */
.pk-label--wie.pk-label--pk {
	color: var(--awb-color1);
	background: var(--awb-color8);
	border-color: transparent;
}

/* Overzicht --------------------------------------------------------------- */

.pk-status-overzicht {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.pk-status-tegel {
	position: relative;
	padding: 20px 24px;
	background: var(--awb-color1);
	border: 1px solid var(--awb-color3);
	border-top: 4px solid var(--awb-color5);
	border-radius: 16px;
	transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pk-status-tegel:hover {
	transform: translateY(-4px);
	box-shadow: 0 2px 4px rgb(27 35 55 / 0.04), 0 8px 24px rgb(27 35 55 / 0.08);
}

.pk-status-tegel__link {
	display: block;
	margin-bottom: 8px;
	font-family: var(--awb-typography2-font-family);
	font-size: var(--awb-typography2-font-size);
	font-weight: var(--awb-typography2-font-weight);
	line-height: var(--awb-typography2-line-height);
	color: var(--awb-color8);
	text-decoration: none;
}

/* De hele tegel is klikbaar via de ene link in de kop. */
.pk-status-tegel__link::after {
	position: absolute;
	inset: 0;
	content: "";
	border-radius: inherit;
}

.pk-status-tegel__link:hover {
	color: var(--awb-color5);
}

.pk-status-tegel__link:focus-visible {
	outline: none;
}

.pk-status-tegel__link:focus-visible::after {
	outline: 3px solid var(--awb-color8);
	outline-offset: 2px;
}

.pk-status .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 640px) {
	.pk-status {
		gap: 48px;
	}

	.pk-taak {
		gap: 12px;
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pk-status-tegel {
		transition: none;
	}

	.pk-status-tegel:hover {
		transform: none;
	}
}
