/* 공지 본문 스타일 — 에디터 편집 영역, 미리보기, 공개 페이지가 같은 모양으로 보이도록 한 곳에서 정한다.
   공개 페이지에서는 본문을 감싸는 요소에 class="sbp-content"를 준다. */
@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Nanum+Pen+Script&family=Noto+Serif+KR:wght@400;700&display=swap');

.sbp-content, .jodit-wysiwyg { font: 400 16px/1.75 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif; color: #1A2F2A; word-break: keep-all; overflow-wrap: anywhere; }
.sbp-content::after { content: ''; display: block; clear: both; }
.sbp-content > :first-child { margin-top: 0; }
.sbp-content > :last-child { margin-bottom: 0; }
.sbp-content p, .jodit-wysiwyg p { margin: 0 0 .9em; }
.sbp-content h2, .jodit-wysiwyg h2 { margin: 1.4em 0 .5em; font-size: 1.5em; line-height: 1.35; letter-spacing: -.02em; }
.sbp-content h3, .jodit-wysiwyg h3 { margin: 1.3em 0 .5em; font-size: 1.25em; line-height: 1.4; }
.sbp-content h4, .jodit-wysiwyg h4 { margin: 1.2em 0 .4em; font-size: 1.05em; line-height: 1.4; }
.sbp-content ul, .sbp-content ol, .jodit-wysiwyg ul, .jodit-wysiwyg ol { margin: 0 0 .9em; padding-left: 1.4em; }
.sbp-content blockquote, .jodit-wysiwyg blockquote { margin: 1em 0; padding: 4px 0 4px 16px; border-left: 3px solid #E3D8C8; color: #44544E; }
.sbp-content hr, .jodit-wysiwyg hr { margin: 1.6em 0; border: 0; border-top: 1px solid #E3D8C8; }
.sbp-content a, .jodit-wysiwyg a { color: #2F6B5A; text-decoration: underline; text-underline-offset: 2px; }
.sbp-content img, .jodit-wysiwyg img { max-width: 100%; height: auto; }
.sbp-content table, .jodit-wysiwyg table { width: 100%; margin: 0 0 1em; border-collapse: collapse; table-layout: fixed; }
.sbp-content td, .sbp-content th, .jodit-wysiwyg td, .jodit-wysiwyg th { padding: 8px 10px; border: 1px solid #D9CDBB; vertical-align: top; }
.sbp-content th, .jodit-wysiwyg th { background: #F6EFE4; }

/* 유튜브 — 저장은 빈 div, 공개 화면은 iframe, 편집 화면은 썸네일 카드 */
.sbp-yt { position: relative; clear: both; max-width: 640px; margin: 1em 0; aspect-ratio: 16 / 9; background: #14201C; border-radius: 10px; overflow: hidden; }
.sbp-yt iframe, .sbp-yt img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sbp-yt__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: #E02B2B; }
.sbp-yt__play::after { content: ''; position: absolute; left: 26px; top: 12px; border: 10px solid transparent; border-left: 16px solid #fff; border-right: 0; }

.jodit-wysiwyg .sbp-yt { user-select: none; }
.jodit-placeholder { font-weight:400 !important; color:#8A958F !important; }
.sbp-dlg-err { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: #B5502F; }
