/**
 * Homepage-tabs en spotlight (UTF-8, geen BOM).
 */

ul.tabs.fw-tabs {
	list-style: none;
	padding: 0;
	margin: 0;
}

ul.tabs.fw-tabs:has(+ div .titles) {
	display: none;
}

#wrapper > .main > header.accent1 + .tabs.fw-tabs > .titles {
	position: relative;
	gap: 0.35rem;
	padding: 0.5rem 0.5rem 0;
	background: var(--primary) !important;
	border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
}

#wrapper > .main > header.accent1 + .tabs.fw-tabs > .titles:before {
	display: none;
}

#wrapper > .main > header.accent1 + .tabs.fw-tabs > .titles > .title {
	height: auto;
	min-height: 3.75rem;
	line-height: 1.25;
	padding: 0.85rem 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
	cursor: pointer;
	box-shadow: none !important;
	animation: none !important;
	border-radius: var(--radius) var(--radius) 0 0;
	border-bottom: 3px solid transparent;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

#wrapper > .main > header.accent1 + .tabs.fw-tabs > .titles > .title .extra {
	display: block;
	font-size: 0.82em;
	font-weight: 500;
	opacity: 0.9;
	margin-top: 0.15rem;
}

#wrapper > .main > header.accent1 + .tabs.fw-tabs > .titles > .title:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
}

#wrapper > .main > header.accent1 + .tabs.fw-tabs > .titles > .title.active {
	color: var(--primary) !important;
	background: #ffffff !important;
	border-bottom-color: var(--accent);
}

#wrapper > .main > header.accent1 + .tabs.fw-tabs > .panels > .panel {
	padding: 3rem 0 3.5rem;
	background: var(--background);
	border: 1px solid var(--border);
	border-top: 0;
	border-radius: 0 0 calc(var(--radius) + 4px) calc(var(--radius) + 4px);
}

.fw-spotlight {
	display: grid;
	grid-template-columns: 1fr minmax(12rem, 22rem) 1fr;
	grid-template-rows: auto auto;
	gap: 1.15rem 2rem;
	align-items: stretch;
	margin: 0 0 2rem;
	text-align: left;
}

.fw-spotlight > ul {
	display: none;
}

.fw-spotlight__media {
	grid-column: 2;
	grid-row: 1 / -1;
	align-self: center;
	justify-self: center;
	margin: 0 !important;
}

.fw-spotlight__media img {
	border-radius: 50%;
	box-shadow: var(--shadow-md);
	object-fit: cover;
	width: min(22rem, 36vw) !important;
	height: min(22rem, 36vw) !important;
}

.fw-spotlight__card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) + 2px);
	padding: 1.15rem 1.25rem;
	box-shadow: var(--shadow-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fw-spotlight__card:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-md);
}

.fw-spotlight__card:nth-child(2) {
	grid-column: 1;
	grid-row: 1;
}

.fw-spotlight__card:nth-child(3) {
	grid-column: 1;
	grid-row: 2;
}

.fw-spotlight__card:nth-child(4) {
	grid-column: 3;
	grid-row: 1;
}

.fw-spotlight__card:nth-child(5) {
	grid-column: 3;
	grid-row: 2;
}

.fw-spotlight__card h4 {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	color: var(--primary);
	line-height: 1.3;
}

.fw-spotlight__card p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--muted);
	line-height: 1.55;
}

@media screen and (max-width: 980px) {
	.fw-spotlight {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.fw-spotlight__media {
		grid-column: 1 / -1;
		grid-row: 1;
		margin-bottom: 0.5rem !important;
	}

	.fw-spotlight__media img {
		width: min(16rem, 70vw) !important;
		height: min(16rem, 70vw) !important;
	}

	.fw-spotlight__card:nth-child(2),
	.fw-spotlight__card:nth-child(3),
	.fw-spotlight__card:nth-child(4),
	.fw-spotlight__card:nth-child(5) {
		grid-column: auto;
		grid-row: auto;
	}
}

@media screen and (max-width: 580px) {
	#wrapper > .main > header.accent1 + .tabs.fw-tabs > .titles {
		flex-direction: column;
		align-items: stretch;
	}

	#wrapper > .main > header.accent1 + .tabs.fw-tabs > .titles > .title {
		border-radius: var(--radius);
		margin-bottom: 0.25rem;
	}

	.fw-spotlight {
		grid-template-columns: 1fr;
	}
}
