/*
 * Chetaru Blocks — shared design tokens.
 * Loaded only as a dependency of a block stylesheet, i.e. only on pages using a Chetaru block.
 * Defaults adapt to the theme (theme.json presets, currentColor); the settings page can override them.
 */
:root {
	--ct-gb-primary: var(--wp--preset--color--primary, var(--wp--preset--color--accent, #1d4ed8));
	--ct-gb-primary-contrast: #fff;
	--ct-gb-dark: var(--wp--preset--color--contrast, #0f172a);
	--ct-gb-muted: color-mix(in srgb, currentColor 68%, transparent);
	--ct-gb-border: color-mix(in srgb, currentColor 14%, transparent);
	--ct-gb-surface: var(--wp--preset--color--base, #fff);
	--ct-gb-surface-alt: color-mix(in srgb, currentColor 4%, transparent);
	--ct-gb-radius: 12px;
	--ct-gb-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
	--ct-gb-gap: 24px;
}

/* Fonts: inherit from the theme unless set on the settings page. */
.ct-gb {
	font-family: var(--ct-gb-font-body, inherit);
	color: var(--ct-gb-text, inherit);
}
.ct-gb :is(h1, h2, h3, h4, h5, h6),
.ct-gb .ct-gb-heading {
	font-family: var(--ct-gb-font-heading, inherit);
	font-weight: var(--ct-gb-heading-weight, inherit);
}
.ct-gb *,
.ct-gb *::before,
.ct-gb *::after {
	box-sizing: border-box;
}

.ct-gb-icon {
	display: inline-flex;
	line-height: 0;
	flex-shrink: 0;
}
.ct-gb-icon svg {
	display: block;
}

/* Background image + overlay (Section, Hero, CTA). */
.ct-has-bg {
	background-size: cover;
	background-repeat: no-repeat;
}
.ct-has-bg.is-fixed {
	background-attachment: fixed;
}
@media (hover: none) {
	.ct-has-bg.is-fixed {
		background-attachment: scroll;
	}
}
.ct-has-overlay {
	position: relative;
	isolation: isolate;
}
.ct-has-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--ct-overlay-color);
	opacity: var(--ct-overlay-opacity, .5);
	border-radius: inherit;
	pointer-events: none;
}

.ct-gb-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
