@media print {
	body {
		margin: 0 !important;
	}
}

.ckeditor5 {
    font-family: NanumGothic, "나눔고딕", 'Malgun Gothic',"맑은 고딕";
	margin-left: auto;
	margin-right: auto;
}

.ck-content {
	font-family: NanumGothic, "나눔고딕", 'Malgun Gothic',"맑은 고딕";
	line-height: 1.6;
	word-break: break-word;
}

.editor-container_include-block-toolbar {
	margin-left: 42px;
}

/* CKEditor의 실제 입력 영역을 선택합니다 */
.ck-editor__editable_inline:not(.ck-comment__input *) {
    min-height: 400px; /* 원하는 최소 높이를 여기에 입력해. 400px 정도로 넉넉하게! */
    overflow-y: auto;  /* 내용이 높이보다 길어지면 스크롤바가 생기도록 설정 */
}

/* --- 반응형 웹 스타일 --- */

/* CKEditor의 전체 UI를 감싸는 컨테이너 */
.ck.ck-editor {
    /* 모바일 화면에서는 폭을 100%로 꽉 채움 */
    max-width: 100%;
}

/* 데스크톱 크기(예: 1200px 이상)에서는 최대 폭을 제한해서 가독성을 높임 */
@media (min-width: 1200px) {
    .ck.ck-editor {
        max-width: 1195px;
        margin: 0 auto; /* 중앙 정렬 */
    }
}

/* --- 에디터 내부 콘텐츠 스타일 --- */

/* .ck-content 클래스 내부의 요소들에 스타일을 적용 */
.ck-content blockquote {
    /* 인용구 스타일 변경 */
    border-left: 4px solid #007bff; /* 파란색 왼쪽 테두리 */
    padding: 0.5rem 1rem;
    margin-left: 0;
    background-color: #f8f9fa;
    color: #555;
}

.ck-content ul {
    /* 불릿 목록의 기본 마커를 변경 */
    list-style-type: '✓ '; /* 체크 모양으로 변경 (브라우저 호환성 확인 필요) */
}

/* 제목1 */
.ck-content h2 {
    /* h2 태그에 아래쪽 여백 추가 */
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.ck-content p.info-box {
	--background-size: 30px;
	--background-color: #e91e63;
	padding: 1.2em 2em;
	border: 1px solid var(--background-color);
	background:
		linear-gradient(135deg, var(--background-color) 0%, var(--background-color) var(--background-size), transparent var(--background-size)),
		linear-gradient(
			135deg,
			transparent calc(100% - var(--background-size)),
			var(--background-color) calc(100% - var(--background-size)),
			var(--background-color)
		);
	border-radius: 10px;
	margin: 1.5em 2em;
	box-shadow: 5px 5px 0 #ffe6ef;
}

.ck-content span.marker {
	background: yellow;
}

.ck-content span.spoiler {
	background: #000;
	color: #000;
}

.ck-content span.spoiler:hover {
	background: #000;
	color: #fff;
}

.editor_container__word-count .ck-word-count {
	color: var(--ck-color-text);
	display: flex;
	height: 20px;
	gap: var(--ck-spacing-small);
	justify-content: flex-end;
	font-size: var(--ck-font-size-base);
	line-height: var(--ck-line-height-base);
	font-family: var(--ck-font-face);
	padding: var(--ck-spacing-small) var(--ck-spacing-standard);
}

.editor-container_include-word-count.editor-container_classic-editor .editor_container__word-count {
	border: 1px solid var(--ck-color-base-border);
	border-radius: var(--ck-border-radius);
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-top: none;
}

.editor-container_include-word-count.editor-container_classic-editor .editor-container__editor .ck-editor .ck-editor__editable {
	border-radius: 0;
}
