/*
 * Custom block styles (front end and block editor). Fallback values keep the
 * editor correct where the theme's CSS variables are not defined.
 */

/* Quote: Accent bar. */
.wp-block-quote.is-style-spindles-accent {
	border-left: 0.35em solid var(--sp-brand, #2556a8);
	padding-left: 1.25em;
	font-size: 1.1em;
}

/* Group: Card. */
.wp-block-group.is-style-spindles-card {
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid var(--sp-border, #e0e6ee);
	border-radius: var(--sp-radius, 10px);
	background: var(--sp-surface, #f6f8fc);
}

/* Image: Rounded corners. */
.wp-block-image.is-style-spindles-rounded img {
	border-radius: var(--sp-radius, 10px);
}

/* List: Checkmarks. */
.wp-block-list.is-style-spindles-check {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-spindles-check li {
	position: relative;
	padding-left: 1.75em;
}

.wp-block-list.is-style-spindles-check li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--sp-brand, #2556a8);
	font-weight: 700;
}

/* Square buttons everywhere, including core Button blocks. */
.wp-block-button .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-search__button,
.wp-block-file__button {
	border-radius: 0;
}

/* Button blocks use the brand color by default. */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background-color: var(--sp-brand);
	color: #fff;
}
