/* history 게시판 전용 스타일 */
/* 퍼블 /_res/nsu-dam/archive/css/intro.css, intro05.content.css 기반 최소 보완 */

/* =============================
write 폼 전용
============================= */
.bn-write-common01.history .b-table-wrap {
	width: 100%;
}

.bn-write-common01.history .b-date-box {
	display: flex;
	align-items: center;
	gap: 4px;
}

.bn-write-common01.history .b-guide-txt {
	font-size: 12px;
	color: #888;
}

/* 관련사건 입력 행 */
.history-event-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.history-event-row input {
	height: 34px;
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
}

.history-event-row .event-year {
	width: 80px;
}

.history-event-row .event-content {
	flex: 1;
}

.history-event-row .btn-remove-event {
	background: #e55;
	color: #fff;
	border: none;
	padding: 4px 10px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
}

/* 관련이미지 추가 행 */
.related-img-row {
	margin-bottom: 6px;
}

/* =============================
list 타임라인 보완
============================= */

/* 팝업 오버레이 */
.popup-wrap {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	overflow-y: auto;
}

.popup-wrap .popup-content.popup-box {
	position: relative;
	background: #fff;
	margin: 40px auto;
	max-width: 800px;
	border-radius: 6px;
	overflow: hidden;
}

.popup-wrap .close-top {
	position: absolute;
	top: 12px;
	right: 16px;
	list-style: none;
}

.popup-wrap .close-top a {
	display: block;
	width: 28px;
	height: 28px;
	text-indent: -9999px;
}

/* 게시물 없음 */
.b-history-box .b-no-post {
	text-align: center;
	padding: 60px 0;
	color: #888;
	font-size: 15px;
}

/* 삭제된 게시물 */
.b-content.deleted {
	opacity: 0.4;
	pointer-events: none;
}

/* =============================
view 상세 보완
============================= */
.popup-mid {
	padding: 20px 24px;
}

.popup-mid .tag-list {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 8px;
	padding: 0;
	list-style: none;
}

.popup-mid .tag-list li span {
	display: inline-block;
	background: #f0f0f0;
	color: #555;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
}

.popup-mid .list-business {
	padding: 0;
	margin: 0;
	list-style: none;
}

.popup-mid .list-business li {
	display: flex;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.popup-mid .list-business li span {
	color: #007bff;
	font-weight: 600;
	min-width: 48px;
}

.popup-mid .related-images .swiper {
	overflow: hidden;
}

.popup-mid .related-images .swiper-slide img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

/* =============================
관리자 컨트롤 (체크박스 + 버튼)
============================= */
/* 전체 선택/비선택 컨트롤은 일반 흐름에 두어 타임라인(탭) 바로 아래·좌측,
본문(b-history-box) 위에 노출한다. (요청: 탭 위 우상단 → 탭 아래 좌측 이동) */
.history-box04 .history-adm-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin-bottom: 16px;
}

.history-adm-wrap .adm-chk {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.history-adm-wrap .adm-chk .chk-toggle input[type=checkbox] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	vertical-align: middle;
}

.history-adm-wrap .b-btn-wrap {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.history-adm-wrap .b-btn-wrap li {
	list-style: none;
}

.history-adm-wrap .b-btn-wrap li a {
	display: inline-block;
	white-space: nowrap;
	padding: 8px 14px;
	border: 1px solid #c0c0c0;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1;
	color: #222;
	background: #fff;
}

.history-adm-wrap .b-btn-wrap li a.b-btn-c-blue {
	background: #184892;
	border-color: #184892;
	color: #fff;
}

/* 게시물 카드 내 선택 체크박스 (board.admin.js 가 input 생성) */
.b-history-box .b-content {
	position: relative;
}

.b-history-box .b-content > .article-chk {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 5;
}

.b-history-box .b-content > .article-chk input[type=checkbox] {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

/* =============================
등록/취소 버튼 (가운데 정렬)
============================= */
.b-btn01.history {
	margin-top: 28px;
}

.b-btn01.history .btn-wrap {
	display: flex;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.b-btn01.history .btn-wrap li {
	list-style: none;
}

.b-btn01.history .btn-wrap li > a,
.b-btn01.history .btn-wrap li > button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 162px;
	padding: 15px 28px;
	border-radius: 36px;
	border: 2px solid #184892;
	font-size: 16px;
	font-weight: 700;
	line-height: 160%;
	text-align: center;
	cursor: pointer;
	background: #fff;
	color: #184892;
}
.b-btn01.history .btn-wrap li > a:hover {background: #184892;color: #fff;}
.b-btn01.history .btn-wrap li > a.disabled {opacity: 0.4}
.b-btn01.history .btn-wrap li > button:disabled {opacity: 0.4}

.b-btn01.history .btn-wrap li > .b-btn-c-blue {
	background: #184892;
	border-color: #184892;
	color: #fff;
}

/* =============================
타임라인 네비 스크롤 따라가기 (sticky)
============================= */
.history-box04 .history-inner .time-line {
	position: sticky;
	top: 30px;
	align-self: flex-start;
	margin-top: 0;          /* 퍼블 margin-top:500px(GSAP pin용) 오버라이드 */
	z-index: 5;
}

.history-box04 .history-inner .time-line ul li a {
	display: block;
	cursor: pointer;
}

/* 타임라인 sticky 동작: 최상위 .wrap 의 overflow:hidden 이 sticky 를 깨므로
연혁 페이지에서만(history.css 로드 페이지) 해제한다. */
.wrap {
	overflow: visible;
}

/* 첫 연도 그룹 상단 여백 제거 (퍼블 dl:first-child padding-top:37px 오버라이드) */
.history-box04 .b-history-box dl:first-child {
	padding-top: 0;
}

/* 리스트 게시글 내용: 최대 2줄, 초과 시 말줄임(...) */
.history-box04 .b-history-box .b-content .txt-box .txt-desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
}

/* =============================
연도 헤더(dt) — 퍼블 원본 큰 글자(워터마크풍) 스타일 사용 (요청)
intro05.content.css 의 dt 96px(italic Georgia, 옅은 회색) 스타일을 그대로 살림.
별도 오버라이드 없음.
============================= */

@media (max-width: 768px) {
	.b-btn01.history .btn-wrap li > a,
	.b-btn01.history .btn-wrap li > button {min-width: 129px;padding: 15px 10px;font-size: 16px;max-height: 48px;}