/* 게시판 본문 공통 스타일 — 에디터(Summernote) 출력과 동일하게 렌더링 */
.board-content { font-size: 14px; line-height: 1.8; word-break: break-word; }
.board-content img, .board-content video, .board-content iframe, .board-content embed, .board-content object {
    display: inline; vertical-align: middle; max-width: 100%; height: auto;
}
.board-content a { color: #3b82f6; text-decoration: underline; }
.board-content blockquote { border-left: 3px solid #d4d4d8; padding-left: 1rem; margin: 1rem 0; color: #71717a; }
.board-content pre { background: #f4f4f5; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; }
.board-content code { background: #f4f4f5; padding: 0.125rem 0.25rem; border-radius: 0.25rem; font-size: 0.875em; }
.board-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.board-content table td, .board-content table th { border: 1px solid #d4d4d8; padding: 0.5rem; }
.board-content ul { list-style: disc; padding-left: 1.5rem; margin: 0.5rem 0; }
.board-content ol { list-style: decimal; padding-left: 1.5rem; margin: 0.5rem 0; }
.board-content p { margin: 0.5rem 0; }
.board-content h1, .board-content h2, .board-content h3, .board-content h4 { font-weight: 600; margin: 1rem 0 0.5rem; }
.board-content h1 { font-size: 1.5rem; }
.board-content h2 { font-size: 1.25rem; }
.board-content h3 { font-size: 1.125rem; }

/* Summernote 에디터 내부 — Tailwind preflight 덮어쓰기 */
.note-editor .note-editable img, .note-editor .note-editable video, .note-editor .note-editable iframe {
    display: inline; vertical-align: middle; max-width: 100%; height: auto;
}

/* OG 링크 프리뷰 카드 */
.rzx-og-card { transition: box-shadow 0.2s; }
.rzx-og-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* 다크모드 — 전체 텍스트/배경 강제 오버라이드 */
.dark .board-content { color: #e4e4e7 !important; }
.dark .board-content * { color: #d4d4d8 !important; background-color: transparent !important; }
.dark .board-content h1, .dark .board-content h2, .dark .board-content h3, .dark .board-content h4 { color: #f4f4f5 !important; }
.dark .board-content a { color: #60a5fa !important; }
.dark .board-content blockquote { border-color: #52525b !important; color: #a1a1aa !important; }
.dark .board-content pre, .dark .board-content code { background-color: #27272a !important; color: #d4d4d8 !important; }
.dark .board-content table td, .dark .board-content table th { border-color: #3f3f46 !important; }
.dark .board-content table th { background-color: #27272a !important; color: #e4e4e7 !important; }
/* 이미지/비디오는 배경 투명 유지 */
.dark .board-content img, .dark .board-content video, .dark .board-content iframe { background-color: transparent !important; }
.dark .rzx-og-card { border-color: #3f3f46 !important; }
.dark .rzx-og-card div[style*="font-weight:600"] { color: #e4e4e7 !important; }
.dark .rzx-og-card div[style*="color:#71717a"] { color: #a1a1aa !important; }
.dark .rzx-og-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
