@charset "utf-8";

/*
	팝업배너 본문(에디터로 쓴 글)의 서식 보정.

	배너는 세 화면에서 뜨는데 화면마다 싣는 CSS 가 달라, 같은 글이 자리마다
	다르게 보였다. 이 파일을 세 곳이 함께 싣는다.

		로그인화면      KYWA4600.jsp            reset + base + login
		방과후 메인      index_header.jsp        bootstrap + main + style
		새 창 배너       bannerPopupWindow.jsp   창 문서를 따로 만든다

	ckeditor5-content.css 가 서식 규칙을 갖고 있지만 두 가지를 메우지 못한다.

		하나. 화면 CSS 가 먼저 지워 둔 것을 되살리지 못한다.
		      reset.css 는 strong 의 굵기와 ol·ul 의 안쪽 여백을 지우고,
		      login.css 와 bootstrap 은 링크의 밑줄을 지운다.

		둘.  class 를 요구하는 규칙이 많다. 표는 figure.table / table.table 에
		      걸려 있어, 본문에 그 class 가 실려 오지 않으면 한 줄도 맞지 않는다.

	그래서 class 에 기대지 않는 평범한 선택자로 같은 모양을 다시 적는다.
	모두 .ck-content 안으로 묶여 있어 화면 본체에는 닿지 않는다.
*/


/* ── 글자 ──────────────────────────────────────────────────────── */

/* reset.css 가 strong·em·cite 의 굵기와 기울임을 지운다
   (실측 : strong 의 font-weight 가 400) */
.ck-content strong,
.ck-content b {
	font-weight: bold !important;
}
.ck-content em,
.ck-content i {
	font-style: italic !important;
}

/* 밑줄·취소선. 화면 CSS 가 글자 꾸밈을 지우는 자리가 있어 눌릴 수 있다 */
.ck-content u {
	text-decoration: underline !important;
}
.ck-content s,
.ck-content strike,
.ck-content del {
	text-decoration: line-through !important;
}


/* ── 제목 ──────────────────────────────────────────────────────── */

/* reset.css 가 font-size:100%, font-weight:normal 로 눌러 두어 툴바에서 제목을
   골라도 본문과 똑같이 보인다. 브라우저 기본값으로 되돌린다 */
.ck-content h1 { font-size: 2em !important;    font-weight: bold !important; margin: 0.67em 0 !important; }
.ck-content h2 { font-size: 1.5em !important;  font-weight: bold !important; margin: 0.83em 0 !important; }
.ck-content h3 { font-size: 1.17em !important; font-weight: bold !important; margin: 1em 0 !important; }
.ck-content h4 { font-size: 1em !important;    font-weight: bold !important; margin: 1.33em 0 !important; }
.ck-content h5 { font-size: 0.83em !important; font-weight: bold !important; margin: 1.67em 0 !important; }
.ck-content h6 { font-size: 0.67em !important; font-weight: bold !important; margin: 2.33em 0 !important; }


/* ── 목록 ──────────────────────────────────────────────────────── */

/* reset.css 는 안쪽 여백을 0 으로, bootstrap 은 20px 로 만든다.
   글머리기호가 글 왼쪽으로 밀려 나가거나 들여쓰기가 얕아진다 */
.ck-content ul,
.ck-content ol {
	padding-left: 40px !important;
}
.ck-content ul ul,
.ck-content ul ol,
.ck-content ol ul,
.ck-content ol ol {
	padding-left: 24px !important;
}


/* ── 형광펜 ────────────────────────────────────────────────────── */

/* 색이 CSS 변수로 들어 있어, 변수가 비면 background-color 선언이 통째로
   무효가 된다. ckeditor5-content.css 가 쓰는 값과 같은 색을 직접 적어 받친다 */
.ck-content mark              { background-color: #fdfd77; }
.ck-content .marker-yellow    { background-color: #fdfd77 !important; }
.ck-content .marker-green     { background-color: #62f962 !important; }
.ck-content .marker-pink      { background-color: #fc7899 !important; }
.ck-content .marker-blue      { background-color: #72ccfd !important; }
.ck-content .pen-red          { color: #e71313 !important; background-color: transparent !important; }
.ck-content .pen-green        { color: #128a00 !important; background-color: transparent !important; }


/* ── 링크 ──────────────────────────────────────────────────────── */

/*
	login.css 와 bootstrap 이 a 의 밑줄을 지우고, 새 창은 base.css 를 싣지
	않아 브라우저 기본색(파랑)으로 나온다. 세 화면이 같아 보이도록 base.css 의
	규칙을 여기로 옮긴다.

	글자색을 입힌 글은 영향을 받지 않는다. 에디터가 <a><span style="color:...">
	로 묶어 내보내고 안쪽 span 이 바깥 a 보다 세다.
*/
.ck-content a,
.ck-content a:link {
	color: #444;
	text-decoration: underline;
}
.ck-content a:visited,
.ck-content a:hover,
.ck-content a:focus {
	color: #ff6c00;
}


/* ── 가로줄 ────────────────────────────────────────────────────── */

/* 화면 CSS 를 쌓으면 inline-block 이 되어 앞뒤 문단과 간격이 어긋난다 */
.ck-content hr {
	display: block !important;
	height: 4px;
	margin: 15px 0;
	border: 0;
	background: #dedede;
}


/* ── 표 ────────────────────────────────────────────────────────── */

/*
	reset.css 는 table 의 테두리를, th·td 의 테두리와 안쪽 여백을 모두 지운다.
	되살리는 규칙이 ckeditor5-content.css 에 있지만 figure.table / table.table
	처럼 class 를 요구해서, 본문에 그 class 가 실려 오지 않으면 한 줄도 맞지
	않는다(실측 : 칸 너비 9px, 테두리 없음). class 에 기대지 않고 다시 적는다.
*/
.ck-content figure {
	margin: 0.9em 0;
}
.ck-content table {
	border: 1px double #b3b3b3;
	border-collapse: collapse;
	border-spacing: 0;
}
.ck-content table th,
.ck-content table td {
	border: 1px solid #bfbfbf;
	min-width: 2em;
	padding: 0.4em;
}
.ck-content table th {
	background: rgba(0, 0, 0, 0.05);
	font-weight: bold;
}

/*
	표 폭은 비율로 저장된다. 편집 화면(1100px 쯤)에서 맞춘 비율이 배너(400px)
	에서는 그만큼 작아져, 28% 였던 표가 106px 이 되고 7% 열은 7px 이 된다.
	표 폭만 배너에 맞춰 늘리고 열 비율은 그대로 둔다.
	min-width 라서 배너보다 넓게 맞춰 둔 표는 건드리지 않는다.
*/
.ck-content figure.table,
.ck-content table {
	min-width: 100%;
}

/* 편집 화면은 예외로 둔다.
   보이는 쪽은 좁은 배너에서 읽히도록 표를 늘리지만, 편집 화면에서까지
   늘리면 관리자가 좁게 맞춰도 늘 꽉 차 보여 조절이 안 되는 것처럼
   느껴진다. 맞춘 그대로 보여 준다. */
.ck-editor__editable.ck-content figure.table,
.ck-editor__editable.ck-content table {
	min-width: 0;
}
