/* ENDR — editorial layer on top of theme.json.
 * Colours/fonts/sizes come from theme.json presets (--wp--preset--*).
 * Keep this file small: only layouts and patterns theme.json cannot express. */

:root {
	--endr-gutter: clamp(1rem, 3.33vw, 3rem);
	--endr-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--endr-label-track: 0.08em;
}

/* ---------- Labels & eyebrows ---------- */
.endr-label {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: var(--endr-label-track);
	text-transform: uppercase;
	line-height: 1.2;
}
.endr-label-s {
	font-size: var(--wp--preset--font-size--label-s);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.endr-eyebrow {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: var(--endr-label-track);
	text-transform: uppercase;
}
.endr-eyebrow .endr-eyebrow__index { color: var(--wp--preset--color--brand); }
.endr-eyebrow .endr-eyebrow__line { width: 3rem; height: 1px; background: currentColor; }
.has-inverse-background-color .endr-eyebrow .endr-eyebrow__index { color: var(--wp--preset--color--sage); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* ---------- Image placeholders (no visuals yet) ---------- */
.endr-placeholder {
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--placeholder);
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--label-s);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	padding: 1rem;
	aspect-ratio: 4 / 5;
	width: 100%;
	margin: 0;
}
.endr-placeholder.is-16x9 { aspect-ratio: 16 / 9; }
.endr-placeholder.is-1x1 { aspect-ratio: 1 / 1; }
.endr-placeholder.is-3x4 { aspect-ratio: 3 / 4; }

/* ---------- Header ---------- */
.endr-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-inline: var(--wp--style--root--padding-left, 1.5rem) var(--wp--style--root--padding-right, 1.5rem);
}
.endr-logo {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.75rem;
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: uppercase;
}
.endr-logo a { text-decoration: none; color: inherit; }
.endr-header .wp-block-navigation a { text-decoration: none; }
.endr-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.endr-header .wp-block-navigation__container { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 781px) {
	.endr-header .endr-header__cta .wp-block-button__link { padding: 0.65rem 1rem; }
}
/* Five pillar links don't fit on one line below ~1180px: switch to the overlay menu earlier than core's 600px. */
@media (max-width: 1180px) {
	.endr-header .wp-block-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.endr-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.endr-header .wp-block-navigation { order: 3; }
	.endr-header .endr-header__cta { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-text .wp-block-button__link {
	background: transparent;
	color: currentColor;
	padding: 0.25rem 0;
	text-decoration: underline;
	text-underline-offset: 0.35em;
}
.wp-block-button.is-style-text .wp-block-button__link::after { content: " →"; }
.wp-block-button.is-style-text .wp-block-button__link:hover { text-decoration: none; background: transparent; }
.wp-block-button .wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}
.has-inverse-background-color .wp-block-button .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--text-inverse);
}

/* ---------- Hero (Nativve: copy top-right, big image, oversized type over the bottom edge) ---------- */
.endr-hero { position: relative; }
.endr-hero__media { margin: 0; }
.endr-hero__copy { max-width: 28rem; }
.endr-hero__title { margin: 0; }
.endr-proof-line { margin: 0; }
@media (min-width: 782px) {
	.endr-hero { display: grid; grid-template-columns: minmax(0, 1fr); }
	.endr-hero > * { grid-area: 1 / 1; min-width: 0; }
	.endr-hero .endr-hero__media { min-height: min(46rem, 80vh); aspect-ratio: auto; place-items: center; }
	.endr-hero__copy {
		justify-self: end;
		align-self: start;
		margin: 2.5rem 2.5rem 0 0 !important;
		position: relative;
		z-index: 2;
	}
	.endr-hero__title {
		align-self: end;
		justify-self: start;
		max-width: 11ch;
		position: relative;
		z-index: 2;
		transform: translate(-0.04em, 0.12em);
	}
}

/* ---------- Pillars (oversized word overlapping the image) ---------- */
.endr-pillar { position: relative; }
.endr-pillar__word {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--display-xl);
	letter-spacing: -0.04em;
	line-height: 0.88;
	text-transform: uppercase;
}
.endr-pillar__who { color: var(--wp--preset--color--brand); }
@media (min-width: 782px) {
	.endr-pillar {
		display: grid;
		grid-template-columns: 1fr minmax(0, 25rem) 1fr;
		align-items: center;
		gap: 2rem;
	}
	.endr-pillar__media { grid-column: 2; grid-row: 1; }
	.endr-pillar__word { grid-column: 1 / span 2; grid-row: 1; z-index: 2; pointer-events: none; }
	.endr-pillar__content { grid-column: 3; grid-row: 1; align-self: end; max-width: 22rem; }
}
@media (max-width: 781px) {
	.endr-pillar__word { font-size: var(--wp--preset--font-size--display-l); }
}

/* ---------- Stats ---------- */
.endr-stat {
	border-top: 1px solid var(--wp--preset--color--text);
	padding-top: 1.5rem;
}
.endr-stat__number {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 75%;
	font-variant-numeric: tabular-nums;
	font-size: var(--wp--preset--font-size--stat);
	line-height: 0.9;
	letter-spacing: -0.03em;
}

/* ---------- Cards ---------- */
.endr-card { height: 100%; display: flex; flex-direction: column; }
.endr-card__body { flex: 1; display: flex; flex-direction: column; }
.endr-card__price-row { margin-top: auto; }
.endr-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.endr-tag, .endr-chip {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	padding: 0.35rem 0.6rem;
	font-size: var(--wp--preset--font-size--label-s);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---------- Content rail (horizontal scroll) ---------- */
.endr-rail {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1rem;
	scrollbar-width: thin;
}
.endr-rail > * { flex: 0 0 min(20rem, 78vw); scroll-snap-align: start; margin: 0 !important; }
.endr-article a { text-decoration: none; }
.endr-article a:hover { text-decoration: underline; }

/* ---------- Lead form ---------- */
.endr-form { display: grid; gap: 1rem; max-width: 35rem; }
.endr-form fieldset { border: 0; padding: 0; margin: 0; }
.endr-form legend, .endr-form label.endr-field__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: var(--wp--preset--font-size--label-s);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.endr-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.endr-chips input { position: absolute; opacity: 0; pointer-events: none; }
.endr-chips label { cursor: pointer; }
.endr-chips input:checked + .endr-chip { background: var(--wp--preset--color--tint); border-color: var(--wp--preset--color--text); }
.endr-chips input:focus-visible + .endr-chip { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 2px; }
.endr-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 1rem;
	font: inherit;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-input);
	border-radius: 2px;
}
.endr-form input[type="email"]:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 2px; }
.endr-consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--wp--preset--font-size--body-s); }
.endr-consent input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--wp--preset--color--brand); }
.endr-form button {
	justify-self: start;
	cursor: pointer;
	border: 0;
	border-radius: 2px;
	padding: 1rem 1.75rem;
	background: var(--wp--preset--color--action);
	color: var(--wp--preset--color--text);
	font: 600 var(--wp--preset--font-size--label) / 1.2 var(--wp--preset--font-family--body);
	letter-spacing: var(--endr-label-track);
	text-transform: uppercase;
}
.endr-form button:hover { background: var(--wp--preset--color--action-hover); }
.endr-form button:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 2px; }

/* ---------- Dark block (final CTA + footer) ---------- */
.endr-dark a { color: var(--wp--preset--color--text-inverse); }
.endr-footer a { text-decoration: none; }
.endr-footer a:hover { text-decoration: underline; }
.endr-footer .endr-muted { color: var(--wp--preset--color--sage); }
.endr-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.endr-card, .wp-block-button__link { transition: background-color 0.2s var(--endr-ease), color 0.2s var(--endr-ease); }
}

/* ---------- Template seams ---------- */
/* Final CTA runs straight into the footer: no root block gap between main and footer. */
.wp-site-blocks > footer,
.wp-site-blocks > main + * { margin-block-start: 0; }
main > .wp-block-group.alignfull:last-child { margin-block-end: 0; }
.endr-stat__number { white-space: nowrap; }
@media (max-width: 781px) {
	.endr-hero__copy { margin-block: 1.5rem 2.5rem; }
}

/* ---------- Landing pages (template page-landing) ---------- */
.endr-landing .entry-content > * { margin-block: 0; }
.endr-page-hero .wp-block-heading { margin-block: 0.5rem 0; }

/* Auto-fit grid: points, steps, values, stats */
.endr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--6);
}
.endr-grid > * { margin: 0; }
.endr-grid.is-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.endr-point {
	border-top: 1px solid var(--wp--preset--color--text);
	padding-top: 1.25rem;
}
.endr-point > * + * { margin-block-start: 0.75rem; }

/* Programme spotlight list */
.endr-checklist { list-style: none; padding: 0; }
.endr-checklist li {
	padding: 0.6rem 0 0.6rem 1.75rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	position: relative;
}
.endr-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.05rem;
	width: 0.75rem;
	height: 2px;
	background: var(--wp--preset--color--action);
}

/* FAQ */
.endr-faq { border-bottom: 1px solid var(--wp--preset--color--border); padding-block: 1.25rem; margin: 0; }
.endr-faq summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--body-l);
}
.endr-faq summary::-webkit-details-marker { display: none; }
.endr-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--display); font-weight: 800; }
.endr-faq[open] summary::after { content: "–"; }
.endr-faq summary:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 4px; }
.endr-faq p { margin-block: 0.75rem 0; color: var(--wp--preset--color--text-muted); }

/* Founder-only content: visible gap, never filled with invented facts */
.endr-note {
	border: 1px dashed var(--wp--preset--color--border-input);
	padding: 1rem 1.25rem;
	font-size: var(--wp--preset--font-size--body-s);
	color: var(--wp--preset--color--text-muted);
	background: var(--wp--preset--color--surface);
}
.endr-note::before { content: "In te vullen door de founder · "; font-weight: 600; color: var(--wp--preset--color--accent); }

/* Pull quote */
.endr-quote { margin: 2rem 0; border: 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--wp--preset--color--action); }
.endr-quote p {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--h2);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

/* ---------- Product page ---------- */
.endr-checklist.is-negative li::before { background: var(--wp--preset--color--border-input); }
.endr-checklist.is-negative li { color: var(--wp--preset--color--text-muted); }
.endr-buy .endr-stat__number { font-size: var(--wp--preset--font-size--display-m); }
.endr-buy .wp-block-buttons, .endr-buy .wp-block-button, .endr-buy .wp-block-button__link { width: 100%; }
.endr-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Press list */
.endr-press { list-style: none; padding: 0; margin: 0; }
.endr-press li { padding-block: 0.9rem; border-bottom: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--text-muted); }
.endr-press a { color: var(--wp--preset--color--text); text-decoration: none; }
.endr-press a:hover strong { text-decoration: underline; text-underline-offset: 0.25em; }

/* Real photos */
.endr-photo { margin: 0; }
.endr-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.endr-photo .wp-element-caption { margin-top: .5rem; font-size: var(--wp--preset--font-size--body-s, .875rem); opacity: .7; }
.endr-photo.is-3x4 img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 35%; }
.endr-photo.is-4x5 img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
.endr-page-hero .endr-photo img { border-radius: 0; }

/* v0.5: simple pages */
.endr-notice {
	border: 1px solid var(--wp--preset--color--border-input);
	border-left: 3px solid var(--wp--preset--color--action);
	padding: 1rem 1.25rem;
	font-size: var(--wp--preset--font-size--body-s);
	background: var(--wp--preset--color--surface);
}
.endr-prose h3.wp-block-heading { margin-top: 2.5rem; }
.endr-prose .wp-block-list li + li { margin-top: .4rem; }
.endr-form textarea, .endr-form input[type="text"] {
	width: 100%; font: inherit; padding: .85rem 1rem;
	border: 1px solid var(--wp--preset--color--border-input); border-radius: 2px; background: var(--wp--preset--color--base, #fff);
}
.endr-form__success {
	max-width: 35rem; padding: 1.25rem 1.5rem; font-weight: 600;
	border-left: 3px solid var(--wp--preset--color--brand); background: var(--wp--preset--color--surface);
}
.endr-form__success:focus { outline: none; }
.endr-journal .wp-block-post-template { gap: 2.5rem 2rem; }
.endr-journal .wp-block-post-featured-image img { border-radius: 2px; }
.endr-post .wp-block-post-excerpt__excerpt { margin: 0; }
@media (max-width: 781px) { .endr-journal .wp-block-post-template { grid-template-columns: 1fr !important; } }
.endr-single { margin-top: 0; }
.endr-single > * + * { margin-block-start: 0; }
.endr-post .wp-block-post-content h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.05; margin-block: 2.5rem 0.75rem; }
.endr-post .wp-block-post-content > p, .endr-post .wp-block-post-content > ul, .endr-post .wp-block-post-content > ol { margin-block: 0 1.25rem; }
.endr-post .wp-block-post-content .endr-notice { margin-top: 2.5rem; }
.endr-post .wp-block-post-title { font-size: var(--wp--preset--font-size--display-m); }
/* Long Dutch compounds ("herroepingsrecht") must never push the page wider on phones. */
.wp-block-heading, .wp-block-post-title { overflow-wrap: break-word; hyphens: manual; }

/* Hero with a real image (v0.5.1) */
.endr-hero__picture { display: block; overflow: hidden; border-radius: 2px; background: #1C1F1D; }
.endr-hero__picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 781px) {
	.endr-hero__picture img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
}
@media (min-width: 782px) {
	.endr-hero:has(.endr-hero__picture) .endr-hero__picture { min-height: min(46rem, 80vh); }
	.endr-hero__picture img { object-position: 15% 50%; }
	/* Scrim: darkens the top-right (copy) and bottom-left (title) so off-white text stays readable. */
	.endr-hero:has(.endr-hero__picture)::after {
		content: ""; grid-area: 1 / 1; z-index: 1; pointer-events: none; border-radius: 2px;
		background:
			linear-gradient(to top right, rgba(28, 31, 29, .78) 0%, rgba(28, 31, 29, .25) 38%, rgba(28, 31, 29, 0) 55%),
			linear-gradient(to bottom left, rgba(28, 31, 29, .62) 0%, rgba(28, 31, 29, .2) 30%, rgba(28, 31, 29, 0) 50%);
	}
	.endr-hero:has(.endr-hero__picture) .endr-hero__copy,
	.endr-hero:has(.endr-hero__picture) .endr-hero__title { color: #F5F3ED; }
	.endr-hero:has(.endr-hero__picture) .endr-hero__copy .is-style-text .wp-block-button__link { color: #F5F3ED; }
	.endr-hero:has(.endr-hero__picture) .endr-hero__title { transform: none; margin: 0 0 2rem 2.5rem !important; }
}

/* Starter Guide cover: title set over the photo */
.endr-cover { position: relative; }
.endr-cover > * { margin: 0 !important; }
.endr-cover::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 2px;
	background: linear-gradient(to bottom, rgba(28, 31, 29, .78) 0%, rgba(28, 31, 29, .35) 30%, rgba(28, 31, 29, 0) 52%);
}
.endr-cover__title {
	position: absolute; z-index: 1; top: 0; left: 0; right: 0;
	padding: 1.75rem 1.75rem 0;
	font-family: var(--wp--preset--font-family--display); font-weight: 800; text-transform: uppercase;
	font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); line-height: .95; color: #F5F3ED;
}
.endr-cover__kicker {
	display: block; margin-bottom: .75rem;
	font-family: var(--wp--preset--font-family--body, inherit); font-weight: 600; font-size: .75rem; letter-spacing: .12em; color: #E8E3D6;
}

/* =========================================================================
   Motion (v0.6) — only active when JS adds .endr-motion (never for reduced motion)
   ========================================================================= */
:root { --endr-ease-out: cubic-bezier(.22, 1, .36, 1); }

/* Reveal on scroll */
.endr-motion [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity .8s var(--endr-ease-out), transform .9s var(--endr-ease-out);
	transition-delay: var(--endr-delay, 0ms);
}
.endr-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Photo parallax: the image moves a little slower than the page */
.endr-motion .endr-photo, .endr-motion .wp-block-post-featured-image { overflow: hidden; }
.endr-motion .endr-photo img,
.endr-motion .endr-hero__picture img,
.endr-motion .wp-block-post-featured-image img {
	transform: translate3d(0, var(--endr-py, 0%), 0) scale(var(--endr-zoom, 1.14));
	transition: transform .6s var(--endr-ease-out);
	will-change: transform;
}
.endr-motion .endr-pillar__word { transform: translate3d(var(--endr-drift, 0), 0, 0); transition: transform .4s linear; }

/* Hero entrance: image settles, headline rises */
.endr-motion .endr-hero__picture img { --endr-zoom: 1.2; transition: transform 1.8s var(--endr-ease-out); }
.endr-motion.endr-loaded .endr-hero__picture img { --endr-zoom: 1.1; }
.endr-motion .endr-hero__title,
.endr-motion .endr-hero__copy,
.endr-motion .endr-page-hero .wp-block-column > * {
	opacity: 0; transform: translate3d(0, 32px, 0);
	transition: opacity 1s var(--endr-ease-out), transform 1.1s var(--endr-ease-out);
}
.endr-motion .endr-hero__copy { transition-delay: .25s; }
.endr-motion .endr-page-hero .wp-block-column > *:nth-child(2) { transition-delay: .1s; }
.endr-motion .endr-page-hero .wp-block-column > *:nth-child(n+3) { transition-delay: .2s; }
.endr-motion.endr-loaded .endr-hero__title,
.endr-motion.endr-loaded .endr-hero__copy,
.endr-motion.endr-loaded .endr-page-hero .wp-block-column > * { opacity: 1; transform: none; }
@media (min-width: 782px) {
	.endr-motion .endr-hero__title { transform: translate3d(0, 48px, 0); }
	.endr-motion.endr-loaded .endr-hero:has(.endr-hero__picture) .endr-hero__title { transform: none; }
}

/* Header gains a hairline once you scroll */
.endr-header { transition: box-shadow .3s ease; }
.endr-header.is-scrolled { box-shadow: 0 1px 0 rgba(28, 31, 29, .12); }

/* Interactive buttons */
.wp-element-button, .endr-form button {
	transition: transform .25s var(--endr-ease-out), box-shadow .25s var(--endr-ease-out), background-color .2s ease, color .2s ease;
}
.wp-block-button:not(.is-style-text) .wp-element-button:hover,
.endr-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(28, 31, 29, .55); }
.wp-element-button:active, .endr-form button:active { transform: translateY(0) scale(.98); box-shadow: none; }
.wp-block-button.is-style-text .wp-block-button__link::after { display: inline-block; transition: transform .25s var(--endr-ease-out); }
.wp-block-button.is-style-text .wp-block-button__link:hover::after { transform: translateX(5px); }

/* Cards lift; their photo zooms a touch */
.endr-card, .endr-article, .endr-journal .wp-block-post, .endr-pillar__media {
	transition: transform .4s var(--endr-ease-out), box-shadow .4s var(--endr-ease-out);
}
.endr-card:hover, .endr-article:hover { transform: translateY(-4px); }
.endr-card:hover { box-shadow: 0 18px 40px -24px rgba(28, 31, 29, .45); }
.endr-article:hover .endr-photo img, .endr-journal .wp-block-post:hover img, .endr-pillar:hover .endr-photo img { --endr-zoom: 1.2; }
.endr-journal .wp-block-post-featured-image { overflow: hidden; }

/* Pull-up counter: tactile buttons and a bump on the total */
.endr-counter [data-add] { transition: transform .12s ease, background-color .2s ease; }
.endr-counter [data-add]:active { transform: scale(.95); }
@keyframes endr-bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.endr-counter [data-total].is-bump { animation: endr-bump .35s var(--endr-ease-out); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- v0.8 consent banner ---------- */
.endr-cookiebar {
	position: fixed; z-index: 100; left: 1rem; right: 1rem; bottom: 1rem;
	display: block; max-width: 30rem; margin-left: auto;
	padding: 1.25rem 1.25rem 1rem;
	background: var(--wp--preset--color--surface, #FFFFFF); color: var(--wp--preset--color--text, #1C1F1D);
	border: 1px solid rgba(28, 31, 29, .14); box-shadow: 0 18px 40px -18px rgba(28, 31, 29, .45);
	font-size: .9375rem; line-height: 1.5;
}
.endr-cookiebar[hidden] { display: none; }
.endr-cookiebar__title { margin: 0 0 .35rem; font-family: var(--wp--preset--font-family--display, inherit); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.endr-cookiebar__text { margin: 0 0 .9rem; }
.endr-cookiebar__text a { color: inherit; }
.endr-cookiebar__choices { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 .9rem; }
.endr-cookiebar__choices[hidden] { display: none; }
.endr-cookiebar__choices label { display: inline-flex; align-items: center; gap: .4rem; }
.endr-cookiebar__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.endr-cookiebar__btn {
	font: inherit; font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em;
	padding: .7rem 1rem; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
}
.endr-cookiebar__btn.is-primary { background: var(--wp--preset--color--action, #D9673A); border-color: var(--wp--preset--color--action, #D9673A); color: #1C1F1D; }
.endr-cookiebar__btn.is-text { border-color: transparent; padding-inline: .25rem; text-decoration: underline; text-underline-offset: 3px; }
.endr-cookiebar__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
