/*
 * Components: block styles and the few reusable pieces that theme.json cannot express.
 * Buttons: variant = block style (is-style-*), size = kchsi-button--lg / kchsi-button--sm, md is the default.
 * Every value is a token.
 */

/* Button base: height md = 48 (padding 12 + line 24), pill radius, no wrap. A plain class selector,
   not :where(), so it beats the core block's display: inline-block (icons drawn with ::before and
   ::after need the flex box to get a size). */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--custom--space--sm);
	min-height: var(--wp--custom--control--height-md);
	white-space: nowrap;
	transition:
		background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out),
		color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out),
		box-shadow var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out),
		border-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

/* Sizes */
.kchsi-button--lg .wp-block-button__link {
	min-height: var(--wp--custom--control--height-lg);
	padding-block: var(--wp--custom--space--md);
	padding-inline: var(--wp--custom--space--xl);
}

.kchsi-button--sm .wp-block-button__link {
	min-height: var(--wp--custom--control--height-sm);
	padding-block: var(--wp--custom--space--sm);
	padding-inline: var(--wp--custom--space--md);
}

/*
 * Large filled buttons (primary, accent, amber): a crisp small shadow at rest, the coloured
 * glow only on hover, plus a 1px lift (Figma: shadow/button, glow/*).
 */
.kchsi-button--lg:not(.is-style-secondary):not(.is-style-ghost):not(.is-style-dark) .wp-block-button__link {
	box-shadow: var(--wp--preset--shadow--button);
}

.kchsi-button--lg:not(.is-style-secondary):not(.is-style-ghost):not(.is-style-dark) .wp-block-button__link:hover {
	box-shadow: var(--wp--preset--shadow--glow-brand);
}

.kchsi-button--lg.is-style-accent .wp-block-button__link:hover {
	box-shadow: var(--wp--preset--shadow--glow-accent);
}

.kchsi-button--lg.is-style-amber .wp-block-button__link:hover {
	box-shadow: var(--wp--preset--shadow--glow-warning);
}

@media (prefers-reduced-motion: no-preference) {
	.kchsi-button--lg .wp-block-button__link {
		transition-property: background-color, color, box-shadow, border-color, transform;
	}

	.kchsi-button--lg:not(.is-style-secondary):not(.is-style-ghost) .wp-block-button__link:hover {
		transform: translateY(calc(-1 * var(--wp--custom--border--width)));
	}
}

/* Variants (primary is the theme.json default) */
.is-style-accent .wp-block-button__link {
	background-color: var(--wp--custom--color--bg--accent);
	color: var(--wp--custom--color--text--on-accent);
}

.is-style-accent .wp-block-button__link:hover,
.is-style-accent .wp-block-button__link:focus-visible {
	background-color: var(--wp--custom--color--bg--accent-hover);
	color: var(--wp--custom--color--text--on-accent);
}

.is-style-secondary .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--custom--color--text--primary);
	box-shadow: inset 0 0 0 var(--wp--custom--border--width-strong) var(--wp--custom--color--border--focus);
}

.is-style-secondary .wp-block-button__link:hover,
.is-style-secondary .wp-block-button__link:focus-visible {
	background-color: var(--wp--custom--color--bg--muted);
	color: var(--wp--custom--color--text--primary);
}

.is-style-ghost .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--custom--color--text--link);
}

.is-style-ghost .wp-block-button__link:hover,
.is-style-ghost .wp-block-button__link:focus-visible {
	background-color: var(--wp--custom--color--bg--brand-soft);
	color: var(--wp--custom--color--text--link);
}

.is-style-dark .wp-block-button__link {
	background-color: var(--wp--custom--color--bg--inverse);
	color: var(--wp--custom--color--text--on-inverse);
}

.is-style-dark .wp-block-button__link:hover,
.is-style-dark .wp-block-button__link:focus-visible {
	background-color: var(--wp--custom--color--bg--inverse-deep);
	color: var(--wp--custom--color--text--on-inverse);
}

.is-style-amber .wp-block-button__link {
	background-color: var(--wp--custom--color--status--warning);
	color: var(--wp--custom--color--text--on-brand);
}

.is-style-amber .wp-block-button__link:hover,
.is-style-amber .wp-block-button__link:focus-visible {
	background-color: var(--wp--custom--color--bg--warning-hover);
	color: var(--wp--custom--color--text--on-brand);
}

/* Eyebrow paragraph (Figma label/eyebrow): small, semibold, tracked, uppercase. */
.is-style-eyebrow {
	font-size: var(--wp--custom--font-size--14);
	font-weight: var(--wp--custom--weight--semibold);
	line-height: var(--wp--custom--line-height--small);
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	text-transform: uppercase;
}

/* Logo placeholder (Figma Logo: mark + wordmark) until the real logo arrives; then swap for core/site-logo. */
.kchsi-logo {
	align-items: center;
}

.kchsi-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wp--custom--logo--height);
	height: var(--wp--custom--logo--height);
	margin: 0;
	border-radius: var(--wp--custom--radius--control);
	background-color: var(--wp--custom--color--bg--brand);
	color: var(--wp--custom--color--text--on-brand);
	font-weight: var(--wp--custom--weight--semibold);
	line-height: var(--wp--custom--line-height--label);
}

.kchsi-logo--kchsi .kchsi-logo__mark {
	background-color: var(--wp--custom--color--bg--inverse);
	color: var(--wp--custom--color--text--on-inverse);
}

.kchsi-logo--kchsi.kchsi-logo--inverse .kchsi-logo__mark {
	background-color: var(--wp--custom--color--bg--surface);
	color: var(--wp--custom--color--text--primary);
}

.kchsi-logo__wordmark,
.kchsi-logo__wordmark a {
	margin: 0;
	font-family: var(--wp--custom--font--body);
	font-size: var(--wp--custom--font-size--16);
	font-weight: var(--wp--custom--weight--medium);
	line-height: var(--wp--custom--line-height--label);
	color: inherit;
	text-decoration: none;
}

/* Badge (Figma Badge, tone=brand/accent/warning/success/neutral): pill label, optional leading dot. */
.kchsi-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--custom--space--xs);
	margin: 0;
	padding: var(--wp--custom--space--xs) var(--wp--custom--space--sm);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--color--bg--brand-soft);
	color: var(--wp--custom--color--text--brand);
	font-size: var(--wp--custom--font-size--14);
	font-weight: var(--wp--custom--weight--semibold);
	line-height: var(--wp--custom--line-height--small);
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	text-transform: uppercase;
}

.kchsi-badge--accent {
	background-color: var(--wp--custom--color--bg--accent-soft);
	color: var(--wp--custom--color--text--accent);
}

.kchsi-badge--warning {
	background-color: var(--wp--custom--color--bg--warning-soft);
	color: var(--wp--custom--color--text--warning);
}

.kchsi-badge--success {
	background-color: var(--wp--custom--color--bg--success-soft);
	color: var(--wp--custom--color--text--success);
}

.kchsi-badge--neutral {
	background-color: var(--wp--custom--color--bg--muted);
	color: var(--wp--custom--color--text--secondary);
}

/* Lucide "circle", 16 px, drawn in the current text colour. */
.kchsi-badge--dot::before {
	content: "";
	flex: none;
	width: var(--wp--custom--spacing--4);
	height: var(--wp--custom--spacing--4);
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Chip (Figma Chip/Live): glass pill label. kchsi-chip--live adds the pulsing brand dot (motion.css). */
.kchsi-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--custom--space--sm);
	margin: 0;
	padding: var(--wp--custom--space--sm) var(--wp--custom--space--md);
	border: var(--wp--custom--border--width) solid var(--wp--custom--glass--edge);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--glass--fill);
	box-shadow: var(--wp--preset--shadow--floating);
	-webkit-backdrop-filter: blur(var(--wp--custom--glass--blur));
	backdrop-filter: blur(var(--wp--custom--glass--blur));
	color: var(--wp--custom--color--text--primary);
	font-size: var(--wp--custom--font-size--14);
	font-weight: var(--wp--custom--weight--semibold);
	line-height: var(--wp--custom--line-height--small);
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	text-transform: uppercase;
}

.kchsi-chip--live::before {
	content: "";
	flex: none;
	width: var(--wp--custom--spacing--2);
	height: var(--wp--custom--spacing--2);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--color--bg--brand);
	box-shadow: 0 0 0 var(--wp--custom--spacing--1) var(--wp--custom--ambient--teal);
}

/* Floating card chip (hero): icon tile + two lines, glass, pinned around the video. */
.kchsi-float {
	position: absolute;
	display: flex;
	align-items: center;
	gap: var(--wp--custom--space--sm);
	padding: var(--wp--custom--space--sm) var(--wp--custom--space--md);
	border: var(--wp--custom--border--width) solid var(--wp--custom--glass--edge);
	border-radius: var(--wp--custom--radius--control);
	background-color: var(--wp--custom--glass--fill);
	box-shadow: var(--wp--preset--shadow--floating);
	-webkit-backdrop-filter: blur(var(--wp--custom--glass--blur));
	backdrop-filter: blur(var(--wp--custom--glass--blur));
	z-index: 1;
}

.kchsi-float > *,
.kchsi-float .wp-block-group > * {
	margin: 0;
}

.kchsi-float__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--wp--custom--control--height-sm);
	height: var(--wp--custom--control--height-sm);
	border-radius: var(--wp--custom--radius--control);
	background-color: var(--wp--custom--color--bg--brand-soft);
}

.kchsi-float__icon::before {
	content: "";
	width: var(--wp--custom--spacing--5);
	height: var(--wp--custom--spacing--5);
	background-color: var(--wp--custom--color--icon--default);
	mask: var(--kchsi-icon) center / contain no-repeat;
}

.kchsi-float__icon.kchsi-tone--warning {
	background-color: var(--wp--custom--color--bg--warning-soft);
}

.kchsi-float__title {
	font-weight: var(--wp--custom--weight--semibold);
	line-height: var(--wp--custom--line-height--label);
}

.kchsi-float__sub {
	font-size: var(--wp--custom--font-size--14);
	line-height: var(--wp--custom--line-height--small);
	color: var(--wp--custom--color--text--muted);
}

/* Media (Figma Media, kind=image/video): 16:9 box, media radius, muted placeholder, centred play button. */
.kchsi-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--media);
	background-color: var(--wp--custom--color--bg--muted);
}

.kchsi-media > * {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.kchsi-media > iframe,
.kchsi-media > video,
.kchsi-media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Play: IconButton filled lg (48), on a white disc so it reads on the placeholder and on posters. */
.kchsi-media__play .wp-block-button__link {
	width: var(--wp--custom--control--height-lg);
	height: var(--wp--custom--control--height-lg);
	min-height: 0;
	padding: 0;
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--color--bg--surface);
	color: transparent;
	font-size: 0;
	box-shadow: var(--wp--preset--shadow--card);
}

.kchsi-media__play .wp-block-button__link:hover,
.kchsi-media__play .wp-block-button__link:focus-visible {
	background-color: var(--wp--custom--color--bg--brand);
	box-shadow: var(--wp--preset--shadow--card-hover);
}

.kchsi-media__play .wp-block-button__link::before {
	content: "";
	width: var(--wp--custom--spacing--6);
	height: var(--wp--custom--spacing--6);
	background-color: var(--wp--custom--color--icon--default);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M5 5a2 2 0 0 1 3-1.7l12 7a2 2 0 0 1 0 3.4l-12 7A2 2 0 0 1 5 19z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Section head (title + lead), never wider than the content width. */
.kchsi-head {
	max-width: var(--wp--custom--layout--content-width);
}

/* Glass surface (Figma glass/card): translucent white over the ambient orbs, white edge, floating shadow.
   Shared by the bento cards, stat tiles, the CTA panel and the contact form. */
.is-style-card-bento,
.is-style-stat,
.is-style-glass {
	border: var(--wp--custom--border--width) solid var(--wp--custom--glass--edge);
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--custom--glass--fill);
	box-shadow: var(--wp--preset--shadow--floating);
	-webkit-backdrop-filter: blur(var(--wp--custom--glass--blur));
	backdrop-filter: blur(var(--wp--custom--glass--blur));
}

/* Card/Bento: number, title, text, then the chart pushed to the bottom. */
.is-style-card-bento {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: var(--wp--custom--space--xl);
	transition: box-shadow var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out);
}

.is-style-card-bento:hover {
	box-shadow: var(--wp--preset--shadow--card-hover);
}

.kchsi-card__number {
	align-self: flex-start;
	margin: 0;
	padding: var(--wp--custom--space--xs) var(--wp--custom--space--sm);
	border: var(--wp--custom--border--width) solid var(--wp--custom--color--border--strong);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--color--bg--surface);
	color: var(--wp--custom--color--text--primary);
}

@media (max-width: 767px) {
	.is-style-card-bento {
		padding: var(--wp--custom--space--lg);
	}
}

/* Card/LessonVideo: white card, 16:9 thumbnail with a glass duration chip, body below. */
.is-style-card-lesson {
	padding: var(--wp--custom--space--sm);
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--custom--color--bg--surface);
	box-shadow: var(--wp--preset--shadow--card);
	transition: box-shadow var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out);
}

.is-style-card-lesson:hover {
	box-shadow: var(--wp--preset--shadow--card-hover);
}

.kchsi-card__thumb {
	position: relative;
}

.kchsi-card__thumb .kchsi-card__duration {
	position: absolute;
	top: var(--wp--custom--space--sm);
	right: var(--wp--custom--space--sm);
	padding: var(--wp--custom--space--xs) var(--wp--custom--space--sm);
	border: var(--wp--custom--border--width) solid var(--wp--custom--glass--edge);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--glass--fill);
	-webkit-backdrop-filter: blur(var(--wp--custom--glass--blur));
	backdrop-filter: blur(var(--wp--custom--glass--blur));
	color: var(--wp--custom--color--text--primary);
	font-weight: var(--wp--custom--weight--semibold);
	z-index: 1;
}

.kchsi-card__body {
	padding: var(--wp--custom--space--md) var(--wp--custom--space--sm);
}

.kchsi-card__meta {
	margin: 0;
	color: var(--wp--custom--color--text--brand);
}

.is-style-card-lesson.is-locked .kchsi-media {
	opacity: 0.55;
}

.is-style-card-lesson.is-locked .kchsi-card__meta {
	color: var(--wp--custom--color--text--muted);
}

.is-style-card-lesson.is-locked .kchsi-card__duration::before {
	mask-image: var(--kchsi-icon-lock);
}

/* Card/Promo: brand-soft panel with a teal edge and soft glow, big count, ten lesson segments. */
.is-style-card-promo {
	padding: var(--wp--custom--space--xl);
	border: var(--wp--custom--border--width) solid color-mix(in srgb, var(--wp--custom--color--bg--brand) 40%, transparent);
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--custom--color--bg--brand-soft);
	box-shadow: var(--wp--preset--shadow--glow-soft-brand);
}

.kchsi-promo__count {
	margin: 0;
	font-family: var(--wp--custom--font--heading);
	font-size: var(--wp--custom--type--display);
	font-weight: var(--wp--custom--weight--display);
	line-height: var(--wp--custom--line-height--display);
	letter-spacing: var(--wp--custom--tracking--display);
}

.kchsi-segments {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: var(--wp--custom--space--xs);
}

.kchsi-segments > span {
	height: var(--wp--custom--viz--track);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--color--bg--surface);
}

.kchsi-segments > span:nth-child(-n + 2) {
	background-color: var(--wp--custom--color--bg--brand);
}

/* Card/Benefit: bordered card, tinted icon tile with a soft glow of the same tone. */
.is-style-card-benefit {
	padding: var(--wp--custom--space--lg);
	border: var(--wp--custom--border--width) solid var(--wp--custom--color--border--default);
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--custom--color--bg--page);
}

/* Card titles are heading/h4 in Figma regardless of the heading level used. */
.kchsi-card__title,
.kchsi-step__title {
	font-family: var(--wp--custom--font--body);
	font-size: var(--wp--custom--type--heading-4);
	font-weight: var(--wp--custom--weight--heading-4);
	line-height: var(--wp--custom--line-height--heading-4);
	letter-spacing: var(--wp--custom--tracking--body);
}

/* Icon tile with a 24 px Lucide icon; the icon is a mask set per class, the tone per card. */
.kchsi-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wp--custom--spacing--14);
	height: var(--wp--custom--spacing--14);
	border-radius: var(--wp--custom--radius--control);
	background-color: var(--wp--custom--color--bg--brand-soft);
	box-shadow: var(--wp--preset--shadow--glow-soft-brand);
}

.kchsi-card__icon::before {
	content: "";
	width: var(--wp--custom--spacing--6);
	height: var(--wp--custom--spacing--6);
	background-color: var(--wp--custom--color--icon--default);
	mask: var(--kchsi-icon) center / contain no-repeat;
}

.kchsi-tone--accent .kchsi-card__icon {
	background-color: var(--wp--custom--color--bg--accent-soft);
	box-shadow: var(--wp--preset--shadow--glow-soft-accent);
}

.kchsi-tone--warning .kchsi-card__icon {
	background-color: var(--wp--custom--color--bg--warning-soft);
	box-shadow: var(--wp--preset--shadow--glow-soft-warning);
}

.kchsi-tone--success .kchsi-card__icon {
	background-color: var(--wp--custom--color--bg--success-soft);
}

/* Stat tile (glass): big number, label under it. */
.is-style-stat {
	padding: var(--wp--custom--space--lg);
}

.kchsi-stat__number {
	margin: 0;
	font-family: var(--wp--custom--font--heading);
	font-size: var(--wp--custom--type--heading-1);
	font-weight: var(--wp--custom--weight--heading-1);
	line-height: var(--wp--custom--line-height--heading-1);
	letter-spacing: var(--wp--custom--tracking--heading-1);
	color: var(--wp--custom--color--text--primary);
}

/* Button with a trailing Lucide arrow-right. */
.kchsi-button--arrow .wp-block-button__link::after {
	content: "";
	width: var(--wp--custom--spacing--5);
	height: var(--wp--custom--spacing--5);
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Step (Figma Step/Item): card with a numbered disc. The disc turns teal with a glow once the
   progress line reaches it (is-reached, set by motion.js); the line itself lives in sections.css. */
.kchsi-step {
	position: relative;
	padding: var(--wp--custom--space--lg);
	border: var(--wp--custom--border--width) solid var(--wp--custom--color--border--default);
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--custom--color--bg--page);
	box-shadow: var(--wp--preset--shadow--card);
}

.kchsi-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wp--custom--layout--step-number);
	height: var(--wp--custom--layout--step-number);
	margin: 0;
	border: var(--wp--custom--border--width) solid var(--wp--custom--color--border--strong);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--color--bg--surface);
	color: var(--wp--custom--color--text--primary);
	font-size: var(--wp--custom--type--heading-4);
	font-weight: var(--wp--custom--weight--semibold);
	line-height: var(--wp--custom--line-height--label);
	transition:
		background-color var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out),
		box-shadow var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out);
}

.kchsi-step.is-reached .kchsi-step__number {
	border-color: transparent;
	background-color: var(--wp--custom--color--bg--brand);
	box-shadow: var(--wp--preset--shadow--glow-soft-brand);
}

/* Lucide icons used by cards, as masks (stroke 2, round caps). Set per class, drawn by .kchsi-card__icon::before and .kchsi-card__duration::before. */
.kchsi-icon--lightbulb {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
}

.kchsi-icon--shield-check {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.kchsi-icon--scale {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='m19 8 3 8a5 5 0 0 1-6 0zM19 8V7'/%3E%3Cpath d='M3 7h1a15 15 0 0 0 8-2 15 15 0 0 0 8 2h1'/%3E%3Cpath d='m5 8 3 8a5 5 0 0 1-6 0zM5 8V7'/%3E%3Cpath d='M7 21h10'/%3E%3C/svg%3E");
}

.kchsi-icon--trending-up {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 7h6v6'/%3E%3Cpath d='m22 7-8.5 8.5-5-5L2 17'/%3E%3C/svg%3E");
}

.kchsi-icon--clock {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

.kchsi-icon--wallet {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E");
}

.kchsi-icon--circle-alert {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
}

.kchsi-icon--play {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4.5a1.5 1.5 0 0 1 2.3-1.3l11 7a1.5 1.5 0 0 1 0 2.6l-11 7A1.5 1.5 0 0 1 6 18.5z'/%3E%3C/svg%3E");
}

.kchsi-icon--award {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15.48 12.89 1.52 8.55a.5.5 0 0 1-.81.47l-3.59-2.69a1 1 0 0 0-1.2 0l-3.6 2.7a.5.5 0 0 1-.81-.48l1.52-8.55'/%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3C/svg%3E");
}

.kchsi-icon--gavel {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 13-8.38 8.38a1 1 0 0 1-3-3L11 9.99'/%3E%3Cpath d='m16 16 6-6'/%3E%3Cpath d='m21.5 10.5-8-8'/%3E%3Cpath d='m8 8 6-6'/%3E%3Cpath d='m8.5 7.5 8 8'/%3E%3C/svg%3E");
}

.kchsi-icon--book-open {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E");
}

.kchsi-icon--user {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.kchsi-icon--star {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.53 2.3a.53.53 0 0 1 .95 0l2.31 4.68a2.12 2.12 0 0 0 1.6 1.16l5.16.76a.53.53 0 0 1 .3.9l-3.74 3.64a2.12 2.12 0 0 0-.61 1.88l.88 5.14a.53.53 0 0 1-.77.56l-4.62-2.43a2.12 2.12 0 0 0-1.97 0L6.4 21.01a.53.53 0 0 1-.77-.56l.88-5.14a2.12 2.12 0 0 0-.61-1.88L2.16 9.8a.53.53 0 0 1 .3-.91l5.16-.75a2.12 2.12 0 0 0 1.6-1.16z'/%3E%3C/svg%3E");
}

.kchsi-icon--list-checks {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 17 2 2 4-4'/%3E%3Cpath d='m3 7 2 2 4-4'/%3E%3Cpath d='M13 6h8'/%3E%3Cpath d='M13 12h8'/%3E%3Cpath d='M13 18h8'/%3E%3C/svg%3E");
}

:root {
	--kchsi-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* Lesson duration: 16 px clock (lock when the lesson is locked) before the text. */
.kchsi-card__duration {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--custom--space--xs);
	margin: 0;
}

.kchsi-card__duration::before {
	content: "";
	width: var(--wp--custom--spacing--4);
	height: var(--wp--custom--spacing--4);
	background-color: var(--wp--custom--color--icon--muted);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kchsi-icon--mail {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.kchsi-icon--phone {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.kchsi-icon--map-pin {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.kchsi-icon--arrow-up-right {
	--kchsi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
}

/* Contact/Detail: 24 px brand icon and a nav-weight label. */
.kchsi-detail {
	display: flex;
	align-items: center;
	gap: var(--wp--custom--space--sm);
	margin: 0;
	font-weight: var(--wp--custom--weight--medium);
}

.kchsi-detail::before {
	content: "";
	flex: none;
	width: var(--wp--custom--spacing--6);
	height: var(--wp--custom--spacing--6);
	background-color: var(--wp--custom--color--icon--brand);
	mask: var(--kchsi-icon) center / contain no-repeat;
}

/* Button with a trailing external-link arrow (social links). */
.kchsi-button--external .wp-block-button__link::after {
	content: "";
	width: var(--wp--custom--spacing--4);
	height: var(--wp--custom--spacing--4);
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Vertical video (9:16): the campaign videos are shot for phones. */
.kchsi-media--vertical {
	aspect-ratio: 9 / 16;
}

/* Image media has no play button; keeps the 16:9 muted placeholder until an image is set. */
.kchsi-media--image > * {
	position: static;
}

/* Prose block (Figma Block/Prose). */
.kchsi-prose > * {
	margin-block: 0;
}

/* Form: Contact Form 7 markup and the plugin's own forms (kchsi-input, kchsi-check) styled to the
   Figma Input, Checkbox and Button components. */
.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--space--lg);
}

.wpcf7-form p {
	margin: 0;
}

.wpcf7-form label {
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--space--xs);
	font-weight: var(--wp--custom--weight--medium);
}

.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-textarea,
.kchsi-input {
	width: 100%;
	min-height: var(--wp--custom--control--height-md);
	padding: var(--wp--custom--space--sm) var(--wp--custom--space--md);
	border: var(--wp--custom--border--width) solid var(--wp--custom--color--border--default);
	border-radius: var(--wp--custom--radius--control);
	background-color: var(--wp--custom--color--bg--surface);
	color: var(--wp--custom--color--text--primary);
	font: inherit;
	font-weight: var(--wp--custom--weight--body);
	line-height: var(--wp--custom--line-height--body);
	transition: border-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.wpcf7-form .wpcf7-textarea {
	min-height: calc(var(--wp--custom--control--height-md) * 2.5);
	resize: vertical;
}

.wpcf7-form .wpcf7-text::placeholder,
.wpcf7-form .wpcf7-textarea::placeholder,
.kchsi-input::placeholder {
	color: var(--wp--custom--color--text--muted);
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-textarea:focus,
.kchsi-input:focus {
	outline: none;
	border-color: var(--wp--custom--color--border--focus);
	box-shadow: inset 0 0 0 var(--wp--custom--border--width) var(--wp--custom--color--border--focus);
}

.wpcf7-form .wpcf7-not-valid,
.kchsi-input[aria-invalid="true"] {
	border-color: var(--wp--custom--color--border--danger);
	box-shadow: inset 0 0 0 var(--wp--custom--border--width) var(--wp--custom--color--border--danger);
}

.kchsi-form__helper,
.wpcf7-form .wpcf7-not-valid-tip {
	display: block;
	font-size: var(--wp--custom--font-size--14);
	font-weight: var(--wp--custom--weight--body);
	line-height: var(--wp--custom--line-height--small);
	color: var(--wp--custom--color--text--muted);
}

.wpcf7-form .wpcf7-not-valid-tip {
	color: var(--wp--custom--color--text--accent);
}

/* Consent checkbox: 20 px box, brand fill and a navy check when checked. */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.wpcf7-form .wpcf7-acceptance label {
	flex-direction: row;
	align-items: flex-start;
	gap: var(--wp--custom--space--sm);
	font-weight: var(--wp--custom--weight--body);
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"],
.kchsi-check input[type="checkbox"] {
	appearance: none;
	flex: none;
	width: var(--wp--custom--spacing--5);
	height: var(--wp--custom--spacing--5);
	margin: var(--wp--custom--spacing--1) 0 0;
	border: var(--wp--custom--border--width) solid var(--wp--custom--color--border--strong);
	border-radius: var(--wp--custom--radius--small);
	background-color: var(--wp--custom--color--bg--surface);
	cursor: pointer;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"]:checked,
.kchsi-check input[type="checkbox"]:checked {
	border-color: var(--wp--custom--color--bg--brand);
	background: var(--wp--custom--color--bg--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2744' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"]:focus-visible,
.kchsi-check input[type="checkbox"]:focus-visible {
	outline: var(--wp--custom--border--width-strong) solid var(--wp--custom--color--border--focus);
	outline-offset: var(--wp--custom--space--xs);
}

/* Submit: primary large button. */
.wpcf7-form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--wp--custom--control--height-lg);
	padding: var(--wp--custom--space--md) var(--wp--custom--space--xl);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--color--bg--brand);
	color: var(--wp--custom--color--text--on-brand);
	box-shadow: var(--wp--preset--shadow--button);
	font: inherit;
	font-weight: var(--wp--custom--weight--semibold);
	line-height: var(--wp--custom--line-height--label);
	cursor: pointer;
	transition:
		background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out),
		box-shadow var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:focus-visible {
	background-color: var(--wp--custom--color--bg--brand-hover);
	box-shadow: var(--wp--preset--shadow--glow-brand);
}

.wpcf7-form .wpcf7-spinner {
	margin-left: var(--wp--custom--space--sm);
}

.wpcf7-form .wpcf7-response-output {
	margin: 0;
	padding: var(--wp--custom--space--md);
	border: var(--wp--custom--border--width) solid var(--wp--custom--color--border--strong);
	border-radius: var(--wp--custom--radius--control);
}

.wpcf7-form.sent .wpcf7-response-output {
	border-color: var(--wp--custom--color--status--success);
	background-color: var(--wp--custom--color--bg--success-soft);
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
	border-color: var(--wp--custom--color--border--danger);
	background-color: var(--wp--custom--color--bg--accent-soft);
}
