/* =========================================
   CKEditor / 게시판 본문 공통 스타일
========================================= */

.editor_view {
    font-size: 15px;
    line-height: 1.6;
    color: #222;
    word-break: break-word;
}

/* 문단 */
.editor_view p {
    margin: 0 0 10px;
}

/* 굵게 / 기울임 / 밑줄 / 취소선 */
.editor_view strong { font-weight: bold; }
.editor_view em { font-style: italic; }
.editor_view u { text-decoration: underline; }
.editor_view s { text-decoration: line-through; }

/* -----------------------------------------
   테이블
----------------------------------------- */
.editor_view table {
    border-collapse: collapse;
    margin: 10px 0;
    width: auto;
    max-width: 100%;
}

.editor_view table th,
.editor_view table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    vertical-align: middle;
}

.editor_view table th {
    background: #f5f5f5;
    font-weight: bold;
}

/* CKEditor 표 가운데 정렬 호환 */
.editor_view table.cke_show_border,
.editor_view table[align="center"] {
    margin-left: auto;
    margin-right: auto;
}


/* -----------------------------------------
   이미지
----------------------------------------- */
.editor_view img {
    max-width: 100%;
    height: auto;
}

/* -----------------------------------------
   리스트
----------------------------------------- */
.editor_view ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.editor_view ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 10px 0;
}

/* -----------------------------------------
   인용구
----------------------------------------- */
.editor_view blockquote {
    border-left: 4px solid #ccc;
    padding-left: 12px;
    margin: 10px 0;
    color: #666;
    background: #fafafa;
}

/* -----------------------------------------
   코드 블럭
----------------------------------------- */
.editor_view pre {
    background: #f4f4f4;
    padding: 10px;
    border: 1px solid #ddd;
    overflow-x: auto;
}

/* 인라인 코드 */
.editor_view code {
    background: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
}

/* -----------------------------------------
   링크
----------------------------------------- */
.editor_view a {
    color: #0066cc;
    text-decoration: underline;
}

.editor_view a:hover {
    color: #003366;
}
