/*
 * CEOVANTA design system.
 *
 * Exactly four brand colours. Every other value below is one of these four at
 * reduced opacity (borders, surfaces, overlays) — never a fifth hue.
 *
 * Contrast notes (WCAG 2.2, measured):
 *   #000 on #FFF ............ 21.0 : 1
 *   #FFF on #1877F2 .......... 4.23 : 1  -> only for large text (>= 19px bold) and UI parts
 *   #1877F2 on #000 .......... 4.96 : 1  -> OK for normal text in dark mode
 *   #EA4335 on #000 .......... 5.35 : 1
 *   #FFF on #EA4335 .......... 3.92 : 1  -> large text / UI parts only
 * Body links therefore use the foreground colour with a blue underline.
 */

:root {
	--cv-white: #ffffff;
	--cv-black: #000000;
	--cv-blue: #1877f2;
	--cv-red: #ea4335;

	--cv-bg: var(--cv-white);
	--cv-fg: var(--cv-black);
	--cv-muted: rgba(0, 0, 0, 0.66);
	--cv-line: rgba(0, 0, 0, 0.12);
	--cv-line-strong: rgba(0, 0, 0, 0.24);
	--cv-surface: rgba(0, 0, 0, 0.035);
	--cv-surface-2: rgba(0, 0, 0, 0.06);
	--cv-blue-soft: rgba(24, 119, 242, 0.1);
	--cv-red-soft: rgba(234, 67, 53, 0.1);
	--cv-header-bg: rgba(255, 255, 255, 0.86);
	--cv-overlay: rgba(0, 0, 0, 0.45);
	--cv-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.07);

	--cv-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--cv-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--cv-max: 1200px;
	--cv-narrow: 760px;
	--cv-gutter: clamp(16px, 4vw, 32px);
	--cv-radius: 20px;
	--cv-radius-sm: 12px;
	--cv-header-h: 64px;
	--cv-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	color-scheme: light;
}

/* Dark mode: same four colours, inverted roles. */
:root[data-theme="dark"] {
	--cv-bg: var(--cv-black);
	--cv-fg: var(--cv-white);
	--cv-muted: rgba(255, 255, 255, 0.72);
	--cv-line: rgba(255, 255, 255, 0.16);
	--cv-line-strong: rgba(255, 255, 255, 0.3);
	--cv-surface: rgba(255, 255, 255, 0.05);
	--cv-surface-2: rgba(255, 255, 255, 0.09);
	--cv-blue-soft: rgba(24, 119, 242, 0.2);
	--cv-red-soft: rgba(234, 67, 53, 0.2);
	--cv-header-bg: rgba(0, 0, 0, 0.82);
	--cv-overlay: rgba(0, 0, 0, 0.7);
	--cv-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--cv-bg: var(--cv-black);
		--cv-fg: var(--cv-white);
		--cv-muted: rgba(255, 255, 255, 0.72);
		--cv-line: rgba(255, 255, 255, 0.16);
		--cv-line-strong: rgba(255, 255, 255, 0.3);
		--cv-surface: rgba(255, 255, 255, 0.05);
		--cv-surface-2: rgba(255, 255, 255, 0.09);
		--cv-blue-soft: rgba(24, 119, 242, 0.2);
		--cv-red-soft: rgba(234, 67, 53, 0.2);
		--cv-header-bg: rgba(0, 0, 0, 0.82);
		--cv-overlay: rgba(0, 0, 0, 0.7);
		--cv-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
		color-scheme: dark;
	}
}

/* ---------- Reset & base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--cv-header-h) + 16px);
}

html.cv-locked {
	overflow: hidden;
}

body {
	margin: 0;
	background: var(--cv-bg);
	color: var(--cv-fg);
	font-family: var(--cv-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

svg {
	flex-shrink: 0;
}

a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-color: var(--cv-blue);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
	text-decoration-color: currentColor;
}

:focus-visible {
	outline: 3px solid var(--cv-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

h1,
h2,
h3,
h4 {
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	font-weight: 700;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
	letter-spacing: -0.03em;
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
}

h3 {
	font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
}

h4 {
	font-size: 1.0625rem;
}

p,
ul,
ol,
dl,
table,
figure,
blockquote,
pre {
	margin: 0 0 1.1em;
}

hr {
	border: 0;
	border-top: 1px solid var(--cv-line);
	margin: 2.5rem 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

th,
td {
	text-align: start;
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid var(--cv-line);
	vertical-align: top;
}

code,
kbd,
pre {
	font-family: var(--cv-font-mono);
	font-size: 0.9em;
}

pre {
	background: var(--cv-surface-2);
	padding: 1rem;
	border-radius: var(--cv-radius-sm);
	overflow-x: auto;
}

blockquote {
	border-inline-start: 3px solid var(--cv-blue);
	padding-inline-start: 1.25rem;
	margin-inline: 0;
	color: var(--cv-muted);
}

input,
select,
textarea,
button {
	font: inherit;
	color: inherit;
}

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

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--cv-bg);
	color: var(--cv-fg);
	border: 2px solid var(--cv-blue);
	border-radius: var(--cv-radius-sm);
	font-weight: 700;
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Layout ---------- */

.cv-container {
	width: 100%;
	max-width: calc(var(--cv-max) + 2 * var(--cv-gutter));
	margin-inline: auto;
	padding-inline: max(var(--cv-gutter), env(safe-area-inset-left)) max(var(--cv-gutter), env(safe-area-inset-right));
}

.cv-container--narrow {
	max-width: calc(var(--cv-narrow) + 2 * var(--cv-gutter));
}

.cv-main {
	display: block;
	min-height: 60vh;
	padding-bottom: clamp(48px, 8vw, 96px);
}

.cv-section {
	padding-block: clamp(40px, 7vw, 88px);
}

.cv-section--tint {
	background: var(--cv-surface);
}

.cv-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: clamp(20px, 3vw, 32px);
}

.cv-section__head h2 {
	margin: 0;
}

.cv-section__intro {
	color: var(--cv-muted);
	max-width: 62ch;
	margin: 0.5rem 0 0;
}

.cv-eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cv-muted);
	margin-bottom: 0.75rem;
}

.cv-grid {
	display: grid;
	gap: clamp(16px, 2.4vw, 28px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.cv-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.cv-stack > * + * {
	margin-top: 1rem;
}

/* ---------- Buttons ---------- */

.cv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.6em 1.35em;
	border-radius: 999px;
	border: 2px solid transparent;
	font-size: 1.1875rem; /* 19px bold = WCAG "large text" so white-on-blue passes AA */
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s var(--cv-ease), background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-tap-highlight-color: transparent;
	white-space: nowrap;
}

.cv-btn:active {
	transform: scale(0.98);
}

.cv-btn--primary {
	background: var(--cv-blue);
	color: var(--cv-white);
}

.cv-btn--primary:hover {
	box-shadow: 0 0 0 4px var(--cv-blue-soft);
}

.cv-btn--secondary {
	background: transparent;
	color: var(--cv-fg);
	border-color: var(--cv-fg);
}

.cv-btn--secondary:hover {
	background: var(--cv-surface-2);
}

.cv-btn--block {
	display: flex;
	width: 100%;
	white-space: normal;
	text-align: center;
}

.cv-btn[disabled],
.cv-btn[aria-disabled="true"],
.cv-btn--disabled {
	background: transparent;
	color: var(--cv-muted);
	border: 2px dashed var(--cv-line-strong);
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.cv-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-weight: 600;
}

.cv-link-arrow svg {
	width: 1em;
	height: 1em;
	transition: transform 0.15s var(--cv-ease);
}

.cv-link-arrow:hover svg {
	transform: translateX(3px);
}

[dir="rtl"] .cv-link-arrow svg {
	transform: scaleX(-1);
}

/* ---------- Badges ---------- */

.cv-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.2em 0.65em;
	border-radius: 999px;
	border: 1.5px solid var(--cv-line-strong);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.5;
	background: var(--cv-bg);
	color: var(--cv-fg);
}

.cv-badge::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: currentColor;
}

.cv-badge--demo {
	border-color: var(--cv-red);
}

.cv-badge--demo::before {
	background: var(--cv-red);
}

.cv-badge--free,
.cv-badge--info {
	border-color: var(--cv-blue);
}

.cv-badge--free::before,
.cv-badge--info::before {
	background: var(--cv-blue);
}

/* ---------- Header ---------- */

.cv-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--cv-header-bg);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-bottom: 1px solid var(--cv-line);
	padding-top: env(safe-area-inset-top);
}

.admin-bar .cv-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .cv-header {
		top: 0;
	}
}

.cv-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--cv-header-h);
}

.cv-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.125rem;
	letter-spacing: 0.14em;
	text-decoration: none;
	color: var(--cv-fg);
	margin-inline-end: auto;
	min-height: 44px;
}

.cv-logo__mark {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	background: var(--cv-blue);
	box-shadow: 6px 6px 0 -2px var(--cv-red);
}

.cv-logo img {
	max-height: 40px;
	width: auto;
}

.cv-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.cv-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--cv-fg);
	cursor: pointer;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 600;
	-webkit-tap-highlight-color: transparent;
}

.cv-icon-btn:hover {
	background: var(--cv-surface-2);
}

.cv-icon-btn svg {
	width: 22px;
	height: 22px;
}

.cv-theme-toggle .cv-icon-sun {
	display: none;
}

:root[data-theme="dark"] .cv-theme-toggle .cv-icon-sun {
	display: block;
}

:root[data-theme="dark"] .cv-theme-toggle .cv-icon-moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .cv-theme-toggle .cv-icon-sun {
		display: block;
	}

	:root:not([data-theme="light"]) .cv-theme-toggle .cv-icon-moon {
		display: none;
	}
}

/* Desktop navigation */

.cv-nav {
	display: none;
}

.cv-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cv-nav > ul {
	display: flex;
	align-items: center;
	gap: 2px;
}

.cv-nav li {
	position: relative;
}

.cv-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--cv-fg);
}

.cv-nav a:hover {
	background: var(--cv-surface-2);
}

.cv-nav .current-menu-item > a,
.cv-nav .current-menu-ancestor > a,
.cv-nav .current_page_item > a {
	box-shadow: inset 0 -3px 0 var(--cv-blue);
	border-radius: 0;
}

.cv-nav .menu-item-has-children {
	display: flex;
	align-items: center;
}

.cv-nav .menu-item-has-children > a {
	padding-inline-end: 4px;
}

.cv-subnav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 44px;
	border: 0;
	background: transparent;
	border-radius: 999px;
	cursor: pointer;
	color: var(--cv-fg);
}

.cv-subnav-toggle svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s var(--cv-ease);
}

.cv-subnav-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.cv-nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 260px;
	padding: 8px;
	background: var(--cv-bg);
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius-sm);
	box-shadow: var(--cv-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s var(--cv-ease), visibility 0.15s;
	z-index: 60;
}

.cv-nav .sub-menu .sub-menu {
	top: 0;
	inset-inline-start: 100%;
}

.cv-nav .sub-menu a {
	display: flex;
	width: 100%;
	border-radius: 8px;
	font-weight: 500;
}

.cv-nav li:hover > .sub-menu,
.cv-nav li:focus-within > .sub-menu,
.cv-nav li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.cv-nav .sub-menu .menu-item-has-children > a {
	flex: 1;
}

/* Language switcher (header) */

.cv-lang {
	position: relative;
}

.cv-lang__panel {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-end: 0;
	min-width: 220px;
	padding: 8px;
	margin: 0;
	list-style: none;
	background: var(--cv-bg);
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius-sm);
	box-shadow: var(--cv-shadow);
	z-index: 70;
}

.cv-lang__panel[hidden] {
	display: none;
}

.cv-lang__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	padding: 6px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--cv-fg);
}

.cv-lang__link:hover {
	background: var(--cv-surface-2);
}

.cv-lang__link[aria-current="true"] {
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--cv-blue);
}

.cv-lang__note {
	font-size: 0.75rem;
	color: var(--cv-muted);
}

.cv-lang__code {
	text-transform: uppercase;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Search panel */

.cv-search-panel {
	border-top: 1px solid var(--cv-line);
	padding-block: 16px;
	background: var(--cv-bg);
}

.cv-search-panel[hidden] {
	display: none;
}

.cv-search-form {
	display: flex;
	gap: 8px;
	width: 100%;
}

.cv-search-form__field {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 0 20px;
	border: 2px solid var(--cv-line-strong);
	border-radius: 999px;
	background: var(--cv-bg);
	font-size: 1rem; /* >= 16px prevents iOS zoom on focus */
}

.cv-search-form__field:focus {
	border-color: var(--cv-blue);
	outline: none;
	box-shadow: 0 0 0 4px var(--cv-blue-soft);
}

.cv-search-form .cv-btn {
	min-height: 52px;
}

@media (max-width: 479px) {
	.cv-search-form .cv-btn__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
	}

	.cv-search-form .cv-btn {
		padding-inline: 16px;
	}
}

/* Mobile / tablet drawer */

.cv-drawer-toggle .cv-drawer-toggle__label {
	font-size: 0.9375rem;
}

.cv-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	pointer-events: none;
}

.cv-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.cv-drawer__overlay {
	position: absolute;
	inset: 0;
	background: var(--cv-overlay);
	opacity: 0;
	transition: opacity 0.25s ease;
	border: 0;
	padding: 0;
	width: 100%;
	cursor: pointer;
}

.cv-drawer.is-open .cv-drawer__overlay {
	opacity: 1;
}

.cv-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-end: 0;
	width: min(88vw, 420px);
	height: 100%;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--cv-bg);
	box-shadow: var(--cv-shadow);
	transform: translateX(100%);
	transition: transform 0.28s var(--cv-ease);
	padding-top: env(safe-area-inset-top);
	padding-bottom: env(safe-area-inset-bottom);
	padding-right: env(safe-area-inset-right);
}

[dir="rtl"] .cv-drawer__panel {
	transform: translateX(-100%);
}

.cv-drawer.is-open .cv-drawer__panel {
	transform: none;
}

.cv-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: var(--cv-header-h);
	padding: 0 12px 0 20px;
	border-bottom: 1px solid var(--cv-line);
	flex-shrink: 0;
}

.cv-drawer__title {
	font-weight: 800;
	letter-spacing: 0.14em;
	font-size: 1rem;
}

.cv-drawer__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 16px 20px 24px;
}

.cv-drawer__section + .cv-drawer__section {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--cv-line);
}

.cv-drawer__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cv-muted);
	margin-bottom: 8px;
}

.cv-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cv-mobile-nav li {
	border-bottom: 1px solid var(--cv-line);
}

.cv-mobile-nav .sub-menu {
	padding-inline-start: 16px;
	border-top: 1px solid var(--cv-line);
}

.cv-mobile-nav .sub-menu li:last-child {
	border-bottom: 0;
}

.cv-mobile-nav .sub-menu[hidden] {
	display: none;
}

.cv-mobile-nav .menu-item-has-children {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
}

.cv-mobile-nav .menu-item-has-children > .sub-menu {
	grid-column: 1 / -1;
}

.cv-mobile-nav a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 6px 0;
	text-decoration: none;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--cv-fg);
}

.cv-mobile-nav .sub-menu a {
	font-weight: 500;
	min-height: 48px;
}

.cv-mobile-nav .current-menu-item > a {
	box-shadow: inset 3px 0 0 var(--cv-blue);
	padding-inline-start: 10px;
}

.cv-mobile-nav .cv-subnav-toggle {
	width: 48px;
	height: 48px;
}

.cv-drawer .cv-lang-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 1024px) {
	.cv-nav {
		display: block;
	}

	.cv-drawer-toggle,
	.cv-drawer {
		display: none;
	}

	.cv-logo {
		margin-inline-end: 24px;
	}

	.cv-header__actions {
		margin-inline-start: auto;
	}
}

@media (max-width: 1023px) {
	.cv-header__lang-desktop {
		display: none;
	}
}

@media (min-width: 600px) and (max-width: 1023px) {
	.cv-header__lang-desktop {
		display: block;
	}
}

@media (max-width: 380px) {
	.cv-drawer-toggle__label {
		display: none;
	}
}

/* ---------- Breadcrumbs ---------- */

.cv-breadcrumbs {
	padding-block: 16px 0;
	font-size: 0.875rem;
	color: var(--cv-muted);
}

.cv-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cv-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cv-breadcrumbs li + li::before {
	content: "/";
	color: var(--cv-line-strong);
}

.cv-breadcrumbs a {
	color: var(--cv-muted);
	text-decoration-color: transparent;
}

.cv-breadcrumbs a:hover {
	color: var(--cv-fg);
	text-decoration-color: var(--cv-blue);
}

.cv-breadcrumbs [aria-current="page"] {
	color: var(--cv-fg);
	font-weight: 600;
}

/* ---------- Page header ---------- */

.cv-page-head {
	padding-block: clamp(24px, 5vw, 56px) clamp(16px, 3vw, 32px);
}

.cv-page-head h1 {
	margin-bottom: 0.25em;
}

.cv-page-head__lead {
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
	color: var(--cv-muted);
	max-width: 62ch;
	margin: 0;
}

/* ---------- Hero ---------- */

.cv-hero {
	padding-block: clamp(48px, 9vw, 120px) clamp(40px, 7vw, 88px);
	text-align: center;
}

.cv-hero h1 {
	font-size: clamp(2.25rem, 1.4rem + 4.4vw, 4.5rem);
	max-width: 16ch;
	margin-inline: auto;
}

.cv-hero__lead {
	font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
	color: var(--cv-muted);
	max-width: 46ch;
	margin: 0 auto 2rem;
	text-wrap: pretty;
}

.cv-hero__search {
	max-width: 620px;
	margin: 0 auto 1.5rem;
}

.cv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.cv-hero__accent {
	color: var(--cv-blue);
}

/* ---------- Cards ---------- */

.cv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--cv-bg);
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s var(--cv-ease), border-color 0.2s ease;
	height: 100%;
}

.cv-card:hover {
	box-shadow: var(--cv-shadow);
	border-color: var(--cv-line-strong);
}

.cv-card:focus-within {
	border-color: var(--cv-blue);
}

.cv-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--cv-surface-2);
	overflow: hidden;
}

.cv-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cv-card__badges {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cv-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
	flex: 1;
}

.cv-card__meta {
	font-size: 0.8125rem;
	color: var(--cv-muted);
	font-weight: 600;
	letter-spacing: 0.02em;
}

.cv-card__title {
	font-size: 1.1875rem;
	margin: 0;
	letter-spacing: -0.01em;
}

.cv-card__title a {
	text-decoration: none;
}

.cv-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.cv-card__excerpt {
	color: var(--cv-muted);
	font-size: 0.9375rem;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cv-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
	font-weight: 700;
}

.cv-price {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cv-price--free {
	color: var(--cv-fg);
}

/* Generated cover for products without an image. */

.cv-cover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
	color: var(--cv-white);
	background: var(--cv-blue);
}

.cv-cover__format {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

.cv-cover__label {
	font-size: 1.1875rem;
	font-weight: 700;
	margin-top: 6px;
	opacity: 1;
}

.cv-cover__grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.cv-cover--black {
	background: var(--cv-black);
}

.cv-cover--white {
	background: var(--cv-white);
	color: var(--cv-black);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.cv-cover--white .cv-cover__grid {
	background-image: linear-gradient(rgba(24, 119, 242, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 119, 242, 0.18) 1px, transparent 1px);
}

.cv-cover--red {
	background: var(--cv-red);
}

/* Category tiles */

.cv-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border-radius: var(--cv-radius);
	border: 1px solid var(--cv-line);
	background: var(--cv-bg);
	text-decoration: none;
	min-height: 180px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cv-tile:hover {
	border-color: var(--cv-blue);
	box-shadow: var(--cv-shadow);
}

.cv-tile__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--cv-blue-soft);
	color: var(--cv-fg);
}

.cv-tile__icon svg {
	width: 22px;
	height: 22px;
}

.cv-tile__title {
	font-size: 1.1875rem;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.01em;
}

.cv-tile__desc {
	color: var(--cv-muted);
	font-size: 0.9375rem;
	margin: 0;
}

.cv-tile__count {
	margin-top: auto;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--cv-muted);
}

/* Feature list */

.cv-features {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.cv-feature {
	padding: 24px;
	border-radius: var(--cv-radius);
	background: var(--cv-surface);
}

.cv-feature h3 {
	font-size: 1.125rem;
	margin-bottom: 0.4em;
}

.cv-feature p {
	color: var(--cv-muted);
	margin: 0;
	font-size: 0.9375rem;
}

.cv-feature__icon {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--cv-bg);
	border: 1px solid var(--cv-line);
	margin-bottom: 14px;
}

.cv-feature__icon svg {
	width: 20px;
	height: 20px;
}

/* Spotlight (Chatbot Lite teaser etc.) */

.cv-spotlight {
	display: grid;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding: clamp(28px, 5vw, 64px);
	border-radius: calc(var(--cv-radius) + 8px);
	background: var(--cv-black);
	color: var(--cv-white);
}

.cv-spotlight .cv-eyebrow,
.cv-spotlight p {
	color: rgba(255, 255, 255, 0.78);
}

.cv-spotlight .cv-btn--secondary {
	color: var(--cv-white);
	border-color: var(--cv-white);
}

.cv-spotlight .cv-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.1);
}

.cv-spotlight a:not(.cv-btn) {
	color: var(--cv-white);
}

:root[data-theme="dark"] .cv-spotlight {
	border: 1px solid var(--cv-line-strong);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .cv-spotlight {
		border: 1px solid var(--cv-line-strong);
	}
}

@media (min-width: 900px) {
	.cv-spotlight {
		grid-template-columns: 1.2fr 1fr;
	}
}

.cv-chat-preview {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border-radius: var(--cv-radius);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.9375rem;
}

.cv-chat-preview__msg {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.1);
}

.cv-chat-preview__msg--user {
	align-self: flex-end;
	background: var(--cv-blue);
	color: var(--cv-black); /* black on #1877F2 = 4.96:1; white would be 4.23:1 at this size */
	font-weight: 600;
}

.cv-chat-preview__source {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.72);
}

/* Notices */

.cv-notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 18px;
	border-radius: var(--cv-radius-sm);
	border: 1px solid var(--cv-line);
	background: var(--cv-surface);
	font-size: 0.9375rem;
	margin-bottom: 1.5rem;
}

.cv-notice svg {
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.cv-notice--info {
	border-color: var(--cv-blue);
	background: var(--cv-blue-soft);
}

.cv-notice--warning {
	border-color: var(--cv-red);
	background: var(--cv-red-soft);
}

.cv-notice p:last-child {
	margin-bottom: 0;
}

/* ---------- Content (entry) ---------- */

.cv-entry {
	font-size: 1.125rem;
	line-height: 1.7;
}

.cv-entry > * {
	max-width: var(--cv-narrow);
}

.cv-entry h2 {
	margin-top: 2em;
}

.cv-entry h3 {
	margin-top: 1.6em;
}

.cv-entry img {
	border-radius: var(--cv-radius-sm);
}

.cv-entry ul,
.cv-entry ol {
	padding-inline-start: 1.4em;
}

.cv-entry li + li {
	margin-top: 0.35em;
}

.cv-entry .wp-block-table,
.cv-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.cv-entry figcaption {
	font-size: 0.875rem;
	color: var(--cv-muted);
	margin-top: 0.5em;
}

.cv-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 0.9375rem;
	color: var(--cv-muted);
	margin-bottom: 1.5rem;
}

.cv-article {
	display: grid;
	gap: clamp(24px, 4vw, 48px);
}

@media (min-width: 1100px) {
	.cv-article--toc {
		grid-template-columns: minmax(0, 1fr) 260px;
		align-items: start;
	}
}

.cv-toc {
	padding: 20px;
	border-radius: var(--cv-radius-sm);
	border: 1px solid var(--cv-line);
	font-size: 0.9375rem;
}

@media (min-width: 1100px) {
	.cv-toc {
		position: sticky;
		top: calc(var(--cv-header-h) + 24px);
		order: 2;
	}
}

.cv-toc ol {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cv-toc li {
	margin: 0;
}

.cv-toc a {
	display: block;
	padding: 6px 0;
	text-decoration-color: transparent;
	color: var(--cv-muted);
}

.cv-toc a:hover {
	color: var(--cv-fg);
	text-decoration-color: var(--cv-blue);
}

.cv-toc .cv-toc__sub {
	padding-inline-start: 14px;
}

.cv-toc__title {
	font-weight: 700;
	margin-bottom: 8px;
	display: block;
}

/* FAQ accordion */

.cv-faq {
	border-top: 1px solid var(--cv-line);
	max-width: var(--cv-narrow);
}

.cv-faq details {
	border-bottom: 1px solid var(--cv-line);
}

.cv-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.35;
	min-height: 44px;
}

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

.cv-faq summary::after {
	content: "+";
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid var(--cv-line-strong);
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1;
}

.cv-faq details[open] summary::after {
	content: "–";
	border-color: var(--cv-blue);
}

.cv-faq__answer {
	padding: 0 0 20px;
	color: var(--cv-fg);
}

.cv-faq__answer p:last-child {
	margin-bottom: 0;
}

/* ---------- Product detail ---------- */

.cv-product {
	display: grid;
	gap: clamp(24px, 4vw, 56px);
	padding-top: 16px;
}

@media (min-width: 900px) {
	.cv-product {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		align-items: start;
	}
}

.cv-product__media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: calc(var(--cv-radius) + 4px);
	overflow: hidden;
	background: var(--cv-surface-2);
}

.cv-product__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cv-product__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 10px;
	margin-top: 12px;
	list-style: none;
	padding: 0;
}

.cv-product__gallery img {
	border-radius: 10px;
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

.cv-product__summary h1 {
	font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
	margin-bottom: 0.35em;
}

.cv-product__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.cv-product__lead {
	font-size: 1.1875rem;
	color: var(--cv-muted);
}

.cv-product__price {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0.5rem 0 1rem;
}

.cv-buybox {
	padding: 20px;
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
	background: var(--cv-surface);
	display: grid;
	gap: 12px;
}

.cv-buybox__note {
	font-size: 0.875rem;
	color: var(--cv-muted);
	margin: 0;
}

.cv-specs {
	margin: 0;
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0;
	font-size: 0.9375rem;
	border-top: 1px solid var(--cv-line);
}

.cv-specs dt,
.cv-specs dd {
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--cv-line);
}

.cv-specs dt {
	color: var(--cv-muted);
	padding-inline-end: 24px;
	font-weight: 600;
}

.cv-product-tabs {
	margin-top: clamp(32px, 6vw, 72px);
}

.cv-product-section {
	padding-block: 32px;
	border-top: 1px solid var(--cv-line);
}

.cv-product-section > h2 {
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

/* ---------- Pagination ---------- */

.cv-pagination {
	margin-top: 40px;
}

.cv-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.cv-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--cv-line);
	text-decoration: none;
	font-weight: 600;
}

.cv-pagination .page-numbers.current {
	background: var(--cv-fg);
	color: var(--cv-bg);
	border-color: var(--cv-fg);
}

.cv-pagination a.page-numbers:hover {
	border-color: var(--cv-blue);
}

/* ---------- Empty states ---------- */

.cv-empty {
	text-align: center;
	padding: clamp(40px, 8vw, 80px) 24px;
	border: 1.5px dashed var(--cv-line-strong);
	border-radius: var(--cv-radius);
}

.cv-empty__icon {
	display: inline-flex;
	width: 56px;
	height: 56px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--cv-blue-soft);
	margin-bottom: 16px;
}

.cv-empty__icon svg {
	width: 26px;
	height: 26px;
}

.cv-empty h2 {
	font-size: 1.5rem;
}

.cv-empty p {
	color: var(--cv-muted);
	max-width: 52ch;
	margin-inline: auto;
}

.cv-empty .cv-search-form {
	max-width: 520px;
	margin: 24px auto 0;
}

.cv-404__code {
	font-size: clamp(5rem, 18vw, 10rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 1;
	color: var(--cv-blue);
	margin-bottom: 0.1em;
}

/* ---------- Contact ---------- */

.cv-contact-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	margin-bottom: 2rem;
}

.cv-contact-card {
	padding: 24px;
	border-radius: var(--cv-radius);
	border: 1px solid var(--cv-line);
}

.cv-contact-card h2 {
	font-size: 1.125rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cv-contact-card h2 svg {
	width: 20px;
	height: 20px;
}

.cv-contact-card p {
	margin: 0;
}

.cv-contact-card .cv-status {
	display: block;
	margin-top: 8px;
	font-size: 0.875rem;
	color: var(--cv-muted);
}

/* ---------- Footer ---------- */

.cv-footer {
	border-top: 1px solid var(--cv-line);
	background: var(--cv-surface);
	padding-top: clamp(40px, 6vw, 72px);
	padding-bottom: calc(24px + env(safe-area-inset-bottom));
	font-size: 0.9375rem;
}

.cv-footer__grid {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

@media (min-width: 1024px) {
	.cv-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1fr;
	}
}

.cv-footer__brand p {
	color: var(--cv-muted);
	max-width: 36ch;
}

.cv-footer h2 {
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.cv-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cv-footer li a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	text-decoration-color: transparent;
	color: var(--cv-fg);
}

.cv-footer li a:hover {
	text-decoration-color: var(--cv-blue);
}

.cv-footer__contact {
	display: grid;
	gap: 6px;
	color: var(--cv-muted);
}

.cv-footer__contact span {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.cv-footer__contact svg {
	width: 16px;
	height: 16px;
}

.cv-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--cv-line);
	color: var(--cv-muted);
}

.cv-footer__langs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cv-footer__langs a,
.cv-footer__langs span {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
}

.cv-footer__langs [aria-current="true"] {
	color: var(--cv-fg);
	font-weight: 700;
}

/* ---------- Forms ---------- */

.cv-field {
	display: grid;
	gap: 6px;
	margin-bottom: 16px;
}

.cv-field label {
	font-weight: 600;
	font-size: 0.9375rem;
}

.cv-field input,
.cv-field textarea,
.cv-field select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--cv-line-strong);
	border-radius: var(--cv-radius-sm);
	background: var(--cv-bg);
	font-size: 1rem;
}

.cv-field input:focus,
.cv-field textarea:focus,
.cv-field select:focus {
	border-color: var(--cv-blue);
	outline: none;
	box-shadow: 0 0 0 4px var(--cv-blue-soft);
}

/* ---------- Utilities ---------- */

.cv-muted {
	color: var(--cv-muted);
}

.cv-center {
	text-align: center;
}

.cv-mt-0 {
	margin-top: 0;
}

.cv-hide-mobile {
	display: none;
}

@media (min-width: 768px) {
	.cv-hide-mobile {
		display: initial;
	}
}

.alignwide {
	max-width: var(--cv-max);
}

.alignfull {
	max-width: none;
}

.wp-caption,
.gallery-caption {
	font-size: 0.875rem;
	color: var(--cv-muted);
}

.sticky {
	position: relative;
}

.bypostauthor {
	display: block;
}

.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

@media print {
	.cv-header,
	.cv-footer,
	.cv-drawer,
	.cv-breadcrumbs,
	.cv-buybox {
		display: none !important;
	}

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