/* Real Editor Space - Gutenberg editor styling
 * Note: Only takes effect when body has real_editor_spaneditor-real-space class
 * Spaces are handled via &nbsp; entities, not CSS white-space: pre-wrap
 */
body.real_editor_spaneditor-real-space .editor-styles-wrapper,
body.real_editor_spaneditor-real-space .block-editor-writing-flow,
body.real_editor_spaneditor-real-space .block-editor-block-list__layout,
body.real_editor_spaneditor-real-space .block-editor-block-list__block,
body.real_editor_spaneditor-real-space .block-editor-rich-text__editable {
	white-space: normal !important;
	overflow-wrap: break-word !important;
	hyphens: auto;
	text-wrap: pretty;
}

/* Reset spacing for internal editor elements */
body.real_editor_spaneditor-real-space .editor-styles-wrapper *,
body.real_editor_spaneditor-real-space .block-editor-rich-text__editable * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Adjust paragraph spacing - minimal */
body.real_editor_spaneditor-real-space .editor-styles-wrapper p,
body.real_editor_spaneditor-real-space .block-editor-rich-text__editable p {
	margin-top: 0 !important;
	margin-bottom: 0.3em !important;
}

/* Handle consecutive paragraphs - reduce empty line height */
body.real_editor_spaneditor-real-space .editor-styles-wrapper p + p,
body.real_editor_spaneditor-real-space .block-editor-rich-text__editable p + p {
	margin-top: -0.2em !important;
}

/* Completely hide br tags, as spaces are handled by &nbsp; */
body.real_editor_spaneditor-real-space .editor-styles-wrapper br,
body.real_editor_spaneditor-real-space .block-editor-rich-text__editable br {
	display: none !important;
	height: 0 !important;
	line-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

