/* Decorative Overlay: images sit above the block's own background and behind its content.
   They are CSS background images, so assistive technology ignores them. */
.has-ic-overlay {
	position: relative;
	isolation: isolate; /* Keeps the negative z-index overlays inside this block. */
}
.has-ic-ov1::before,
.has-ic-ov2::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-repeat: no-repeat;
	pointer-events: none;
}
.has-ic-ov1::before {
	background-image: var(--ic-ov1-img);
	background-position: var(--ic-ov1-pos);
	background-size: var(--ic-ov1-size);
	opacity: var(--ic-ov1-op);
}
.has-ic-ov2::after {
	background-image: var(--ic-ov2-img);
	background-position: var(--ic-ov2-pos);
	background-size: var(--ic-ov2-size);
	opacity: var(--ic-ov2-op);
}

/* Bottom arrow: a small downward triangle hanging off the bottom edge. Decorative only. */
.has-ic-notch { position: relative; z-index: 1; }
.ic-notch {
	position: absolute;
	top: 100%;
	left: 50%;
	width: calc(var(--ic-notch-size, 28px) * 2);
	height: var(--ic-notch-size, 28px);
	transform: translateX(-50%);
	background: var(--ic-notch-colour, #1f5f52);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	pointer-events: none;
}
/* WordPress layout styles (printed later on the page) add the block-gap margin to every child after the first.
   The arrow is positioned from the block's edge, so it must not inherit that margin. */
.has-ic-notch > .ic-notch { margin: 0; }
/* Editor preview: a zero-height sibling that carries the arrow. */
.ic-notch-preview { position: relative; height: 0; z-index: 1; margin-top: calc(var(--wp--style--block-gap, 0px) * -1); }
.ic-notch-preview .ic-notch { top: 0; }

@media (max-width: 781px) {
	.ic-ov1-hide-mobile::before,
	.ic-ov2-hide-mobile::after { display: none; }
}
@media print {
	.has-ic-ov1::before,
	.has-ic-ov2::after { display: none; }
}
