/**
 * Coeso Read More — inline toggle.
 *
 * The excerpt and the full text are two complete HTML trees rendered by the
 * `[coeso_read_more]` shortcode; this file only styles the triggers and hides
 * the inactive tree. The runtime adds/removes the `hidden` attribute.
 */

.coeso-rm .coeso-rm__toggle {
	display: inline;
	margin-inline-start: 0.15em;
	font-style: normal;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-thickness: var(--coeso-rm-thickness, 2px);
	text-underline-offset: var(--coeso-rm-offset, 0.15em);
	text-decoration-color: var(--coeso-rm-decoration, currentColor);
}

.coeso-rm .coeso-rm__toggle:hover,
.coeso-rm .coeso-rm__toggle:focus-visible {
	text-decoration-color: currentColor;
}

.coeso-rm .coeso-rm__toggle:focus-visible {
	outline: var(--coeso-rm-focus-width, 2px) solid var(--coeso-rm-focus-color, currentColor);
	outline-offset: var(--coeso-rm-focus-offset, 3px);
}

.coeso-rm [hidden] {
	display: none !important;
}
