/*
 * Bracket Label — core/heading block style (is-style-bracket-label).
 * Brackets use currentColor so one text colour control tints label + brackets.
 */

.wp-block-heading.is-style-bracket-label {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
	width: fit-content;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.wp-block-heading.is-style-bracket-label::before,
.wp-block-heading.is-style-bracket-label::after {
	content: "";
	display: inline-block;
	flex-shrink: 0;
	width: 0.75em;
	height: 1.2em;
	background-color: currentColor;
	background-image: none;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 23'%3E%3Cpath d='M10.9353 0.501465C8.92514 0.719318 6.88193 2.03238 4.47365 4.44066C-0.821947 9.73627 -0.821947 13.2667 4.47365 18.5623C6.88193 20.9705 8.92514 22.2836 10.9353 22.5015' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 23'%3E%3Cpath d='M10.9353 0.501465C8.92514 0.719318 6.88193 2.03238 4.47365 4.44066C-0.821947 9.73627 -0.821947 13.2667 4.47365 18.5623C6.88193 20.9705 8.92514 22.2836 10.9353 22.5015' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.wp-block-heading.is-style-bracket-label::after {
	transform: scaleX(-1);
}

/* h5 backdrop uses ::before — replace with bracket geometry when this style is active. */
h5.wp-block-heading.is-style-bracket-label::before {
	position: static;
	inset: auto;
	filter: none;
	z-index: auto;
}
