/* 본문(에디터) 전용 스타일
   - UI 스타일(ui.css)과 분리
   - 사용자가 본문 스타일을 추가/수정해도 UI(모달/컨트롤)가 영향 받지 않도록 설계 */

.editor{min-height:100%;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;line-height:1.6}

/* paragraph styles in editor */
.editor .wp-title{font-size:32px;font-weight:800;line-height:1.3;margin:10px 0}
.editor .wp-subtitle{font-size:22px;font-weight:600;color:#475569;line-height:1.4;margin:8px 0}
.editor .wp-h1{font-size:26px;font-weight:700;line-height:1.35;margin:10px 0}
.editor .wp-h2{font-size:20px;font-weight:700;line-height:1.4;margin:8px 0}
.editor .wp-h3{font-size:18px;font-weight:700;line-height:1.45;margin:8px 0}
.editor .wp-h4{font-size:16px;font-weight:700;line-height:1.5;margin:6px 0}
.editor .wp-quote{border-left:4px solid #94a3b8;padding-left:10px;color:#334155;font-style:italic}
.editor .wp-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#f1f5f9;padding:8px;border-radius:6px;white-space:pre-wrap}
.editor .wp-callout{border:1px solid #cbd5e1;background:#f8fafc;border-radius:10px;padding:10px}
.editor .wp-caption{font-size:12px;color:#64748b;margin:6px 0}

/* 표(테이블) 스타일 */
.editor table.wp-table{border-collapse:collapse;width:auto;max-width:100%;margin:12px 0}
.editor table.wp-table td,.editor table.wp-table th{border:1px solid #cfcfcf;padding:6px 8px;vertical-align:top;min-width:40px;min-height:24px}
.editor table.wp-table .wp-cell-selected{outline:2px solid #4b8cff;outline-offset:-2px}
.editor table.wp-table.wp-table-center{margin-left:auto;margin-right:auto}
.editor table.wp-table.wp-table-right{margin-left:auto;margin-right:0}
.editor table.wp-table.wp-table-left{margin-left:0;margin-right:auto}
.editor table.wp-table.wp-float-left{float:left;margin-right:12px}
.editor table.wp-table.wp-float-right{float:right;margin-left:12px}

/* 에디터 외부(floating 등)에서도 표 테두리가 보이도록 */
.wp-table td,
.wp-table th{border:1px solid #cfcfcf;padding:6px 8px;vertical-align:top;min-width:40px;min-height:24px}

/* 표 서식: 줄무늬 행 스타일 */
.editor table.wp-table.wp-table-style-striped tr:nth-child(odd) td,
.editor table.wp-table.wp-table-style-striped tr:nth-child(odd) th,
.wp-table.wp-table-style-striped tr:nth-child(odd) td,
.wp-table.wp-table-style-striped tr:nth-child(odd) th{
  background:#f8fafc;
}
.editor table.wp-table.wp-table-style-striped tr:first-child td,
.editor table.wp-table.wp-table-style-striped tr:first-child th,
.wp-table.wp-table-style-striped tr:first-child td,
.wp-table.wp-table-style-striped tr:first-child th{
  background:#e2e8f0;
  font-weight:600;
}

/* 이미지/도형(개체) */
.editor{position:relative}
.editor .wp-object{display:inline-block;vertical-align:baseline;max-width:100%;border:1px dashed transparent}
.editor .wp-object[data-mode="free"]{position:absolute;z-index:10}
.editor .wp-object.wp-selected{border-color:#3b82f6}
.editor .wp-object{resize:both;overflow:hidden}
.editor .wp-object .wp-object-inner{width:100%;height:100%;display:block}
.editor .wp-object img{width:100%;height:100%;display:block;object-fit:contain}
