@charset "UTF-8";

/**
 * 부산진지역자활센터 차세대 웹사이트
 * 본문 콘텐츠 전용 스타일시트 (TinyMCE 에디터 & 대민/관리자 상세 뷰어 공통 사용)
 * 글 작성 시와 실제 게시물 조회 시 100% 동일한 WYSIWYG 렌더링을 보장합니다.
 */

body.mce-content-body,
.editor-content {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #2b303a;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* 문단 및 여백 */
body.mce-content-body p,
.editor-content p {
    margin: 0 0 1em 0;
}

body.mce-content-body p:last-child,
.editor-content p:last-child {
    margin-bottom: 0;
}

/* 제목 태그 */
body.mce-content-body h1, .editor-content h1 { font-size: 28px; font-weight: 700; margin: 1.4em 0 0.6em; line-height: 1.3; color: #1e293b; }
body.mce-content-body h2, .editor-content h2 { font-size: 24px; font-weight: 700; margin: 1.3em 0 0.5em; line-height: 1.35; color: #1f4089; border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; }
body.mce-content-body h3, .editor-content h3 { font-size: 20px; font-weight: 600; margin: 1.2em 0 0.4em; line-height: 1.4; color: #0f172a; }
body.mce-content-body h4, .editor-content h4 { font-size: 18px; font-weight: 600; margin: 1.1em 0 0.3em; line-height: 1.45; color: #334155; }
body.mce-content-body h5, .editor-content h5 { font-size: 16px; font-weight: 600; margin: 1.0em 0 0.2em; line-height: 1.5; color: #475569; }
body.mce-content-body h6, .editor-content h6 { font-size: 14px; font-weight: 600; margin: 1.0em 0 0.2em; line-height: 1.5; color: #64748b; }

/* 표 / 테이블 서식 */
body.mce-content-body table,
.editor-content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 15px;
    border: 1px solid #cbd5e1;
}

body.mce-content-body th,
.editor-content th {
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    text-align: center;
}

body.mce-content-body td,
.editor-content td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}

/* 이미지 및 반응형 미디어 */
body.mce-content-body img,
.editor-content img {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 링크 스타일 */
body.mce-content-body a,
.editor-content a {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.mce-content-body a:hover,
.editor-content a:hover {
    color: #0369a1;
}

/* 인용구 */
body.mce-content-body blockquote,
.editor-content blockquote {
    margin: 1.2em 0;
    padding: 12px 20px;
    border-left: 4px solid #1f4089;
    background-color: #f8fafc;
    color: #475569;
    font-style: italic;
}

/* 리스트 */
body.mce-content-body ul,
.editor-content ul {
    list-style-type: disc;
    padding-left: 24px;
    margin: 0.8em 0;
}

body.mce-content-body ol,
.editor-content ol {
    list-style-type: decimal;
    padding-left: 24px;
    margin: 0.8em 0;
}

body.mce-content-body li,
.editor-content li {
    margin-bottom: 0.4em;
}
