/* =========================================================
   Front: Keep CKEditor typography (color/font/size) as-is
   Only remove highlight background in rendered posts
   Target: .content-body (post_detail.html wrapper)
   ========================================================= */

/* ===== Front fonts (must be loaded on front too) ===== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");


/* 1) 배경색(형광펜) 제거: background-color / background */
.content-body [style*="background-color"],
.content-body [style*="background:"] {
  background: transparent !important;
  background-color: transparent !important;
}

/* 2) mark 태그(형광펜) 제거: 배경만 제거 (글자색은 유지) */
.content-body mark {
  background: transparent !important;
}

.content-body{
  font-family: Pretendard, "Noto Sans KR", "Nanum Gothic", "Malgun Gothic", Arial, sans-serif;
}

/* ===== CKEditor text size classes mapping ===== */
/* (CKEditor가 쓰는 클래스명에 맞춰 정의) */
.content-body .text-tiny   { font-size: 0.7em; }
.content-body .text-small  { font-size: 0.85em; }
.content-body .text-big    { font-size: 1.15em; }
.content-body .text-huge   { font-size: 1.4em; }

/* ===== Rendered post images: always fit content width ===== */
.content-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CKEditor resized images: override inline px width */
.content-body img.image_resized {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ❌ 아래는 “DB에 저장된 글자색을 제거”하므로 삭제/비활성화 */
/*
.content-body [style*="color:"] {
  color: inherit !important;
}

.content-body mark {
  color: inherit !important;
}

.content-body [class*="color"],
.content-body [class*="bg"] {
  color: inherit !important;
  background-color: transparent !important;
}
*/