/* Real Editor Space - Frontend styling for preserved spaces
 * Note: Only applies to content wrapped by the plugin
 * Spaces are handled via &nbsp; entities, not CSS white-space: pre-wrap
 */
.real_editor_spanreal-space {
	white-space: normal !important;
	overflow-wrap: break-word !important;
	hyphens: auto;
	text-wrap: pretty;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
}

/* Completely reset spacing for all internal elements */
.real_editor_spanreal-space * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Special handling for paragraphs - minimal spacing */
.real_editor_spanreal-space p {
	margin-top: 0 !important;
	margin-bottom: 0.3em !important;
}

/* Handle consecutive paragraphs - reduce empty line height with negative margin */
.real_editor_spanreal-space p + p {
	margin-top: -0.2em !important;
}

/* Completely hide br tags, as spaces are handled by &nbsp; */
.real_editor_spanreal-space br {
	display: none !important;
	height: 0 !important;
	line-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Handle div and other block-level elements */
.real_editor_spanreal-space div,
.real_editor_spanreal-space section,
.real_editor_spanreal-space article {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Ensure text wraps nicely */
.real_editor_spanreal-space {
	word-break: break-word;
	overflow-wrap: anywhere;
}

