/**
 * Container Link extension — front-end only.
 *
 * The link is a transparent "stretched" anchor that fills the container, so a
 * click anywhere on the block navigates. No visual treatment is added — a
 * linked container looks identical to an unlinked one (which is why nothing
 * needs mirroring in the editor canvas).
 */

/* The container injected with the overlay becomes its positioning context. */
.le-has-block-link {
	position: relative;
}

/* Transparent interaction layer covering the whole container. */
.le-container-link__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	/* No box of its own beyond the click target — never paints anything. */
	font-size: 0;
	color: transparent;
	background: transparent;
}

/*
 * Keep genuine interactive descendants clickable above the overlay so the
 * container link never swallows a real link, button, or form control inside it
 * (Foundation 2.3 — never remove native capability). Excludes the overlay
 * itself.
 */
.le-has-block-link a:not(.le-container-link__overlay),
.le-has-block-link button,
.le-has-block-link input,
.le-has-block-link select,
.le-has-block-link textarea,
.le-has-block-link label,
.le-has-block-link [tabindex]:not([tabindex="-1"]) {
	position: relative;
	z-index: 2;
}
