/* Communi-T: block styles that theme.json cannot express. */

:root {
	--ct-radius: var(--wp--custom--radius--cloud, 32px);
}

/* Korean line breaking: keep words whole. */
body,
.editor-styles-wrapper {
	word-break: keep-all;
	overflow-wrap: break-word;
}

/* Cloud cards */
.is-style-cloud-blue,
.is-style-cloud-pink {
	border-radius: var(--ct-radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--wp--preset--color--base);
}
.is-style-cloud-blue {
	border: 3px solid var(--wp--preset--color--trans-blue);
	box-shadow: 6px 6px 0 var(--wp--preset--color--blue-tint);
}
.is-style-cloud-pink {
	border: 3px solid var(--wp--preset--color--trans-pink);
	box-shadow: 6px 6px 0 var(--wp--preset--color--pink-tint);
}

/* Outline pill button */
.wp-block-button.is-style-outline-pill .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
}
.wp-block-button.is-style-outline-pill .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

/* Trans-flag stripe separator */
hr.wp-block-separator.is-style-trans-stripe {
	border: 0;
	height: 10px;
	opacity: 1;
	max-width: 100%;
	background: linear-gradient(
		to bottom,
		#5BCEFA 0 20%, #F5A9B8 20% 40%, #FFFFFF 40% 60%, #F5A9B8 60% 80%, #5BCEFA 80% 100%
	);
	border-radius: 4px;
}

/* Campaign progress bar (used in the donate pattern) */
.ct-progress {
	height: 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--line);
	overflow: hidden;
}
.ct-progress > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #5BCEFA, #F5A9B8);
}

/* Header */
.ct-header .ct-logo { margin: 0; }
.ct-header .ct-logo img { border-radius: 0; height: auto; }

/* Skip link and focus visibility */
:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--trans-blue);
	outline-offset: 3px;
}
