/* 自由編輯正文與 TinyMCE 畫布共用行高及分隔線樣式。 */
:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) {
	line-height: 36px;
}

:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) :is(p, ul, ol, li, h1, h2, h3, h4, h5, h6, blockquote) {
	margin-block: 0;
	line-height: inherit;
}

/* 由區塊撐開行盒，避免不同字級的行內文字把基線上下撐高。 */
:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) :is(span, strong, b, em, i, a, font) {
	line-height: 0;
}

:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) :is(ul, ol) {
	padding-inline-start: 1.5em;
}

:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) hr.scrc-divider {
	margin: 28px 0;
	border: 0;
	border-radius: 4px;
	background: #ffcc99;
	height: 4px;
	max-width: 100%;
}

:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) .scrc-image-text {
	display: grid;
	gap: 16px;
	align-items: start;
	margin-block: 16px;
	overflow-wrap: anywhere;
}

:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) .scrc-image-text img {
	display: block;
	max-width: 100%;
	height: auto;
}

@media (min-width: 600px) {
	:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) .scrc-image-text-left {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}

	:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) .scrc-image-text-right {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}

	:is(.scrc-app .scrc-rich-content, body.scrc-rich-content) .scrc-image-text-right > .scrc-image-text-copy {
		grid-area: 1 / 1;
	}
}
