/*
 * CKEditor 5.40.2 Classic Build 출력 콘텐츠 스타일.
 * 실제 출력 영역에 class="ck-content ckeditor-view"를 지정해 사용한다.
 * CKEditor 공식 content styles와 관리자 에디터의 기본 타이포그래피를 따른다.
 */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

.ckeditor-view.ck-content {
  color: #212529;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ckeditor-view.ck-content * {
  font-family: inherit;
  letter-spacing: normal;
  line-height: inherit;
  word-spacing: normal;
  word-break: normal;
}

/* 관리자 테마의 .ck p 규칙과 동일 */
.ckeditor-view.ck-content p {
  margin: 0;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* 관리자 Bootstrap 테마의 제목 규칙과 동일 */
.ckeditor-view.ck-content h2,
.ckeditor-view.ck-content h3,
.ckeditor-view.ck-content h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}

.ckeditor-view.ck-content h2 {
  font-size: 26px;
}

.ckeditor-view.ck-content h3 {
  font-size: 22.75px;
}

.ckeditor-view.ck-content h4 {
  font-size: 19.5px;
}

.ckeditor-view.ck-content strong,
.ckeditor-view.ck-content b {
  font-weight: bolder;
}

.ckeditor-view.ck-content em,
.ckeditor-view.ck-content i {
  font-style: italic;
}

.ckeditor-view.ck-content a {
  color: #405189;
  text-decoration: underline;
}

.ckeditor-view.ck-content ul,
.ckeditor-view.ck-content ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.ckeditor-view.ck-content ol,
.ckeditor-view.ck-content ol > li {
  list-style-type: decimal;
}

.ckeditor-view.ck-content ol ol,
.ckeditor-view.ck-content ol ol > li {
  list-style-type: lower-latin;
}

.ckeditor-view.ck-content ol ol ol,
.ckeditor-view.ck-content ol ol ol > li {
  list-style-type: lower-roman;
}

.ckeditor-view.ck-content ul,
.ckeditor-view.ck-content ul > li {
  list-style-type: disc;
}

.ckeditor-view.ck-content ul ul,
.ckeditor-view.ck-content ul ul > li {
  list-style-type: circle;
}

.ckeditor-view.ck-content ul ul ul,
.ckeditor-view.ck-content ul ul ul > li {
  list-style-type: square;
}

.ckeditor-view.ck-content li {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

/* CKEditor 5 blockquote content style */
.ckeditor-view.ck-content blockquote {
  margin: 0 0 1rem;
  padding-right: 1.5em;
  padding-left: 1.5em;
  overflow: hidden;
  border-left: 5px solid hsl(0, 0%, 80%);
  color: inherit;
  font-size: inherit;
  font-style: italic;
  line-height: inherit;
}

/* CKEditor 5 image content styles */
.ckeditor-view.ck-content figure.image {
  display: table;
  min-width: 50px;
  max-width: 100%;
  margin: 0.9em auto;
  clear: both;
  line-height: inherit;
  text-align: center;
}

.ckeditor-view.ck-content figure.image img {
  display: block;
  min-width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.ckeditor-view.ck-content figure.image.image-style-side {
  float: right;
  max-width: 50%;
  margin-left: 1.5em;
}

.ckeditor-view.ck-content figure.image.image-style-align-left {
  float: left;
  margin-right: 1.5em;
  clear: none;
}

.ckeditor-view.ck-content figure.image.image-style-align-right {
  float: right;
  margin-left: 1.5em;
  clear: none;
}

.ckeditor-view.ck-content figure.image > figcaption {
  display: table-caption;
  caption-side: bottom;
  padding: 0.6em;
  outline-offset: -1px;
  background-color: hsl(0, 0%, 97%);
  color: hsl(0, 0%, 20%);
  font-size: 0.75em;
  line-height: inherit;
  text-align: center;
  word-break: break-word;
}

/* CKEditor 5.40.2 table content styles */
.ckeditor-view.ck-content figure.table {
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 0.9em auto;
  line-height: inherit;
  overflow-x: auto;
}

.ckeditor-view.ck-content figure.table table {
  width: 100%;
  height: 100%;
  border: 1px double hsl(0, 0%, 70%);
  border-collapse: collapse;
  border-spacing: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.ckeditor-view.ck-content figure.table table td,
.ckeditor-view.ck-content figure.table table th {
  min-width: 2em;
  padding: 0.4em;
  border: 1px solid hsl(0, 0%, 75%);
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  vertical-align: middle;
}

.ckeditor-view.ck-content figure.table table th {
  background: hsla(0, 0%, 0%, 0.05);
  font-weight: bold;
}

.ckeditor-view.ck-content::after {
  display: block;
  clear: both;
  content: "";
}
