/* core/quote, block style "In het kort" (is-style-dw-summary) — mockup .tldr.
   Glass panel on a fading pink grid, HUD corners; the heading's hand-drawn underline draws itself,
   the ticks appear one by one and a scan line passes once (only after article.js marks it .is-seen;
   without script everything is shown in its final state). No size changes. */
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary {
	position: relative;
	isolation: isolate;
	margin-inline: 0;
	padding: 26px 28px;
	border: 1px solid var(--wp--custom--article--edge);
	border-radius: 22px;
	background:
		linear-gradient(180deg, rgba(255, 90, 168, 0), rgba(255, 90, 168, 0.18) 85%, rgba(255, 90, 168, 0.8)) 0 -40px / 100% 40px no-repeat,
		linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(253, 244, 248, 0.86)),
		var(--wp--preset--color--white);
	box-shadow: 0 0 0 4px rgba(208, 40, 120, 0.035), 0 34px 70px -46px rgba(208, 40, 120, 0.55);
	color: var(--wp--preset--color--ink);
	font-size: 16px;
	font-style: normal;
	line-height: 1.6;
}
/* fine grid fading from the top-right corner */
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background-image: linear-gradient(var(--wp--custom--article--line) 1px, transparent 1px), linear-gradient(90deg, var(--wp--custom--article--line) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask: radial-gradient(120% 90% at 100% 0, #000, transparent 75%);
	mask: radial-gradient(120% 90% at 100% 0, #000, transparent 75%);
}
/* HUD corner brackets */
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary::after {
	content: "";
	position: absolute;
	inset: -8px;
	pointer-events: none;
	background:
		linear-gradient(var(--wp--preset--color--brand), var(--wp--preset--color--brand)) top left / 26px 2.5px,
		linear-gradient(var(--wp--preset--color--brand), var(--wp--preset--color--brand)) top left / 2.5px 26px,
		linear-gradient(var(--wp--preset--color--brand), var(--wp--preset--color--brand)) bottom right / 26px 2.5px,
		linear-gradient(var(--wp--preset--color--brand), var(--wp--preset--color--brand)) bottom right / 2.5px 26px;
	background-repeat: no-repeat;
	opacity: 0.85;
	filter: drop-shadow(0 0 4px rgba(255, 90, 168, 0.6));
}
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary > * { margin-block: 0; }
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary > * + * { margin-block-start: 10px; }
/* the heading ("In het kort") with its hand-drawn underline */
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary > :is(h2, h3, h4, p):first-child {
	position: relative;
	display: inline-block;
	margin-bottom: 12px;
	color: var(--wp--preset--color--ink);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.3;
}
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary > :is(h2, h3, h4, p):first-child::after {
	content: "";
	position: absolute;
	left: -4px;
	bottom: -14px;
	width: calc(100% + 14px);
	height: 16px;
	background: var(--wp--preset--color--brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 30' preserveAspectRatio='none'%3E%3Cpath d='M4 20c40-12 78 8 118-2s70-14 108-4 56 10 86 2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 30' preserveAspectRatio='none'%3E%3Cpath d='M4 20c40-12 78 8 118-2s70-14 108-4 56 10 86 2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	clip-path: inset(0 0 0 0);
	transition: clip-path 1.2s ease 0.2s;
}
/* the list: ticks in round pink badges */
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary ul {
	display: grid;
	gap: 9px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary li {
	position: relative;
	margin: 0;
	padding-left: 32px;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--wp--custom--article--pink-line);
	border-radius: 50%;
	background: var(--wp--preset--color--brand-tint);
	box-shadow: 0 0 12px rgba(255, 90, 168, 0.45);
	transition: background-color 0.4s, box-shadow 0.6s;
}
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary li::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 7px;
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	clip-path: inset(0 0 0 0);
	transition: clip-path 0.4s;
}
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary li:nth-child(2)::after { transition-delay: 0.15s; }
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary li:nth-child(3)::after { transition-delay: 0.3s; }
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary li:nth-child(4)::after { transition-delay: 0.45s; }
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary li:nth-child(n+5)::after { transition-delay: 0.6s; }
:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary cite { display: block; margin-top: 12px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }

/* before it is seen (script running): underline and ticks not drawn yet, scan line parked */
.dwt-js .wp-block-quote.is-style-dw-summary:not(.is-seen) > :is(h2, h3, h4, p):first-child::after { clip-path: inset(0 100% 0 0); }
.dwt-js .wp-block-quote.is-style-dw-summary:not(.is-seen) li::after { clip-path: inset(0 100% 0 0); }
.dwt-js .wp-block-quote.is-style-dw-summary:not(.is-seen) li::before { background-color: var(--wp--preset--color--white); box-shadow: none; }
.dwt-js .wp-block-quote.is-style-dw-summary.is-seen { animation: dwa-scan 1.6s ease-out 0.1s 1; }
@keyframes dwa-scan {
	from { background-position: 0 -40px, 0 0, 0 0; }
	to { background-position: 0 calc(100% + 40px), 0 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary,
	:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary :is(li, :first-child)::after,
	:where(body:not(.dwv4-legacy), .is-dwv4) .wp-block-quote.is-style-dw-summary li::before { animation: none; transition: none; }
}
