/**
 * Text reveal animation — line-masked word rise for .mtt-text-reveal blocks.
 */

.mtt-text-reveal__line {
	display: block;
	margin: 0 0 -0.1em;
	overflow: hidden;
	padding: 0 0 0.2em;
}

/* Highlight (<mark>) scoped reveal — stay inline with the rest of the heading. */
.mtt-text-reveal__line--inline,
mark.mtt-text-reveal__line {
	display: inline-block;
	vertical-align: top;
	margin: 0;
	overflow: hidden;
	padding: 0 0 0.15em;
}

.mtt-text-reveal__word {
	display: inline-block;
	vertical-align: top;
}

/* Editor cue when the toggle is on. */
.editor-styles-wrapper .mtt-text-reveal,
.block-editor-block-list__block.mtt-text-reveal {
	position: relative;
}

@media (prefers-reduced-motion: reduce) {
	.mtt-text-reveal__word {
		transform: none !important;
	}
}
