/* IMO callout blocks: pastel info boxes, selectable in the editor as block
   styles of the Quote and Group blocks ("IMO: sinine kast" / "IMO: lilla kast").
   Loaded on the front end and inside the block editor. */

.is-style-imo-lead,
.is-style-imo-access {
	--imo-callout-accent: var(--color-primary, #0060AA);
	background: color-mix(in srgb, var(--imo-callout-accent) 6%, #fff);
	padding: 1.4rem 1.6rem;
	margin: 1.5rem 0;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: inherit;
	font-style: normal;
	color: inherit;
}

.is-style-imo-access {
	--imo-callout-accent: #6638b6;
}

.is-style-imo-lead p,
.is-style-imo-access p {
	margin: 0;
}

.is-style-imo-lead p + p,
.is-style-imo-access p + p {
	margin-top: 0.9rem;
}

/* bold opening words become a small uppercase label above the text */
.is-style-imo-lead p strong:first-child,
.is-style-imo-access p strong:first-child {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--imo-callout-accent);
}

.is-style-imo-lead p strong:first-child + br,
.is-style-imo-access p strong:first-child + br {
	display: none;
}

.is-style-imo-lead cite,
.is-style-imo-access cite {
	display: none;
}
