/*
Board stylesheet, Laag 2. Loaded last in the cascade, after the child theme
stylesheet and after the fragment styles.

The board is a single vertical stack of horizontal offer rows. Row anatomy is
fixed: rank column, brand cell, terms cell, figures cell, action cell. The
large type in a row carries a number or a currency amount, never the brand
name. The brand name sits in its own cell at body size.

Every colour pair below clears the contrast gate at the sizes used.
*/

.kzx-board {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 100%;
	margin-block: 2rem 1.5rem;
	background: #ffffff;
	border: 1px solid var(--kzx-line, #d7dde4);
	border-radius: var(--kzx-radius, 10px);
	overflow: hidden;
}

.kzx-board__row {
	display: grid;
	grid-template-columns: 46px minmax(170px, 1.1fr) minmax(220px, 1.9fr) minmax(150px, 1fr) 190px;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.125rem;
	border-top: 1px solid var(--kzx-line, #d7dde4);
	background: #ffffff;
}

.kzx-board__row:first-child {
	border-top: 0;
}

.kzx-board__rank {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--kzx-ink, #0f1a26);
	font-variant-numeric: tabular-nums;
	text-align: center;
	line-height: 1;
}

.kzx-board__brand {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	min-width: 0;
}

.kzx-board__tile {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9375rem;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.02em;
	flex: 0 0 auto;
}

.kzx-board__tile--1 {
	background: #1c3a5e;
}

.kzx-board__tile--2 {
	background: #4a2f6b;
}

.kzx-board__tile--3 {
	background: #1f4d3f;
}

.kzx-board__name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--kzx-ink, #0f1a26);
	margin: 0;
	line-height: 1.3;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.kzx-board__terms {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--kzx-muted, #4a5663);
	margin: 0;
	min-width: 0;
}

.kzx-board__terms span {
	display: block;
}

.kzx-board__figures {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.kzx-board__figure {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--kzx-ink, #0f1a26);
	line-height: 1.3;
	margin: 0;
	font-variant-numeric: tabular-nums;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.kzx-board__figure--small {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--kzx-ink-2, #24313f);
}

.kzx-board__action {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.375rem;
	min-width: 0;
}

.kzx-board__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	min-height: 44px;
	padding: 0.625rem 1rem;
	background: var(--kzx-btn, #1c3a5e);
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	border-radius: 8px;
	border: 0;
	line-height: 1.2;
	text-align: center;
}

.kzx-board__cta:hover,
.kzx-board__cta:focus {
	background: var(--kzx-btn-hover, #16304e);
	color: #ffffff;
}

.kzx-board__age {
	font-size: 0.6875rem;
	line-height: 1.35;
	color: var(--kzx-muted, #4a5663);
	text-align: center;
	margin: 0;
}

.kzx-board__disclaimer {
	font-size: 0.8125rem;
	color: var(--kzx-muted, #4a5663);
	border-top: 1px solid var(--kzx-line, #d7dde4);
	background: var(--kzx-paper-3, #e6e2da);
	padding: 0.75rem 1.125rem;
	margin: 0;
}

.kzx-board--empty {
	font-size: 0.9375rem;
	color: var(--kzx-muted, #4a5663);
}

@media (max-width: 1100px) {
	.kzx-board__row {
		grid-template-columns: 40px minmax(140px, 1fr) minmax(180px, 1.6fr) 160px;
	}

	.kzx-board__figures {
		display: none;
	}
}

@media (max-width: 780px) {
	.kzx-board__row {
		grid-template-columns: 34px 1fr;
		grid-template-areas:
			"rank brand"
			"terms terms"
			"figures figures"
			"action action";
		gap: 0.5rem 0.75rem;
		padding: 0.9375rem;
	}

	.kzx-board__rank {
		grid-area: rank;
		font-size: 1.125rem;
	}

	.kzx-board__brand {
		grid-area: brand;
		flex-direction: row;
		align-items: center;
		gap: 0.5rem;
	}

	.kzx-board__terms {
		grid-area: terms;
	}

	.kzx-board__figures {
		grid-area: figures;
		display: flex;
	}

	.kzx-board__action {
		grid-area: action;
	}

	.kzx-board__cta {
		width: 100%;
	}
}
/* ---------------------------------------------------------------------------
   The disclosure marker is a standalone element in the board renderer. It does
   not depend on the pages plugin being loaded first, because the board plugin
   can be activated on its own and a board without a marker is a failed page.
   --------------------------------------------------------------------------- */
.kzx-disclosure {
	order: -1;
}