@charset "utf-8";
/****************************************************************************
/**********************  게시판 리스트 **************************************
****************************************************************************/
/* 게시판 영역의 글자 크기 기준.
   검색바 · 게시글 수 · 글제목 · 작성자줄이 제각각이면 어수선합니다.
   여기 한 곳만 고치면 모두 따라옵니다. */
#bo_list {
    --bo-font:0.9375rem;   /* 15px. rem 이라 글자크기 버튼에 따라 같이 커집니다 */
    position:relative;margin-bottom:20px;
}

#bo_list:after {display:block;visibility:hidden;clear:both;content:""}
#bo_list .td_board {text-align:center}
#bo_list .td_chk {text-align:center;border-top:1px solid #ecf0f1;border-bottom:1px solid #ecf0f1}
#bo_list .td_subject {text-align:left;padding:10px 0}
#bo_list .td_date {text-align:center}
#bo_list .td_datetime {text-align:center}
#bo_list .td_group {text-align:center}
#bo_list .td_mb_id {text-align:center}
#bo_list .td_mng {text-align:center}
#bo_list .td_name {text-align:center}
#bo_list .td_nick {text-align:center}
#bo_list .td_num {text-align:center}
#bo_list .td_num2 {text-align:center}
#bo_list .td_numbig {text-align:center}
#bo_list .txt_active {color:#5d910b}
#bo_list .txt_expired {color:#ccc}
#bo_list thead th, #bo_list tbody td {padding:12px 0; line-height:1.5; vertical-align: middle;}
/* 제목줄은 본문과 구분되게 배경을 살짝 얹습니다 */
#bo_list thead th {background:#f4f5f3}
#bo_list tbody tr:hover {}
#bo_list tbody .even td {background:#fbfbfb}

@media screen and (max-width:768px){
	/* 표가 안쪽 내용(줄바꿈 없는 긴 제목)만큼 벌어져 화면 밖으로 나가지 않게 합니다.
	   table-layout:fixed 를 줘야 셀이 내용 길이를 따라가지 않습니다. */
	.tbl_wrap { width:100%;max-width:100%;overflow:hidden;}
	.tbl_wrap table {width:100%;max-width:100%;table-layout:fixed;}

	/* 좁은 화면에서는 표를 그만두고 카드처럼 두 줄로 보여줍니다.
	     첫 줄 : (선택) 제목
	     둘째 줄 : 글쓴이 | 조회 | 날짜  — 남는 폭을 고르게 나눠 갖습니다
	   예전에는 제목만 남기고 나머지를 감췄습니다. */
	#bo_list .tbl_wrap thead { display:none; }
	#bo_list .tbl_wrap tbody tr {
		display:flex;flex-wrap:wrap;align-items:center;
		padding:14px 4px 8px;border-bottom:1px solid #ecf0f1;
	}
	/* default.css 의 .tbl_head01 td 가 height:60px 을 걸어 둡니다.
	   그래서 글은 위에 붙고 아래가 텅 비어 보였습니다. 내용 높이로 되돌립니다. */
	#bo_list .tbl_wrap tbody td { border:0;padding:0;height:auto;line-height:1.5; }

	/* 선택칸(체크박스)은 제목과 같은 줄 맨 앞에 둡니다.
	   제목의 기준 폭에서 그만큼 빼야 글쓴이 칸이 첫 줄로 딸려 올라가지 않습니다. */
	#bo_list .tbl_wrap tbody td.td_chk {
		display:flex;align-items:center;
		flex:none;width:24px;margin-right:6px;
	}
	#bo_list .tbl_wrap tbody td.td_chk input { margin:0; }

	#bo_list .tbl_wrap tbody td.td_subject {
		flex:1 1 calc(100% - 30px);min-width:0;
		text-align:left;padding:0;
	}
	/* 선택칸이 없는 게시판에서는 제목이 한 줄을 다 씁니다 */
	#bo_list .tbl_wrap tbody tr > td.td_subject:first-child { flex-basis:100%; }
	/* 제목은 한 줄로. 두 줄이 되면 행마다 높이가 달라 보기 어렵습니다. */
	#bo_list .tbl_wrap tbody .bo_tit_wrap { min-width:0; }
	#bo_list .tbl_wrap tbody .bo_tit {
		display:block;width:100%;
		white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
		line-height:1.5;
	}

	#bo_list .tbl_wrap tbody td.td_name,
	#bo_list .tbl_wrap tbody td.td_num,
	#bo_list .tbl_wrap tbody td.td_datetime {
		/* 기준 폭 22% — 작성자·조회·날짜·파일 네 칸이 한 줄에 들어갑니다(22%x4=88%).
		   제목(100%) + 22% > 100% 라서 메타 줄은 반드시 다음 줄로 내려갑니다.
		   기준을 0 으로 두면 제목과 같은 줄에 끼어들어 폭이 0 이 됩니다. */
		/* 제목 바로 아래에 붙입니다(사이 여백 없음).
		   줄 높이를 1.2 로 눌러 작성자 줄이 두꺼워 보이지 않게 합니다. */
		flex:1 1 22%;min-width:0;margin-top:2px;
		text-align:center;font-size:var(--bo-font,0.9375rem);line-height:1.2;color:#888;
		white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
		border-left:1px solid #ececec;   /* 연한 구분선 */
	}
	/* 맨 앞 칸에는 구분선을 두지 않습니다 */
	#bo_list .tbl_wrap tbody td.td_name { border-left:0; }

	/* 번호는 좁은 화면에서 뺍니다 */
	#bo_list .tbl_wrap tbody td.td_num2 { display:none; }
	#bo_list .tbl_wrap table col { display:none; }

	.tbl_wrap table th, .tbl_wrap table td {padding:4px}
}

/************* 카테고리 출력 ***************************/
#bo_cate {background:#ecf2f3;padding:7px;margin:20px 0;border:1px solid #bed1d4}
#bo_cate h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_cate ul {zoom:1}
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
#bo_cate li {display:inline-block;padding:2px;}
#bo_cate a {display:block;line-height:26px;padding:0 10px;border-radius:3px;border:1px solid transparent}
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none;background:#d2d6dc;}
#bo_cate #bo_cate_on {z-index:2;background:#3497d9;color:#fff;font-weight:bold;border-bottom-color:#1977b5;
-webkit-box-shadow: inset 0 2px 5px rgb(33, 135, 202);
-moz-box-shadow: inset 0 2px 5px rgb(33, 135, 202);
box-shadow:inset 0 2px 5px rgb(33, 135, 202);}
.td_subject img {margin-left:5px}

/*************************************************************************
***********************       게시판 공통    *******************************
**************************************************************************/
/* --------------------------------------------------------------------------
   체크박스 · 라디오 — 홈페이지 전체 공통

   board.css 는 head.sub.php 가 모든 쪽에서 불러옵니다.
   그래서 여기 한 번만 적어 두면 게시판 · 회원가입 · 내용페이지가 모두 따라옵니다.
   개별 스킨에 체크박스 크기를 다시 적지 마세요.

   홈페이지에는 두 가지 모양이 섞여 있습니다.
     1) .chk_box   그누보드 스킨이 쓰는 모양.
                   진짜 네모는 감추고(.selec_chk) label 안의 <span> 을 네모처럼 그립니다.
     2) 맨날것     체크박스만 덴그러니 놓인 곳(예: 첨부파일 삭제).
                   브라우저가 그리는 네모를 키우고 색만 입힙니다.

   크기는 아래 두 값만 고치면 전체가 따라옵니다.
   손가락으로 누르는 화면이므로 22px 보다 작게 줄이지 마세요.
   -------------------------------------------------------------------------- */
:root{
    --al-chk:22px;      /* 네모칸 한 변 (테두리 포함) */
    --al-chk-gap:8px;   /* 네모칸과 글자 사이 */
    --al-chk-on:#3a8afd;/* 체크됐을 때 바탕색 — 이 한 줄이 전체 색입니다 */
}

/* 1) .chk_box 모양 — 진짜 네모는 숨깁니다 */
.selec_chk {position:absolute;top:0;left:0;width:0;height:0;opacity:0;outline:0;z-index:-1;overflow:hidden}
.chk_box {position:relative}
.chk_box input[type="checkbox"] + label{
    position:relative;
    display:inline-block;
    padding-left:calc(var(--al-chk) + var(--al-chk-gap));
    min-height:var(--al-chk);
    line-height:1.6;
    color:var(--al-sub,#676e70);
    cursor:pointer;
}
.chk_box input[type="checkbox"] + label:hover {color:var(--al-chk-on)}
/* 네모칸. 글자 높이의 한가운데에 둡니다.
   (이 테마는 상단 "글자크기" 버튼으로 글자가 커지므로 고정값을 쓸 수 없습니다) */
.chk_box input[type="checkbox"] + label span{
    box-sizing:border-box;
    position:absolute;top:50%;left:0;transform:translateY(-50%);
    display:block;float:none;margin:0;
    width:var(--al-chk);height:var(--al-chk);
    background-color:#fff;
    border:2px solid var(--al-line-dark,#d0d4df);
    border-radius:5px;
}
.chk_box input[type="checkbox"]:checked + label {color:var(--al-ink,#000)}
.chk_box input[type="checkbox"]:checked + label span{
    background-color:var(--al-chk-on);
    background-image:url(../img/chk.png);
    background-repeat:no-repeat;
    background-position:50% 50%;
    background-size:14px 14px;
    border-color:var(--al-chk-on);
}

/* 2) 맨날 체크박스 · 라디오
   .selec_chk 는 위에서 일부러 숨겨 둔 것이므로 반드시 빼야 합니다. */
input[type="checkbox"]:not(.selec_chk),
input[type="radio"]:not(.selec_chk){
    width:var(--al-chk);height:var(--al-chk);
    flex:none;
    margin:0;
    vertical-align:middle;
    accent-color:var(--al-chk-on);
    cursor:pointer;
}

#bo_btn_top{position:relative; margin-bottom:10px;}
#bo_btn_top:after {display:block;visibility:hidden;clear:both;content:""}
.bo_fx {clear:both;display:block;margin-top:30px;}
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
.bo_fx .more_btn {float: left; }
.bo_fx .more_btn button, .bo_fx .more_btn a, .bo_fx .adm_btn a {margin-bottom:10px;}
.bo_fx .adm_btn {float: right;}
.bo_fx .adm_btn li {display:inline-block;}

#bo_list_total {float:left;padding-top:16px;font-size:0.9375rem;height:45px;margin: 0}

#bo_btn_top .page_num{float:left;height:30px;line-height:30px;padding:13px 0 5px;font-size:var(--bo-font,0.9375rem);}
#bo_btn_top .page_num > span{float:left;position:relative;}
#bo_btn_top .page_num > span > em{font-weight:500;font-style:normal;color:#c70010}
#bo_btn_top .page_num > span > em ~ em{color:#1d1614}
#bo_btn_top .page_num > span + span{padding-left:10px;margin-left:10px}
#bo_btn_top .page_num > span + span:after{position:absolute;top:8px;left:0;width:1px;height:16px;background:#e0e0e0;content:""}

#bo_btn_top .btn_bo_user {float:right;margin:0;padding:0;list-style:none}
#bo_btn_top .btn_bo_user li {float:left;margin-left:5px}

/* 검색 상자.

   예전에는 select·입력칸·버튼을 각각 float 로 띄우고 height:35px 을 따로 줬습니다.
   글꼴이나 여백이 조금만 달라져도 세 개의 높이가 어긋나고 버튼만 튀어나옵니다.
   flex 로 묶고 높이는 상자 하나(--sch-h)만 정해, 안쪽은 늘 같은 높이가 되게 합니다. */
#bo_sch {
    --sch-h: 44px;   /* 메뉴 띠의 선택상자와 같은 높이(터치 최소 44px) */
    /* fieldset 은 기본적으로 내용(min-content)보다 작아지지 않습니다.
       분류 선택의 글자가 길면 상자가 화면 밖으로 삐져나가 버튼이 잘립니다. */
    min-width:0;
    float:right;
    display:flex;align-items:stretch;
    height:var(--sch-h);
    /* 모서리 굴림은 메뉴 띠의 선택상자와 같은 값(8px)으로 맞춥니다 */
    border:1px solid #ccc;border-radius:8px;
    background:#fff;overflow:hidden;
}
#bo_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
/* 폼이 상자를 가득 채워야 입력칸이 남는 자리를 다 씁니다.
   min-width:0 이 없으면 input 의 size 속성 때문에 일정 폭 아래로 안 줄어듭니다. */
#bo_sch form {display:flex;align-items:stretch;flex:1 1 auto;width:100%;min-width:0;height:100%}

/* 안쪽 요소는 높이를 스스로 정하지 않고 상자에 맞춥니다 */
#bo_sch select,
#bo_sch .sch_input,
#bo_sch .sch_btn {
    height:100%;
    margin:0;border:0;border-radius:0;
    font-size:var(--bo-font,0.9375rem);line-height:1;   /* line-height 로 높이를 만들지 않습니다 */
    box-sizing:border-box;
}
#bo_sch select {padding:0 8px;border-right:1px solid #ddd;background-color:transparent;cursor:pointer}
#bo_sch .sch_input {flex:1 1 auto;min-width:0;padding:0 8px;background-color:transparent}
#bo_sch .sch_btn {
    flex:none;padding:0 15px;
    background-color:#888;color:#fff;cursor:pointer;
    display:inline-flex;align-items:center;justify-content:center;
}
#bo_sch .sch_btn:hover {background:#666;}

/* 포커스 : 안쪽에 테두리를 그리면 그 칸만 커져 줄이 어긋납니다.
   상자 전체에 테두리색만 바꾸고 바깥에 얇은 띠를 둡니다. */
#bo_sch select:focus,
#bo_sch .sch_input:focus,
#bo_sch .sch_btn:focus {outline:0}
#bo_sch:focus-within {border-color:#888;box-shadow:0 0 0 2px rgba(136,136,136,.25)}

@media screen and (max-width: 720px) {
	/* 글쓰기·관리자 버튼은 좁은 화면에서 더 자주 씁니다. 감추지 않습니다.
	   (원본 스킨은 display:none 이었습니다) */
	#bo_btn_top .btn_bo_user {
		float:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;
		margin-bottom:8px;
	}
	#bo_btn_top .btn_bo_user li {float:none;margin-left:0}
	#bo_btn_top .btn_bo_user a {display:flex;align-items:center;min-height:40px}
}

@media screen and (max-width: 640px) {
    #bo_btn_top .page_num{width:100%;margin-bottom:20px;}   /* 목록과 사이를 띄웁니다 */
    #bo_btn_top .page_num > span + span{float:right}
    #bo_btn_top .page_num > span + span:after{display:none}

	/* "전체 N 건" 줄 맨 앞으로 옮겨 온 전체선택 체크박스 */
	#bo_btn_top .page_num .al-chkall{
		display:inline-flex;align-items:center;
		margin-right:8px;vertical-align:middle;
	}
	#bo_btn_top .page_num .al-chkall input{margin:0}
	#bo_btn_top .page_num .al-chkall label{display:inline-flex;align-items:center;margin:0}

	/* 좁은 화면 : 한 줄을 다 쓰되 안쪽 배치는 그대로 둡니다 */
	#bo_sch {clear:both; float:none; width:100%; margin-top:8px;}
	#bo_sch select {max-width:38%}
}

/* 옵션 버튼(선택삭제, 선택복사, 선택이동) */
.more_opt {display:none;position:absolute;top:45px;right:0;background:#fff;border:1px solid #b8bfc4;z-index:999}
.more_opt:before {content:"";position:absolute;top:-8px;right:13px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #b8bfc4 transparent}
.more_opt:after {content:"";position:absolute;top:-6px;right:13px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
.more_opt li {border-bottom:1px solid #f1f1f1;padding:10px;float:inherit;width:90px;margin:0;color:#6b757c;text-align:left}
.more_opt li:last-child {border-bottom:0}
.more_opt li button, .more_opt li a {width:100%;border:0;background:#fff;color:#6b757c}
.more_opt li:hover a,
.more_opt li:hover button {color:#000}
.more_opt li i {float:right;line-height:20px}

/* 리스트 공지사항 */
.bo_notice td {background:#fff6fa !important;border-bottom:1px solid #f8e6ee}
.bo_notice .notice_icon {display:inline-block;border-radius:5px;font-weight:bold;color:#f9267f}
.td_num2 i {font-size:0.8125rem;padding:1px 0;}
.bo_tit_wrap {display: flex; width: 100%;}
.bo_cate_link {display: inline-block; margin-right: 5px;}
.bo_tit {display: inline-block; line-height:1.5; width: 100%;}
.bo_tit .bx-gray:hover {background: transparent; border: 1px solid#ccc; color: #666 !important;}
.bo_current {display: inline-block; color: #ffac0e; font-size:1rem; font-weight:500;}
#bo_list .profile_img img {border-radius:50%}
#bo_list .cnt_cmt {background-color:#6F727F; color:#fff; padding:2px 6px; border-radius:12px; font-size:0.75rem; font-weight:500;}
#bo_list .sv_wrap .sv {position: absolute; left: -20px;}

#bo_list .bo_tit .fa-download{width:16px;height:16px;line-height:16px;background:#e89f31;color:#fff;text-align:center;font-size:0.5625rem;border-radius:2px;vertical-align:middle;margin-right:2px}
#bo_list .bo_tit .fa-download {display: inline-block; width: 16px; height: 16px; line-height: 16px; font-size:0.5625rem; color: #fff; background: #e89f31; text-align: center; border-radius: 2px; margin-right: 2px; vertical-align: middle;}
#bo_list .bo_tit .fa-link {display: inline-block; width: 16px; height: 16px; line-height: 16px; font-size:0.5625rem; color: #fff; background: #ad68d8; text-align: center; border-radius: 2px; margin-right: 2px; vertical-align: middle;}
#bo_list .bo_tit .new_icon {display: inline-block; width: 16px; height: 16px; line-height: 16px; font-size: 0.8125rem; color: #fff; background: #f36100; text-align: center; border-radius: 2px; margin-right: 2px; vertical-align: middle;}
#bo_list .bo_tit .fa-heart {display: inline-block; width: 16px; height: 16px; line-height: 16px; font-size:0.5625rem; color: #fff; background: #e52955; text-align: center; border-radius: 2px; margin-right: 2px; vertical-align: middle;}
#bo_list .bo_tit .fa-lock {display: inline-block; width: 16px; height: 16px; line-height: 14px; font-size:0.5625rem; color: #4f818c; background: #cbe3e8; text-align: center; border-radius: 2px; border: 1px solid #a2c6ce; vertical-align: middle;}

/*************************************************************************
***********************       게시판 쓰기   *******************************
**************************************************************************/
/* 제한 글자수 표시 */
#char_count_desc {display:block;margin:0 0 5px;padding:0}
#char_count_wrap {margin:5px 0 0;text-align:right}
#char_count {font-weight:bold}

/* 게시글 자동저장 */
#autosave_wrapper {position:relative}
#autosave_pop {display:none;z-index:10;position:absolute !important;top:34px;right:0;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;
-webkit-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
-moz-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2)}
#autosave_pop:before {content:"";position:absolute;top:-8px;right:45px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #000 transparent}
#autosave_pop:after {content:"";position:absolute;top:-7px;right:45px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */
#autosave_pop strong {position:absolute;font-size:0;line-height:0;overflow:hidden}
#autosave_pop div {text-align:center;margin:0 !important}
#autosave_pop button {margin:0;padding:0;border:0}
#autosave_pop ul {padding:15px;border-top:1px solid #e9e9e9;list-style:none;overflow-y:scroll;height:130px;border-bottom:1px solid #e8e8e8}
#autosave_pop li {padding:8px 5px;border-bottom:1px solid #fff;background:#eee;zoom:1}
#autosave_pop li:after {display:block;visibility:hidden;clear:both;content:""}
#autosave_pop a {display:block;float:left}
#autosave_pop span {display:block;float:right;font-size:0.9375rem;font-style:italic;color:#999}
.autosave_close {cursor:pointer;width:100%;height:30px;background:none;color:#888;font-weight:bold;font-size:0.9375rem}
.autosave_close:hover {background:#f3f3f3;color:#3597d9}
.autosave_content {display:none}
.autosave_del {background:url(../img/close_btn.png) no-repeat 50% 50%;text-indent:-999px;overflow:hidden;height:20px;width:20px}

/*************************************************************************
***********************       게시판 읽기   *******************************
**************************************************************************/
#bo_v {margin-bottom:20px;padding:20px 0;font-size:1rem;background:#fff}

#bo_v_title {}
#bo_v_title .bo_v_cate{display:inline-block;line-height:26px;background: #3497d9;color: #fff;font-weight: bold;border-bottom:1px solid #1977b5;padding:0 10px;border-radius:3px;
-webkit-box-shadow: inset 0 2px 5px rgb(33, 135, 202);
-moz-box-shadow: inset 0 2px 5px rgb(33, 135, 202);
box-shadow: inset 0 2px 5px rgb(33, 135, 202);
}
#bo_v_title .bo_v_tit{display:block;font-size:1.625rem;font-weight:700;margin:10px 0;color:#000;}

#bo_v_info {padding: 10px 0; font-size:0.9375rem; border-bottom:1px solid #ddd;color:#666}
#bo_v_info:after {display:block;visibility:hidden;clear:both;content:""} 
#bo_v_info h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_info strong {display:inline-block;margin:0 10px 0 0;font-weight:normal}
#bo_v_info .sv_member,
#bo_v_info .sv_guest,
#bo_v_info .member,
#bo_v_info .guest {font-weight:bold}
#bo_v_info .profile_img {}
#bo_v_info .profile_img img{border-radius:50%}
#bo_v_info .sv_member{color:#000}
#bo_v_info .if_view{display:inline-block;background:url(./img/icon_view.png) no-repeat 50% 50%;height:15px;width:20px;overflow:hidden;text-indent:-999px;vertical-align:middle;margin-right:3px}
#bo_v_info .if_comment{display:inline-block;background:url(./img/icon_comment.png) no-repeat 50% 50%;height:15px;width:20px;overflow:hidden;text-indent:-999px;vertical-align:middle;margin-right:3px}
#bo_v_info .if_date{float:right;margin:0;color:#888}

.post-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.toolbar-left { display: flex; gap: 10px; }
.toolbar-right a { color: #333; font-size:1.125rem; text-decoration: none; } 
.toolbar-right a:hover, .toolbar-right button:hover { color: #000; } 
.toolbar-left .circle-button { position: relative; box-sizing: border-box; display: block; height: auto; font-family: 돋움, Dotum, Arial, sans-serif; font-size:0.75rem; letter-spacing: -0.5px; line-height: 20px; padding: 2px 10px; border: 1px solid #d1d1d1; border-radius: 20px; } 
.toolbar-left .count { line-height: 20px; padding-left: 2px; } 
.toolbar-left i { color: #666; } 
.toolbar-right { position: relative; text-align: right; } 
.toolbar-right .btn { color: #555; font-weight: normal; font-size:0.75rem; line-height: 26px; height: 28px; border-radius: 0; border-color: #d5d5d5; } 
.toolbar-right .btn:hover { background: #fff; }

/* 공유 및 스크랩 */
#bo_v_share{position:relative;margin:20px 0;text-align:right}
#bo_v_share .btn{padding:0 10px 0 0;color:#555;font-weight:normal;font-size:1rem ;line-height:30px;height:32px;border-radius:0;border-color:#d5d5d5}
#bo_v_share .btn:hover{background:#fff}
#bo_v_share .btn i{margin-right:5px;;background:#eee;color:#333;text-align:center;width:30px;line-height:30px;vertical-align:top;}
#bo_v_share .btn_share{}
#bo_v_share .btn_share:hover{}

.bo_v_snswr{position:relative;display:inline-block;margin-left:-1px}
#bo_v_sns {display:none;position:absolute;top:-50px;left:50%;margin-left:-90px;width:180px;padding:0;list-style:none;zoom:1}
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns:before{content: "";position: absolute;bottom: -7px;left: 84px;width: 0;height: 0;border-style: solid;border-width: 7px 6px 0 6px;border-color: #415b92 transparent transparent transparent;}
#bo_v_sns li {float:left;;width:60px;text-align:center}
#bo_v_sns li a{height:40px;padding:10px 0;}
#bo_v_sns li .sns_f{display:block;background:#415b92}
#bo_v_sns li .sns_t{display:block;background:#35b3dc}
#bo_v_sns li .sns_g{display:block;background:#d5503a}
#bo_v_sns li .sns_k{display:block;background:#ffeb00}
#bo_v_sns li img{vertical-align:top}

@media screen and (max-width:768px){
	#bo_v_title .bo_v_tit {font-size:1.25rem;}
}
@media screen and (max-width:640px){
	#bo_v_info #bo_v_share {clear:both; float:none; display:block; text-align:center;}
	#bo_v_info .profile_info {margin:10px 0; }
	#bo_v_info .profile_info, #bo_v_share {line-height:20px;}
	#bo_v_share {margin-bottom:5px;}
}
@media screen and (max-width:480px){
	#bo_v_info .profile_info .profile_info_ct .mobile {display:block;}
}

/* 첨부파일 */
#bo_v_file {margin:10px 0;border:1px solid #d4d4d4;border-radius:5px;}
#bo_v_file h2 {padding:10px;border-bottom:1px solid #e8e8e8;background: #f3f3f3}
#bo_v_file ul {margin:0;padding:5px 0;list-style:none;overflow:hidden;}
#bo_v_file li {position:relative; padding:5px; line-height:20px; vertical-align:center; white-space:nowrap;}
#bo_v_file i {padding:0 5px; color:#333;}
#bo_v_file a {position: relative;color:#666; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
#bo_v_file a:focus, #bo_v_file a:hover, #bo_v_file a:active {color:#f79646;}
#bo_v_file .bo_v_file_cnt {float:right; margin-left:30px; color:#888;}

/* 링크주소 */
#bo_v_link {margin:10px 0;border:1px solid #d4d4d4;border-radius:5px;}
#bo_v_link h2 {padding:10px;border-bottom:1px solid #e8e8e8;background: #f3f3f3}
#bo_v_link ul {margin:0;padding:5px 0;list-style:none;overflow:hidden;}
#bo_v_link li {position:relative; padding:5px; line-height:20px; vertical-align:center; white-space:nowrap;}
#bo_v_link i {padding:0 5px; color:#333;}
#bo_v_link a {position: relative;color:#666; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
#bo_v_link a:focus, #bo_v_link a:hover, #bo_v_link a:active {color:#f79646;}
#bo_v_link .bo_v_link_cnt {float:right; margin-left:30px; color:#888;}

/* 상단 버튼 영역 */
#bo_v_top {position:relative; float:right; zoom:1}
#bo_v_top:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_top h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_top ul {padding:0;list-style:none;word-break:break-all;background:#fff}

/* 하단 버튼 영역 */
#bo_v_bot {zoom:1}
#bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_bot h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_bot ul {padding:0;list-style:none}

.bo_v_com {margin:20px 0;float:right}
.bo_v_com > li {position:relative;float:left;margin-left:5px}

/* 이전글 & 다음글 */
.bo_v_nb {position:relative;margin:20px 0;clear:both;text-align:left}
.bo_v_nb:after {display:block;visibility:hidden;clear:both;content:""}
.bo_v_nb li {border-top:1px solid #f1f1f1;height:auto;padding:15px;line-height:1.2;}
.bo_v_nb li:last-child {border-bottom:1px solid #f1f1f1}
.bo_v_nb li:hover {background:#f6f6f6}
.bo_v_nb li i {font-size:0.8125rem;color:#b3b3b3}
.bo_v_nb li .nb_tit {display:inline-block;padding-right:10px;color:#b3b3b3}
.bo_v_nb li .nb_date {float:right;display:inline-block;color:#b3b3b3}

@media screen and (max-width:480px){
	.bo_v_nb li .nb_date {display:none;}
}
/* 게시글 본문 */
#bo_v_atc {padding:10px 0;min-height:200px;height:auto !important;}
#bo_v_atc_title {position:absolute;font-size:0;line-height:0;overflow:hidden}

#bo_v_img {width:100%;overflow:hidden;zoom:1}
#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_img a.view_image {display:block}
#bo_v_img img {margin-bottom:20px;max-width:100%;height:auto}

#bo_v_con {margin:10px 0 20px;width:100%;line-height:1.7;min-height:200px;font-size:1rem;color:#000;word-break:break-all;overflow:hidden}
#bo_v_con h4 { font-size:1.125rem; font-weight:bold; color:#1a3e8a; background-color:#eef2fb; border-left:6px solid #1a3e8a; padding:3px 15px; margin:30px 0 10px; border-radius:4px; }
#bo_v_con img {max-width:100%;height:auto}

/* 추천/비추천 영역 */
#bo_v_act {margin-bottom:20px;text-align:center}
#bo_v_act .bo_v_act_gng {position:relative}
#bo_v_act a {vertical-align:middle;color:#4a5158}
#bo_v_act a:hover {background-color:#fff;color:#ff484f;border-color:#ff484f}
#bo_v_act i {font-size:1.25rem;display:block;}
#bo_v_act_good, #bo_v_act_nogood {display:none;position: absolute; top: 50%; left: 50%; white-space: nowrap; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.8); color: #fff; border-radius: 5px; display: none; z-index: 9999;}
#bo_v_act .bo_v_good {display:inline-block;color:#1e90ff;border:1px solid #dedede;width:80px;line-height:24px;padding:10px;border-radius:3px}
#bo_v_act .bo_v_nogood {display:inline-block;color:#ff4500;border:1px solid #dedede;width:80px;line-height:24px;padding:10px;border-radius:3px}
#bo_v_act .bo_v_good strong {color:#333;font-weight:bold;font-size:1.125rem;}
#bo_v_act .bo_v_nogood strong {color:#333;font-weight:bold;font-size:1.125rem;}

/*************************************************************************
***********************       게시판 댓글   *******************************
**************************************************************************/
/* 게시판 댓글 */
.cmt_btn {width:100%;text-align:left;border:0;border-bottom:1px solid #f0f0f0;background:#fff;font-weight:bold;margin:30px 0 0px;padding:0 0 15px}
.cmt_btn span.total {position:relative;display:inline-block;margin-right:5px;font-size:1rem;color:#3a8afd}
.cmt_btn span.cmt_more {float:right;display:inline-block;width:15px;height:10px;background:url(../img/btn_cmt.png) no-repeat right 2px;margin-top:5px}
.cmt_btn_op span.cmt_more {background-position:right -8px}
.cmt_btn b {font-size:1.125rem;color:#000}
.cmt_btn span.total:after {position:absolute;bottom:-17px;left:0;display:inline-block;background:#3a8afd;content:"";width:100%;height:2px}

#bo_vc {}
#bo_vc h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_vc article {margin:20px 0;position:relative;}
#bo_vc article:after {display:block;visibility:hidden;clear:both;content:""}
#bo_vc article .profile_img img {border-radius:50%}
#bo_vc article .pf_img {float:left;margin-right:10px}
#bo_vc article .pf_img img {border-radius:50%;width:50px;height:50px;margin-bottom:5px;}
#bo_vc article .cm_wrap {float:left;width:calc(100% - 60px);}
#bo_vc article .cm_wrap .profile_img img {display:none;} 
#bo_vc header {position:relative;width:100%}
#bo_vc header:after {display:block;visibility:hidden;clear:both;content:""}
#bo_vc header .profile_img {display:none}
#bo_vc header .icon_reply {position:absolute;top:15px;left:-20px}
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold}
.bo_vc_hdinfo {margin-left:10px; color:#777}
#bo_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_vc p a {text-decoration:underline}
#bo_vc p a.s_cmt {text-decoration:underline;color:#ed6479}
#bo_vc_empty {margin:0;padding:80px 0 !important;color:#777;text-align:center}
#bo_vc #bo_vc_winfo {float:left}
#bo_vc .bo_vl_opt {position:absolute;top:0;right:0;}
#bo_vc .bo_vl_opt button {background:none;}
#bo_vc .bo_vl_opt .btn_opt {width:20px; font-size:1.125rem; color:#ccc; border:0;}
#bo_vc .bo_vl_opt .btn_opt:hover {color:#777;}

#bo_vc .cmt_contents {display:block;position: relative; margin:10px 0 0 5px; padding:7px; background:#feffff; border:1px solid #dadada; border-radius:5px; box-sizing: border-box;}
#bo_vc .cmt_contents::after {content: ""; display: inline-block; position: absolute; top: 5px; left: -10px; border: 5px solid transparent; border-top-color: #dadada; border-right-color: #dadada;}
#bo_vc .cmt_contents .bo_cv_act {text-align:right;margin:5px;}
#bo_vc .cmt_contents .bo_cv_act li {display:inline-block;margin-left:5px;}
#bo_vc .cmt_contents .bo_cv_act li strong {font-weight:bold;}
#bo_vc .cmt_contents p {line-height:1.5;}
#bo_vc .cmt_contents textarea {margin-top:20px;}

@media screen and (max-width:480px){
	#bo_vc article .pf_img img {width:40px;height:40px;}
    .info .bo_vc_hdinfo {display: block; margin: 5px 0 0 0;}
}

/* 댓글 옵션 버튼 */
.bo_vc_act {display:none;position:absolute;right:0;top:40px;width:auto;width:120px;text-align:center;padding:10px;border:1px solid #b8bfc4;margin:0;background:#fff;zoom:1;z-index:9999}
.bo_vc_act:before {content:"";position:absolute;top:-8px;right:5px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #b8bfc4 transparent}
.bo_vc_act:after {content:"";position:absolute;top:-6px;right:5px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
.bo_vc_act li {border-bottom:1px solid #f0f0f0}
.bo_vc_act li:last-child {border-bottom:0}
.bo_vc_act li a {display:inline-block;padding:10px 15px}
.bo_vc_act li a:hover {color:#3a8afd}

/* 댓글 쓰기 */
.bo_vc_w {position:relative;margin:10px 0;display:block}
.bo_vc_w:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_w h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
.bo_vc_w #char_cnt {display:block;margin:0 0 5px}
/* 문의를 못 쓰는 분에게만 나오는 목록 단추 줄 */
.book_only_list{margin-top:20px;text-align:right}

/* 문의 입력칸과 아래 줄(비밀글 · 등록 단추) 사이 여백 — 모든 게시판 공통

   합쳐서 20px 이 되게 맞춥니다.
   #commentEditor(board.css:551)가 이미 안쪽여백 10px + 테두리 1px 을 갖고 있어,
   여기에 20px 을 더 주면 31px 로 벌어집니다. 그래서 9px 만 더합니다.
     안쪽여백 10 + 테두리 1 + margin 9 = 20px */
.bo_vc_w #commentEditor{margin-bottom:9px}
.bo_vc_w textarea {border:1px solid #ccc;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;width:100%;height:120px;
-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);
-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);
box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1)}
#wr_secret {}
.bo_vc_w_info {float:left}
.bo_vc_w_info:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_w_info .frm_input {float:left;margin-right:5px}
.bo_vc_w_info #captcha {padding-top:10px;display:block;clear:both}
.bo_vc_w .btn_confirm {clear:both;}
.bo_vc_w .btn_confirm label {display:inline-block;margin-right:10px;border-radius:var(--al-btn-radius,8px);font-size:1.375rem;text-align:center}
.bo_vc_w .btn_submit {padding:0 20px;border-radius:var(--al-btn-radius,8px);font-weight:bold;font-size:1rem}
.bo_vc_w .btn_confirm .secret_cm label {font-size:1rem !important}
.bo_vc_w_wr:after {display:block;visibility:hidden;clear:both;content:""}
.secret_cm {display:inline-block;float:left}

/* SNS 동시 등록(관련 파일 : /plugin/sns/view_comment_write.sns.skin.php */
#bo_vc_send_sns {display:inline-block;float:left}
#bo_vc_sns {display:inline-block;margin:0;padding:0;list-style:none;zoom:1}
#bo_vc_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_vc_sns li {float:left;margin:0 5px 0 0}
#bo_vc_sns .sns_li_f {border-radius:3px;background:#3a589b;height:40px;line-height:40px;padding:0 0 0 10px}
#bo_vc_sns .sns_li_t {border-radius:3px;background:#00aced;height:40px;line-height:40px;padding:0 0 0 10px}
#bo_vc_sns .sns_li_off {background:#bbb}
#bo_vc_sns a {display:inline-block;padding:0 15px 0 5px}
#bo_vc_sns input {margin:0 5px 0 0}

/*************************************************************************
***********************       게시판 쓰기   *******************************
**************************************************************************/
#bo_w .bo_v_option li {display:inline-block;float:left;text-align:left;margin:0 5px 0 0}
#bo_w .bo_v_option li label {vertical-align:baseline}
#bo_w .bo_v_option .chk_box input[type="checkbox"] + label span {margin-left:0;margin-right:5px}
#bo_w .write_div {margin:10px 0;position:relative}
#bo_w .write_div:after {display:block;visibility:hidden;clear:both;content:""}
#bo_w .bo_w_info:after {display:block;visibility:hidden;clear:both;content:""}
#bo_w .bo_w_info .frm_input {float:left;margin-bottom:1%}
#bo_w #wr_password, #bo_w #wr_homepage {margin-left:1%}
#bo_w .wr_content.smarteditor2 iframe {background:#fff}
#bo_w .bo_w_tit {position:relative}
#bo_w .bo_w_tit .frm_input {padding-right:120px}
#bo_w .bo_w_tit #btn_autosave {position:absolute;top:5px;right:5px;line-height:30px;height:30px}
#bo_w .bo_w_link label {position:absolute;top:1px;left:1px;border-radius:3px 0 0 3px;height:38px;line-height:38px;width:40px;font-size:1.125rem;text-align:center;color:#b2b2b2}
#bo_w .bo_w_link .frm_input {padding-left:50px}
#bo_w .bo_w_flie .lb_icon {position:absolute;top:0px;left:0px;border-radius:3px 0 0 3px;height:38px;line-height:38px;width:40px;font-size:1.125rem;text-align:center;color:#b2b2b2}
#bo_w .bo_w_flie .frm_file {padding-left:50px;margin-top:3px}
#bo_w .bo_w_flie .file_wr {position:relative;border:1px solid #ccc;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;height:40px;margin:0}
#bo_w .bo_w_flie .frm_input {margin:10px 0 0}
/* 첨부파일 삭제 줄.
   원본은 칸 오른손 위에 곹쳐 놓았습니다(position:absolute).
   모바일에서는 "파일 선택" 버튼과 걹치고,
   파일 이름이 길면 PC 에서도 글자가 물립니다.
   겹치지 않게 첨부 칸 밑으로 내려 한 줄로 놓습니다. */
#bo_w .bo_w_flie .file_del{
    position:static;
    display:flex;align-items:center;gap:var(--al-chk-gap);
    margin:.5rem 0 0;
    font-size:0.9375rem;
    color:var(--al-sub,#7d7d7d);
}
#bo_w .bo_w_flie .file_del label{
    min-width:0;            /* 이것이 없으면 flex 칸이 글자 길이만큼 벌어져 화면을 밀고 나갑니다 */
    cursor:pointer;line-height:1.5;
    word-break:break-all;   /* 긴 파일 이름은 줄을 바꿔 가며 접힙니다 */
}
#bo_w .bo_w_select select {border:1px solid #d0d3db;width:100%;height:40px;border-radius:3px}
#bo_w .btn_submit {padding:0 20px;font-size:1rem}
#bo_w .btn_cancel {border-radius:var(--al-btn-radius,8px);font-size:1rem}

/*******************************************************************************************
***********************      스마트 에디터 textarea 스타일   *******************************
*******************************************************************************************/
#commentEditor {position: relative; padding: 10px; background-color: #eeeeee; border: 1px solid #cccccc; border-radius: 5px !important; box-sizing: border-box;}
#commentEditor textarea {margin-top:30px;}
#commentEditor #char_cnt {position: absolute; top: 10px; left: 15px;}

.pdf-container { width: 100%; height: 80vh; border:1px solid #ccc; border-radius: 10px; margin:20px 0; overflow: hidden; background-color: #f9f9fa;}
.pdf-container iframe { width: 100%; height: 100%; border: none;}

/******************************************************************************
 * 스킨 독립 실행용 공통 버튼 스타일
 * 원본 /css/reset.css에서 이동
 * PHP/HTML 구조는 변경하지 않음
 ******************************************************************************/
/******************************************************************************
************                  버튼 관련 추가 스타일                ****************
******************************************************************************/
.btn_group {position:static !important;margin:0;padding:0;}
.btn_group .btn_small{margin-left:-1px;padding:2px 6px !important;}
.btn_group .btn_small:first-child {margin-left:0 !important;}
.btn_ssmall, .btn_small, .btn_lsmall, .btn_medium, .btn_large, .btn_txt, .btn_letter {
	display:inline-block;text-decoration:none !important;vertical-align:middle !important;font-family:inherit;white-space:nowrap;cursor:pointer;background:transparent;text-align:center;border-radius:0;outline:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;
}
.btn_ssmall {padding:1px 5px;font-size:0.75rem;line-height:1.222;font-weight:normal !important;}
.btn_small {padding:2px 8px;font-size:0.75rem;line-height:1.555;font-weight:normal !important;}
.btn_lsmall {padding:3px 10px;font-size:0.75rem;line-height:1.666;font-weight:normal !important;}
.btn_medium {padding:8px 15px;font-size:0.8125rem;line-height:1.444;font-weight:600;}
.btn_large {padding:10px 21px;font-size:0.9375rem;line-height:1.222;font-weight:600;}
.btn_ssmall, .btn_small, .btn_lsmall, .btn_medium, .btn_large {background:#333;border:1px solid #333;color:#fff !important;border-radius:var(--al-btn-radius,8px)}
.btn_ssmall:hover, .btn_small:hover, .btn_lsmall:hover, .btn_medium:hover, .btn_large:hover {background:#222;border:1px solid #222;color:#fff !important;}
.btn_letter {width:78px;height:76px;font-size:0.8125rem;font-weight:500;line-height:1.333;color:#fff !important;background:#777;}
a.btn_letter {padding-top:19px;}
.white, .white:active {background:#fff;border:1px solid #ccc;color:#181c1f !important;}
.white:hover, .white:focus {background:#e6e6e6;border:1px solid #ccc;color:#181c1f !important;}
.gray {background:#888;border:1px solid #888;color:#fff !important;}
.gray:hover {background:#666;border:1px solid #666;color:#fff !important;}
.dgray {background:#4f4f4f;border:1px solid #4f4f4f;color:#fff !important;}
.dgray:hover {background:#aaa;border:1px solid #aaa;color:#fff !important;}
.green {background:#26c281;border:1px solid #26c281;color:#fff !important;}
.green:hover {background:#1e9765;border:1px solid #1c8f5f;color:#fff !important;}
.yellow {background:#e87e04;border:1px solid #e87e04;color:#fff !important;}
.yellow:hover {background:#b66303;border:1px solid #ac5d03;color:#fff !important;}
.red {background:#ef4836;border:1px solid #ef4836;color:#fff !important;}
.red:hover {background:#e02612;border:1px solid #d72411;color:#fff !important;}
.blue {background:#4b77be;border:1px solid #4b77be;color:#fff !important;}
.blue:hover {background:#395f9d;border:1px solid #365b96;color:#fff !important;}
.purple {background: #8e44ad;border: 1px solid #8e44ad;color: #fff !important;}
.purple:hover {background: #7d3c98;border: 1px solid #6c3483;color: #fff !important;}
.orange {background: #e67e22;border: 1px solid #e67e22;color: #fff !important;}
.orange:hover {background: #d35400;border: 1px solid #b03a00;color: #fff !important;}
.pink {background: #ff69b4;border: 1px solid #ff69b4;color: #fff !important;}
.pink:hover {background: #ff1493;border: 1px solid #ff007f;color: #fff !important;}
.bx-white {background:#fff;border:1px solid #ccc;color:#222 !important;}
.bx-white:hover {background:#fff;border:1px solid #222;color:#222 !important;}
.bx-black {background:#fff;border:1px solid #222;color:#222 !important;}
.bx-black:hover {background:#222;border:1px solid #222;color:#fff !important;}
.bx-gray {background:#f8f8f8;border:1px solid #ccc;color:#666 !important;}
.bx-gray:hover {background:#999;border:1px solid #999;color:#fff !important;}
.bx-green {background:#fff;border:1px solid #26c281;color:#26c281 !important;}
.bx-green:hover {background:#26c281;border:1px solid #26c281;color:#fff !important;}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. SNS 공유
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bo_v_snswr {position: relative; display: inline-block; }
.share-dropdown { position: absolute; top: 100%; right: 0; min-width: 300px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; margin-top: 5px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.share-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.share-content { padding: 20px; }
.share-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.share-btn { display: flex; flex-direction: column; align-items: center; background: none; border: none; cursor: pointer; padding: 15px 10px; border-radius: 8px; transition: background 0.2s ease; text-decoration: none; color: inherit; }
.share-btn:hover { background: #f5f5f5; }
.share-btn .icon { width: 58px; height: 58px; margin-bottom: 8px; display: block; }
.share-btn .text { font-size:0.75rem; color: #666; font-weight: 500; }
.facebook-icon { background: url('../img/sns/shareFacebook.png') center center no-repeat;}
.kakao-icon { background: url('../img/sns/shareKakao.png') center center no-repeat;}
.line-icon { background: url('../img/sns/shareLine.png') center center no-repeat;}
.blog-icon { background: url('../img/sns/shareNaver.png') center center no-repeat;}
.band-icon { background: url('../img/sns/shareNaverBand.png') center center no-repeat;}
.twitter-icon { background: url('../img/sns/shareTwitter.png') center center no-repeat;}
.copy-section { border-top: 1px solid #f0f0f0; padding-top: 20px; }
.copy-input { display: flex; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.copy-input .input { flex: 1; padding: 12px 15px; border: none; background: #f9f9f9; font-size:0.9375rem; color: #666; outline: none; }
.copy-input .copy-btn { padding: 12px 20px; background: #007bff; color: white; border: none; cursor: pointer; font-size:0.9375rem; font-weight: 500; transition: background 0.2s ease; }
.copy-input .copy-btn:hover { background: #0056b3; color:#fff;}
.copy-success { color: #28a745; font-size:0.75rem; margin-top: 5px; opacity: 0; transition: opacity 0.3s ease; }
.copy-success.show { opacity: 1; }
@media (max-width: 480px) { 
	.share-dropdown { min-width: 280px; } 
	.share-content { padding: 15px; } 
	.share-buttons { gap: 10px; } 
	.share-btn { padding: 12px 8px; } 
	.share-btn .icon { width: 35px; height: 35px; } 
	.share-btn .text { font-size:0.75rem; } 
}
.share-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; display: none; }
.share-overlay.active { display: block; }

/******************************************************************************
************           게시판 페이징 변형 스타일                  ****************
******************************************************************************/
.pg_wrap {clear:both;width:100%;margin:20px auto;text-align:center}
.pg_wrap:after {display:block;visibility:hidden;clear:both;content:""} 
.pg {}
.pg_page, .pg_current {display:inline-block;vertical-align:middle;background:#f3f3f3;border:1px solid #bbbcc3;margin:0 3px}
.pg a:focus, .pg a:hover {text-decoration:none}
.pg_page {color:#555;font-size:0.9375rem;height:30px;line-height:28px;padding:0 5px;min-width:30px;text-decoration:none;border-radius:3px;}
.pg_page:hover{background-color:#ddd}
.pg_start {text-indent:-999px;overflow:hidden;background:url('../img/common/btn_first.gif') no-repeat 50% 50% #fff;padding:0;border:1px solid #bbb;}
.pg_prev {text-indent:-999px;overflow:hidden;background:url('../img/common/btn_prev.gif') no-repeat 50% 50% #fff;padding:0;border:1px solid #bbb}
.pg_end {text-indent:-999px;overflow:hidden;background:url('../img/common/btn_end.gif') no-repeat 50% 50% #fff;padding:0;border:1px solid #bbb}
.pg_next {text-indent:-999px;overflow:hidden;background:url('../img/common/btn_next.gif') no-repeat 50% 50% #fff;padding:0;border:1px solid #bbb}
.pg_start:hover,.pg_prev:hover,.pg_end:hover,.pg_next:hover{background-color:#fafafa}
.pg_current {display:inline-block;background:#4c4f6f;color:#fff;font-weight:bold;height:30px;line-height:30px;padding:0 10px;min-width:30px;border-radius:3px;-webkit-box-shadow: inset 1px 1px 2px #222542;-moz-box-shadow:  inset 1px 1px 2px #222542;box-shadow: inset 1px 1px 2px #222542;}

/******************************************************************************
 * 글자크기 확대·축소 및 제목 색상 보정
 ******************************************************************************/
/* 게시판 글자 크기는 여기 한 곳에서 정합니다.
   아래 목록(a·button·input·select…)이 전부 inherit 이므로
   이 값 하나만 바꾸면 검색바·게시글수·글제목·작성자줄이 함께 따라옵니다.
   ※ 이 블록이 파일 뒤쪽이라, 앞에서 정한 font-size 는 여기에 밀립니다. */
#bo_list,
#bo_v,
#bo_w,
#bo_vc,
.bo_vc_w {
    --bo-font:0.9375rem;   /* 15px. rem 이라 글자크기 버튼에 따라 같이 커집니다 */
    font-size: var(--bo-font);
}
@media screen and (min-width:769px){
    #bo_list,
    #bo_v,
    #bo_w,
    #bo_vc,
    .bo_vc_w { --bo-font:1rem; }   /* 16px */
}

#bo_list table,
#bo_list thead,
#bo_list tbody,
#bo_list th,
#bo_list td,
#bo_list a,
#bo_list button,
#bo_list input,
#bo_list select,
#bo_v button,
#bo_v input,
#bo_v select,
#bo_v textarea,
#bo_w button,
#bo_w input,
#bo_w select,
#bo_w textarea,
#bo_vc button,
#bo_vc input,
#bo_vc select,
#bo_vc textarea {
    font-size: inherit;
}
/* ※ 위 목록에서 #bo_v · #bo_w · #bo_vc 자신은 뺐습니다.
     그 셋은 바로 위에서 font-size:var(--bo-font) 로 크기를 "정하는" 쪽인데
     여기 목록에 같이 있으면 자기 값을 버리고 부모(본문 18px)를 물려받습니다.
     그러면 글쓰기·읽기 화면만 글자가 커집니다. 안쪽 요소만 상속시키면 됩니다. */

#bo_list .td_subject,
#bo_list .bo_tit,
#bo_list .bo_tit a,
#bo_list .bo_tit a:link,
#bo_list .bo_tit a:visited {
    color: #000 !important;
}

#bo_list .bo_tit a:hover,
#bo_list .bo_tit a:focus {
    color: #000 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#bo_v_title .bo_v_tit,
#bo_v_title .bo_v_tit a,
#bo_v_title .bo_v_tit a:link,
#bo_v_title .bo_v_tit a:visited {
    color: #000 !important;
}

#bo_v_con {
    font-size: 1rem !important;
}

#bo_v_con p,
#bo_v_con div,
#bo_v_con span,
#bo_v_con li,
#bo_v_con td,
#bo_v_con th {
    font-size: inherit;
}

#bo_v_con [style*="font-size"] {
    font-size: inherit !important;
}

@media screen and (max-width:768px) {
    #bo_v_title .bo_v_tit {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   갤러리 게시판 목록 (skin/board/smart_gallery)

   smart_basic 과 모든 것이 같고 "목록"만 사진으로 바뀐 스킨입니다.
   검색바 · 게시글 수 · 페이지 · 선택버튼 · 글쓰기 버튼은 위쪽 규칙을 그대로 씁니다.
   여기 있는 규칙은 목록(.gall_wrap) 안에서만 씁니다.

   글자 크기는 위에서 정한 --bo-font 를 따릅니다(모바일 15px / PC 16px).
   칸 수    PC 4칸 → 1160px 이하 3칸 → 760px 이하 2칸
   ========================================================================== */

/* 게시글 수 줄과 목록 사이를 연한 실선으로 나눕니다. 선 위아래 20px.

   바깥(#bo_btn_top·건수 줄)의 아래 여백에 기대면 화면 폭마다 값이 달라집니다.
   그 여백을 0 으로 만들고 여기서 20px 을 직접 잡습니다. */
.gall_list #bo_btn_top{margin-bottom:0}
.gall_list #bo_btn_top .page_num{margin-bottom:0}

.gall_wrap{
    display:grid;grid-template-columns:repeat(4,1fr);gap:24px;
    margin-top:20px;padding-top:20px;
    border-top:1px solid var(--al-line-soft,#edf0eb);
    margin-bottom:20px;
}

.gall_item{
    position:relative;overflow:hidden;
    border:1px solid var(--al-line,#dce1d9);border-radius:var(--al-radius,16px);
    background-color:var(--al-surface,#fff);
    transition:transform .3s,box-shadow .3s;
}
.gall_item:hover{transform:translateY(-7px);box-shadow:0 20px 42px rgb(20 48 32 / .16)}

/* 사진칸 — 비율을 고정해 사진 크기가 제각각이어도 줄이 맞습니다 */
.gall_pic{
    position:relative;display:block;aspect-ratio:4 / 3;overflow:hidden;
    background-color:var(--al-bg,#f5f7f3);
}
.gall_pic img{
    position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;
    width:100%;height:100%;max-width:none;
    object-fit:cover;object-position:center;transition:transform .45s;
}
.gall_item:hover .gall_pic img{transform:scale(1.06)}

/* 사진이 없거나 안 열릴 때 뒤에 깔리는 사과 */
.gall_noimg{position:absolute;inset:0;display:grid;place-items:center;color:#9aa399;font-size:2.5rem}

/* 사진 위 분류 라벨 */
.gall_badges{position:absolute;top:.75rem;left:.75rem;right:.75rem;z-index:2;display:flex;flex-wrap:wrap;gap:.375rem}
.gall_badge{
    display:inline-flex;align-items:center;min-height:1.875rem;padding:0 .6875rem;
    border-radius:20px;font-size:0.9375rem;font-weight:600;
    background-color:rgb(255 255 255 / .94);color:#2b312b;
}

/* 선택칸(체크박스) — 사진 왼쪽 위 */
.gall_chk{position:absolute;top:.625rem;left:.625rem;z-index:3}
.gall_chk label span{background:#fff}

.gall_body{padding:1rem 1.125rem 1.125rem}

/* 글자 모양은 목록형(smart_basic)과 똑같이 맞춥니다.
     제목    굵기 400 · 검정(#000) · 줄간격 1.5   ← .bo_tit 과 같은 값
     작성자·조회·날짜  굵기 400 · 회색            ← .td_name 등과 같은 값
   같은 사이트 안에서 게시판마다 글자가 달라 보이면 어수선합니다. */
.gall_tit{margin:0;font-size:var(--bo-font,0.9375rem);line-height:1.5;font-weight:400}
.gall_tit a{
    display:block;color:#000;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;   /* 제목 한 줄 + 줄임표 */
}
.gall_tit a:hover{text-decoration:underline;text-underline-offset:3px}
.gall_cmt{margin-left:.25rem;color:#c70010;font-weight:600}

/* 목록형은 넓은 화면에서 #666(표 기본색), 좁은 화면에서 #888 을 씁니다.
   갤러리도 같은 규칙을 따릅니다. (좁은 화면 값은 아래 미디어쿼리에 있습니다) */
.gall_meta{
    display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .75rem;
    margin-top:.5rem;color:#666;font-size:var(--bo-font,0.9375rem);line-height:1.2;
}
.gall_meta .gall_name{color:inherit;font-weight:400}

.gall_none{padding:3rem 0;text-align:center;color:#888}

@media screen and (max-width:1160px){
    .gall_wrap{grid-template-columns:repeat(3,1fr);gap:18px}
}
@media screen and (max-width:760px){
    .gall_wrap{grid-template-columns:repeat(2,1fr);gap:12px}
    .gall_body{padding:.75rem .75rem .875rem}
    .gall_meta{gap:.25rem .5rem;margin-top:.375rem;color:#888}
    .gall_noimg{font-size:2rem}
    .gall_badge{min-height:1.625rem;padding:0 .5rem;font-size:0.75rem}
}

/* --------------------------------------------------------------------------
   파일 첨부 칸

   "파일 선택" 은 브라우저가 직접 그리는 버튼입니다.
   글꼴·글자크기를 물려받지 않아 혼자만 크게 보입니다.
   전용 선택자로 잡아 주변 글자와 맞춥니다.
     ::file-selector-button          요즘 브라우저
     ::-webkit-file-upload-button    옛 크롬·사파리
   -------------------------------------------------------------------------- */
input[type="file"],
.frm_file{
    font-family:inherit;
    font-size:var(--bo-font,0.9375rem);
    line-height:1.4;
    max-width:100%;
}
input[type="file"]::file-selector-button,
.frm_file::file-selector-button{
    font-family:inherit;
    font-size:var(--bo-font,0.9375rem);
    line-height:1.4;
    min-height:2rem;padding:0 .75rem;margin-right:.625rem;
    border:1px solid var(--al-line,#dce1d9);
    border-radius:var(--al-btn-radius,8px);
    background-color:var(--al-bg,#f5f7f3);
    color:var(--al-ink,#212326);
    cursor:pointer;
}
input[type="file"]::-webkit-file-upload-button,
.frm_file::-webkit-file-upload-button{
    font-family:inherit;
    font-size:var(--bo-font,0.9375rem);
    line-height:1.4;
    min-height:2rem;padding:0 .75rem;margin-right:.625rem;
    border:1px solid var(--al-line,#dce1d9);
    border-radius:var(--al-btn-radius,8px);
    background-color:var(--al-bg,#f5f7f3);
    color:var(--al-ink,#212326);
    cursor:pointer;
}
input[type="file"]::file-selector-button:hover{border-color:var(--al-red,#d9363d);color:var(--al-red,#d9363d)}
input[type="file"]::-webkit-file-upload-button:hover{border-color:var(--al-red,#d9363d);color:var(--al-red,#d9363d)}

/* ==========================================================================
   어두운 화면 (다크모드)

   이 파일의 색은 대부분 밝은 화면을 전제로 박혀 있습니다(#fff·#000·#666 …).
   어두운 화면에서는 흰 상자와 검은 글자가 그대로 남아 눈이 부십니다.
   여기서 한 번에 되돌립니다.

   색은 테마 토큰을 씁니다(theme.css 의 [data-theme="dark"] 에서 값이 바뀝니다).
     --al-surface  상자 바탕      --al-bg    한 단계 어두운 바탕
     --al-ink      본문 글자      --al-sub   보조 글자
     --al-line     테두리         --al-red   강조
   ========================================================================== */

/* ---- 목록 ---- */
[data-theme="dark"] #bo_list thead th{background:var(--al-bg);color:var(--al-ink)}
[data-theme="dark"] .tbl_head01 td{color:var(--al-sub);border-top-color:var(--al-line);border-bottom-color:var(--al-line)}
[data-theme="dark"] .tbl_head01 thead th{border-bottom-color:var(--al-line)}
[data-theme="dark"] .tbl_head01 tbody tr:hover td{background:var(--al-bg)}
[data-theme="dark"] #bo_list tbody .even td{background:var(--al-bg)}
[data-theme="dark"] #bo_list .td_chk{border-top-color:var(--al-line);border-bottom-color:var(--al-line)}

/* 제목 — 원본이 #000 !important 라 같은 세기로 되돌립니다 */
[data-theme="dark"] #bo_list .td_subject,
[data-theme="dark"] #bo_list .bo_tit,
[data-theme="dark"] #bo_list .bo_tit a,
[data-theme="dark"] #bo_list .bo_tit a:link,
[data-theme="dark"] #bo_list .bo_tit a:visited,
[data-theme="dark"] #bo_list .bo_tit a:hover,
[data-theme="dark"] #bo_v_title .bo_v_tit,
[data-theme="dark"] #bo_v_title .bo_v_tit a,
[data-theme="dark"] #bo_v_title .bo_v_tit a:link,
[data-theme="dark"] #bo_v_title .bo_v_tit a:visited{color:var(--al-ink) !important}

/* ★ 흰 바탕이 비치던 진짜 원인 —
   default.css:304 이 표 자체에 흰색을 칠합니다.
     .tbl_wrap table { background:#fff }
   짝수 줄은 .even td 로 색을 덮어 괜찮았지만, 홀수 줄은 자기 배경이 없어
   그 흰 표가 그대로 비쳤습니다. 줄이 아니라 표를 고쳐야 합니다.
   같은 이유로 흰색이 박혀 있는 다른 곳도 함께 되돌립니다. */
[data-theme="dark"] .tbl_wrap table,
[data-theme="dark"] .tbl_head01 table,
[data-theme="dark"] .tbl_head02 table{background-color:var(--al-surface) !important}
[data-theme="dark"] #bo_v{background-color:var(--al-surface) !important}
[data-theme="dark"] #bo_v_top ul,
[data-theme="dark"] #bo_v_bot ul{background-color:transparent !important}
[data-theme="dark"] .cmt_btn{background-color:transparent !important;border-bottom-color:var(--al-line)}
[data-theme="dark"] .bo_notice td{background-color:#2a1f24 !important;border-bottom-color:var(--al-line)}
[data-theme="dark"] .more_opt,
[data-theme="dark"] .more_opt li button,
[data-theme="dark"] .more_opt li a{background-color:var(--al-surface) !important;color:var(--al-ink)}
[data-theme="dark"] #autosave_pop{background-color:var(--al-surface) !important}

/* 짝수 줄(.even) 확인 사살 —
   라이트 모드에서 짝수 줄만 배경을 따로 칠합니다(#fbfbfb).
   다크에서 그 규칙이 살아 있으면 흰 배경 + 흰 글자가 되어 글자가 안 보입니다.
   어느 규칙이 이기든 상관없게 여기서 배경과 글자색을 모두 못박습니다. */
[data-theme="dark"] #bo_list tbody tr td,
[data-theme="dark"] #bo_list tbody tr.even td,
[data-theme="dark"] .tbl_head01 tbody tr td,
[data-theme="dark"] .tbl_head01 tbody tr.even td{
    background-color:transparent !important;
}
[data-theme="dark"] #bo_list tbody tr.even td,
[data-theme="dark"] .tbl_head01 tbody tr.even td{
    background-color:var(--al-bg) !important;
}
/* 목록 안의 모든 링크는 밝은 글자로 (읽은 글 :visited 도 포함) */
[data-theme="dark"] #bo_list .td_subject a,
[data-theme="dark"] #bo_list .td_subject a:link,
[data-theme="dark"] #bo_list .td_subject a:visited,
[data-theme="dark"] #bo_list .td_subject a:hover,
[data-theme="dark"] #bo_list a.bo_tit,
[data-theme="dark"] #bo_list a.bo_tit:link,
[data-theme="dark"] #bo_list a.bo_tit:visited,
[data-theme="dark"] #bo_list a.bo_tit:hover{
    color:var(--al-ink) !important;
}

/* 좁은 화면 목록의 작성자·조회·날짜 줄 */
[data-theme="dark"] #bo_list .tbl_wrap tbody tr{border-bottom-color:var(--al-line)}
[data-theme="dark"] #bo_list .tbl_wrap tbody td.td_name,
[data-theme="dark"] #bo_list .tbl_wrap tbody td.td_num,
[data-theme="dark"] #bo_list .tbl_wrap tbody td.td_datetime{color:var(--al-sub);border-left-color:var(--al-line)}

/* ---- 검색바 ---- */
[data-theme="dark"] #bo_sch{background:var(--al-surface);border-color:var(--al-line)}
[data-theme="dark"] #bo_sch select{border-right-color:var(--al-line);color:var(--al-ink)}
[data-theme="dark"] #bo_sch .sch_input{color:var(--al-ink)}
[data-theme="dark"] #bo_sch .sch_input::placeholder{color:var(--al-sub)}
[data-theme="dark"] #bo_sch:focus-within{border-color:var(--al-red);box-shadow:0 0 0 2px rgb(255 107 111 / .25)}

/* ---- 게시글 수 ---- */
[data-theme="dark"] #bo_btn_top .page_num{color:var(--al-sub)}
[data-theme="dark"] #bo_btn_top .page_num > span > em ~ em{color:var(--al-ink)}
[data-theme="dark"] #bo_btn_top .page_num > span + span:after{background:var(--al-line)}

/* ---- 체크박스 ---- */
[data-theme="dark"] .chk_box input[type="checkbox"] + label span{background-color:var(--al-surface);border-color:var(--al-line)}
[data-theme="dark"] .chk_box input[type="checkbox"] + label{color:var(--al-sub)}
[data-theme="dark"] .chk_box input[type="checkbox"]:checked + label{color:var(--al-ink)}
/* 체크된 네모까지 어두운 바탕으로 덮이면 켰는지 껐는지 알 수 없습니다.
   바로 위 규칙과 선택자 세기가 같아 뒤에 오는 쪽이 이기므로, 여기서 되살립니다. */
[data-theme="dark"] .chk_box input[type="checkbox"]:checked + label span{
    background-color:var(--al-chk-on);
    border-color:var(--al-chk-on);
}

/* ---- 갤러리 목록 ---- */
[data-theme="dark"] .gall_item{background-color:var(--al-surface);border-color:var(--al-line)}
[data-theme="dark"] .gall_item:hover{box-shadow:0 20px 42px rgb(0 0 0 / .45)}
[data-theme="dark"] .gall_pic{background-color:var(--al-bg)}
[data-theme="dark"] .gall_tit a{color:var(--al-ink)}
[data-theme="dark"] .gall_meta{color:var(--al-sub)}
[data-theme="dark"] .gall_badge{background-color:rgb(30 35 30 / .88);color:var(--al-ink)}
[data-theme="dark"] .gall_wrap{border-top-color:var(--al-line)}
[data-theme="dark"] .gall_none{color:var(--al-sub)}

/* ---- 읽기 · 쓰기 · 댓글 ---- */
[data-theme="dark"] #bo_v{background:var(--al-surface);color:var(--al-ink)}
[data-theme="dark"] #bo_v_con{color:var(--al-ink)}
[data-theme="dark"] #bo_v_info,
[data-theme="dark"] #bo_v_top,
[data-theme="dark"] #bo_v_bot{color:var(--al-sub)}
[data-theme="dark"] #bo_w .write_div,
[data-theme="dark"] .bo_vc_w{color:var(--al-ink)}
/* default.css 가 .frm_input 에 흰 바탕·검은 글자를 직접 박아 둡니다.
   요소 이름(input/textarea)까지 붙여 확실히 앞서게 합니다. */
[data-theme="dark"] input.frm_input,
[data-theme="dark"] textarea.frm_input,
[data-theme="dark"] input.frm_file,
[data-theme="dark"] input[type="file"],
[data-theme="dark"] #bo_w textarea,
[data-theme="dark"] #bo_w input[type="text"],
[data-theme="dark"] #bo_w input[type="password"],
[data-theme="dark"] #bo_w select,
[data-theme="dark"] .bo_vc_w textarea{
    /* default.css 가 .frm_input 에 흰 바탕·검은 글자를 박아 두는데,
       선택자를 아무리 올려도 밀리는 경우가 있어 여기서만 !important 를 씁니다.
       (어두운 화면에서 흰 입력칸은 눈이 부셔 그대로 둘 수 없습니다) */
    background-color:var(--al-surface) !important;
    border-color:var(--al-line) !important;
    color:var(--al-ink) !important;
}
[data-theme="dark"] input.frm_input::placeholder,
[data-theme="dark"] textarea.frm_input::placeholder,
[data-theme="dark"] .bo_vc_w textarea::placeholder{color:var(--al-sub)}
[data-theme="dark"] input[type="file"]::file-selector-button,
[data-theme="dark"] input[type="file"]::-webkit-file-upload-button{
    background-color:var(--al-bg);border-color:var(--al-line);color:var(--al-ink);
}

/* ---- 댓글 목록 ---- */
[data-theme="dark"] #bo_vc article{border-color:var(--al-line)}
[data-theme="dark"] #bo_vc h1,
[data-theme="dark"] #bo_vc .cmt_contents{color:var(--al-ink)}

/* ---- 페이지 번호 ---- */
[data-theme="dark"] .pg_page,
[data-theme="dark"] .pg_current{border-color:var(--al-line)}
[data-theme="dark"] .pg_page{background:var(--al-surface);color:var(--al-sub)}
[data-theme="dark"] .pg_page:hover{background:var(--al-bg);color:var(--al-ink)}

/* ==========================================================================
   자료실 목록의 첨부파일 칸 (skin/board/smart_pds)

   smart_basic 과 모든 것이 같고, 목록 오른쪽에 파일 아이콘이 하나 더 붙습니다.
   아이콘에 마우스를 올리면 파일 이름과 크기가 뜹니다.

   툴팁은 원본 스킨이 별도 css/tooltip.css 로 갖고 있던 것을 여기로 옮겼습니다.
   원본은 [tooltip] 속성 선택자라 게시판 밖에도 걸렸는데,
   여기서는 #bo_list 안으로 좁히고 data-tip 속성을 씁니다.
   ========================================================================== */

#bo_list .td_file{text-align:center;white-space:nowrap}
#bo_list .pds_file{
    position:relative;
    display:inline-block;vertical-align:middle;
    margin:0 2px;line-height:1;
}
#bo_list .pds_file img{width:22px;height:22px;display:block}
#bo_list .pds_file.is-lock img{opacity:.45}

/* 말풍선 — 아이콘 왼쪽에 뜹니다(오른쪽 끝 칸이라 화면 밖으로 나가지 않게) */
#bo_list .pds_file::after,
#bo_list .ns_ico[data-tip]::after{
    content:attr(data-tip);
    position:absolute;right:calc(100% + 8px);top:50%;transform:translateY(-50%);
    z-index:1000;
    max-width:20rem;padding:.4rem .625rem;
    border-radius:6px;
    background-color:#333;color:#fff;
    font-size:0.8125rem;line-height:1.3;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;
    opacity:0;visibility:hidden;transition:opacity .15s;
    pointer-events:none;
}
/* 말풍선 꼬리 */
#bo_list .pds_file::before,
#bo_list .ns_ico[data-tip]::before{
    content:"";
    position:absolute;right:calc(100% + 2px);top:50%;transform:translateY(-50%);
    z-index:1001;
    border:5px solid transparent;border-left-color:#333;
    opacity:0;visibility:hidden;transition:opacity .15s;
    pointer-events:none;
}
#bo_list .pds_file:hover::after,
#bo_list .pds_file:hover::before,
#bo_list .pds_file:focus-visible::after,
#bo_list .pds_file:focus-visible::before,
#bo_list .ns_ico[data-tip]:hover::after,
#bo_list .ns_ico[data-tip]:hover::before,
#bo_list .ns_ico[data-tip]:focus-visible::after,
#bo_list .ns_ico[data-tip]:focus-visible::before{opacity:1;visibility:visible}

[data-theme="dark"] #bo_list .pds_file::after,
[data-theme="dark"] #bo_list .ns_ico[data-tip]::after{background-color:#0d100d;color:var(--al-ink)}
[data-theme="dark"] #bo_list .pds_file::before,
[data-theme="dark"] #bo_list .ns_ico[data-tip]::before{border-left-color:#0d100d}

/* 좁은 화면 : 파일 칸은 제목 아래 줄에 함께 놓입니다 */
@media screen and (max-width:768px){
    #bo_list .tbl_wrap tbody td.td_file{
        flex:1 1 22%;min-width:0;margin-top:2px;
        text-align:center;line-height:1.2;
        border-left:1px solid #ececec;
    }
    /* 좁은 화면에서는 말풍선을 아이콘 위쪽에 띄웁니다 */
    #bo_list .pds_file::after,
    #bo_list .ns_ico[data-tip]::after{right:auto;left:50%;top:auto;bottom:calc(100% + 8px);transform:translateX(-50%)}
    #bo_list .pds_file::before,
    #bo_list .ns_ico[data-tip]::before{right:auto;left:50%;top:auto;bottom:calc(100% + 2px);transform:translateX(-50%);
        border-left-color:transparent;border-top-color:#333}
    [data-theme="dark"] #bo_list .pds_file::before,
[data-theme="dark"] #bo_list .ns_ico[data-tip]::before{border-left-color:transparent;border-top-color:#0d100d}
}

/* 첨부 줄의 "파일 선택" 버튼이 칸 아래쪽에 붙는 것 보정.

   원본은 input 에 margin-top:3px 만 주고 세로 가운데 맞춤이 없어,
   브라우저가 그리는 버튼이 줄 바닥에 붙습니다.
   줄을 flex 로 두고 가운데 정렬하면 위아래가 고르게 남습니다. */
#bo_w .bo_w_flie .file_wr{
    display:flex;align-items:center;
    padding:0 5px;
}
#bo_w .bo_w_flie .frm_file{
    margin-top:0;
    padding-left:45px;      /* 왼쪽 폴더 아이콘(40px) 자리 */
    line-height:1.4;
}

/* 목록 맨 앞 선택칸이 표 왼쪽 끝에 바짝 붙어 답답해 보입니다.
   표 머리(전체선택)와 본문 줄 모두 같은 만큼 띄웁니다. */
#bo_list .all_chk,
#bo_list .td_chk{padding-left:8px}

/* ==========================================================================
   책 게시판 (smart_book)

   smart_gallery 를 바탕으로 만든 스킨입니다. 다른 점만 여기에 적습니다.
     · 목록  표지가 세로로 긴 책이라 사진칸 비율을 3:4 로 세웁니다.
       작성자·조회수 대신 판매가격을 보여 줍니다.
     · 읽기  왼쪽 표지 · 오른쪽 정보표.
     · 쓰기  제조사 · 공급원 · 판매가격 · 구입문의 (여분필드 wr_1~wr_4)

   글자 크기는 rem 입니다. 상단 "글자크기" 버튼을 따라갑니다.
   ========================================================================== */

/* --------------------------------------------------------------------------
   목록
   -------------------------------------------------------------------------- */
/* 책 표지는 세로가 깁니다. 갤러리의 4:3 을 3:4 로 세웁니다. */
/* 표지칸 — 카드 위쪽 두 모서리를 카드와 같은 곡률로 둥글립니다.
   .gall_item 이 overflow:hidden 이라 자동으로 잘리긴 하지만,
   hover 로 사진이 커질 때 각이 살짝 비치는 것을 막아 줍니다.
   아래쪽에는 표지와 글을 가르는 선을 하나 둡니다. */
.book_list .gall_pic{
    aspect-ratio:3 / 4;
    border-radius:var(--al-radius,16px) var(--al-radius,16px) 0 0;
    border-bottom:1px solid var(--al-line);
    overflow:hidden;
}

/* 글칸 — 제목 위는 넉넉히, 가격 아래는 짧게 */
.book_list .gall_body{padding:1.375rem 1.125rem .875rem}

/* 뱃지 줄 — 제목 다음 줄에 가운데로 */
.book_badges{
    display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
    gap:.25rem;
    margin:.5rem 0 0;
}
/* 표지는 잘리면 제목이 날아갑니다. 채우지 말고 다 보이게 둡니다. */
/* 표지를 칸에 꽉 채웁니다. 표지도 칸도 3:4 라 잘리는 곳은 거의 없습니다. */
.book_list .gall_pic img{object-fit:cover;padding:0}
.book_list .gall_body{text-align:center}
.book_list .book_hide{display:none}          /* 작성자 자리는 쓰지 않습니다 */

/* 제목 옆 뱃지 — img/shop 의 그림을 그대로 씁니다.
   (히트 · 추천 · 신상 · 베스트 · 할인, 원본 27x14 · 베스트만 37x14)

   원본이 작아 억지로 키우면 흐려집니다. 그래서 크기는 건드리지 않고
   글자 크기를 키워도 흔들리지 않도록 세로 가운데만 맞춥니다. */
.book_badge{
    display:inline-block;
    width:auto;height:auto;
    max-width:none;
    vertical-align:middle;
}

/* 읽기 화면 — 구분 그림은 책 이름 오른쪽에 나란히 */
.book_badges.is-inline{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.25rem;margin:0}

/* 할인율 뒤 아래 화살표 */
.book_dc i{
    margin-left:.125rem;
    font-size:0.625rem;
    font-style:normal;
    line-height:1;
}
.book_list .gall_meta{justify-content:center;margin-top:.5rem}
.book_list .book_price{color:var(--al-deep);font-size:1rem;font-weight:400}
.book_list .book_price b{font-weight:800}
/* 목록의 가격 줄은 [할인율] [정가] 줄바꿈 [판매가] 로 쌓입니다 */
.book_list .gall_meta{flex-wrap:wrap;row-gap:.125rem}
.book_list .book_was{flex:0 0 auto}
.book_list .book_price{
    flex:1 1 100%;
    display:flex;align-items:center;justify-content:center;gap:.375rem;
}

/* 정가 — 가로줄을 그어 지난 값임을 보입니다 */
.book_was{color:var(--al-sub-light);font-size:0.9375rem;text-decoration:line-through}

/* 할인율 뱃지 */
.book_dc{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:2.5rem;padding:.0625rem .5rem;
    border-radius:20px;
    background-color:var(--al-red);
    color:#fff;
    font-size:0.8125rem;font-weight:800;line-height:1.6;
}

/* --------------------------------------------------------------------------
   읽기 — 왼쪽 표지 · 오른쪽 정보표
   -------------------------------------------------------------------------- */
/* 작성자·조회·입력일 줄은 책에는 필요 없습니다 */
#bo_v.bo_book #bo_v_info{display:none}

.book_head{
    display:flex;align-items:flex-start;gap:2rem;
    margin:1.25rem 0 1.75rem;
}
/* 표지 — 누르면 원본이 새 창에 열립니다 */
.book_cover{
    position:relative;
    flex:none;width:16.25rem;
    padding:1rem;
    border:1px solid var(--al-line);
    border-radius:var(--al-radius-sm,10px);
    background-color:var(--al-surface);
    cursor:zoom-in;
    transition:box-shadow var(--al-ease,.22s),border-color var(--al-ease,.22s);
}
a.book_cover:hover,
a.book_cover:focus-visible{
    border-color:var(--al-red-mid);
    box-shadow:var(--al-shadow-md,0 10px 26px rgb(20 48 32 / .12));
}
.book_cover img{display:block;width:100%;height:auto}

/* 마우스를 올리면 뜨는 돋보기 */
.book_zoom{
    position:absolute;
    right:1rem;bottom:1rem;
    display:inline-flex;align-items:center;justify-content:center;
    width:2.75rem;height:2.75rem;
    border-radius:50%;
    background-color:rgb(217 54 61 / .92);
    color:#fff;
    font-size:1rem;
    opacity:0;
    transform:translateY(.375rem);
    transition:opacity var(--al-ease,.22s),transform var(--al-ease,.22s);
    pointer-events:none;
}
a.book_cover:hover .book_zoom,
a.book_cover:focus-visible .book_zoom{opacity:1;transform:translateY(0)}

/* 손가락으로 쓰는 화면에서는 hover 가 없으므로 늘 보입니다 */
@media (hover:none){
    .book_zoom{opacity:1;transform:none}
}

/* 책 페이지는 표지 오른쪽에 책 이름을 따로 내므로
   위쪽 게시판 제목은 두 번 나옵니다. 화면에서만 감춥니다.
   (지우지 않는 이유 — 읽어주는 프로그램과 검색엔진은 이 제목을 보고 글을 찾습니다) */
#bo_v.bo_book > header #bo_v_title{
    position:absolute;width:1px;height:1px;margin:-1px;padding:0;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.book_info{flex:1 1 auto;min-width:0}

/* 책 이름.
   위에 있던 게시판 제목(#bo_v_title)을 감추고 이것이 제목 구심을 합니다.
   그래서 글자 크기도 그쪽과 같게 1.625rem 으로 맞춥니다. */
.book_name{
    display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;
    margin:0 0 1rem;
    color:var(--al-ink);
    font-family:inherit;
    font-size:1.625rem;font-weight:600;line-height:1.4;
    text-align:center;
    word-break:keep-all;
}
/* 제목 앞 책 그림 */
.book_name .book_name_ico{
    flex:none;
    align-self:center;    /* 제목 글자 높이의 한가운데 */
    color:var(--al-red);
    font-size:0.87em;     /* 제목 29.9px 기준 26px */
    line-height:1;
}

/* 정보표 — dt 는 왼쪽 이름칸, dd 는 값 */
.book_spec{
    display:grid;grid-template-columns:7.5rem 1fr;
    gap:0;margin:0;
    border-top:1px solid var(--al-line);
}
.book_spec dt,
.book_spec dd{
    margin:0;padding:.75rem 1rem;
    border-bottom:1px solid var(--al-line-soft);
    line-height:1.6;
    word-break:keep-all;
}
.book_spec dt{
    background-color:var(--al-bg);
    color:var(--al-sub);
    font-weight:700;
}
.book_spec dd{color:var(--al-ink)}
.book_spec .book_price{color:var(--al-deep);font-size:1.125rem;font-weight:800}
.book_spec .book_dc{margin-right:.375rem;vertical-align:2px}

.book_ask{
    margin:1.125rem 0 0;
    padding:.875rem 1rem;
    border-radius:var(--al-btn-radius,8px);
    background-color:var(--al-red-soft);
    color:var(--al-deep);
    font-size:1rem;
    text-align:center;
}
.book_ask strong{color:var(--al-deep);font-weight:800}

/* --------------------------------------------------------------------------
   쓰기 — 여분필드 입력칸
   -------------------------------------------------------------------------- */
.bo_w_book{
    margin-bottom:.625rem;
    padding:1rem 1.125rem .875rem;
    border:1px solid var(--al-line);
    border-radius:var(--al-btn-radius,8px);
    background-color:var(--al-bg);
}
.book_w_row{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}
.book_w_row label{flex:none;width:5rem;color:var(--al-sub);font-weight:700}

/* 뱃지 체크박스 줄 */
.book_w_flags{align-items:flex-start}
.book_w_checks{display:flex;flex-wrap:wrap;gap:.5rem 1.125rem;padding-top:.25rem}
/* 네모칸 모양·크기는 위쪽 "체크박스 · 라디오 — 홈페이지 전체 공통" 이 맡습니다.
   여기서는 글자색과 크기만 되돌립니다. */
.book_w_checks .chk_box input[type="checkbox"] + label{width:auto;color:var(--al-ink);font-weight:400;font-size:1rem}
.book_w_row .frm_input{flex:1 1 auto;min-width:0}
.book_w_help{margin:.25rem 0 0;color:var(--al-sub-light);font-size:0.9375rem}

/* --------------------------------------------------------------------------
   좁은 화면
   -------------------------------------------------------------------------- */
@media (max-width:768px){
    .book_head{flex-direction:column;align-items:center;gap:1.125rem}
    .book_cover{width:min(13.75rem,70%)}
    .book_info{width:100%}
    .book_name{font-size:1.25rem}   /* 게시판 제목의 모바일 크기와 같게 */
    .book_spec{grid-template-columns:5.5rem 1fr}
    .book_spec dt,
    .book_spec dd{padding:.625rem .75rem}
    .book_list .book_price{font-size:0.9375rem}
    .book_list .gall_body{padding:1rem .75rem .625rem}
    .book_was{font-size:0.8125rem}
    .book_dc{min-width:2.25rem;font-size:0.75rem}
    .book_w_row{flex-wrap:wrap;gap:.375rem}
    .book_w_row label{width:100%}
}

/* --------------------------------------------------------------------------
   다크모드 — 색은 대부분 토큰이라 저절로 바뀝니다. 모자란 곳만 손봅니다.
   -------------------------------------------------------------------------- */
[data-theme="dark"] .book_cover{background-color:#232823}
[data-theme="dark"] .book_spec dt{background-color:#232823}
[data-theme="dark"] .bo_w_book{background-color:#1c211c}

/* --------------------------------------------------------------------------
   책 게시판 — 하단 안내 (구입방법 · 배송 · 교환/반품)

   게시판 관리 > book > 하단 내용 에 넣는 HTML 의 스타일입니다.
   붙여넣을 원본 : 책게시판_하단내용_붙여넣기.html (작업 폴더 맨 위)
   -------------------------------------------------------------------------- */
.book_guide{
    margin:2.5rem 0 0;
    padding:1.75rem 1.75rem 1.5rem;
    border:1px solid var(--al-line);
    border-radius:var(--al-radius,16px);
    background-color:var(--al-bg);
    color:var(--al-ink);
    font-size:0.9375rem;
    line-height:1.85;
    word-break:keep-all;
    text-align:left;
}
.book_guide_sec{margin:0 0 1.75rem}
.book_guide_sec:last-of-type{margin-bottom:1.25rem}

.book_guide h3{
    display:flex;align-items:center;gap:.5rem;
    margin:0 0 .75rem;
    padding:0 0 .5rem;
    border-bottom:1px solid var(--al-line-dark);
    color:var(--al-green-deep);
    font-family:inherit;
    font-size:1rem;font-weight:800;line-height:1.5;
    overflow:visible;
}
.book_guide h3 i{color:var(--al-red);font-size:0.9375rem}
.book_guide p{margin:0 0 .5rem}

/* 판매처 전화 */
.book_guide_call{
    margin-top:.75rem;
    padding:.75rem 1rem;
    border-radius:var(--al-btn-radius,8px);
    background-color:var(--al-surface);
    font-size:1rem;
}
.book_guide_call a{color:var(--al-deep);font-weight:800;text-decoration:none}
.book_guide_call a:hover,
.book_guide_call a:focus{text-decoration:underline}

/* 배송금액 표 — 좁은 화면에서는 옆으로 밀어 봅니다 */
.book_guide_table{overflow-x:auto;margin:0 0 .875rem}
.book_guide_table table{width:100%;min-width:20rem;border-collapse:collapse}
.book_guide_table th,
.book_guide_table td{
    padding:.5rem .75rem;
    border:1px solid var(--al-line);
    line-height:1.6;
    text-align:center;
}
.book_guide_table th{background-color:var(--al-surface);font-weight:700}
.book_guide_table caption{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}

.book_guide_list{margin:0;padding:0;list-style:none}
.book_guide_list li{position:relative;margin:0 0 .3125rem;padding-left:.875rem}
.book_guide_list li::before{
    content:"";
    position:absolute;top:.8125rem;left:0;
    width:.3125rem;height:.3125rem;border-radius:50%;
    background-color:var(--al-red-mid);
}
.book_guide_no_tit{margin-top:.875rem;font-weight:700}
.book_guide_no li::before{background-color:var(--al-sub-light)}

.book_guide_ask{
    margin:0;
    padding:.875rem 1rem;
    border-radius:var(--al-btn-radius,8px);
    background-color:var(--al-red-soft);
    color:var(--al-deep);
    text-align:center;
}
.book_guide_ask a{color:var(--al-deep);text-decoration:none}
.book_guide_ask a:hover,
.book_guide_ask a:focus{text-decoration:underline}

@media (max-width:768px){
    .book_guide{padding:1.125rem 1rem 1rem;font-size:0.9375rem}
    .book_guide h3{font-size:1rem}
    .book_guide_call{font-size:0.9375rem}
}

[data-theme="dark"] .book_guide_call{background-color:#232823}
[data-theme="dark"] .book_guide_table th{background-color:#232823}

/* --------------------------------------------------------------------------
   책 게시판 — 본문 설명 (책 소개 글)

   글쓰기 본문(wr_content)에 넣는 HTML 의 스타일입니다.
   붙여넣을 원본 : 책소개_*.html (작업 폴더 맨 위)

   ★ 태그는 <div> 로 씁니다. <section> 은 그누보드의 HTMLPurifier 가 지웁니다.
   -------------------------------------------------------------------------- */
/* ★ 게시판 본문 안에서는 default.css:258~260 이 목록을 되살립니다.
     #bo_v_con ul{list-style-type:disc;padding-left:40px}
     #bo_v_con ol{list-style-type:decimal;padding-left:40px}
     #bo_v_con li{display:list-item}
   선택자가 더 구체적이라 우리 규칙을 눌러 버립니다. 그래서 점(&bull;)과 "1." 이
   우리가 붙인 번호와 겹쳐 두 벌로 나옵니다. 같은 무게로 되돌립니다. */
#bo_v_con .book_rules,
#bo_v_con .book_toc{list-style:none;margin:0;padding:0}
#bo_v_con .book_rules > li,
#bo_v_con .book_toc > li{display:list-item;list-style:none}
#bo_v_con .book_toc > li{display:flex}

.book_desc{color:var(--al-ink);line-height:1.9;word-break:keep-all}
.book_desc > * + *{margin-top:1.75rem}

/* 덩어리 사이 여백. 첫 덩어리(인사말 카드) 다음도 확실히 띄웁니다. */
.book_desc_sec{margin:0 0 2rem}
.book_desc_sec:last-child{margin-bottom:0}
.book_greet{margin-bottom:2.25rem}
.book_desc h3{
    display:flex;align-items:center;gap:.5rem;
    /* 제목 위에도 숨 쉴 자리를 둡니다 */
    margin:2rem 0 .875rem;
    padding:0 0 .5rem;
    border-bottom:2px solid var(--al-line-dark);
    color:var(--al-green-deep);
    font-family:inherit;
    font-size:1.125rem;font-weight:800;line-height:1.5;
    overflow:visible;
}
.book_desc > *:first-child h3,
.book_desc_sec:first-child h3{margin-top:0}
.book_desc h3::before{
    content:"";flex:none;
    width:.625rem;height:.625rem;border-radius:50%;
    background-color:var(--al-red);
}
.book_desc p{margin:0 0 .75rem}
.book_desc p:last-child{margin-bottom:0}

/* 인사말 · 발간사 — 옮겨 적은 글 */
.book_greet{
    padding:1.5rem 1.625rem;
    border-left:4px solid var(--al-gold);
    border-radius:var(--al-radius-sm,10px);
    background-color:var(--al-bg);
}
.book_greet .book_sign{
    margin:1rem 0 0;
    color:var(--al-sub);
    text-align:right;
}
.book_greet .book_sign strong{color:var(--al-ink);font-size:1rem;font-weight:800}

/* 일러두기 · 이용방법 — 번호 붙은 줄 */
.book_rules{counter-reset:bk;margin:0;padding:0;list-style:none}
.book_rules li{
    counter-increment:bk;
    position:relative;
    margin:0 0 .5rem;padding-left:1.75rem;
}
.book_rules li:last-child{margin-bottom:0}
.book_rules li::before{
    content:counter(bk);
    position:absolute;top:.3125rem;left:0;
    display:inline-flex;align-items:center;justify-content:center;
    width:1.375rem;height:1.375rem;border-radius:50%;
    background-color:var(--al-red-soft);color:var(--al-deep);
    font-size:0.8125rem;font-weight:800;line-height:1;
}

/* 차례 — 수록 종 목록 */
.book_toc{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));
    gap:.5rem;
    margin:0;padding:0;
    list-style:none;
    counter-reset:toc;
}
.book_toc li{
    counter-increment:toc;
    display:flex;align-items:center;gap:.5rem;
    padding:.5rem .75rem;
    border:1px solid var(--al-line-soft);
    border-radius:var(--al-btn-radius,8px);
    background-color:var(--al-surface);
    font-size:0.9375rem;
    line-height:1.5;
}
.book_toc li::before{
    content:counter(toc,decimal-leading-zero);
    flex:none;
    min-width:1.75rem;
    color:var(--al-sub-light);
    font-size:0.8125rem;font-weight:800;
}

/* 책이 "가 나 다" 로 매긴 목록은 이 클래스를 같이 붙입니다.
     <ul class="book_toc book_toc_ko">
   숫자 대신 가·나·다·라 … 로 나옵니다(브라우저가 알아서 셉니다).

   이 목록은 한 줄이 긴 문장입니다. 그래서 칸(카드) 모양을 벗기고
   한 줄씩 이어지는 평범한 목록으로 둡니다.
   (카드 모양은 "수록된 병 24가지" 처럼 이름이 짧아 여러 칸으로 늘어설 때 쓰는 것입니다) */
.book_toc_ko{display:block;margin-top:.5rem}
.book_toc_ko li{
    display:flex;
    padding:.25rem 0;
    border:0;
    border-radius:0;
    background-color:transparent;
    line-height:1.8;
}
.book_toc_ko li::before{content:counter(toc,hangul) ".";min-width:1.75rem}

/* 번호가 아예 없어야 하는 목록(수록 종 이름처럼)에는 이 클래스를 붙입니다 */
.book_toc_plain li::before{content:none}

/* 책 정보 한 줄 (발간처 · 발간연도 등) */
.book_meta{
    display:flex;flex-wrap:wrap;gap:.5rem .875rem;
    margin:0;padding:.875rem 1rem;
    border-radius:var(--al-btn-radius,8px);
    background-color:var(--al-line-soft);
    color:var(--al-sub);
    font-size:0.9375rem;
}
.book_meta b{color:var(--al-ink);font-weight:700}

@media (max-width:768px){
    .book_desc{font-size:0.9375rem;line-height:1.85}
    .book_desc > * + *{margin-top:1.375rem}
    .book_desc h3{font-size:1rem}
    .book_greet{padding:1.125rem 1rem}
    .book_toc{grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.375rem}
    .book_toc li{padding:.4375rem .5rem;font-size:0.8125rem}
    .book_meta{font-size:0.8125rem}
}

[data-theme="dark"] .book_greet{background-color:#232823}
[data-theme="dark"] .book_toc li{background-color:#232823}
[data-theme="dark"] .book_toc_ko li{background-color:transparent}
[data-theme="dark"] .book_meta{background-color:#232823}

/* --------------------------------------------------------------------------
   책 게시판 — 탭 (상품정보 | 상품문의 | 배송정보 | 반품정보)

   본문(#bo_v_atc)과 문의(#bo_vc) 덩어리를 스크립트가 이 안으로 옮겨 넣습니다.
   자바스크립트가 막히면 탭 상자가 hidden 이라 안 뜨고, 본문·문의는 원래 자리에
   차례로 다 보입니다.
   -------------------------------------------------------------------------- */
/* 띠 자체가 가로 줄입니다 (예전에 감싸던 .book_tabs_nav 는 없앴습니다) */
.book_tabs{
    display:flex;
    gap:.375rem;
    margin:1.75rem 0 0;
    border-bottom:2px solid var(--al-line-dark);
}
.book_tab{
    display:flex;align-items:center;justify-content:center;
    flex:1 1 0;
    min-height:3rem;
    padding:.625rem .5rem;
    text-decoration:none;
    border:1px solid var(--al-line);
    /* 띠의 밑줄(2px) 위에 탭 바닥을 정확히 포개어 한 겹으로 보이게 합니다.
       예전에는 탭 바닥이 그 위에 살짝 얹혀 줄이 두 개로 보였습니다. */
    border-bottom:2px solid var(--al-line-dark);
    margin-bottom:-2px;
    border-radius:var(--al-btn-radius,8px) var(--al-btn-radius,8px) 0 0;
    background-color:var(--al-bg);
    color:var(--al-sub);
    font-family:inherit;
    font-size:1rem;
    font-weight:700;
    line-height:1.4;
    white-space:nowrap;
    cursor:pointer;
    transition:background-color var(--al-ease,.22s),color var(--al-ease,.22s);
}
.book_tab:link,
.book_tab:visited{color:var(--al-sub)}
.book_tab:hover,
.book_tab:focus{background-color:var(--al-line-soft);color:var(--al-ink)}
.book_tab.is-on,
.book_tab.is-on:link,
.book_tab.is-on:visited{
    background-color:var(--al-surface);
    border-color:var(--al-line-dark);
    /* 고른 탭은 밑줄을 바탕색으로 지워 내용과 이어져 보이게 합니다 */
    border-bottom-color:var(--al-surface);
    color:var(--al-deep);
}
.book_tab:focus-visible{outline:2px solid var(--al-focus);outline-offset:-3px}

/* 구역 끝 TOP 단추 — 오른쪽에 붙습니다 */
.book_top{margin:1.5rem 0 0;text-align:right}
.book_top a{
    display:inline-flex;align-items:center;gap:.375rem;
    min-height:2.5rem;padding:0 1rem;
    border:1px solid var(--al-line);
    border-radius:var(--al-btn-radius,8px);
    background-color:var(--al-bg);
    color:var(--al-sub);
    font-size:0.9375rem;font-weight:700;text-decoration:none;
    transition:background-color var(--al-ease,.22s),color var(--al-ease,.22s);
}
.book_top a:link,
.book_top a:visited{color:var(--al-sub)}
.book_top a:hover,
.book_top a:focus{background-color:var(--al-line-soft);color:var(--al-deep)}

/* 칸 사이 여백. 아래쪽은 TOP 단추가 이미 자리를 만드므로 더 두지 않습니다. */
.book_pan{padding:1.5rem 0 0}
#bo_v.bo_book{padding-bottom:0;margin-bottom:0}
#bo_v.bo_book #bo_v_atc{margin-bottom:0}
.book_pan .book_guide{margin-top:0}

/* TOP 이 돌아올 붙박이 표식. 자리만 차지하지 않고 위치만 잡습니다. */
.book_top_anchor{
    display:block;
    height:0;
    scroll-margin-top:var(--al-head-h,92px);
}

/* 바로가기로 뛰었을 때 위쪽 고정 머리에 가리지 않게 자리를 띄웁니다 */
#bo_v_atc,
#bo_vc,
#book_ship,
#book_ret{scroll-margin-top:var(--al-head-h,92px)}

/* 띠는 위에 붙어 따라옵니다. 아래로 내려가도 계속 누를 수 있습니다. */
/* 띠는 위에 붙어 따라옵니다.
   top:0 으로 두면 sticky 인 머리(.al-header, 93px) 뒤에 숨습니다.
   머리 높이만큼 내려서 붙입니다. (--al-head-h : PC 92px · 모바일 74px) */
.book_tabs{position:sticky;top:var(--al-head-h,92px);z-index:5;background-color:var(--al-surface)}

@media (max-width:768px){
    .book_tabs{margin-top:1.25rem}
    .book_tabs_nav{gap:.25rem}
    .book_tab{min-height:2.75rem;padding:.5rem .25rem;font-size:0.9375rem}
    .book_pan{padding-top:1.125rem}
}

[data-theme="dark"] .book_tab{background-color:#1c211c}
[data-theme="dark"] .book_tab:hover{background-color:#232823}
[data-theme="dark"] .book_tab.is-on{background-color:var(--al-surface);border-bottom-color:var(--al-surface)}
[data-theme="dark"] .book_top a{background-color:#1c211c}

/* ##########################################################################
   과수용어 게시판  (skin/board/smart_word)

   여느 게시판과 달리 표를 쓰지 않습니다.
   한 줄에 [용어] [설명 앞머리] [자세히] 를 놓고,
   누르면 그 아래로 설명이 펼쳐집니다.
   ########################################################################## */

.bo_word .wd_list{
    margin:1.25rem 0 0;padding:0;
    border-top:2px solid var(--al-ink);
    list-style:none;
}
.bo_word .wd_item{border-bottom:1px solid var(--al-line)}

/* ---- 한 줄 ---- */
.bo_word .wd_row{display:flex;align-items:stretch;gap:.5rem}

.bo_word .wd_chk{
    display:flex;align-items:center;
    padding-left:.75rem;
}

.bo_word .wd_head{
    flex:1 1 auto;min-width:0;
    display:flex;align-items:center;gap:1rem;
    width:100%;
    padding:1.125rem .875rem;
    border:0;
    background-color:transparent;
    color:var(--al-ink);
    font-family:inherit;font-size:1rem;
    text-align:left;text-decoration:none;
    cursor:pointer;
}
.bo_word .wd_head:hover{background-color:var(--al-bg)}
.bo_word .wd_head:focus-visible{outline:2px solid var(--al-green);outline-offset:-2px}

/* 용어 — 굵게, 줄이 길면 두 줄까지 */
.bo_word .wd_term{
    flex:0 1 auto;min-width:0;
    color:var(--al-ink);
    font-size:1.0625rem;font-weight:700;line-height:1.4;
    word-break:keep-all;
}
.bo_word .wd_cate{
    display:inline-block;margin-right:.375rem;padding:.0625rem .5rem;
    border-radius:999px;
    background-color:var(--al-line-soft);
    color:var(--al-green-deep);
    font-size:0.75rem;font-style:normal;font-weight:700;
    vertical-align:.0625rem;
}

/* 설명 앞머리 — 한 줄만, 넘치면 말줄임 */
.bo_word .wd_peek{
    flex:1 1 auto;min-width:0;
    overflow:hidden;
    color:var(--al-sub);
    font-size:0.9375rem;line-height:1.5;
    white-space:nowrap;text-overflow:ellipsis;
}

/* 자세히 */
.bo_word .wd_more{
    flex:0 0 auto;
    display:inline-flex;align-items:center;gap:.375rem;
    padding:.375rem .75rem;
    border:1px solid var(--al-line);border-radius:999px;
    color:var(--al-sub);
    font-size:0.8125rem;font-weight:700;
    white-space:nowrap;
}
.bo_word .wd_head:hover .wd_more{border-color:var(--al-green);color:var(--al-green-deep)}
.bo_word .wd_more i{transition:transform .2s}
.bo_word .wd_head[aria-expanded="true"] .wd_more{
    border-color:var(--al-green);
    background-color:var(--al-green);
    color:#fff;
}
.bo_word .wd_head[aria-expanded="true"] .wd_more i{transform:rotate(180deg)}

/* ---- 펼친 설명 ---- */
.bo_word .wd_body{
    padding:0 .875rem 1.25rem;
    border-left:3px solid var(--al-green);
    background-color:var(--al-bg);
}
.bo_word .wd_body_in{
    padding-top:1rem;
    color:var(--al-ink);
    font-size:1rem;line-height:1.8;
    word-break:keep-all;
}
.bo_word .wd_body_in img{max-width:100%;height:auto}
.bo_word .wd_body_in p{margin:0 0 .75rem}
.bo_word .wd_body_in p:last-child{margin-bottom:0}

.bo_word .wd_foot{margin:1rem 0 0;text-align:right}
.bo_word .wd_foot a{
    display:inline-flex;align-items:center;gap:.25rem;
    color:var(--al-green-deep);
    font-size:0.875rem;font-weight:700;
    text-decoration:none;
}
.bo_word .wd_foot a:hover{text-decoration:underline}

/* 공지 · 빈 목록 */
.bo_word .wd_item.is_notice .wd_term{color:var(--al-red)}
.bo_word .wd_empty{
    padding:4rem 1rem;
    border-bottom:1px solid var(--al-line);
    color:var(--al-sub);
    font-size:1rem;text-align:center;
    list-style:none;
}

.bo_word .wd_allchk{margin:1.25rem 0 -.5rem;padding:0 .875rem}

/* ---- 좁은 화면 ---- */
@media (max-width:768px){
    .bo_word .wd_head{gap:.625rem;padding:.9375rem .625rem}
    .bo_word .wd_term{font-size:1rem}
    /* 앞머리는 자리를 많이 먹어 감춥니다. 눌러서 보시면 됩니다. */
    .bo_word .wd_peek{display:none}
    .bo_word .wd_more{padding:.3125rem .5rem;font-size:0.75rem}
    .bo_word .wd_more_txt{display:none}
    .bo_word .wd_body{padding:0 .625rem 1rem}
    .bo_word .wd_body_in{font-size:0.9375rem}
}

[data-theme="dark"] .bo_word .wd_head:hover{background-color:#1c211c}
[data-theme="dark"] .bo_word .wd_body{background-color:#1c211c}

/* ##########################################################################
   농사로 자료 (주간농사정보 · 병해충 발생정보)

   틀은 우리 게시판(#bo_list · #bo_sch · .tbl_head01)을 그대로 씁니다.
   여기에는 게시판에 없는 것만 적습니다.
     · 자료 칸의 아이콘 단추 (바로보기 · PDF · 한글)
     · 아래쪽 출처 줄
   ########################################################################## */

/* ---- 자료 칸 ---- */
.ns_files{text-align:center;white-space:nowrap}
.ns_nofile{color:var(--al-sub-light,var(--al-sub))}

.ns_ico{
    position:relative;   /* 말풍선(data-tip)이 붙을 자리 */
    display:inline-flex;align-items:center;justify-content:center;
    width:2rem;height:2rem;margin:0 .0625rem;
    border:1px solid var(--al-line);border-radius:.375rem;
    background-color:var(--al-surface);
    color:var(--al-sub);
    font-size:0.9375rem;
    text-decoration:none;
    vertical-align:middle;
}
.ns_ico:hover,
.ns_ico:focus{border-color:var(--al-green);background-color:var(--al-bg);color:var(--al-green-deep)}

/* ★ default.css:314 의 .tbl_head01 a:hover 가 밑줄을 그어 버립니다.
     아이콘 단추라 밑줄이 있으면 안 됩니다.
     특이도를 한 칸 올려(.ns_wrap 을 앞에) 되돌립니다. */
#bo_list.ns_wrap .ns_ico,
#bo_list.ns_wrap .ns_ico:hover,
#bo_list.ns_wrap .ns_ico:focus{text-decoration:none}

/* 바로 보기 — 가장 자주 쓰는 것이라 눈에 띄게 */
.ns_ico_view{border-color:var(--al-green);background-color:var(--al-green);color:#fff}
.ns_ico_view:hover,
.ns_ico_view:focus{background-color:var(--al-deep);border-color:var(--al-deep);color:#fff}


/* ---- 출처 (목록 아래) ---- */
.ns_src{
    display:flex;align-items:center;justify-content:center;gap:.5rem;
    flex-wrap:wrap;
    margin:1.75rem 0 0;padding:.875rem 1rem;
    border:1px solid var(--al-line);border-radius:.625rem;
    background-color:var(--al-bg);
    color:var(--al-sub);
    font-size:0.875rem;
}
.ns_src > i{color:var(--al-green)}
.ns_src a{
    display:inline-flex;align-items:center;gap:.25rem;
    padding:.3125rem .75rem;
    border:1px solid var(--al-green);border-radius:999px;
    color:var(--al-green-deep);
    font-weight:700;
    text-decoration:none;
}
.ns_src a:hover,
.ns_src a:focus{background-color:var(--al-green);color:#fff}

/* ---- 못 불러왔을 때 ---- */
.ns_none{
    padding:4rem 1.25rem;
    border-top:2px solid var(--al-ink);
    border-bottom:1px solid var(--al-line);
    text-align:center;
}
.ns_none_msg{
    margin:0;
    color:var(--al-sub);
    font-size:1rem;line-height:1.8;
}
.ns_admin{
    display:inline-block;
    margin:1.25rem 0 0;padding:.625rem .875rem;
    border:1px solid var(--al-red);border-radius:.5rem;
    color:var(--al-red);
    font-size:0.8125rem;line-height:1.6;
    text-align:left;
}

@media (max-width:768px){
    .ns_ico{width:1.75rem;height:1.75rem;font-size:0.8125rem}
    .ns_src{font-size:0.8125rem;padding:.75rem}
}

/* 주소를 우리가 바로잡았을 때의 안내 (관리자에게만) */
.ns_admin_fix{
    display:block;
    margin:1.25rem 0 0;
    text-align:left;
}
.ns_admin code,
.ns_admin_fix code{
    padding:.0625rem .375rem;
    border-radius:.25rem;
    background-color:var(--al-line-soft);
    font-size:0.9375em;
    word-break:break-all;
}

/* 등록일과 조회수가 맞붙어 읽기 어려워 사이를 벌립니다.
   숫자는 고정폭으로 맞춰 자릿수가 흔들리지 않게 합니다. */
.ns_wrap .td_datetime,
.ns_wrap .td_num{
    padding-left:.625rem;padding-right:.625rem;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
    font-feature-settings:"tnum" 1;
}

/* ##########################################################################
   칸 너비 도우미  .w15 .w20 .w50 .w80 .w90 .w100 .w120

   게시판 스킨들이 <col class="w100"> 처럼 쓰고 있는데 정작 선언이
   어디에도 없었습니다(원본 스킨에서 마크업만 따라오고 css 는 빠짐).
   그래서 모든 목록이 브라우저 자동 너비로 그려지고 있었습니다.

   ★ 표의 <col> 에만 매어 두지 않습니다. 다른 자리에서도 쓸 수 있어야
     도우미 클래스 구실을 합니다.
   ########################################################################## */
.w15  { width:15px }
.w20  { width:20px }
.w50  { width:50px }
.w80  { width:80px }
.w90  { width:90px }
.w100 { width:100px }
.w120 { width:120px }

/* ---- 농사로 아이콘 말풍선 ----

   자료실(.pds_file)은 아이콘이 하나라 왼쪽에 띄웁니다.
   농사로는 아이콘이 여럿이라 왼쪽 말풍선이 옆 아이콘을 덮습니다.
   아래로 내리면 다음 줄과 마우스 커서에 가리므로 위로 올립니다.

   ★ 오른쪽 끝을 아이콘에 맞춥니다.
     가운데에 두면 맨 오른쪽 칸이라 화면 밖으로 나가 잘립니다.

   ★ width:max-content 가 꼭 있어야 합니다.
     절대 위치 상자는 부모(아이콘 2rem) 폭을 기준으로 줄을 바꿉니다.
     그대로 두면 글자가 세로로 쌓여 까만 점처럼 보입니다.
     min-width 는 max-content 를 모르는 브라우저를 위한 받침입니다.

   ★ .tbl_wrap 이 overflow:hidden 이라 위로 띄우면 첫 줄에서 잘립니다.
     농사로 표는 좁은 화면에서 다시 배치되어 가로 스크롤이 필요 없으므로
     여기서만 넘침을 풀어 줍니다. */
#bo_list.ns_wrap .tbl_wrap{overflow:visible}

#bo_list.ns_wrap .ns_ico[data-tip]::after{
    left:auto;right:0;
    top:auto;bottom:calc(100% + 9px);
    transform:none;
    min-width:0;
    width:max-content;
    max-width:72vw;
    white-space:normal;
    line-height:1.45;
    text-align:left;
    overflow:visible;text-overflow:clip;
}
/* 꼬리는 아이콘 한가운데(오른쪽에서 1rem 들어온 자리)에 답니다 */
#bo_list.ns_wrap .ns_ico[data-tip]::before{
    left:auto;right:1rem;
    top:auto;bottom:calc(100% + 3px);
    transform:translateX(50%);
    border-left-color:transparent;
    border-top-color:#333;
}
[data-theme="dark"] #bo_list.ns_wrap .ns_ico[data-tip]::before{
    border-left-color:transparent;
    border-top-color:#0d100d;
}

@media (max-width:768px){
    #bo_list.ns_wrap .ns_ico[data-tip]::after{max-width:80vw;font-size:0.75rem}
    #bo_list.ns_wrap .ns_ico[data-tip]::before{right:.875rem}
}

/* 그림 아이콘 단추 (img/content/icon_*.png) */
#bo_list.ns_wrap .ns_ico_file img{
    display:block;
    width:20px;height:20px;
    object-fit:contain;
}


/* ===== 사과 병해충 진단 게시판 (skin/board/smart_pest) ===== */
/* 이 게시판만 쓰는 스타일입니다.
   ★ 게시판 스타일은 스킨 폴더가 아니라 이 파일 한 곳에 모읍니다.
     (head.sub.php 에서 board.css 만 불러옵니다) */

/************* 두 단 분류 (대분류 · 소분류) ***************************/
/* 윗줄은 대분류, 아랫줄은 그 대분류에 딸린 소분류입니다.
   목록이 어디에 들어 있는지는 pest.lib.php 머리말을 보세요.

   ★ 색은 테마 변수를 씁니다. 라이트·다크가 함께 따라옵니다. */
#bo_cate{
    margin:1.25rem 0;padding:.75rem;
    border:1px solid var(--al-line);border-radius:var(--al-radius-sm);
    background-color:var(--al-surface);
}
#bo_cate h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#bo_cate ul{display:flex;flex-wrap:wrap;gap:.375rem;margin:0;padding:0;list-style:none}
#bo_cate li{margin:0;padding:0;list-style:none}
#bo_cate a{
    display:inline-flex;align-items:center;gap:.375rem;
    min-height:2.25rem;padding:0 .75rem;
    border:1px solid var(--al-line);border-radius:20px;
    background-color:var(--al-bg);
    color:var(--al-ink);font-size:0.875rem;font-weight:600;
    white-space:nowrap;
    transition:background-color .15s,border-color .15s,color .15s;
}
#bo_cate a:focus,#bo_cate a:hover,#bo_cate a:active{
    text-decoration:none;border-color:var(--al-green);color:var(--al-green);
}
/* 지금 보고 있는 대분류 */
#bo_cate #bo_cate_on{
    background-color:var(--al-green);border-color:var(--al-green);color:#fff;
}
#bo_cate #bo_cate_on .pest_num{background-color:rgb(255 255 255 / .28);color:#fff}

/* 아랫줄 : 소분류 */
.pest_sub_ul{
    margin-top:.625rem !important;
    padding-top:.625rem !important;
    border-top:1px dashed var(--al-line);
}
.pest_sub_ul a{
    min-height:2rem;padding:0 .625rem;
    border-radius:var(--al-radius-sm);
    font-size:0.8125rem;font-weight:500;
}
/* 지금 보고 있는 소분류 */
#bo_cate .pest_sub_ul a.pest_on{
    background-color:var(--al-red);border-color:var(--al-red);color:#fff;
}
#bo_cate .pest_sub_ul a.pest_on .pest_num{background-color:rgb(255 255 255 / .28);color:#fff}

/* 글 수 */
.pest_num{
    display:inline-flex;align-items:center;justify-content:center;
    box-sizing:border-box;
    min-width:1.375rem;height:1.25rem;padding:0 .3125rem;
    border-radius:20px;
    background-color:var(--al-line-soft);
    color:var(--al-sub);font-size:0.6875rem;font-weight:700;line-height:1;
}

/* 목록 글 줄에 붙는 소분류 딱지 */
.pest_subtag{
    border:1px solid var(--al-line) !important;
    background-color:var(--al-bg) !important;
    color:var(--al-sub) !important;
}
.pest_subtag:hover{border-color:var(--al-red) !important;color:var(--al-red) !important}

/* 목록 — 이 게시판에만 (사과원 갤러리는 그대로 둡니다)

   ★ 딱지는 가운데로
     왼쪽 위에 고르기 칸(체크박스)이 있어 왼쪽에 두면 가립니다.
   ★ 병해충 이름은 가운데로
     사진 아래 한 줄뿐이라 가운데가 보기 좋습니다. */
.pest_list .gall_badges{justify-content:center}
.pest_list .gall_tit{text-align:center}

/* 글쓰기 : 대분류 · 소분류 두 칸 */
#bo_w .pest_w_select{display:flex;flex-wrap:wrap;gap:.625rem;margin-bottom:.625rem}
#bo_w .pest_w_select select{flex:1 1 12rem;width:auto;min-width:0}

@media (max-width:768px){
    #bo_cate{padding:.625rem}
    #bo_cate ul{gap:.3125rem}
    #bo_cate a{min-height:2.75rem;font-size:0.8125rem}
    .pest_sub_ul a{min-height:2.5rem;font-size:0.75rem}
    #bo_w .pest_w_select select{flex:1 1 100%}
}


/************* 목록 : 그림 격자 ***************************/
/* 글 하나가 칸 하나입니다. 그림을 누르면 크게 보는 창이 뜨고,
   글 읽기로는 넘어가지 않습니다(관리자만 제목으로 넘어갑니다). */
.pest_grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1.25rem;
    margin:1.25rem 0 0;padding:0;
    list-style:none;
}
.pest_grid > li{margin:0;padding:0;list-style:none}

.pest_card{
    position:relative;
    display:flex;flex-direction:column;
    height:100%;
    border:1px solid var(--al-line);border-radius:var(--al-radius-sm);
    background-color:var(--al-surface);
    overflow:hidden;
    transition:border-color .2s,box-shadow .2s,transform .2s;
}
.pest_card:hover{
    border-color:var(--al-green);
    box-shadow:0 10px 24px rgb(0 0 0 / .10);
    transform:translateY(-2px);
}
/* 공지는 테두리로 알립니다 */
.pest_notice{border-color:var(--al-red)}

/* 그림 칸 — 4:3 으로 높이를 맞춰 줄이 가지런합니다 */
.pest_link{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}
.pest_thumb{
    position:relative;display:block;
    width:100%;padding:0;margin:0;
    border:0;background-color:var(--al-bg);
    overflow:hidden;
    aspect-ratio:4 / 3;
}
.pest_thumb img{
    display:block;width:100%;height:100%;
    object-fit:cover;
    transition:transform .3s;
}
.pest_card:hover .pest_thumb img{transform:scale(1.04)}
.pest_thumb:focus-visible{outline:2px solid var(--al-green);outline-offset:-2px}

/* 그림 위 돋보기 표시 */
.pest_zoom{
    position:absolute;right:.5rem;bottom:.5rem;
    display:flex;align-items:center;justify-content:center;
    width:2rem;height:2rem;
    border-radius:50%;
    background-color:rgb(0 0 0 / .45);
    opacity:0;transition:opacity .2s;
}
.pest_thumb:hover .pest_zoom,
.pest_thumb:focus-visible .pest_zoom{opacity:1}
.pest_zoom svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round}

/* 사진이 없는 글 */
.pest_noimg{
    display:flex;align-items:center;justify-content:center;
    cursor:default;
    color:var(--al-sub);font-size:0.875rem;
}

.pest_body{padding:.75rem .875rem;text-align:center}
/* 소분류 이름 */
.pest_sub{
    display:inline-block;margin-bottom:.25rem;
    color:var(--al-green);font-size:0.75rem;font-weight:700;
}
.pest_name{
    display:block;
    color:var(--al-ink);font-size:0.9375rem;font-weight:600;line-height:1.4;
    word-break:keep-all;
}
.pest_link:hover .pest_name{color:var(--al-green)}

/* 관리자용 고르기 칸 */
.pest_chk{position:absolute;left:.5rem;top:.5rem;z-index:2}

.pest_empty{
    grid-column:1 / -1;
    padding:3rem 1rem;
    border:1px solid var(--al-line);border-radius:var(--al-radius-sm);
    background-color:var(--al-surface);
    color:var(--al-sub);text-align:center;
}

/************* 크게 보는 창 ***************************/
.pest_modal{position:fixed;inset:0;z-index:1000;display:none}
.pest_modal.is-on{display:block}
.pest_modal_bg{position:absolute;inset:0;background-color:rgb(0 0 0 / .78)}
.pest_modal_box{
    position:absolute;left:50%;top:50%;
    transform:translate(-50%,-50%);
    max-width:min(92vw,1200px);max-height:92vh;
    display:flex;flex-direction:column;align-items:center;gap:.75rem;
}
/* 크게 본 그림 — 흰 테두리를 두르고 그림자를 깝니다.
   어두운 바탕에서 사진이 떠 보이게 하는 것입니다. */
.pest_modal_box img{
    display:block;max-width:100%;max-height:78vh;
    padding:.5rem;
    border-radius:var(--al-radius-sm);
    background-color:#fff;
    box-shadow:0 18px 48px rgb(0 0 0 / .55);
}
.pest_modal_cap{margin:0;color:#fff;font-size:0.9375rem;text-align:center;word-break:keep-all}

/* 닫기 — 글자를 쓰지 않고 테두리로 X 를 그립니다 */
.pest_modal_x{
    position:absolute;right:-.25rem;top:-2.75rem;
    width:2.5rem;height:2.5rem;
    border:1px solid rgb(255 255 255 / .5);border-radius:50%;
    background-color:transparent;color:#fff;cursor:pointer;
}
.pest_modal_x::before{content:"\2573";font-size:1rem;line-height:1}
.pest_modal_x:hover,
.pest_modal_x:focus-visible{
    background-color:var(--al-red);border-color:var(--al-red);color:#fff;
    outline:none;
}

@media (max-width:1024px){
    .pest_grid{grid-template-columns:repeat(2,1fr);gap:.875rem}
}
@media (max-width:560px){
    .pest_grid{gap:.75rem}
    .pest_body{padding:.625rem}
    .pest_name{font-size:0.875rem}
    .pest_modal_x{right:50%;top:auto;bottom:-3.25rem;transform:translateX(50%)}
}

/************* 글 읽기 : 첨부 사진 격자 ***************************/
/* 사진을 누르면 크게 보는 창이 뜹니다. 화살표나 좌우 방향키로 넘길 수 있습니다. */
.pest_pics{
    display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;
    margin:0 0 1.25rem;padding:0;list-style:none;
}
.pest_pics > li{margin:0;padding:0;list-style:none}

.pest_pic{
    position:relative;display:block;
    width:100%;padding:0;margin:0;
    border:1px solid var(--al-line);border-radius:var(--al-radius-sm);
    background-color:var(--al-bg);
    cursor:zoom-in;overflow:hidden;
    aspect-ratio:4 / 3;
    transition:border-color .2s,box-shadow .2s;
}
/* ★ 칸을 꽉 채웁니다. 원본이 작아도 늘려서 흰 여백이 남지 않게 합니다.
     다른 규칙(#bo_v_con img 등)이 height:auto 로 덮지 못하게 못을 박습니다. */
.pest_pic img{
    display:block;
    width:100% !important;height:100% !important;
    max-width:none;
    object-fit:cover;object-position:center;
    transition:transform .3s;
}
.pest_pic:hover{border-color:var(--al-green);box-shadow:0 8px 18px rgb(0 0 0 / .10)}
.pest_pic:hover img{transform:scale(1.04)}
.pest_pic:focus-visible{outline:2px solid var(--al-green);outline-offset:2px}

/* ★ 어떤 규칙에도 지지 않도록 한 번 더 못을 박습니다.
     (브라우저가 button 에 넣는 기본 여백까지 없앱니다) */
#bo_v_atc .pest_pics .pest_pic{
    box-sizing:border-box;
    padding:0 !important;
    line-height:0;
    font-size:0;
}
#bo_v_atc .pest_pics .pest_pic img{
    width:100% !important;height:100% !important;
    min-width:100%;min-height:100%;
    max-width:none !important;max-height:none !important;
    object-fit:cover !important;
    margin:0 !important;padding:0 !important;border:0;
}

/* 사진 밑 설명 — 글쓰기의 '파일 설명' 입니다 */
.pest_cap{
    margin:.5rem 0 0;
    color:var(--al-ink);font-size:0.875rem;line-height:1.45;
    text-align:center;word-break:keep-all;
}

/* 크게 보는 창 : 넘기는 칸 */
.pest_modal_nav{display:flex;align-items:center;gap:1rem}
.pest_modal_no{color:#fff;font-size:0.875rem;min-width:4rem;text-align:center}
.pest_modal_prev,
.pest_modal_next{
    position:relative;
    width:2.75rem;height:2.75rem;
    border:1px solid rgb(255 255 255 / .5);border-radius:50%;
    background-color:transparent;cursor:pointer;
}
.pest_modal_prev::before,
.pest_modal_next::before{
    content:"";position:absolute;left:50%;top:50%;
    width:.625rem;height:.625rem;
    margin:-.3125rem 0 0 -.1875rem;
    border-top:2px solid #fff;border-right:2px solid #fff;
}
.pest_modal_prev::before{transform:rotate(-135deg);margin-left:-.4375rem}
.pest_modal_next::before{transform:rotate(45deg)}
.pest_modal_prev:hover,
.pest_modal_next:hover{background-color:rgb(255 255 255 / .18)}

@media (max-width:1024px){
    .pest_pics{grid-template-columns:repeat(2,1fr);gap:.75rem}
}
@media (max-width:560px){
    .pest_pics{gap:.625rem}
    .pest_cap{font-size:0.8125rem}
}


/* ==========================================================================
   옛 글이 화면을 벗어나는 것 막기 (스타일만으로)

   ★ 왜 필요한가
     예전에 올린 글에는 폭이 박힌 표(<table width="618">, <td width="600">)와
     큰 사진이 그대로 들어 있습니다. 휴대폰에서 화면 밖으로 나가 잘립니다.

   ★ 게시판 본문(#bo_v_con)에만 적용합니다
     내용관리 페이지의 표는 우리가 만든 것으로, content.css 의
     .al-terms-table 이 이미 가로 스크롤을 맡고 있습니다.
     거기에 덮어씌우면 표 제목(caption)이 깨집니다.

   ★ 표를 굴리지 않고 줄이는 까닭
     옛 글은 칸을 나누려고 표를 겹쳐 썼습니다(레이아웃용).
     제 폭을 지키게 하면 긴 글이 한 줄로 늘어나 표가 6,000px 까지
     벌어집니다(실제 글에서 확인). 그래서 화면에 맞추고 줄바꿈합니다.
     칸이 너무 많아 도저히 못 줄이는 표만 저절로 옆으로 굴러갑니다.
   ========================================================================== */
#bo_v_con video,
#bo_v_con iframe,
#bo_v_con embed,
#bo_v_con object{
    max-width:100%;
    height:auto;
}

/* PDF 뷰어는 빼 줍니다.
   위 규칙은 아이디(#bo_v_con)가 붙어 있어 .pdf-container iframe 보다 세고,
   그래서 뷰어 높이가 auto 로 눌려 150px 쯤으로 쪼그라듭니다.
   여기서 아이디를 같이 붙여 되돌립니다. */
#bo_v_con .pdf-container{height:80vh}
#bo_v_con .pdf-container iframe{height:100%}

/* 표 — 바깥은 '굴리는 상자' 역할만 합니다 */
#bo_v_con table{
    display:block;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

/* 안쪽은 표 모양을 지키되 화면 폭에 맞춥니다 */
#bo_v_con table > thead,
#bo_v_con table > tbody,
#bo_v_con table > tfoot{
    display:table;
    width:100%;
}

/* 표 제목 — display:block 때문에 글자가 쌓이는 것을 막습니다 */
#bo_v_con table > caption{
    display:block;
    width:100%;
    margin-bottom:.375rem;
    text-align:left;
    white-space:normal;
    word-break:keep-all;
}

/* 표 안에 든 표(칸 나누기용)는 그대로 표로 둡니다 */
#bo_v_con table table{
    display:table;
    width:100% !important;
    max-width:100%;
    overflow:visible;
}
#bo_v_con table table > thead{display:table-header-group;width:auto}
#bo_v_con table table > tbody{display:table-row-group;width:auto}
#bo_v_con table table > tfoot{display:table-footer-group;width:auto}

/* 셀에 박힌 폭을 풉니다. 이것이 없으면 표가 줄어들지 않습니다 */
#bo_v_con td[width],
#bo_v_con th[width]{width:auto}

/* 칸 안 글은 줄바꿈합니다 */
#bo_v_con table th,
#bo_v_con table td{
    word-break:break-word;
    overflow-wrap:break-word;
}

/* 긴 주소·영문이 칸을 밀어내지 않게 */
#bo_v_con{overflow-wrap:break-word}

/* 폭이 박힌 상자도 화면 안으로 */
#bo_v_con div[style*="width"],
#bo_v_con p[style*="width"]{max-width:100% !important}

/* ==========================================================================
   사과종합병원 전용 스킨 (skin/board/smart_hospital)
   — 목록 정렬 고르기 + 중요도 별점

   색은 모두 토큰입니다. 별 색만 이 파일에서 정합니다.
   아래 --al-star 한 줄을 고치면 별 전체(목록·글쓰기·다크모드)가 따라옵니다.
     황금 노랑  #f5b50a          <- 지금 값
     주황       var(--al-gold)   (테마의 주황 #f4a261)
     빨강       var(--al-red)    (테마의 빨강 #d9363d)
   ========================================================================== */

:root{
    --al-star:#f5b50a;          /* 켜진 별 — 노랑 */
    --al-star-off:#d3d8d0;      /* 꺼진 별 */
}

[data-theme="dark"]{
    --al-star:#ffd34d;
    --al-star-off:#4b544a;
}

/* --- 정렬 고르기 띠 --------------------------------------------------- */
/* 세 단추를 한 덩어리로 붙여 오른쪽에 둡니다.
   가운데 선이 두 겹으로 보이지 않게 -1px 씩 당겨 포갭니다. */
.al-sortbar{
    display:flex;
    justify-content:flex-start;
    flex-wrap:nowrap;
    margin:20px 0 .875rem;
}

.al-sortbtn{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;                /* 터치 영역 */
    padding:0 1.125rem;
    border:1px solid var(--al-line);
    border-radius:0;
    background-color:var(--al-surface);
    color:var(--al-sub);
    font-size:14px;
    line-height:1;
    white-space:nowrap;
    text-decoration:none;
    transition:border-color var(--al-ease),color var(--al-ease);
}

.al-sortbtn + .al-sortbtn{margin-left:-1px}

/* 양끝만 둥글립니다 */
.al-sortbar .al-sortbtn:first-child{
    border-top-left-radius:999px;
    border-bottom-left-radius:999px;
}

.al-sortbar .al-sortbtn:last-child{
    border-top-right-radius:999px;
    border-bottom-right-radius:999px;
}

/* 겹친 자리에서 색이 든 테두리가 밑에 깔리지 않게 위로 올립니다 */
.al-sortbtn:hover,
.al-sortbtn:focus-visible{
    z-index:1;
    border-color:var(--al-red-mid);
    color:var(--al-ink);
}

.al-sortbtn.is-on{
    z-index:2;
    border-color:var(--al-red);
    background-color:var(--al-red-soft);
    color:var(--al-deep);
    font-weight:700;
}

/* --- 중요도 별 보여주기 ----------------------------------------------- */
/* 꺼진 별 다섯 개를 깔고, 그 위에 켜진 별을 폭만큼 덮습니다.
   글자 사이 간격을 주면 20% 가 정확히 한 개가 아니게 되므로 띄우지 않습니다. */
.al-star{
    position:relative;
    display:inline-block;
    color:var(--al-star-off);
    font-size:14px;
    line-height:1;
    letter-spacing:0;
    white-space:nowrap;
    vertical-align:middle;
}

.al-star::before{content:"\2605\2605\2605\2605\2605"}

.al-star-on{
    position:absolute;
    left:0;
    top:0;
    overflow:hidden;
    color:var(--al-star);
    font-style:normal;
    white-space:nowrap;
}

.al-star-on::before{content:"\2605\2605\2605\2605\2605"}

.al-star-on[data-n="1"]{width:20%}
.al-star-on[data-n="2"]{width:40%}
.al-star-on[data-n="3"]{width:60%}
.al-star-on[data-n="4"]{width:80%}
.al-star-on[data-n="5"]{width:100%}

/* 갤러리 카드 안 */
.gall_star{margin:.25rem 0 .125rem}

/* 표 목록 제목 앞 */
.td_subject .al-star{margin-right:.375rem}

/* --- 중요도 별 고르기 (글쓰기) ---------------------------------------- */
.bo_w_star{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:.5rem;
}

.al-star-lb{
    font-size:14px;
    font-weight:700;
    color:var(--al-ink);
    word-break:keep-all;
}

.al-star-help{
    display:block;
    width:100%;
    color:var(--al-sub);
    font-size:12px;
    word-break:keep-all;
}

/* 태그 차례는 5→1→없음 입니다(고른 별보다 작은 별을 함께 칠하려면
   큰 별이 앞에 와야 합니다). 눈에 보이는 차례는 row-reverse 가 되돌립니다. */
.al-starset{
    display:inline-flex;
    flex-direction:row-reverse;
    align-items:center;
    gap:.125rem;
}

.al-starset input{
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
    pointer-events:none;
}

.al-starset label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    color:var(--al-star-off);
    font-size:26px;
    line-height:1;
    cursor:pointer;
    transition:color var(--al-ease),transform var(--al-ease);
}

/* 처음에는 다섯 개 모두 속이 빈 별입니다 */
.al-starset label::before{content:"\2606"}

/* 고른 별과 그보다 작은 별을 꽉 찬 별로 바꿉니다.
   태그 차례가 5→1 이라 "뒤 형제(~)" 가 곧 더 작은 별입니다. */
.al-starset input:checked ~ label{color:var(--al-star)}
.al-starset input:checked ~ label::before{content:"\2605"}

/* 마우스를 올리면 몇 점이 될지 미리 보여 줍니다.
   올린 동안에는 이미 고른 별을 꺼야 미리보기가 눈에 들어옵니다.
   이 두 규칙의 차례를 바꾸면 미리보기가 안 보입니다.

   hover:hover 로 감싸는 까닭 — 손가락으로 누르는 화면에서는 한 번 누른
   별에 hover 가 그대로 붙어 있어, 손을 떼도 미리보기가 안 사라집니다. */
@media (hover:hover){
    /* 올린 별과 그보다 작은 별을 미리 채웁니다.
       이미 고른 별을 호버 중에 끄지는 않습니다. 끄려 들면 그 규칙이
       더 세서, 눌러도 불이 안 들어오고 마우스를 떼야 들어옵니다. */
    .al-starset label:hover,
    .al-starset label:hover ~ label{color:var(--al-star)}

    .al-starset label:hover::before,
    .al-starset label:hover ~ label::before{content:"\2605"}

    .al-starset label:hover{transform:scale(1.15)}
}

.al-starset input:focus-visible + label{
    outline:2px solid var(--al-focus);
    outline-offset:2px;
    border-radius:8px;
}

/* --- 작은 화면 -------------------------------------------------------- */
@media (max-width:768px){
    .al-sortbtn{
        padding:0 .75rem;
        font-size:12px;
    }
    .al-star-lb{font-size:12px}
    .al-starset label{font-size:22px}
}
