/**
 * 웹에디터(TinyMCE) 작성 화면과 상세 출력 화면 공통 스타일
 * - TinyMCE iframe: body.mce-content-body
 * - 상세 출력: .bh-rich-content, .resume-detail-content, .news-view-body
 *
 * 주의: bare body 선택자는 사용하지 않음 (사이트 전역 body 레이아웃 파손 방지)
 */
.bh-rich-content,
.resume-detail-content,
.news-view-body {
  box-sizing: border-box;
  width: 900px;
  max-width: 100%;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #121212;
  word-break: break-word;
}

body.mce-content-body {
  box-sizing: border-box;
  width: 900px;
  min-width: 900px;
  max-width: 900px;
  margin: 0;
  padding: 16px 0 24px;
  background: #fff;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #121212;
  word-break: break-word;
}

.bh-rich-content,
.resume-detail-content,
.news-view-body {
  padding: 0;
  margin-bottom: 24px;
}

body.mce-content-body > *:first-child,
.bh-rich-content > *:first-child,
.resume-detail-content > *:first-child {
  margin-top: 0;
}

body.mce-content-body > *:last-child,
.bh-rich-content > *:last-child,
.resume-detail-content > *:last-child {
  margin-bottom: 0;
}

body.mce-content-body h1,
body.mce-content-body h2,
body.mce-content-body h3,
body.mce-content-body h4,
body.mce-content-body h5,
body.mce-content-body h6,
.bh-rich-content h1,
.bh-rich-content h2,
.bh-rich-content h3,
.bh-rich-content h4,
.bh-rich-content h5,
.bh-rich-content h6,
.resume-detail-content h1,
.resume-detail-content h2,
.resume-detail-content h3,
.resume-detail-content h4,
.resume-detail-content h5,
.resume-detail-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  line-height: 1.4;
  font-weight: 700;
  color: #121212;
}

body.mce-content-body h1,
.bh-rich-content h1,
.resume-detail-content h1 {
  font-size: 2em;
}

body.mce-content-body h2,
.bh-rich-content h2,
.resume-detail-content h2 {
  font-size: 1.5em;
}

body.mce-content-body h3,
.bh-rich-content h3,
.resume-detail-content h3 {
  font-size: 1.25em;
}

body.mce-content-body h4,
.bh-rich-content h4,
.resume-detail-content h4 {
  font-size: 1.125em;
}

body.mce-content-body p,
.bh-rich-content p,
.resume-detail-content p {
  margin: 0 0 0.9em;
}

body.mce-content-body ul,
body.mce-content-body ol,
.bh-rich-content ul,
.bh-rich-content ol,
.resume-detail-content ul,
.resume-detail-content ol {
  margin: 0 0 0.9em;
  padding-left: 1.4em;
}

body.mce-content-body li,
.bh-rich-content li,
.resume-detail-content li {
  margin-bottom: 0.35em;
}

body.mce-content-body a,
.bh-rich-content a,
.resume-detail-content a {
  color: #2563eb;
  text-decoration: underline;
}

body.mce-content-body a:hover,
.bh-rich-content a:hover,
.resume-detail-content a:hover {
  color: #1d4ed8;
}

body.mce-content-body img,
.bh-rich-content img,
.resume-detail-content img {
  max-width: 100%;
  height: auto;
}

body.mce-content-body figure,
.bh-rich-content figure,
.resume-detail-content figure {
  margin: 0 0 1em;
  padding: 0;
}

body.mce-content-body table,
.bh-rich-content table,
.resume-detail-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25em;
}

body.mce-content-body table th,
body.mce-content-body table td,
.bh-rich-content table th,
.bh-rich-content table td,
.resume-detail-content table th,
.resume-detail-content table td {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  vertical-align: top;
}

body.mce-content-body table th,
.bh-rich-content table th,
.resume-detail-content table th {
  background-color: #f8f9fa;
  font-weight: 700;
}

body.mce-content-body blockquote,
.bh-rich-content blockquote,
.resume-detail-content blockquote {
  margin: 0 0 1em;
  padding: 0.75em 1em;
  border-left: 4px solid #d1d5db;
  color: #4b5563;
  background: #f9fafb;
}

body.mce-content-body pre,
body.mce-content-body code,
.bh-rich-content pre,
.bh-rich-content code,
.resume-detail-content pre,
.resume-detail-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

body.mce-content-body pre,
.bh-rich-content pre,
.resume-detail-content pre {
  margin: 0 0 1em;
  padding: 12px 14px;
  overflow-x: auto;
  background: #f3f4f6;
  border-radius: 6px;
}

body.mce-content-body hr,
.bh-rich-content hr,
.resume-detail-content hr {
  margin: 1.5em 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

body.mce-content-body strong,
.bh-rich-content strong,
.resume-detail-content strong,
body.mce-content-body b,
.bh-rich-content b,
.resume-detail-content b {
  font-weight: 700;
}

body.mce-content-body em,
.bh-rich-content em,
.resume-detail-content em,
body.mce-content-body i,
.bh-rich-content i,
.resume-detail-content i {
  font-style: italic;
}
