/*
 * Kennisbank styling
 *
 * Deze CSS doet vooral layout en componentvormen.
 * Kleuren, fonts en basis-typografie komen zo veel mogelijk uit Blocksy:
 * - var(--theme-palette-color-*)
 * - var(--theme-font-family)
 * - var(--theme-text-color)
 * - var(--theme-link-initial-color)
 */

body.post-type-archive-kennisbank,
body.single-kennisbank,
body.tax-kb_categorie,
body.tax-kb_doelgroep,
body.tax-kb_tag,
body.tax-kb_type,
body.search-results {
	background: #fff;
}

.vigere-kb {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	width: var(--theme-container-width, min(1290px, calc(100% - 48px)));
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin: 0 auto;
	padding-top: var(--theme-content-vertical-spacing, 60px);
	padding-bottom: var(--theme-content-vertical-spacing, 60px);
	color: var(--theme-text-color);
	font-family: var(--theme-font-family, inherit);
}

.vigere-kb:not(.vigere-kb--single) {
	grid-template-columns: 300px minmax(0, 1fr);
	width: 100%;
	max-width: none;
	padding-right: 32px;
	padding-left: 0;
}

.vigere-kb:not(.vigere-kb--single) .vigere-kb-sidebar {
	padding-left: 32px;
}

.vigere-kb:not(.vigere-kb--single) .vigere-kb-content {
	justify-self: center;
	width: min(100%, 920px);
}

.vigere-kb-sidebar {
	position: sticky;
	top: 32px;
	align-self: start;
	min-height: 70vh;
	border-right: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
	padding-right: 24px;
}

.vigere-kb-sidebar__label {
	margin: 0 0 18px;
	font-size: 0.95rem;
	font-weight: 600;
}

.vigere-kb-sidebar__label a {
	margin: 0 0 18px;
	font-size: 0.95rem;
	font-weight: 600;
}

.vigere-kb-sidebar__nav a {
	color: inherit;
	text-decoration: none;
	line-height: 1.45;
	font-size: 0.95rem;
	font-weight: 400;
}

.vigere-kb-breadcrumb a {
	color: inherit;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 400;
}

.vigere-kb-sidebar__nav {
	display: grid;
	gap: 2px;
}

.vigere-kb-sidebar__nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-radius: var(--theme-button-border-radius, 6px);
	padding: 9px 10px;
	color: var(--theme-text-color);
	line-height: 1.15;
}

.vigere-kb-sidebar__nav a:hover,
.vigere-kb-sidebar__nav a[aria-current="page"] {
	background: var(--theme-palette-color-7, rgba(0, 0, 0, 0.04));
	color: var(--theme-link-hover-color, var(--theme-palette-color-1));
}

.vigere-kb-sidebar__nav a[aria-current="page"] {
	font-weight: 800;
}

.vigere-kb-content,
.vigere-kb-article {
	max-width: 920px;
}

.vigere-kb-hero {
	margin-bottom: clamp(40px, 5vw, 64px);
	text-align: center;
}

.vigere-kb-hero--term {
	margin-bottom: 40px;
	text-align: left;
}

.vigere-kb-eyebrow {
	margin: 0 0 -4px;
	color: var(--theme-palette-color-1);
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0;
}

.vigere-kb-hero h1,
.vigere-kb-article__header h1 {
	margin: 0;
	color: var(--theme-heading-color, var(--theme-text-color));
	font-weight: var(--theme-heading-font-weight, 700);
	line-height: 1.05;
	letter-spacing: 0;
}

.vigere-kb-hero h1 {
	font-size: clamp(1.41rem, calc(0.872rem + 2.670vw), 2.88rem);
}

.vigere-kb-search {
	display: flex;
	align-items: center;
	width: min(920px, 100%);
	margin: 32px auto 0;
	border: 1px solid;
	border-color: var(--theme-palette-color-5);
	border-radius: 999px;
	padding: 8px;
}

.vigere-kb-search--sidebar {
	width: 100%;
	margin: 0 0 28px;
	padding: 8px 10px;
	background: #fff;
}

.vigere-kb-search__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-left: 2px;
	border: 2px solid #000;
	border-radius: 999px;
	position: relative;
}

.vigere-kb-search__icon::after {
	content: "";
	position: absolute;
	width: 7px;
	height: 2px;
	right: -5px;
	bottom: -2px;
	background: #000;
	border-radius: 999px;
	transform: rotate(45deg);
	transform-origin: left center;
}

.vigere-kb-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 14px 18px;
	background: transparent;
	color: var(--theme-text-color);
	font-size: 1rem;
	outline: 0;
}

.vigere-kb-search--sidebar input[type="search"] {
	padding: 10px 8px;
	font-size: 0.95rem;
}

.vigere-kb-search button {
	border-radius: 999px;
	white-space: nowrap;
}

.vigere-kb-search--sidebar button {
	display: none;
}

.vigere-kb-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
}

.vigere-kb-chips a {
	border-radius: var(--theme-button-border-radius, 6px);
	padding: 8px 16px;
	background: #f9f9f8;
	color: var(--theme-text-color);
	font-size: 0.85rem;
	font-weight: 400;
	text-decoration: none;
}

.vigere-kb-chips a:hover {
	color: var(--theme-link-hover-color, var(--theme-palette-color-1));
}

.vigere-kb-section {
	margin-top: clamp(48px, 6vw, 72px);
}

.vigere-kb-section h2 {
	margin: 0 0 26px;
	font-size: clamp(1.31rem, calc(0.972rem + 1.705vw), 2.25rem);
	font-weight: 600;
	color: var(--theme-palette-color-3) !important;
}

.vigere-kb-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.vigere-kb-card {
	position: relative;
	min-height: 220px;
	border-radius: clamp(0.333rem, calc(0rem + 2.105vw), 1rem);
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	transition:
		transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		background-color 0.3s ease;
	color: var(--theme-text-color);
	background: #f5f5f5;
	text-decoration: none;
}

.vigere-kb-card:hover {
	color: var(--theme-text-color);
	transform: translateY(-4px);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.03),
		0 3px 3px -1.5px rgba(0, 0, 0, 0.04),
		0 6px 6px -3px rgba(0, 0, 0, 0.05),
		0 12px 12px -6px rgba(0, 0, 0, 0.06),
		0 24px 24px -12px rgba(0, 0, 0, 0.08);
}

.vigere-kb-card__meta {
	display: block;
	margin-bottom: 6px;
	color: var(--theme-palette-color-9);
	font-size: 0.95rem;
	font-weight: 700;
}

.vigere-kb-card h3 {
	margin: 0 0 6px;
	color: var(--theme-palette-color-3) !important;
	font-size: 20px;
	font-weight: var(--theme-heading-font-weight, 700);
	line-height: 1.18;
	letter-spacing: 0;
}

.vigere-kb-card p {
	margin: 0 0 6px;
	color: var(--theme-text-color);
	line-height: 1.45;
	font-size: 0.95rem;
	font-weight: 400;
}

.vigere-kb-card__arrow {
	position: absolute;
	right: 24px;
	bottom: 20px;
	color: var(--theme-link-initial-color, var(--theme-palette-color-1));
	font-size: 1.4rem;
	font-weight: 800;
}

.vigere-kb-faq-list {
	display: grid;
	gap: 12px;
}

.vigere-kb-faq {
	border: 1px solid var(--theme-palette-color-5);
	border-radius: clamp(0.333rem, calc(0rem + 2.105vw), 1rem);
	background: #fff;
	overflow: hidden;
}

.vigere-kb-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 22px;
	color: var(--theme-palette-color-3);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.vigere-kb-faq summary::-webkit-details-marker {
	display: none;
}

.vigere-kb-faq[open] summary {
	border-bottom: 1px solid var(--theme-palette-color-5);
}

.vigere-kb-faq summary span:last-child {
	color: var(--theme-link-initial-color, var(--theme-palette-color-1));
	font-size: 1.25rem;
	line-height: 1;
	transition: transform 180ms ease;
}

.vigere-kb-faq[open] summary span:last-child {
	transform: rotate(45deg);
}

.vigere-kb-faq__content {
	padding: 18px 22px 22px;
}

.vigere-kb-faq__content p {
	margin: 0 0 12px;
	color: var(--theme-text-color);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.55;
}

.vigere-kb-faq__content a {
	font-weight: 700;
	text-decoration: none;
}

.vigere-kb-topic-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.vigere-kb-topic {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 86px;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: clamp(0.333rem, calc(0rem + 2.105vw), 1rem);
	padding: 22px;
	color: var(--theme-text-color);
	font-weight: 500;
	text-decoration: none;
}

.vigere-kb-topic:hover {
	color: var(--theme-link-hover-color, var(--theme-palette-color-1));
	transform: translateY(-4px);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.03),
		0 3px 3px -1.5px rgba(0, 0, 0, 0.04),
		0 6px 6px -3px rgba(0, 0, 0, 0.05),
		0 12px 12px -6px rgba(0, 0, 0, 0.06),
		0 24px 24px -12px rgba(0, 0, 0, 0.08);
}

.vigere-kb--single {
	grid-template-columns: 300px minmax(0, 1fr);
	grid-template-areas: "kbnav maincol";
	align-items: start;
	width: 100%;
	max-width: none;
	padding-right: 32px;
	padding-left: 0;
	margin-right: 0;
	margin-left: 0;
}

.vigere-kb-maincol {
	grid-area: maincol;
	display: grid;
	grid-template-columns: minmax(0, 760px) 320px;
	gap: clamp(32px, 4vw, 56px);
	justify-self: center;
	width: min(100%, 1136px);
}

.vigere-kb--single .vigere-kb-article {
	min-width: 0;
}

.vigere-kb--single .vigere-kb-sidebar--left {
	grid-area: kbnav;
	padding-left: 32px;
}

.vigere-kb-toc {
	position: sticky;
	top: 32px;
	align-self: start;
	max-height: calc(100vh - 64px);
	overflow: auto;
	padding-right: 24px;
}

.vigere-kb-toc__label {
	margin: 0 0 14px;
	color: var(--theme-palette-color-4);
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.vigere-kb-toc__nav {
	display: grid;
	gap: 10px;
	border-left: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.12));
	padding-left: 22px;
}

.vigere-kb-toc__link {
	display: block;
	color: var(--theme-text-color);
	font-size: 1rem;
	line-height: 1.35;
	text-decoration: none;
	white-space: nowrap;
}

.vigere-kb-toc__link--h1 {
	border-left: 3px solid var(--theme-link-initial-color, var(--theme-palette-color-1));
	margin-left: -23px;
	padding-left: 20px;
	color: var(--theme-link-initial-color, var(--theme-palette-color-1));
	font-size: 1.15rem;
}

.vigere-kb-toc__link:hover {
	color: var(--theme-link-hover-color, var(--theme-palette-color-1));
}

.vigere-kb-toc__link--h3 {
	padding-left: 18px;
}

.vigere-kb-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	color: #757575;
	font-size: 0.95rem;
	font-weight: 400;
}

.vigere-kb-breadcrumb--term {
	margin-bottom: 22px;
}

.vigere-kb-breadcrumb__current {
	color: #2b2b2b;
}

.vigere-kb-article__header {
	margin-bottom: 36px;
}

.vigere-kb-article__header h2 {
	font-size: clamp(1.31rem, calc(0.972rem + 1.705vw), 2.25rem);
}

.vigere-kb-article__intro,
.vigere-kb-term-description {
	max-width: 760px;
	margin: 22px 0 0;
	color: var(--theme-text-color);
	font-size: 1.15rem;
	line-height: 1.55;
}

.vigere-kb-term-description {
	margin-right: auto;
	margin-left: 0;
}

.vigere-kb-article__content {
	font-size: 1.05rem;
	line-height: 1.75;
}

.vigere-kb-article__content > * {
	margin-bottom: 1.2em;
}

.vigere-kb-article__content h2,
.vigere-kb-article__content h3 {
	margin-top: 1.8em;
	letter-spacing: 0;
}

@media (max-width: 1100px) {
	.vigere-kb-card-grid,
	.vigere-kb-topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vigere-kb--single {
		grid-template-columns: 280px minmax(0, 760px);
		grid-template-areas: "kbnav maincol";
		padding-right: 24px;
	}

	.vigere-kb-maincol {
		display: block;
		justify-self: start;
		width: 100%;
	}

	.vigere-kb--single .vigere-kb-toc {
		display: none;
	}
}

@media (max-width: 900px) {
	.vigere-kb,
	.vigere-kb--single {
		display: block;
		width: min(100% - 32px, 720px);
		margin-right: auto;
		margin-left: auto;
		padding-right: 0;
		padding-left: 0;
		padding-top: 36px;
	}

	.vigere-kb--single .vigere-kb-article {
		grid-area: auto;
	}

	.vigere-kb-maincol {
		display: block;
		width: 100%;
	}

	.vigere-kb-sidebar {
		display: none;
	}

	.vigere-kb-toc {
		display: none;
	}

	.vigere-kb-hero {
		text-align: left;
	}

	.vigere-kb-chips {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.vigere-kb-card-grid,
	.vigere-kb-topic-grid {
		grid-template-columns: 1fr;
	}

	.vigere-kb-search {
		border-radius: var(--theme-border-radius, 999px);
	}
}

.vigere-kb .vigere-kb-search button[type="submit"] {
	border-radius: 999px !important;
	-webkit-border-radius: 999px !important;
	overflow: hidden;
}

.vigere-kb-article::after {
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	margin-top: 48px;
	background: var(--theme-palette-color-5);
}

.vigere-kb-search--sidebar {
	height: 34px;
	margin: 0 0 18px;
	padding: 0 8px;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 4px;
	background: #fff;
}

.vigere-kb-search--sidebar .vigere-kb-search__icon {
	width: 12px;
	height: 12px;
	margin-right: 12px;
	border-width: 1px;
}

.vigere-kb-search--sidebar .vigere-kb-search__icon::after {
	width: 4px;
	height: 1px;
	right: -6px;
	bottom: -2px;
}

.vigere-kb-search--sidebar input[type="search"] {
	padding: 0;
	color: #2b2b2b;
	line-height: 1.45;
	font-size: 0.95rem;
	font-weight: 400;
}

.vigere-kb-search--sidebar input[type="search"]::placeholder {
	color: #757575;
	opacity: 1;
}

.vigere-kb-search--sidebar button {
	display: none;
}
