/*
 * 포털 전용 보정.
 * common.css 는 퍼블리싱(compa/res/css/common.css)을 그대로 둔다.
 * 퍼블에 없는 마크업이나, 그대로 두면 화면이 깨지는 선언만 여기에 둔다.
 */

/* 주요알림: 링크 없는 슬라이드는 span > img 이고, 퍼블은 a > img 만 채운다. */
.main-summary .main-alert .swiper-slide span img {display:block;position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;object-fit:cover;object-position:center top;}
@media (min-width:1025px) {
	.main-summary .main-alert .swiper-slide {width:40.2rem;}
}

/* 에디터 양쪽 정렬 클래스 */
.text-justify {text-align:justify !important;}

/* 조직도 표: 퍼블에서 빼 둔 두 번째 열(성명) */
.org-chart .tbl-board-org .col2 {display:none;width:0;}
.org-chart .tbl-board-org thead th:nth-child(2),
.org-chart .tbl-board-org tbody td.td-name {display:none;}

/* 사업 목록 검색 지우기, 빈 목록 */
.business-wrap .ip-box .btn-clear {position:absolute;top:50%;right:6.4rem;width:3.2rem;height:3.2rem;background:url('../images/ico-share-close_24x24.svg') no-repeat 50%/2.4rem;transform:translateY(-50%);}
.business-wrap .no-data,
.business-wrap .biz-tab-empty {margin-top:8rem;}
.business-detail-wrap .detail-content .biz-flex-box .box-item .desc-list {margin-top:1.6rem;}

/* 사업 본문(CKEditor) */
.business-detail-wrap .detail-content .biz-box .biz-html {margin-top:1.6rem;font-size:1.8rem;font-weight:400;color:#555;line-height:2.8rem;}
.business-detail-wrap .detail-content .biz-box .biz-html p + p {margin-top:0.8rem;}
.business-detail-wrap .detail-content .biz-box .biz-html ul,
.business-detail-wrap .detail-content .biz-box .biz-html ol {margin:0.8rem 0;padding-left:2em;}
.business-detail-wrap .detail-content .biz-box .biz-html ul {list-style:disc;}
.business-detail-wrap .detail-content .biz-box .biz-html ol {list-style:decimal;}
.business-detail-wrap .detail-content .biz-box .biz-html li {list-style:inherit;}
.business-detail-wrap .detail-content .biz-box .biz-html em,
.business-detail-wrap .detail-content .biz-box .biz-html i {font-style:italic;}
.business-detail-wrap .detail-content .biz-box .biz-html .line-height-sm {line-height:1;}
.business-detail-wrap .detail-content .biz-box .biz-html .line-height-md {line-height:1.5;}
.business-detail-wrap .detail-content .biz-box .biz-html .line-height-lg {line-height:3;}
.business-detail-wrap .detail-content .biz-box .biz-html img {display:block;max-width:100%;height:auto;}

/* 미리보기 안내, 링크 복사 토스트 */
.board-preview-banner {margin-top:2.4rem;padding:1.4rem 1.8rem;border:1px solid #f0d78c;border-radius:0.8rem;background:#fff8e6;color:#6b4e00;font-size:1.6rem;line-height:2.4rem;}
.portal-toast {position:fixed;left:50%;bottom:4.8rem;z-index:3000;padding:1.2rem 2.4rem;font-size:1.6rem;line-height:2.4rem;color:#fff;background:rgba(34,34,34,.88);border-radius:0.8rem;transform:translateX(-50%);}

/* 게시 본문: reset 이 목록·기울임을 지우므로 에디터 결과를 되돌린다. */
.board-detail .board-body .board-content img {display:inline-block;max-width:100%;}
.board-detail .board-body .board-content p {margin:0 0 1em;}
.board-detail .board-body .board-content p:last-child {margin-bottom:0;}
.board-detail .board-body .board-content h1,
.board-detail .board-body .board-content h2,
.board-detail .board-body .board-content h3,
.board-detail .board-body .board-content h4,
.board-detail .board-body .board-content h5,
.board-detail .board-body .board-content h6 {margin:1.2em 0 0.6em;font-weight:700;color:#222;line-height:1.4;}
.board-detail .board-body .board-content h1 {font-size:2.4rem;}
.board-detail .board-body .board-content h2 {font-size:2.2rem;}
.board-detail .board-body .board-content h3 {font-size:2rem;}
.board-detail .board-body .board-content h4,
.board-detail .board-body .board-content h5,
.board-detail .board-body .board-content h6 {font-size:1.8rem;}
.board-detail .board-body .board-content ul,
.board-detail .board-body .board-content ol {margin:0.8em 0;padding-left:2em;}
.board-detail .board-body .board-content ul {list-style:disc;}
.board-detail .board-body .board-content ol {list-style:decimal;}
.board-detail .board-body .board-content li {margin:0.25em 0;padding:0;list-style:inherit;}
.board-detail .board-body .board-content ul ul {list-style:circle;}
.board-detail .board-body .board-content ul ul ul {list-style:square;}
.board-detail .board-body .board-content ol ol {list-style:lower-alpha;}
.board-detail .board-body .board-content em,
.board-detail .board-body .board-content i {font-style:italic;}
.board-detail .board-body .board-content u {text-decoration:underline;}
.board-detail .board-body .board-content s,
.board-detail .board-body .board-content strike {text-decoration:line-through;}
.board-detail .board-body .board-content a {color:var(--primary-color);text-decoration:underline;}
.board-detail .board-body .board-content blockquote {margin:1em 0;padding:0.4em 0 0.4em 1.6em;border-left:4px solid #ddd;font-style:italic;color:#555;}
.board-detail .board-body .board-content figure {margin:1.6rem 0;}
.board-detail .board-body .board-content figure img {display:block;}
.board-detail .board-body .board-content figure.table {overflow-x:auto;}
.board-detail .board-body .board-content table {width:100%;margin:1em 0;border-collapse:collapse;}
.board-detail .board-body .board-content th,
.board-detail .board-body .board-content td {padding:0.8rem 1.2rem;border:1px solid #ddd;text-align:left;vertical-align:top;}
.board-detail .board-body .board-content th {font-weight:700;background:#f7f7f7;}
.board-detail .board-body .board-content sub {vertical-align:sub;font-size:smaller;}
.board-detail .board-body .board-content sup {vertical-align:super;font-size:smaller;}
.board-detail .board-body .board-content .line-height-sm {line-height:1;}
.board-detail .board-body .board-content .line-height-md {line-height:1.5;}
.board-detail .board-body .board-content .line-height-lg {line-height:3;}

/* 이전/다음 글이 없을 때. 퍼블은 a 만 스타일한다. */
.board-detail .board-post ul li .post-empty {display:flex;align-items:center;gap:8rem;padding:2.3rem 4rem;}
.board-detail .board-post ul li .post-empty .title {position:relative;padding-left:4rem;font-size:1.8rem;font-weight:400;color:#222;line-height:2.8rem;}
.board-detail .board-post ul li .post-empty .title::before {content:'';position:absolute;top:50%;left:0;width:2.4rem;height:2.4rem;background-repeat:no-repeat;background-size:100% auto;transform:translateY(-50%);}
.board-detail .board-post ul li .post-empty .title::after {content:'';position:absolute;top:50%;right:-4rem;width:1px;height:2.4rem;background-color:#ddd;transform:translateY(-50%);}
.board-detail .board-post ul li.post-prev .post-empty .title::before {background-image:url('../images/ico-arrow-top-b_24x24.svg');}
.board-detail .board-post ul li.post-next .post-empty .title::before {background-image:url('../images/ico-arrow-bottom-b_24x24.svg');}
.board-detail .board-post ul li .post-empty .post-subject {flex:1;min-width:0;font-size:1.8rem;font-weight:400;color:#767676;line-height:2.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* 통합검색 자동완성 */
.search-suggest {position:absolute;z-index:30;left:0;right:0;top:100%;margin:0.4rem 0 0;padding:0.4rem 0;list-style:none;background:#fff;border:1px solid #ddd;border-radius:0.8rem;box-shadow:0 0.8rem 1.6rem rgba(39,52,105,0.08);}
.search-suggest button {display:block;width:100%;padding:1rem 1.6rem;text-align:left;font-size:1.6rem;line-height:2.4rem;color:#222;background:transparent;border:0;}
.search-suggest button:hover,
.search-suggest button:focus {background:#f4f6fb;}

/* 팝업 문구의 줄바꿈 */
.main-popup-title,
.main-popup-description p {white-space:pre-line;}

/* 사업 상세 이전/다음. 퍼블은 상단 선만 있다. */
.business-detail-wrap .board-post ul li {border-bottom:1px solid #ddd;}
.business-detail-wrap .board-post ul li a {display:flex;align-items:center;gap:8rem;padding:2.3rem 4rem;}
.business-detail-wrap .board-post ul li a:hover .post-subject {text-decoration:underline;}
.business-detail-wrap .board-post ul li a .title {position:relative;padding-left:4rem;font-size:1.8rem;font-weight:400;color:#222;line-height:2.8rem;}
.business-detail-wrap .board-post ul li a .title::before {content:'';position:absolute;top:50%;left:0;width:2.4rem;height:2.4rem;background-repeat:no-repeat;background-size:100% auto;transform:translateY(-50%);}
.business-detail-wrap .board-post ul li a .title::after {content:'';position:absolute;top:50%;right:-4rem;width:1px;height:2.4rem;background-color:#ddd;transform:translateY(-50%);}
.business-detail-wrap .board-post ul li.post-prev a .title::before {background-image:url('../images/ico-arrow-top-b_24x24.svg');}
.business-detail-wrap .board-post ul li.post-next a .title::before {background-image:url('../images/ico-arrow-bottom-b_24x24.svg');}
.business-detail-wrap .board-post ul li a .post-subject {flex:1;min-width:0;font-size:1.8rem;font-weight:400;color:#767676;line-height:2.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

@media (max-width:1024px) {
	.business-wrap .ip-box .btn-clear {right:4.8rem;}
	.business-wrap .no-data,
	.business-wrap .biz-tab-empty {margin-top:4.8rem;}
	.business-detail-wrap .detail-content .biz-box .biz-html {font-size:1.4rem;line-height:2.2rem;}
	.board-detail .board-post ul li .post-empty {gap:1.6rem;padding:1.6rem 0;}
	.board-detail .board-post ul li .post-empty .title {padding-left:3rem;font-size:1.4rem;line-height:2.2rem;}
	.board-detail .board-post ul li .post-empty .title::after {display:none;}
	.board-detail .board-post ul li .post-empty .post-subject {font-size:1.4rem;line-height:2.2rem;}
	.business-detail-wrap .board-post ul li a {gap:1.6rem;padding:1.6rem 0;}
	.business-detail-wrap .board-post ul li a:hover .post-subject {text-decoration:none;}
	.business-detail-wrap .board-post ul li a .title {padding-left:3rem;font-size:1.4rem;line-height:2.2rem;}
	.business-detail-wrap .board-post ul li a .title::after {display:none;}
	.business-detail-wrap .board-post ul li a .post-subject {font-size:1.4rem;line-height:2.2rem;}
}
