/*
 * board.css, de gesponsorde laag.
 *
 * Dit bestand wordt als laatste in de cascade geladen, na style.css en na
 * fragments.css. Een boardregel die eerder wordt geladen wint van niets;
 * een boardregel die later wordt geladen hoeft geen !important toe te
 * voegen om te winnen. De openbaarmakingsregel staat in fragments.css en
 * niet hier, want zij is proza en geen onderdeel van het blok.
 *
 * De kaarttekst is aangeleverde tekst en wordt teken voor teken afgedrukt.
 * De opmaak mag de leesbaarheid dragen, maar zij vervangt geen cijfer, geen
 * hoofdletter, geen komma en geen valutatekens.
 */

/* ------------------------------------------------------------------
   1. Het blok
   Vijf horizontale rijen van 96 tot 114 pixels op 1366x768, zodat het
   geheel onder de 640 pixels blijft. Een rij is een kaart, geen kolom.
   ------------------------------------------------------------------ */

.qrv-board {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: var(--qrv-step-1) auto var(--qrv-step-2);
	padding: 0;
	box-sizing: border-box;
}

.qrv-board__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qrv-board__item {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ------------------------------------------------------------------
   2. De kaart als rij
   Naam links, voorwaarden in het midden, de knop rechts. Op 1366x768
   blijft de rij tussen 96 en 114 pixels hoog.
   ------------------------------------------------------------------ */

.qrv-offer {
	display: grid;
	grid-template-columns: minmax(9rem, 1fr) minmax(0, 2.4fr) auto;
	grid-template-areas: "name terms cta";
	align-items: center;
	gap: 0.5rem 1rem;
	min-height: 6rem;
	margin: 0;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--qrv-line);
	border-radius: var(--qrv-radius);
	background: var(--qrv-surface);
	box-sizing: border-box;
}

.qrv-offer__name {
	grid-area: name;
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.25;
	font-weight: 800;
	color: var(--qrv-ink);
	overflow-wrap: anywhere;
}

.qrv-offer__terms {
	grid-area: terms;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.qrv-offer__headline {
	display: block;
	margin: 0 0 0.15rem;
	padding: 0;
	font-size: 0.9375rem;
	line-height: 1.35;
	font-weight: 700;
	color: var(--qrv-ink-soft);
	overflow-wrap: anywhere;
}

.qrv-offer__line {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 0.78125rem;
	line-height: 1.4;
	color: var(--qrv-muted);
	overflow-wrap: anywhere;
}

.qrv-offer__cta {
	grid-area: cta;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	min-height: 44px;
	margin: 0;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--qrv-accent-strong);
	border-radius: var(--qrv-radius);
	background: var(--qrv-accent);
	font-size: 0.9375rem;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--qrv-accent-ink);
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
}

.qrv-offer__cta:hover,
.qrv-offer__cta:focus {
	background: var(--qrv-accent-strong);
	border-color: var(--qrv-accent-strong);
	color: var(--qrv-accent-ink);
	text-decoration: none;
}

/* ------------------------------------------------------------------
   3. De gezamenlijke noot onder het blok
   Een keer, niet per kaart herhaald. Zij is een vaststelling over het
   product en geen oordeel over een aanbieder.
   ------------------------------------------------------------------ */

.qrv-board__note {
	display: block;
	margin: 0.55rem 0 0;
	padding: 0;
	font-size: 0.78125rem;
	line-height: 1.5;
	color: var(--qrv-muted);
}

/* ------------------------------------------------------------------
   4. Smalle schermen
   De rij stapelt en de knop wordt volle breedte. De kaart verliest haar
   raster maar geen van haar regels.
   ------------------------------------------------------------------ */

@media (max-width: 720px) {
	.qrv-offer {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"name"
			"terms"
			"cta";
		align-items: start;
		min-height: 0;
		padding: 0.75rem;
	}

	.qrv-offer__cta {
		justify-self: stretch;
		width: 100%;
		min-width: 0;
		margin-top: 0.25rem;
	}
}

/* ------------------------------------------------------------------
   5. Printsjabloon
   Het gesponsorde blok wordt niet afgedrukt, de redactionele inhoud wel.
   ------------------------------------------------------------------ */

@media print {
	.qrv-board {
		display: none;
	}
}
/* ------------------------------------------------------------------
   Meetkunde voor de ranglijst (gate D2)
   Op 1366x768 staat het blok binnen de eerste 600 pixels en is het
   hoogstens 640 pixels hoog. Elke rij is 96 tot 114 pixels.
   ------------------------------------------------------------------ */

.qrv-board {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto var(--qrv-step-2);
	padding: 0;
	box-sizing: border-box;
}

.qrv-disclosure {
	display: block;
	margin: 0 0 0.5rem;
	padding: 0 0 0 0.75rem;
	border-left: 3px solid var(--qrv-accent);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--qrv-ink-soft);
}

.qrv-disclosure a {
	color: var(--qrv-accent);
}

.qrv-board__rows {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--qrv-line);
	border-radius: var(--qrv-radius);
	background: var(--qrv-surface);
	counter-reset: qrv-rank;
}

.qrv-offer {
	display: grid;
	grid-template-columns: 1.5rem minmax(6rem, 10rem) minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem 0.75rem;
	min-height: 100px;
	margin: 0;
	padding: 0.5rem 0.75rem;
	list-style: none;
	border-bottom: 1px solid var(--qrv-line);
	box-sizing: border-box;
}

.qrv-offer:last-child {
	border-bottom: 0;
}

.qrv-offer__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--qrv-paper);
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--qrv-ink-soft);
}

.qrv-offer__name {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.25;
	font-weight: 800;
	color: var(--qrv-ink);
	overflow-wrap: anywhere;
}

.qrv-offer__lines {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--qrv-ink-soft);
}

.qrv-offer__lines li {
	margin: 0 0 0.15rem;
	padding: 0;
	list-style: none;
}

.qrv-offer__lines li:first-child {
	font-weight: 700;
	color: var(--qrv-ink);
}

.qrv-offer__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.qrv-outbound {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	min-height: 44px;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: var(--qrv-radius);
	background: var(--qrv-accent);
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}

.qrv-outbound:hover,
.qrv-outbound:focus {
	background: var(--qrv-accent-strong);
	color: #ffffff;
	text-decoration: none;
}

.qrv-offer__age {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
	color: var(--qrv-muted);
}

/* Op smalle schermen staat de rij als blok en niet als raster. */
@media (max-width: 760px) {
	.qrv-offer {
		grid-template-columns: 1.25rem minmax(0, 1fr);
		min-height: 0;
		padding: 0.65rem 0.75rem;
	}

	.qrv-offer__rank {
		grid-row: 1;
		grid-column: 1;
	}

	.qrv-offer__name {
		grid-row: 1;
		grid-column: 2;
	}

	.qrv-offer__lines {
		grid-row: 2;
		grid-column: 1 / -1;
	}

	.qrv-offer__action {
		grid-row: 3;
		grid-column: 1 / -1;
		align-items: flex-start;
	}

	.qrv-outbound {
		min-width: 0;
		width: 100%;
	}
}

/* Op 1366x768 moet het geheel binnen 640 pixels blijven. */
@media (min-width: 761px) and (max-height: 820px) {
	.qrv-offer {
		min-height: 96px;
		max-height: 114px;
	}

	.qrv-offer__lines li:nth-child(n + 3) {
		display: none;
	}
}