/* ===============================================================
   본문 서식 (B안) - 편집 화면과 사용자 화면이 함께 쓰는 규칙.

   서버는 편집기가 만든 서식 중 정해 둔 값만 class 로 바꿔 저장한다
   (ArticleFormatClasses). 이 파일이 그 class 를 그린다 - 공개 화면(.article-html)과
   편집기(.sun-editor-editable) 양쪽에 같은 모양이 나오게 한다. 색을 바꾸려면 여기만
   바꾸면 이미 쓴 글도 함께 바뀐다(편집기 선택지와 서버 표의 값은 "이름표"일 뿐이다).
   =============================================================== */

/* 강조 색 3가지 */
.rl-c-navy { color: #17324d; }
.rl-c-blue { color: #3b739c; }
.rl-c-red  { color: #c0392b; }

/* 형광펜 */
.rl-hl { padding: 0 2px; border-radius: 3px; background: #fff3b0; }

/* 글자 크기 */
.rl-fs-sm { font-size: 0.875em; }
.rl-fs-lg { font-size: 1.25em; }

/* 정렬 (왼쪽이 기본) */
.rl-al-center { text-align: center; }
.rl-al-right  { text-align: right; }

/* ---------------------------------------------------------------
   사용자 화면 본문에서 편집기 산출물이 어색하지 않게.
   편집기는 표·그림을 <figure> 로 감싸는데 브라우저 기본 여백(좌우 40px)이 붙어
   본문보다 안쪽으로 들어가 보였다. 취소선·밑줄·구분선 모양도 맞춘다.
   --------------------------------------------------------------- */
.article-html figure { margin: 22px 0; }
.article-html figure > table { margin: 0; }
.article-html figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 10px; }
.article-html figcaption { margin-top: 8px; color: #6b7d8c; font-size: 13px; text-align: center; }
.article-html del, .article-html s { color: #7b8a96; }
.article-html u { text-underline-offset: 3px; }
.article-html hr { margin: 30px 0; border: 0; border-top: 1px solid #dce6ed; }
.article-html sub, .article-html sup { font-size: 0.75em; }
.article-html table { width: 100%; }
/* 넓은 표는 표 안에서만 좌우로 움직인다(모바일에서 화면 전체가 밀리지 않게). */
.article-html figure:has(> table) { overflow-x: auto; }

/* ---------------------------------------------------------------
   콘텐츠 요소 - 편집기 "콘텐츠 요소" 단추가 넣는 구조. 편집기와 공개 화면이 같은 모양.
   --------------------------------------------------------------- */
/* 판단 체크리스트 */
ul.rl-checklist {
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid #dce6ed;
  border-radius: 12px;
  background: #fafcfd;
  list-style: none;
}
ul.rl-checklist > li {
  position: relative;
  margin: 6px 0;
  padding-left: 28px;
}
ul.rl-checklist > li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 2px;
  width: 15px;
  height: 15px;
  border: 1.5px solid #4e84a7;
  border-radius: 4px;
  background: #fff;
}
ul.rl-checklist > li::after {
  content: "";
  position: absolute;
  top: calc(0.45em + 3px);
  left: 7px;
  width: 4px;
  height: 7px;
  border: solid #4e84a7;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 자주 묻는 질문 */
dl.rl-faq {
  margin: 18px 0;
  padding: 16px 20px;
  border: 1px solid #dce6ed;
  border-radius: 12px;
  background: #f4f8fb;
}
dl.rl-faq > dt {
  margin-top: 14px;
  color: #17324d;
  font-weight: 700;
}
dl.rl-faq > dt:first-child { margin-top: 0; }
dl.rl-faq > dt::before { content: "Q. "; color: #3b739c; }
dl.rl-faq > dd {
  margin: 4px 0 0;
  padding-left: 22px;
  color: #4a5b68;
}
