/* De Kleine Kornuiten - Vacature-pop-up */

html.dkk-vm-open {
	overflow: hidden;
}

.dkk-vm {
	--dkk-vm-accent: #e8590c;
	box-sizing: border-box;
	width: min(560px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1f2933;
	font: inherit;
	overflow: visible;
}

.dkk-vm::backdrop {
	background: rgba(17, 24, 39, 0.55);
	backdrop-filter: blur(2px);
}

/* Browsers zonder <dialog>: zelf centreren met een eigen achtergrond. */
.dkk-vm.dkk-vm--geen-dialog {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-height: none;
	background: rgba(17, 24, 39, 0.55);
}
.dkk-vm--geen-dialog .dkk-vm__kaart {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
}

.dkk-vm__kaart {
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: inherit;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	outline: none;
}

.dkk-vm[open] .dkk-vm__kaart {
	animation: dkk-vm-in 0.28s ease-out;
}

@keyframes dkk-vm-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.dkk-vm[open] .dkk-vm__kaart { animation: none; }
}

.dkk-vm__scroll {
	overflow-y: auto;
	overscroll-behavior: contain;
}

.dkk-vm__sluit {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1f2933;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	line-height: 1;
}
.dkk-vm__sluit:hover {
	background: #fff;
	color: var(--dkk-vm-accent);
}
.dkk-vm__sluit:focus-visible,
.dkk-vm__knop:focus-visible,
.dkk-vm__later:focus-visible {
	outline: 3px solid var(--dkk-vm-accent);
	outline-offset: 2px;
}

.dkk-vm__media img,
.dkk-vm__beeld {
	display: block;
	width: 100%;
	height: auto;
	max-height: 260px;
	object-fit: cover;
	margin: 0;
}

.dkk-vm__body {
	padding: 28px 28px 24px;
}

.dkk-vm__titel {
	margin: 0 48px 12px 0;
	font-size: 1.6rem;
	line-height: 1.2;
	color: inherit;
}
.dkk-vm__media + .dkk-vm__body .dkk-vm__titel {
	margin-right: 0;
}

.dkk-vm__inhoud {
	font-size: 1rem;
	line-height: 1.6;
}
.dkk-vm__inhoud > :first-child { margin-top: 0; }
.dkk-vm__inhoud > :last-child  { margin-bottom: 0; }
.dkk-vm__inhoud img {
	max-width: 100%;
	height: auto;
}

.dkk-vm__acties {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}

.dkk-vm__knop,
.dkk-vm__later {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.dkk-vm__knop,
.dkk-vm__knop:visited {
	background: var(--dkk-vm-accent);
	border: 2px solid var(--dkk-vm-accent);
	color: #fff;
}
.dkk-vm__knop:hover {
	filter: brightness(0.92);
	color: #fff;
}

.dkk-vm__later {
	background: transparent;
	border: 2px solid transparent;
	color: #52606d;
}
.dkk-vm__later:hover {
	color: #1f2933;
	text-decoration: underline;
}

@media (max-width: 480px) {
	.dkk-vm__body { padding: 22px 20px 20px; }
	.dkk-vm__titel { font-size: 1.35rem; }
	.dkk-vm__knop { flex: 1 1 100%; text-align: center; }
	.dkk-vm__later { flex: 1 1 100%; }
}
