/**
 * De detailpagina van een inzicht.
 *
 * Naar het ontwerp van de nieuwe site, maar in de kleuren van deze site: de merkvariabelen
 * uit functions/q-stijl.php, niet het aubergine van de stagingomgeving. Zo past de pagina
 * tussen wat er al staat.
 *
 * Alle maten in rem zodat de tekstgrootte van de browser gerespecteerd wordt.
 */

.q-inzicht {
	--inzicht-breedte: 46rem;
	--inzicht-breed: 72rem;
}

/* ------------------------------------------------------------------ kop */

.q-inzicht__artikel {
	max-width: var(--inzicht-breed);
	margin: 0 auto;
	padding: 2.5rem 1.5rem 0;
}

.q-inzicht__kruimels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--Qstylez-Dark-Grey, #838383);
	margin-bottom: 1.75rem;
}

.q-inzicht__kruimels a {
	color: var(--Qstylez-Dark-Grey, #838383);
	text-decoration: none;
}

.q-inzicht__kruimels a:hover {
	color: var(--Qstylez-Pink, #FF2E57);
}

.q-inzicht__kruimels [aria-current="page"] {
	color: var(--Qstylez-Black, #1D1D1F);
	font-weight: 600;
}

.q-inzicht__kruimel-pijl {
	color: var(--Qstylez-Light-Grey, #BABABB);
}

.q-inzicht__terug {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 2.5rem;
	font-weight: 600;
	color: var(--Qstylez-Black, #1D1D1F);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.125rem;
}

.q-inzicht__terug:hover {
	color: var(--Qstylez-Pink, #FF2E57);
}

/* De pijl schuift mee bij zweven; puur decoratief, dus buiten beeld voor schermlezers. */
.q-inzicht__terug-pijl {
	transition: transform 0.15s ease;
}

.q-inzicht__terug:hover .q-inzicht__terug-pijl {
	transform: translateX(-0.25rem);
}

/* ----------------------------------------------------------------- tags */

.q-inzicht__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.625rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.q-inzicht__tags a {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid var(--Qstylez-Light-Grey, #BABABB);
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--Qstylez-Black, #1D1D1F);
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.q-inzicht__tags a:hover {
	border-color: var(--Qstylez-Pink, #FF2E57);
	color: var(--Qstylez-Pink, #FF2E57);
}

/* -------------------------------------------------------- titel en meta */

.q-inzicht__kop {
	text-align: center;
	max-width: var(--inzicht-breedte);
	margin: 0 auto;
}

/* Kruimelpad en terug-link horen links, ook al staat de rest van de kop gecentreerd. */
.q-inzicht__kruimels,
.q-inzicht__terug {
	text-align: left;
	justify-content: flex-start;
}

.q-inzicht__titel {
	font-size: clamp(2rem, 1.25rem + 2.5vw, 3.25rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 1.5rem;
	color: var(--Qstylez-Black, #1D1D1F);
}

.q-inzicht__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	font-size: 0.9375rem;
	color: var(--Qstylez-Dark-Grey, #838383);
	margin-bottom: 2rem;
}

.q-inzicht__auteur {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
}

.q-inzicht__auteur-naam {
	font-weight: 700;
	color: var(--Qstylez-Black, #1D1D1F);
}

.q-inzicht__avatar {
	border-radius: 50%;
	width: 2.5rem;
	height: 2.5rem;
}

.q-inzicht__scheiding {
	color: var(--Qstylez-Light-Grey, #BABABB);
}

.q-inzicht__intro {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--Qstylez-Dark-Grey, #838383);
	margin: 0 0 2.5rem;
}

/* ---------------------------------------------------------------- beeld */

.q-inzicht__beeld {
	margin: 0 0 3rem;
}

.q-inzicht__beeld img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1.25rem;
}

.q-inzicht__beeld figcaption {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: var(--Qstylez-Dark-Grey, #838383);
	text-align: center;
}

/* --------------------------------------------------------------- inhoud */

/*
 * Drieënveertig van de zesenveertig inzichten staan in het gewone tekstveld. Die tekst moet
 * hier dus zelf leesbaar zijn: één kolom, ruime regelafstand, koppen die opvallen.
 */
.q-inzicht__inhoud {
	max-width: var(--inzicht-breedte);
	margin: 0 auto;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--Qstylez-Black, #1D1D1F);
}

.q-inzicht__inhoud > * + * {
	margin-top: 1.25rem;
}

.q-inzicht__inhoud h2,
.q-inzicht__inhoud h3,
.q-inzicht__inhoud h4 {
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.q-inzicht__inhoud h2 { font-size: 1.75rem; }
.q-inzicht__inhoud h3 { font-size: 1.375rem; }
.q-inzicht__inhoud h4 { font-size: 1.125rem; }

.q-inzicht__inhoud a {
	color: var(--Qstylez-Black, #1D1D1F);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.q-inzicht__inhoud a:hover {
	color: var(--Qstylez-Pink, #FF2E57);
}

.q-inzicht__inhoud img {
	max-width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

.q-inzicht__inhoud ul,
.q-inzicht__inhoud ol {
	padding-left: 1.5rem;
}

.q-inzicht__inhoud li + li {
	margin-top: 0.5rem;
}

.q-inzicht__inhoud blockquote {
	margin-left: 0;
	margin-right: 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--Qstylez-Pink, #FF2E57);
	font-size: 1.1875rem;
	color: var(--Qstylez-Dark-Grey, #838383);
}

/*
 * Wie de pagebuilder gebruikt (drie inzichten) krijgt lagen in plaats van tekst. Die brengen
 * hun eigen breedte mee, dus de leeskolom mag ze niet insnoeren.
 */
.q-inzicht__inhoud .custom-wrapper,
.q-inzicht__inhoud section {
	max-width: none;
}

/* --------------------------------------------------------- verder lezen */

.q-inzicht__verder {
	max-width: var(--inzicht-breed);
	margin: 4.5rem auto 0;
	padding: 3rem 1.5rem 4rem;
	border-top: 1px solid var(--Qstylez-Light-Grey, #BABABB);
}

.q-inzicht__verder-kop {
	font-size: 1.5rem;
	margin: 0 0 1.75rem;
	color: var(--Qstylez-Black, #1D1D1F);
}

.q-inzicht__verder-lijst {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.q-inzicht__verder-item a {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	text-decoration: none;
	color: var(--Qstylez-Black, #1D1D1F);
}

.q-inzicht__verder-beeld img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0.75rem;
}

.q-inzicht__verder-titel {
	font-weight: 700;
	line-height: 1.35;
}

.q-inzicht__verder-item a:hover .q-inzicht__verder-titel {
	color: var(--Qstylez-Pink, #FF2E57);
}

.q-inzicht__verder-meta {
	font-size: 0.875rem;
	color: var(--Qstylez-Dark-Grey, #838383);
	margin-top: auto;
}

/* ----------------------------------------------------------- kleiner scherm */

@media (max-width: 48rem) {
	.q-inzicht__artikel {
		padding-top: 1.5rem;
	}

	.q-inzicht__terug {
		margin-bottom: 1.75rem;
	}

	.q-inzicht__meta {
		font-size: 0.875rem;
		gap: 0.5rem;
	}

	.q-inzicht__verder {
		margin-top: 3rem;
		padding: 2rem 1.5rem 3rem;
	}
}
