/*
 * Shared content rhythm for writing and reading.
 * Loaded on the page and in the CKEditor document (same file).
 */

.vc-board .read_body,
.vc-board .read_body .xe_content,
.vc-board .feedback .xe_content,
body.rhymix_content.xe_content.editable,
div.cke_wysiwyg_div {
	font-family: SpoqaHanSansNeo, "Malgun Gothic", system-ui, sans-serif;
	line-height: 1.55;
	letter-spacing: 0;
	word-break: keep-all;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.vc-board .read_body,
.vc-board .read_body .xe_content,
body.rhymix_content.xe_content.editable,
div.cke_wysiwyg_div {
	font-size: 17px;
}

.vc-board .feedback .xe_content,
body.rhymix_content.xe_content.editable.vc-comment-editor,
div.cke_wysiwyg_div.vc-comment-editor {
	font-size: 15px;
}

@media (max-width: 899px) {
	.vc-board .read_body,
	.vc-board .read_body .xe_content,
	body.rhymix_content.xe_content.editable:not(.vc-comment-editor),
	div.cke_wysiwyg_div:not(.vc-comment-editor) {
		font-size: 16px;
	}
}

.vc-board .read_body .xe_content p,
.vc-board .feedback .xe_content p,
body.rhymix_content.xe_content.editable p,
div.cke_wysiwyg_div p {
	margin: 0 0 0.2em;
	line-height: 1.55;
}

.vc-board .read_body .xe_content p:last-child,
.vc-board .feedback .xe_content p:last-child,
body.rhymix_content.xe_content.editable p:last-child,
div.cke_wysiwyg_div p:last-child {
	margin-bottom: 0;
}

.vc-board .read_body .xe_content h1,
.vc-board .read_body .xe_content h2,
.vc-board .read_body .xe_content h3,
.vc-board .read_body .xe_content h4,
.vc-board .feedback .xe_content h1,
.vc-board .feedback .xe_content h2,
.vc-board .feedback .xe_content h3,
.vc-board .feedback .xe_content h4,
body.rhymix_content.xe_content.editable h1,
body.rhymix_content.xe_content.editable h2,
body.rhymix_content.xe_content.editable h3,
body.rhymix_content.xe_content.editable h4,
div.cke_wysiwyg_div h1,
div.cke_wysiwyg_div h2,
div.cke_wysiwyg_div h3,
div.cke_wysiwyg_div h4 {
	margin: 1.05em 0 0.35em;
	line-height: 1.4;
	letter-spacing: -0.02em;
	font-weight: 700;
}

.vc-board .read_body .xe_content h1:first-child,
.vc-board .read_body .xe_content h2:first-child,
.vc-board .read_body .xe_content h3:first-child,
.vc-board .read_body .xe_content h4:first-child,
.vc-board .feedback .xe_content h1:first-child,
.vc-board .feedback .xe_content h2:first-child,
.vc-board .feedback .xe_content h3:first-child,
.vc-board .feedback .xe_content h4:first-child,
body.rhymix_content.xe_content.editable h1:first-child,
body.rhymix_content.xe_content.editable h2:first-child,
body.rhymix_content.xe_content.editable h3:first-child,
body.rhymix_content.xe_content.editable h4:first-child,
div.cke_wysiwyg_div h1:first-child,
div.cke_wysiwyg_div h2:first-child,
div.cke_wysiwyg_div h3:first-child,
div.cke_wysiwyg_div h4:first-child {
	margin-top: 0.1em;
}

.vc-board .read_body .xe_content hr,
.vc-board .feedback .xe_content hr,
body.rhymix_content.xe_content.editable hr,
div.cke_wysiwyg_div hr {
	margin: 1.35em 0;
	border: 0;
	border-top: 1px solid #e4e6e8;
}

.vc-board .read_body .xe_content li,
.vc-board .feedback .xe_content li,
body.rhymix_content.xe_content.editable li,
div.cke_wysiwyg_div li {
	margin: 0.25em 0;
	line-height: 1.55;
}

.vc-board .read_body .xe_content ul,
.vc-board .read_body .xe_content ol,
.vc-board .feedback .xe_content ul,
.vc-board .feedback .xe_content ol,
body.rhymix_content.xe_content.editable ul,
body.rhymix_content.xe_content.editable ol,
div.cke_wysiwyg_div ul,
div.cke_wysiwyg_div ol {
	margin-left: 0.75em;
	padding-left: 0.85em;
}

.vc-board .read_body .xe_content ul ul,
.vc-board .read_body .xe_content ol ol,
.vc-board .read_body .xe_content ul ol,
.vc-board .read_body .xe_content ol ul,
.vc-board .feedback .xe_content ul ul,
.vc-board .feedback .xe_content ol ol,
.vc-board .feedback .xe_content ul ol,
.vc-board .feedback .xe_content ol ul,
body.rhymix_content.xe_content.editable ul ul,
body.rhymix_content.xe_content.editable ol ol,
body.rhymix_content.xe_content.editable ul ol,
body.rhymix_content.xe_content.editable ol ul,
div.cke_wysiwyg_div ul ul,
div.cke_wysiwyg_div ol ol,
div.cke_wysiwyg_div ul ol,
div.cke_wysiwyg_div ol ul {
	margin-left: 0;
	padding-left: 0.85em;
}

.vc-board .read_body .xe_content blockquote,
.vc-board .feedback .xe_content blockquote,
body.rhymix_content.xe_content.editable blockquote,
div.cke_wysiwyg_div blockquote {
	margin-left: 0;
	margin-right: 0;
}

body.rhymix_content.xe_content.editable,
div.cke_wysiwyg_div {
	box-sizing: border-box;
	padding: 6px 16px 12px;
	background: #ffffff;
	color: #101011;
}

@media (max-width: 899px) {
	body.rhymix_content.xe_content.editable,
	div.cke_wysiwyg_div {
		padding: 6px 14px 10px;
	}
}

body.color_scheme_dark .vc-board .read_body,
body.color_scheme_dark .vc-board .read_body .xe_content,
body.color_scheme_dark .vc-board .feedback .xe_content {
	color: #e9eaec;
}

body.rhymix_content.xe_content.editable.color_scheme_dark,
div.cke_wysiwyg_div.color_scheme_dark {
	background: #1d1e20;
	color: #e9eaec;
}

body.color_scheme_dark .vc-board .read_body .xe_content hr,
body.color_scheme_dark .vc-board .feedback .xe_content hr,
body.rhymix_content.xe_content.editable.color_scheme_dark hr,
div.cke_wysiwyg_div.color_scheme_dark hr {
	border-top-color: #3a3d41;
}

/* Editor canvas code blocks. Published articles keep the copy-button chrome in vibecrew.board.css. */
body.rhymix_content.xe_content.editable pre,
div.cke_wysiwyg_div pre {
	margin: 16px 0;
	padding: 16px;
	overflow: auto;
	border: 1px solid #d6d8db;
	border-radius: 8px;
	background: #f5f6f7;
	color: #25282b;
	font-family: "Source Code Pro", Consolas, SpoqaHanSansNeo, "Malgun Gothic", monospace;
	font-size: 14px;
	line-height: 1.65;
	white-space: pre-wrap;
	tab-size: 2;
}

body.rhymix_content.xe_content.editable pre code,
div.cke_wysiwyg_div pre code {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	white-space: inherit;
}

body.rhymix_content.xe_content.editable.color_scheme_dark pre,
div.cke_wysiwyg_div.color_scheme_dark pre {
	border-color: #44474b;
	background: #121416;
	color: #e9eaec;
}
