/*
 * 3D-eVo theme - one stylesheet for the whole site.
 * Most typography and colours live in theme.json; this file adds the parts
 * theme.json cannot express: header/footer, block styles, blueprint mode,
 * Evo, the printing logo, motion and the WooCommerce touches.
 *
 * (c) 3D-eVo - 3d-evo.nl. GPL-2.0-or-later.
 */

/* ------------------------------------------------------------------ 1. tokens */

:root {
	--tde-radius: var(--wp--custom--radius--m, 16px);
	--tde-radius-s: var(--wp--custom--radius--s, 8px);
	--tde-ease: var(--wp--custom--motion--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
	--tde-focus: var(--wp--preset--color--navy);
	--tde-grid-minor: rgb(11 21 48 / 0.045);
	--tde-grid-major: rgb(11 21 48 / 0.07);
	--tde-header-bg: rgb(251 250 246 / 0.86);
	color-scheme: light;
}

/* Russian: Bricolage Grotesque has no Cyrillic letters, so Russian pages set their
   headings in Inter, at the same weights (one font per heading, not a mix). */
:root:lang(ru) {
	--wp--preset--font-family--display: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Long Polish and Russian words ("Cyberbezpieczeństwo", "Кибербезопасность") break
   inside their box on a phone instead of pushing it wider. */
:root:is(:lang(pl), :lang(ru)) :is(h1, h2, h3, h4, .wp-block-button__link, .is-style-eyebrow, .wp-block-navigation-item__content) {
	overflow-wrap: break-word;
	hyphens: auto;
}

/* Blueprint mode: the same site drawn as a technical drawing. */
:root[data-theme="blueprint"] {
	--wp--preset--color--paper: #0b3b8f;
	--wp--preset--color--surface: #0f4499;
	--wp--preset--color--fog: #0d419b;
	--wp--preset--color--line: rgb(207 224 255 / 0.32);
	--wp--preset--color--muted: #c3d5f7;
	--wp--preset--color--ink: #f4f8ff;
	--wp--preset--color--navy: #cfe0ff;
	--wp--preset--color--deep: #062d70;
	--wp--preset--color--red: #ff6b5e;
	--wp--preset--color--red-ink: #ffa49c;
	--wp--preset--color--sticker: #ffd65c;
	--tde-focus: #ffd65c;
	--tde-grid-minor: rgb(207 224 255 / 0.09);
	--tde-grid-major: rgb(207 224 255 / 0.16);
	--tde-header-bg: rgb(11 59 143 / 0.88);
	color-scheme: dark;
}

/*
 * Dark mode: the same site at night - ink background, light text, the red play button
 * stays red. Chosen in the header switch, or automatic when the device is set to dark
 * and the visitor made no choice (no data-theme attribute). Both blocks hold the same values.
 */
:root[data-theme="dark"] {
	--wp--preset--color--paper: #0b1220;
	--wp--preset--color--surface: #131d35;
	--wp--preset--color--fog: #0f182c;
	--wp--preset--color--line: rgb(170 188 224 / 0.22);
	--wp--preset--color--muted: #a9b5cd;
	--wp--preset--color--ink: #edf1f9;
	--wp--preset--color--navy: #8fb3ff;
	--wp--preset--color--deep: #0c1a3c;
	--wp--preset--color--red: #ff5b52;
	--wp--preset--color--red-ink: #ff8a84;
	--wp--preset--color--sticker: #ffc93c;
	--wp--preset--shadow--soft: 0 1px 2px rgb(0 0 0 / 0.35);
	--wp--preset--shadow--lift: 0 14px 36px rgb(0 0 0 / 0.5);
	--tde-focus: #ffc93c;
	--tde-header-bg: rgb(11 18 32 / 0.88);
	--tde-ink-band: #132551;
	--tde-button: #c9231d;
	--tde-button-hover: #a51c17;
	--tde-logo-blue: #6b98ff;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-theme]) {
		--wp--preset--color--paper: #0b1220;
		--wp--preset--color--surface: #131d35;
		--wp--preset--color--fog: #0f182c;
		--wp--preset--color--line: rgb(170 188 224 / 0.22);
		--wp--preset--color--muted: #a9b5cd;
		--wp--preset--color--ink: #edf1f9;
		--wp--preset--color--navy: #8fb3ff;
		--wp--preset--color--deep: #0c1a3c;
		--wp--preset--color--red: #ff5b52;
		--wp--preset--color--red-ink: #ff8a84;
		--wp--preset--color--sticker: #ffc93c;
		--wp--preset--shadow--soft: 0 1px 2px rgb(0 0 0 / 0.35);
		--wp--preset--shadow--lift: 0 14px 36px rgb(0 0 0 / 0.5);
		--tde-focus: #ffc93c;
		--tde-header-bg: rgb(11 18 32 / 0.88);
		--tde-ink-band: #132551;
		--tde-button: #c9231d;
		--tde-button-hover: #a51c17;
		--tde-logo-blue: #6b98ff;
		color-scheme: dark;
	}
}

/* ------------------------------------------------------------------ 2. base */

html {
	scroll-padding-top: calc(var(--wp--custom--header-height, 72px) + 16px);
}

@media (prefers-reduced-motion: no-preference) {

	html:not([data-calm="1"]) {
		scroll-behavior: smooth;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizelegibility;
	overflow-x: clip;
}

::selection {
	background: var(--wp--preset--color--sticker);
	color: #0b1530;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--tde-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

img {
	height: auto;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100000;
	background: var(--wp--preset--color--sticker);
	color: #0b1530;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	left: 12px;
	top: 12px;
	font-weight: 700;
	text-decoration: none;
}

:where(main) > :first-child {
	margin-block-start: 0;
}

/* A phone number never breaks over two lines. */
a[href^="tel:"] {
	white-space: nowrap;
}

/* Full-width page sections touch each other: the block gap would show as a strip of
   page colour between two coloured sections (a band followed by the dark call to action). */
:where(.wp-block-post-content) > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Blueprint paper grid */
:root[data-theme="blueprint"] body {
	background-image:
		linear-gradient(var(--tde-grid-major) 1px, transparent 1px),
		linear-gradient(90deg, var(--tde-grid-major) 1px, transparent 1px),
		linear-gradient(var(--tde-grid-minor) 1px, transparent 1px),
		linear-gradient(90deg, var(--tde-grid-minor) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: -1px -1px;
}

/* ------------------------------------------------------------------ 3. header */

header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
}

/* The glass effect sits on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile menu overlay inside the header box. */
header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--tde-header-bg);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, box-shadow 0.3s;
}

@media (max-width: 600px) {

	header.wp-block-template-part {
		top: 0;
	}
}

.tde-scrolled header.wp-block-template-part::before {
	border-bottom-color: var(--wp--preset--color--line);
	box-shadow: 0 8px 24px rgb(11 21 48 / 0.06);
}

.tde-header__bar {
	min-height: var(--wp--custom--header-height, 72px);
	gap: 1rem;
}

.tde-header__nav {
	gap: clamp(0.75rem, 2vw, 1.75rem);
}

.tde-header__tools {
	gap: 0.5rem;
}

/* Logo */
.tde-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: inherit;
	text-decoration: none;
	line-height: 0;
}

.tde-brand svg {
	display: block;
	height: 100%;
	width: auto;
	overflow: visible;
}

.tde-brand--full .tde-brand__mark {
	height: 42px;
}

.tde-brand--full .tde-brand__word {
	height: 19px;
}

.tde-brand--mark {
	height: 44px;
}

.tde-brand--stacked {
	height: 96px;
}

.tde-brand--wordmark {
	height: 22px;
}

.tde-brand .logo-d,
.tde-brand .logo-word {
	fill: var(--tde-logo-blue, var(--wp--preset--color--navy));
}

.tde-brand .logo-play,
.tde-brand .logo-e {
	fill: var(--wp--preset--color--red);
}

.tde-brand .logo-play {
	transform-box: fill-box;
	transform-origin: 30% 50%;
	transition: transform 0.35s var(--tde-ease);
}

.tde-brand:hover .logo-play,
.tde-brand:focus-visible .logo-play {
	transform: translateX(14%) scale(1.06);
}

@media (max-width: 420px) {

	.tde-brand--full .tde-brand__word,
	.tde-langs__icon {
		display: none;
	}
}

/* Navigation */
.tde-header .wp-block-navigation {
	gap: 0.25rem clamp(0.9rem, 1.8vw, 1.6rem);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
}

.tde-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 3px;
	border-radius: 3px;
	background: var(--wp--preset--color--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--tde-ease);
}

.tde-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.tde-header .wp-block-navigation .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

.tde-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: none;
}

/* WordPress makes a submenu black on white when the menu has no colours of its own: both
   follow the look here (the text was black on the dark and blueprint panels). */
.wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 14px;
	padding: 0.5rem !important;
	color: var(--wp--preset--color--ink) !important;
	background: var(--wp--preset--color--surface) !important;
	box-shadow: var(--wp--preset--shadow--soft);
	min-width: 15rem !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 0.75rem !important;
	border-radius: 8px;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--fog);
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--deep) !important;
	color: #fff !important;
	padding: clamp(1rem, 5vw, 2rem) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 6vw, 2.25rem);
	font-weight: 760;
	color: #fff !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none;
	padding: 0 0 0 1rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1.125rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	opacity: 0.85;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: transparent;
	opacity: 1;
}

/* Language switcher */
.tde-lang__list {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 3px;
	list-style: none;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 999px;
}

.tde-lang__list a {
	display: block;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	color: var(--wp--preset--color--muted);
}

.tde-lang__list a:hover {
	color: var(--wp--preset--color--ink);
}

.tde-lang__list a.is-current {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

/* Language drop-down (three or more languages): a <details> that looks like the
   appearance switch. It works without JavaScript; switcher.js adds the keyboard. */
.tde-langs {
	position: relative;
}

.tde-langs__button {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	height: 42px;
	padding: 0 0.5rem 0 0.65rem;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	list-style: none;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.2s;
}

.tde-langs__button::-webkit-details-marker {
	display: none;
}

.tde-langs__button:hover,
.tde-langs[open] > .tde-langs__button {
	border-color: var(--wp--preset--color--navy);
}

.tde-langs__icon {
	flex: none;
	width: 18px;
	height: 18px;
}

.tde-langs__chevron {
	flex: none;
	width: 14px;
	height: 14px;
	transition: transform 0.2s var(--tde-ease);
}

.tde-langs[open] .tde-langs__chevron {
	transform: rotate(180deg);
}

.tde-langs__panel {
	position: absolute;
	z-index: 60;
	top: calc(100% + 10px);
	right: 0;
	width: max-content;
	min-width: 12rem;
	max-width: min(20rem, calc(100vw - 2rem));
	padding: 0.5rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--tde-radius);
	box-shadow: var(--wp--preset--shadow--lift);
}

.tde-langs__title {
	margin: 0.25rem 0.6rem 0.4rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.tde-langs__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tde-langs__choice {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.55rem 0.6rem;
	border-radius: var(--tde-radius-s);
	color: inherit;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.25;
	text-decoration: none;
}

.tde-langs__choice:hover,
.tde-langs__choice:focus-visible {
	background: var(--wp--preset--color--fog);
}

.tde-langs__choice.is-current {
	box-shadow: inset 3px 0 0 var(--wp--preset--color--red);
	font-weight: 700;
}

.tde-langs__code {
	flex: none;
	min-width: 1.7rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}

/* Round tool buttons: appearance switch, mini cart */
.tde-look {
	display: none;
	position: relative;
}

.tde-js .tde-look {
	display: block;
}

.tde-look__button,
.tde-tool {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--tde-ease);
}

.tde-look__button:hover,
.tde-look__button[aria-expanded="true"] {
	border-color: var(--wp--preset--color--navy);
}

.tde-look__button:hover {
	transform: rotate(-8deg);
}

/* The button shows what the page looks like now. */
.tde-look__icon {
	display: none;
	width: 20px;
	height: 20px;
	grid-area: 1 / 1;
}

.tde-look:not([data-current]) .tde-look__icon--paper,
.tde-look[data-current="paper"] .tde-look__icon--paper,
.tde-look[data-current="dark"] .tde-look__icon--dark,
.tde-look[data-current="blueprint"] .tde-look__icon--blueprint {
	display: block;
}

.tde-look__panel {
	position: absolute;
	z-index: 60;
	top: calc(100% + 10px);
	right: 0;
	width: max-content;
	min-width: 15rem;
	max-width: min(20rem, calc(100vw - 2rem));
	padding: 0.5rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--tde-radius);
	box-shadow: var(--wp--preset--shadow--lift);
}

.tde-look__panel[hidden] {
	display: none;
}

.tde-look__title {
	margin: 0.25rem 0.6rem 0.4rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.tde-look__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tde-look__choice {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.55rem 0.6rem;
	border: 0;
	border-radius: var(--tde-radius-s);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	text-align: left;
	cursor: pointer;
}

.tde-look__choice:hover,
.tde-look__choice:focus-visible {
	background: var(--wp--preset--color--fog);
}

.tde-look__choice[aria-pressed="true"] {
	box-shadow: inset 3px 0 0 var(--wp--preset--color--red);
	font-weight: 700;
}

.tde-look__choice-icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.tde-look__text {
	display: grid;
	line-height: 1.25;
}

.tde-look__hint {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.wc-block-mini-cart__button {
	width: 42px;
	height: 42px;
	padding: 0 !important;
	justify-content: center;
	border: 1.5px solid var(--wp--preset--color--line) !important;
	border-radius: 999px !important;
	color: var(--wp--preset--color--ink) !important;
}

.wc-block-mini-cart__button:hover {
	border-color: var(--wp--preset--color--navy) !important;
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--red) !important;
	color: #fff !important;
	border: 0 !important;
}

/* ------------------------------------------------------------------ 4. footer */

footer.wp-block-template-part {
	margin-block-start: 0;
}

.tde-footer {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.tde-footer::before {
	content: "";
	position: absolute;
	right: -6rem;
	top: -4rem;
	width: 26rem;
	height: 26rem;
	z-index: -1;
	background: rgb(255 255 255 / 0.04);
	clip-path: polygon(10% 0, 10% 100%, 92% 50%);
	border-radius: 2rem;
}

.tde-footer a {
	color: inherit;
}

.tde-footer .tde-brand .logo-d,
.tde-footer .tde-brand .logo-word {
	fill: #fff;
}

.tde-footer .tde-brand .logo-play,
.tde-footer .tde-brand .logo-e {
	fill: #ff6b5e;
}

.tde-footer .wp-block-navigation {
	gap: 0.6rem;
	font-weight: 500;
}

.tde-footer .wp-block-navigation a:hover {
	text-decoration: underline;
}

.tde-footer h2,
.tde-footer .tde-footer__title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.7);
	margin-bottom: 1rem;
}

.tde-footer__bottom {
	margin-top: var(--wp--preset--spacing--60);
	padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 0.16);
	font-size: var(--wp--preset--font-size--small);
	gap: 0.75rem 1.5rem;
}

.tde-footer__bottom p {
	margin: 0;
}

.tde-footer .tde-open__dot {
	background: rgb(255 255 255 / 0.5);
}

.tde-footer .tde-cookie-settings-link {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

/* ------------------------------------------------------------------ 5. buttons */

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--tde-ease);
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: translateY(1px) scale(0.98);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 0;
	box-shadow: inset 0 0 0 2px currentcolor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	box-shadow: none;
}

.wp-block-button.is-style-play > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
}

.wp-block-button.is-style-play > .wp-block-button__link::before {
	content: "";
	width: 0.7em;
	height: 0.8em;
	flex: none;
	background: currentcolor;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transition: transform 0.25s var(--tde-ease);
}

.wp-block-button.is-style-play > .wp-block-button__link:hover::before {
	transform: translateX(3px) scale(1.1);
}

/* Blueprint: drawn buttons */
:root[data-theme="blueprint"] :where(.wp-element-button, .wp-block-button__link) {
	background: transparent;
	color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 2px currentcolor;
}

:root[data-theme="blueprint"] :where(.wp-element-button, .wp-block-button__link):hover {
	background: var(--wp--preset--color--ink);
	color: #0b3b8f;
}

/* Dark: the red button keeps white text with enough contrast (the text red is lighter). */
:root[data-theme="dark"] :where(.wp-element-button, .wp-block-button__link):not(.has-background) {
	background-color: var(--tde-button);
	color: #fff;
}

:root[data-theme="dark"] :where(.wp-element-button, .wp-block-button__link):not(.has-background):is(:hover, :focus-visible) {
	background-color: var(--tde-button-hover);
	color: #fff;
}

:root[data-theme="dark"] .wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--ink);
}

:root[data-theme="dark"] .wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

@media (prefers-color-scheme: dark) {

	:root:not([data-theme]) :where(.wp-element-button, .wp-block-button__link):not(.has-background) {
		background-color: var(--tde-button);
		color: #fff;
	}

	:root:not([data-theme]) :where(.wp-element-button, .wp-block-button__link):not(.has-background):is(:hover, :focus-visible) {
		background-color: var(--tde-button-hover);
		color: #fff;
	}

	:root:not([data-theme]) .wp-block-button.is-style-outline > .wp-block-button__link {
		background-color: transparent;
		color: var(--wp--preset--color--ink);
	}

	:root:not([data-theme]) .wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
		background-color: var(--wp--preset--color--ink);
		color: var(--wp--preset--color--paper);
	}
}

/* ------------------------------------------------------------------ 6. block styles */

.is-style-card,
.is-style-card-lift {
	position: relative;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--tde-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--wp--preset--shadow--soft);
}

.is-style-card-lift {
	transition: transform 0.35s var(--tde-ease), box-shadow 0.35s var(--tde-ease), border-color 0.35s;
}

.is-style-card-lift:hover,
.is-style-card-lift:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
	border-color: var(--wp--preset--color--navy);
}

/* Whole card clickable through its heading link. */
.is-style-card-lift :is(h2, h3, h4) a {
	text-decoration: none;
	color: inherit;
}

.is-style-card-lift :is(h2, h3, h4) a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.is-style-card > :first-child,
.is-style-card-lift > :first-child {
	margin-top: 0;
}

.is-style-blueprint {
	--wp--preset--color--ink: #f4f8ff;
	--wp--preset--color--muted: #c3d5f7;
	--wp--preset--color--navy: #cfe0ff;
	--wp--preset--color--line: rgb(207 224 255 / 0.32);
	--wp--preset--color--red-ink: #ff8f85;
	background-color: #0b3b8f;
	background-image:
		linear-gradient(rgb(207 224 255 / 0.16) 1px, transparent 1px),
		linear-gradient(90deg, rgb(207 224 255 / 0.16) 1px, transparent 1px),
		linear-gradient(rgb(207 224 255 / 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgb(207 224 255 / 0.08) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	color: #f4f8ff;
	border-radius: var(--tde-radius);
}

.is-style-blueprint :is(h1, h2, h3, h4, h5, h6) {
	color: #fff;
}

.is-style-blueprint a:not(.wp-element-button) {
	color: #cfe0ff;
}

.is-style-band {
	background: var(--wp--preset--color--fog);
}

.is-style-ink {
	--wp--preset--color--ink: #f4f8ff;
	--wp--preset--color--muted: #b8c4dc;
	--wp--preset--color--navy: #cfe0ff;
	--wp--preset--color--line: rgb(255 255 255 / 0.16);
	--wp--preset--color--red-ink: #ff8f85;
	background: var(--tde-ink-band, #0b1530);
	color: #f4f8ff;
}

.is-style-ink :is(h1, h2, h3, h4, h5, h6) {
	color: #fff;
}

.is-style-ink a:not(.wp-element-button) {
	color: #cfe0ff;
}

/* Print layers at the bottom edge: three stacked bars like a fresh print. */
.wp-block-group.is-style-layers {
	position: relative;
	padding-bottom: calc(var(--wp--preset--spacing--60) + 18px);
}

.wp-block-group.is-style-layers::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: min(100%, var(--wp--style--global--wide-size, 1200px));
	height: 14px;
	transform: translateX(-50%);
	background:
		linear-gradient(var(--wp--preset--color--line), var(--wp--preset--color--line)) 0 0 / 38% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--navy), var(--wp--preset--color--navy)) 0 5px / 64% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--red), var(--wp--preset--color--red)) 0 10px / 100% 3px no-repeat;
	border-radius: 2px;
}

p.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.65em;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--red-ink);
}

p.is-style-eyebrow::before {
	content: "";
	width: 0.62em;
	height: 0.72em;
	flex: none;
	background: var(--wp--preset--color--red);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.has-text-align-center.is-style-eyebrow {
	justify-content: center;
}

p.is-style-sticker,
.tde-sticker {
	display: inline-block;
	padding: 0.3em 0.8em;
	border-radius: 6px;
	background: var(--wp--preset--color--sticker);
	color: #0b1530;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	transform: rotate(-2.5deg);
	box-shadow: 3px 3px 0 #0b1530;
}

p.is-style-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

ul.is-style-play {
	list-style: none;
	padding-left: 0;
}

ul.is-style-play > li {
	position: relative;
	padding-left: 1.65em;
	margin-block: 0.5em;
}

ul.is-style-play > li::before {
	content: "";
	position: absolute;
	left: 0.1em;
	top: 0.42em;
	width: 0.62em;
	height: 0.72em;
	background: var(--wp--preset--color--red);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

ol.is-style-steps {
	list-style: none;
	padding-left: 0;
	counter-reset: tde-step;
}

ol.is-style-steps > li {
	position: relative;
	counter-increment: tde-step;
	padding-left: 3.25rem;
	margin-block: 1rem;
	min-height: 2rem;
}

ol.is-style-steps > li::before {
	content: counter(tde-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: -0.05em;
	padding: 0.15em 0.55em;
	border: 1.5px solid currentcolor;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85em;
	font-weight: 600;
	color: var(--wp--preset--color--red-ink);
}

.wp-block-image.is-style-polaroid img {
	padding: 10px 10px 42px;
	background: #fff;
	border-radius: 4px !important;
	box-shadow: var(--wp--preset--shadow--lift);
	transform: rotate(-1.8deg);
	transition: transform 0.4s var(--tde-ease);
}

.wp-block-image.is-style-polaroid:hover img {
	transform: rotate(0deg) scale(1.02);
}

.wp-block-image.is-style-tilt img {
	transform: rotate(2deg);
	transition: transform 0.4s var(--tde-ease);
}

.wp-block-image.is-style-tilt:hover img {
	transform: none;
}

hr.is-style-layers,
.wp-block-separator.is-style-layers {
	height: 13px;
	border: 0;
	opacity: 1;
	background:
		linear-gradient(var(--wp--preset--color--red), var(--wp--preset--color--red)) 0 0 / 100% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--navy), var(--wp--preset--color--navy)) 0 5px / 66% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--line), var(--wp--preset--color--line)) 0 10px / 33% 3px no-repeat;
}

.wp-block-details.is-style-faq summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding-right: 2.5rem;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-details.is-style-faq summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-faq summary::before,
.wp-block-details.is-style-faq summary::after {
	content: "";
	position: absolute;
	right: 0.6rem;
	top: 50%;
	width: 14px;
	height: 2px;
	background: var(--wp--preset--color--red);
	transition: transform 0.3s var(--tde-ease);
}

.wp-block-details.is-style-faq summary::after {
	transform: rotate(90deg);
}

.wp-block-details.is-style-faq[open] summary::after {
	transform: rotate(0deg);
}

.wp-block-details.is-style-faq > :not(summary) {
	color: var(--wp--preset--color--muted);
	margin-top: 0.75rem;
}

.wp-block-columns.is-style-gap-cards {
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

/* Shop categories as pills. */
.wp-block-categories.tde-cat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
}

.wp-block-categories.tde-cat-pills li {
	margin: 0;
}

.wp-block-categories.tde-cat-pills a {
	display: inline-block;
	padding: 0.4em 1.05em;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

.wp-block-categories.tde-cat-pills a:hover,
.wp-block-categories.tde-cat-pills a:focus-visible {
	border-color: var(--wp--preset--color--navy);
}

.wp-block-categories.tde-cat-pills .current-cat > a {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

/* Cards in one row share the same height. */
.wp-block-columns.is-style-gap-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.wp-block-columns.is-style-gap-cards > .wp-block-column > :is(.is-style-card, .is-style-card-lift) {
	flex: 1 1 auto;
}

/* A linked card says so: a small play triangle after its title. It takes no room on the line
   (the negative right margin), so it stays with the last word instead of wrapping alone. */
.is-style-card-lift .wp-block-heading:has(> a)::after {
	content: "";
	display: inline-block;
	width: 0.42em;
	height: 0.5em;
	margin-left: 0.45em;
	margin-right: -0.87em;
	background: var(--wp--preset--color--red);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transition: transform 0.35s var(--tde-ease);
}

.is-style-card-lift:is(:hover, :focus-within) .wp-block-heading:has(> a)::after {
	transform: translateX(4px);
}

/* Reveal on scroll (only when JavaScript runs; theme.js marks what is visible). */
.tde-js .tde-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--tde-ease), transform 0.7s var(--tde-ease);
}

.tde-js .tde-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ 7. Evo */

.tde-evo {
	display: inline-block;
	line-height: 0;
}

.tde-evo-block.aligncenter {
	text-align: center;
}

.tde-evo__svg {
	overflow: visible;
	max-width: 100%;
	height: auto;
}

.tde-evo__body {
	transform-box: fill-box;
	transform-origin: 40% 60%;
}

.tde-evo__shape {
	fill: var(--wp--preset--color--red);
	stroke: var(--wp--preset--color--red);
	stroke-width: 16;
	stroke-linejoin: round;
}

.tde-evo__white,
.tde-print__eyes .tde-evo__white {
	fill: #fff;
}

.tde-evo__pupil,
.tde-print__eyes .tde-evo__pupil {
	fill: #0b1530;
	transition: transform 0.3s var(--tde-ease);
}

.tde-evo__arc {
	fill: none;
	stroke: #0b1530;
	stroke-width: 3.6;
	stroke-linecap: round;
}

.tde-evo__lid {
	transform-box: fill-box;
	transform-origin: center;
	animation: tde-blink 6s ease-in-out 2.5s infinite;
}

.tde-evo__brow {
	stroke: #0b1530;
	stroke-width: 3;
	stroke-linecap: round;
}

.tde-evo__tear {
	fill: #8fd3ff;
	transform-box: fill-box;
	animation: tde-tear 2.6s ease-in infinite;
}

.tde-evo__dots circle {
	fill: var(--wp--preset--color--muted);
	opacity: 0.6;
}

.tde-evo__zz path {
	fill: none;
	stroke: var(--wp--preset--color--muted);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tde-evo__confetti > * {
	fill: var(--wp--preset--color--sticker);
	transform-box: fill-box;
	transform-origin: center;
	animation: tde-pop 1.6s ease-out infinite;
}

.tde-evo__confetti > :nth-child(2n) {
	fill: var(--wp--preset--color--navy);
	animation-delay: 0.4s;
}

.tde-evo__confetti > :nth-child(3n) {
	fill: var(--wp--preset--color--red);
	animation-delay: 0.8s;
}

.tde-evo--wave .tde-evo__body {
	animation: tde-wiggle 1.4s ease-in-out 0.6s 3;
}

.tde-evo--party .tde-evo__body,
.tde-evo--happy .tde-evo__body {
	animation: tde-bounce 0.9s ease-in-out infinite alternate;
}

.tde-evo--sad .tde-evo__body {
	transform: rotate(9deg) translateY(4px);
}

.tde-evo--sad .tde-evo__pupil {
	transform: translate(-1px, 3px);
}

.tde-evo--think .tde-evo__pupil {
	transform: translate(1.5px, -3.5px);
}

.tde-evo--sleep .tde-evo__body {
	animation: tde-breathe 3.2s ease-in-out infinite;
}

.tde-evo--peek {
	overflow: hidden;
}

/* Reading: the eyes follow the lines, a page turns, a spark - once, then he rests. */
.tde-evo__page {
	fill: #fff;
	stroke: #0b1530;
	stroke-width: 2;
	stroke-linejoin: round;
}

.tde-evo__line {
	fill: none;
	stroke: #8a94a8;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.tde-evo__leaf {
	transform-box: view-box;
	transform-origin: 64px 95px;
}

.tde-evo__spark {
	fill: var(--wp--preset--color--sticker);
	stroke: #0b1530;
	stroke-width: 1.2;
	stroke-linejoin: round;
	transform-box: fill-box;
	transform-origin: center;
}

.tde-evo--read .tde-evo__pupil {
	transform: translate(-1px, 4.5px);
}

.tde-evo--read .tde-evo__pupil,
.tde-evo--read .tde-evo__leaf,
.tde-evo--read .tde-evo__spark {
	animation-fill-mode: both;
}

.tde-evo--read .tde-evo__pupil {
	animation: tde-read 1.5s ease-in-out 0.8s 3 both;
}

.tde-evo--read .tde-evo__leaf {
	animation: tde-leaf 0.8s var(--tde-ease) 5.3s 1 both;
}

.tde-evo--read .tde-evo__spark {
	animation: tde-spark 1s ease-out 6.1s 1 both;
}

.tde-evo--peek .tde-evo__body {
	animation: tde-peek 5s var(--tde-ease) infinite;
}

@keyframes tde-read {

	0% {
		transform: translate(-2.5px, 4px);
	}

	70% {
		transform: translate(2.5px, 4px);
	}

	80%,
	100% {
		transform: translate(-2.5px, 5px);
	}
}

@keyframes tde-leaf {

	from {
		transform: scaleX(1);
	}

	to {
		transform: scaleX(-1);
	}
}

@keyframes tde-spark {

	0% {
		opacity: 0;
		transform: scale(0.2) rotate(-30deg);
	}

	60% {
		opacity: 1;
		transform: scale(1.25) rotate(10deg);
	}

	100% {
		opacity: 1;
		transform: scale(1) rotate(0);
	}
}

@keyframes tde-blink {

	0%,
	93%,
	100% {
		transform: scaleY(1);
	}

	96% {
		transform: scaleY(0.08);
	}
}

@keyframes tde-wiggle {

	0%,
	100% {
		rotate: 0deg;
	}

	25% {
		rotate: -10deg;
	}

	75% {
		rotate: 10deg;
	}
}

@keyframes tde-bounce {

	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(-6%);
	}
}

@keyframes tde-breathe {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.03, 0.97);
	}
}

@keyframes tde-pop {

	0% {
		transform: scale(0.2);
		opacity: 0;
	}

	30% {
		transform: scale(1.2);
		opacity: 1;
	}

	100% {
		transform: scale(1) translateY(-6px);
		opacity: 0;
	}
}

@keyframes tde-tear {

	0% {
		transform: translateY(-4px);
		opacity: 0;
	}

	30% {
		opacity: 1;
	}

	100% {
		transform: translateY(14px);
		opacity: 0;
	}
}

@keyframes tde-peek {

	0%,
	12% {
		transform: translateY(70%);
	}

	30%,
	80% {
		transform: translateY(8%);
	}

	100% {
		transform: translateY(70%);
	}
}

/* ------------------------------------------------------------------ 8. printing logo */

.tde-print {
	--tde-print-dur: 1.9s;
	position: relative;
	width: min(100%, 400px);
	margin-inline: auto;
}

.tde-print__stage {
	position: relative;
	aspect-ratio: 1763 / 1833;
}

.tde-print__logo {
	position: relative;
	width: 100%;
	height: 100%;
}

.tde-print__logo svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.tde-print .logo-d {
	fill: var(--tde-logo-blue, var(--wp--preset--color--navy));
}

.tde-print .logo-play {
	fill: var(--wp--preset--color--red);
	transform-box: fill-box;
	transform-origin: 30% 50%;
}

.tde-print__nozzle {
	display: none;
}

.tde-print__bed {
	position: absolute;
	left: -6%;
	right: -6%;
	bottom: -14px;
	height: 6px;
	border-radius: 3px;
	background: repeating-linear-gradient(90deg, var(--wp--preset--color--line) 0 12px, transparent 12px 18px);
}

.tde-print__status {
	display: grid;
	justify-items: center;
	margin: 2rem 0 0;
	text-align: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.tde-print__busy,
.tde-print__done {
	grid-area: 1 / 1;
}

.tde-print__busy {
	opacity: 0;
}

@property --tde-layer {
	syntax: "<integer>";
	inherits: false;
	initial-value: 0;
}

@media (prefers-reduced-motion: no-preference) {

	html:not([data-calm="1"]) .tde-print__logo {
		animation: tde-print-build var(--tde-print-dur) steps(18, jump-end) both;
	}

	html:not([data-calm="1"]) .tde-print__logo::after {
		content: "";
		position: absolute;
		inset: 0;
		pointer-events: none;
		background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(100% / 18 - 3px), var(--wp--preset--color--paper) calc(100% / 18 - 3px), var(--wp--preset--color--paper) calc(100% / 18));
		opacity: 0.65;
		animation: tde-fade-out 0.6s ease calc(var(--tde-print-dur) + 0.15s) both;
	}

	html:not([data-calm="1"]) .tde-print__nozzle {
		display: block;
		position: absolute;
		left: 4%;
		top: 100%;
		width: 16%;
		height: 5%;
		border-radius: 5px 5px 2px 2px;
		background: var(--wp--preset--color--ink);
		box-shadow: 0 0 0 3px var(--wp--preset--color--paper);
		animation:
			tde-nozzle-y var(--tde-print-dur) steps(18, jump-end) both,
			tde-nozzle-x 0.21s ease-in-out 9 alternate both,
			tde-fade-out 0.3s ease var(--tde-print-dur) forwards;
	}

	html:not([data-calm="1"]) .tde-print__nozzle::after {
		content: "";
		position: absolute;
		left: 50%;
		top: 100%;
		width: 26%;
		height: 70%;
		transform: translateX(-50%);
		background: var(--wp--preset--color--red);
		clip-path: polygon(0 0, 100% 0, 50% 100%);
		filter: drop-shadow(0 0 6px var(--wp--preset--color--red));
	}

	html:not([data-calm="1"]) .tde-print .logo-play {
		animation: tde-play-pulse 0.7s var(--tde-ease) calc(var(--tde-print-dur) + 0.1s) both;
	}

	html:not([data-calm="1"]) .tde-print__eyes {
		animation: tde-fade-in 0.35s ease calc(var(--tde-print-dur) + 0.5s) both;
	}

	html:not([data-calm="1"]) .tde-print__busy {
		animation: tde-busy var(--tde-print-dur) linear both;
	}

	html:not([data-calm="1"]) .tde-print__count {
		counter-reset: tde-layer var(--tde-layer);
		animation: tde-count var(--tde-print-dur) steps(18, jump-end) both;
	}

	html:not([data-calm="1"]) .tde-print__count::after {
		content: counter(tde-layer);
	}

	html:not([data-calm="1"]) .tde-print__done {
		animation: tde-fade-in 0.4s ease calc(var(--tde-print-dur) + 0.4s) both;
	}
}

@keyframes tde-print-build {

	from {
		clip-path: inset(100% 0 0 0);
	}

	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes tde-nozzle-y {

	from {
		top: 100%;
	}

	to {
		top: -5%;
	}
}

@keyframes tde-nozzle-x {

	from {
		left: 4%;
	}

	to {
		left: 76%;
	}
}

@keyframes tde-count {

	from {
		--tde-layer: 0;
	}

	to {
		--tde-layer: 18;
	}
}

@keyframes tde-play-pulse {

	0% {
		transform: scale(1);
	}

	45% {
		transform: scale(1.14) translateX(4%);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes tde-fade-in {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes tde-fade-out {

	from {
		opacity: 1;
	}

	to {
		opacity: 0;
		visibility: hidden;
	}
}

@keyframes tde-busy {

	0%,
	99% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

/* ------------------------------------------------------------------ 9. rotating headline */

.tde-rotator {
	font-size: clamp(2.25rem, 4.7vw, 4.25rem);
}

.tde-rotator__heading {
	margin: 0;
	font-size: inherit;
}

.tde-rotator__before {
	display: block;
}

.tde-rotator__words {
	display: inline-grid;
	max-width: 100%;
	vertical-align: top;
}

.tde-rotator__word {
	grid-area: 1 / 1;
	color: var(--wp--preset--color--ink);
	opacity: 0;
	transform: translateY(0.4em);
	transition: opacity 0.45s var(--tde-ease), transform 0.45s var(--tde-ease);
}

.tde-rotator__text {
	color: var(--wp--preset--color--red);
	text-decoration: underline;
	text-decoration-thickness: 0.07em;
	text-underline-offset: 0.1em;
}

.tde-rotator__word.is-active {
	opacity: 1;
	transform: none;
}

.tde-rotator__word.is-leaving {
	opacity: 0;
	transform: translateY(-0.4em);
}

/* ------------------------------------------------------------------ 10. blueprint annotations */

:root[data-theme="blueprint"] main :is(h1, h2, h3)::after {
	margin-left: 0.6em;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	vertical-align: super;
	color: var(--wp--preset--color--muted);
}

:root[data-theme="blueprint"] main h1::after {
	content: "h1";
}

:root[data-theme="blueprint"] main h2::after {
	content: "h2";
}

:root[data-theme="blueprint"] main h3::after {
	content: "h3";
}

:root[data-theme="blueprint"] main :is(.is-style-card, .is-style-card-lift, .wp-block-image img) {
	outline: 1px dashed var(--wp--preset--color--line);
	outline-offset: 6px;
}

:root[data-theme="blueprint"] .wp-block-image img,
:root[data-theme="blueprint"] .wc-block-components-product-image img {
	filter: grayscale(1) sepia(0.35) hue-rotate(175deg) saturate(2.2) brightness(0.95) contrast(1.05);
}

:root[data-theme="blueprint"] .tde-bp-only {
	display: block;
}

.tde-bp-only {
	display: none;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

/* ------------------------------------------------------------------ 11. forms (site-wide) */

:where(input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], select, textarea):not([class*="wc-block"]) {
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 0.65rem 0.8rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font: inherit;
}

.wp-block-search__inside-wrapper {
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--line) !important;
	padding: 4px;
	background: var(--wp--preset--color--surface);
}

.wp-block-search__input {
	border: 0 !important;
	background: transparent !important;
	padding-left: 1rem !important;
}

/* ------------------------------------------------------------------ 12. posts */

.tde-post-card {
	height: 100%;
}

.tde-post-card .wp-block-post-featured-image img {
	border-radius: 12px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.wp-block-post-content > .wp-block-heading {
	margin-top: 2.2em;
}

.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
}

/* ------------------------------------------------------------------ 13. WooCommerce */

.wc-block-product {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--tde-radius);
	transition: transform 0.35s var(--tde-ease), box-shadow 0.35s var(--tde-ease), border-color 0.35s;
}

.wc-block-product:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lift);
	border-color: var(--wp--preset--color--navy);
}

.wc-block-product .wc-block-components-product-image img {
	border-radius: 12px;
	aspect-ratio: 1;
	object-fit: cover;
}

.wc-block-product .wp-block-post-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
}

.wc-block-product .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.wc-block-product .wp-block-woocommerce-product-button,
.wc-block-product .wc-block-components-product-button {
	margin-top: auto;
}

/* Phones: one product per row, so the button text and the price keep their room. */
@media (max-width: 599px) {
	ul.wc-block-product-template.wc-block-product-template__responsive {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	font-weight: 700;
}

.woocommerce-price-suffix {
	font-weight: 400;
	font-size: 0.8em;
	color: var(--wp--preset--color--muted);
}

.wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image img,
.wp-block-woocommerce-product-image-gallery .flex-control-thumbs img {
	border-radius: var(--tde-radius);
}

.wp-block-woocommerce-product-details .woocommerce-Tabs-panel {
	max-width: 46rem;
}

.tde-demo .wc-block-components-product-image,
.tde-demo-product .wp-block-woocommerce-product-image-gallery {
	position: relative;
}

.tde-demo .wc-block-components-product-image::after,
.tde-demo-product .wp-block-woocommerce-product-image-gallery::after {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.25em 0.7em;
	border-radius: 6px;
	background: var(--wp--preset--color--sticker);
	color: #0b1530;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 0.9rem;
	transform: rotate(-4deg);
	box-shadow: 2px 2px 0 #0b1530;
	z-index: 2;
}

:root:lang(nl) .tde-demo .wc-block-components-product-image::after,
:root:lang(nl) .tde-demo-product .wp-block-woocommerce-product-image-gallery::after {
	content: "Voorbeeld";
}

:root:lang(en) .tde-demo .wc-block-components-product-image::after,
:root:lang(en) .tde-demo-product .wp-block-woocommerce-product-image-gallery::after {
	content: "Example";
}

:root:lang(pl) .tde-demo .wc-block-components-product-image::after,
:root:lang(pl) .tde-demo-product .wp-block-woocommerce-product-image-gallery::after {
	content: "Przykład";
}

:root:lang(ru) .tde-demo .wc-block-components-product-image::after,
:root:lang(ru) .tde-demo-product .wp-block-woocommerce-product-image-gallery::after {
	content: "Пример";
}

.tde-demo-notice {
	padding: 0.9rem 1rem;
	border-radius: 10px;
	background: var(--wp--preset--color--fog);
	border-left: 4px solid var(--wp--preset--color--sticker);
}

/* Legal pages in another language than Dutch: "the Dutch text is binding". */
.tde-legal__note {
	padding: 0.9rem 1rem;
	border-radius: 10px;
	background: var(--wp--preset--color--fog);
	border-left: 4px solid var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-woocommerce-breadcrumbs,
.woocommerce-breadcrumb {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}

.tde-crumb-sep {
	color: var(--wp--preset--color--red);
}

.wc-block-components-notice-banner {
	border-radius: 12px !important;
}

.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: 10px !important;
}

.wc-block-components-button:not(.is-link) {
	border-radius: 999px !important;
}

.wc-block-cart,
.wc-block-checkout {
	--tde-card-bg: var(--wp--preset--color--surface);
}

.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-cart__totals-title {
	font-family: var(--wp--preset--font-family--display);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
	font-family: var(--wp--preset--font-family--display);
}

.wc-block-components-drawer,
:where(.wp-block-woocommerce-mini-cart-contents) {
	background: var(--wp--preset--color--paper) !important;
	color: var(--wp--preset--color--ink) !important;
}

/*
 * Form fields follow the look (light, dark, blueprint): WooCommerce paints them white
 * with dark text, which would hide the typed text in dark mode.
 */
.wc-block-components-form .wc-block-components-text-input input:is([type="email"], [type="number"], [type="password"], [type="tel"], [type="text"], [type="url"]),
.wc-block-components-text-input input:is([type="email"], [type="number"], [type="password"], [type="tel"], [type="text"], [type="url"]),
.wc-block-components-textarea,
.wc-block-gateway-container .wc-block-gateway-input,
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-quantity-selector,
.wc-block-add-to-cart-form .wc-block-components-quantity-selector,
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
.wc-block-components-radio-control .wc-block-components-radio-control__input,
.wc-block-components-notice-banner {
	background-color: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--ink) !important;
}

.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-textarea::placeholder {
	color: var(--wp--preset--color--muted) !important;
}

.wc-blocks-components-select .wc-blocks-components-select__expand,
.wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--wp--preset--color--ink) !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	background: var(--wp--preset--color--ink) !important;
}

.wc-block-components-notice-banner > svg {
	flex: none;
}

/* Quantity badge on the order summary: WooCommerce paints it in currentColor with white text. */
.wc-block-components-order-summary-item__quantity {
	background: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--paper) !important;
}

.wc-block-components-order-summary-item__quantity span {
	color: var(--wp--preset--color--paper) !important;
}

:is(.wc-block-components-validation-error, .wc-block-components-form .wc-block-components-text-input.has-error label) {
	color: var(--wp--preset--color--red-ink) !important;
}

.wp-block-woocommerce-empty-cart-block .tde-evo-block {
	margin-inline: auto;
}

/* ------------------------------------------------------------------ 14. calm mode + reduced motion */

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.tde-js .tde-reveal {
		opacity: 1;
		transform: none;
	}
}

html[data-calm="1"] *,
html[data-calm="1"] *::before,
html[data-calm="1"] *::after {
	animation-duration: 0.001ms !important;
	animation-delay: 0s !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
}

html[data-calm="1"] .tde-reveal {
	opacity: 1 !important;
	transform: none !important;
}

/* ------------------------------------------------------------------ 15. print */

@media print {

	header.wp-block-template-part,
	footer.wp-block-template-part,
	.tde-look,
	.tde-consent,
	.tde-consent-dialog,
	.wp-block-navigation {
		display: none !important;
	}

	body {
		background: #fff !important;
		color: #000 !important;
	}

	main a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
	}
}

/* ------------------------------------------------------------------ 16. small helpers */

@media (max-width: 781px) {

	.tde-hide-mobile {
		display: none !important;
	}
}

.tde-button-play {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	text-decoration: none;
}

.tde-button-play::before {
	content: "";
	width: 0.7em;
	height: 0.8em;
	background: currentcolor;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transition: transform 0.25s var(--tde-ease);
}

.tde-button-play:hover::before {
	transform: translateX(3px) scale(1.1);
}

.tde-cta .tde-button-play {
	background: var(--wp--preset--color--red);
	color: #fff;
}

.tde-cta .tde-button-play:hover {
	background: #fff;
	color: #0b1530;
}

.tde-404 .tde-search,
.tde-404 .wp-block-search {
	max-width: 520px;
	margin-inline: auto;
}

.tde-legal__meta {
	gap: 0.4em;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tde-legal__meta p,
.tde-legal__meta span {
	margin: 0;
}

.tde-legal h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

.tde-legal h3 {
	font-size: var(--wp--preset--font-size--large);
}

/* A closed mini-cart drawer is off screen but still reachable with Tab: hide it properly. */
.wc-block-components-drawer__screen-overlay--is-hidden .wc-block-components-drawer {
	visibility: hidden;
}

/* WooCommerce's show-password toggle: a target of at least 24 px. */
.woocommerce .show-password-input {
	min-width: 24px;
	min-height: 24px;
}

/* My account: title and content share WooCommerce's 1000px column; the login form stays compact. */
.woocommerce-account main > .wp-block-post-content {
	max-width: 1000px;
}

.woocommerce-account .woocommerce-form-login {
	max-width: 30rem;
	border-radius: var(--tde-radius);
}

.woocommerce-account main .woocommerce h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

.tde-product__summary > * + * {
	margin-top: 1rem;
}

.tde-product__cats a {
	text-decoration: none;
}

@media (max-width: 781px) {

	.tde-print {
		width: min(72%, 300px);
	}
}

/* Tablets and small laptops: the full menu does not fit next to the logo and tools (in every
   language), use the overlay up to 1199px. */
@media (min-width: 600px) and (max-width: 1199px) {

	.tde-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.tde-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

/* Open overlay menu: left aligned, like a page of contents. */
.tde-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}

.tde-header .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item) {
	align-items: flex-start !important;
}

/* Buttons on dark bands: a white pill with ink text (clear contrast), outline stays light. */
.is-style-ink .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.tde-cta .tde-button-play {
	background: #fff;
	color: #0b1530;
}

.is-style-ink .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.is-style-ink .wp-block-button:not(.is-style-outline) > .wp-block-button__link:focus-visible,
.tde-cta .tde-button-play:hover,
.tde-cta .tde-button-play:focus-visible {
	background: #ffc93c;
	color: #0b1530;
}

.is-style-ink .wp-block-button.is-style-play > .wp-block-button__link::before {
	background: #e72823;
}

/* App screenshots in a laptop. */
.wp-block-image.tde-laptop {
	position: relative;
	padding-bottom: 16px;
	margin-inline: 4%;
}

.wp-block-image.tde-laptop img {
	display: block;
	width: 100%;
	border: 10px solid #1b2337;
	border-bottom-width: 16px;
	border-radius: 16px 16px 4px 4px !important;
	box-shadow: var(--wp--preset--shadow--lift);
}

.wp-block-image.tde-laptop::after {
	content: "";
	position: absolute;
	left: -5%;
	right: -5%;
	bottom: 0;
	height: 16px;
	border-radius: 2px 2px 14px 14px;
	background: linear-gradient(#d7dce8, #a3adc2);
	box-shadow: 0 10px 20px rgb(11 21 48 / 0.18);
}

.wp-block-image.tde-laptop::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 16%;
	height: 7px;
	transform: translateX(-50%);
	border-radius: 0 0 8px 8px;
	background: rgb(11 21 48 / 0.18);
	z-index: 1;
}

.wp-block-image.is-style-polaroid {
	max-width: 400px;
	margin-inline: auto;
}

.tde-hero__note {
	color: var(--wp--preset--color--muted);
}

.tde-hero__visual .tde-evo-block {
	text-align: center;
}
