/* ─── 게시글 본문 공통 스타일 ──────────────────────────────
 * 에디터(TinyMCE content_css)와 게시판 상세(.post-content)가 같이 쓴다.
 * 글자 크기·줄 간격·여백을 한 곳에서 정해야 쓰는 화면과 보는 화면이 같아진다.
 * 에디터 iframe 에는 Bootstrap·tokens.css 가 없어 var() 는 대체값을 둔다.
 */
.post-content {
    font-family: var(--font-sans, sans-serif);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-body, #212529);
    word-break: break-word;
}
.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
    margin-block: 0 .75rem;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-block: 1rem .5rem;
    line-height: 1.3;
}
.post-content h1 { font-size: 1.5rem; }
.post-content h2 { font-size: 1.25rem; }
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 { font-size: 1rem; }
.post-content img {
    max-width: 100%;
    height: auto;
}
.post-content table {
    width: 100%;
    margin-block: .5rem;
    border-collapse: collapse;
}
.post-content th,
.post-content td {
    padding: .4rem .65rem;
    line-height: 1.5;
    vertical-align: middle;
    border: 1px solid var(--border-subtle, #dee2e6);
}
.post-content pre,
.page-content pre {
    margin-block: .75rem;
    padding: .75rem 1rem;
    overflow-x: auto;
    font-size: .875rem;
    line-height: 1.55;
    background: var(--surface-muted, #f6f8fa);
    border: 1px solid var(--border-subtle, #dee2e6);
    border-radius: .375rem;
}
.post-content pre code,
.page-content pre code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre;
}
/* Prism 테마가 pre 배경을 덮어쓰지 않도록 우리 박스 스타일을 유지 */
.post-content pre[class*="language-"],
.page-content pre[class*="language-"] {
    background: var(--surface-muted, #f6f8fa);
    text-shadow: none;
}
.post-content code[class*="language-"],
.page-content code[class*="language-"] {
    text-shadow: none;
}
