@charset "utf-8";

/* ==========================================================================
   overrides.css — 항상 마지막에 로드된다 (add_stylesheet 우선순위 100)

   테마에 포함되지 않은 "루트 스킨"(/skin/new, /skin/search, /skin/faq,
   /skin/connect …)은 자기 style.css 를 default.css 뒤에 싣기 때문에
   default.css 만으로는 색을 되돌릴 수 없다. 이 파일에서 마무리한다.
   ========================================================================== */

/* --------------------------------------------------------------------------
   공통 검색 박스 (새글 / 전체검색 / FAQ)
   -------------------------------------------------------------------------- */
#new_sch, #sch_res_detail, #faq_sch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 22px; text-align: center; margin: 0 0 20px;
}
#new_sch select, #sch_res_detail select {
  border: 1px solid var(--border-2); width: auto; min-width: 150px; height: 42px;
  padding: 0 10px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
#new_sch .frm_input, #sch_res_detail .frm_input, #faq_sch .frm_input {
  border: 1px solid var(--border-2); width: 280px; max-width: 100%; height: 42px;
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
}
#new_sch .btn_submit, #sch_res_detail .btn_submit, #faq_sch .btn_submit {
  padding: 0 18px; height: 42px; width: auto;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-sm);
  color: var(--on-accent); background: var(--accent-solid);
}
#new_sch .btn_submit:hover, #sch_res_detail .btn_submit:hover, #faq_sch .btn_submit:hover {
  background: var(--accent-solid-hover);
}
#new_sch p { padding: 12px 0 0; font-size: 12.5px; color: var(--text-3); letter-spacing: 0; }

/* --------------------------------------------------------------------------
   새글 목록
   -------------------------------------------------------------------------- */
#fnewlist .profile_img img { border-radius: 50%; }
#fnewlist .td_group a {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  background: var(--new-soft); color: var(--new); border-radius: 6px;
  font-weight: 600; font-size: 11.5px; line-height: 1;
}
#fnewlist .td_board a {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  background: var(--accent-soft); color: var(--accent); border-radius: 6px;
  font-weight: 600; font-size: 11.5px; line-height: 1;
}
.admin_new_btn { float: right; margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   전체검색 결과
   -------------------------------------------------------------------------- */
.switch_field { display: inline-flex; vertical-align: middle; padding: 8px 4px; }
.switch_field label {
  float: none; display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 56px; height: 42px; padding: 0 14px;
  background: var(--surface); color: var(--text-2);
  font-size: 13.5px; font-weight: 500; text-align: center; text-shadow: none;
  border: 1px solid var(--border-2); box-shadow: none;
  transition: all .12s var(--ease);
}
.switch_field input:checked + label {
  background: var(--accent-solid); border-color: var(--accent-solid);
  color: var(--on-accent); box-shadow: none;
}
.switch_field label:first-of-type { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.switch_field label:last-of-type  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

#sch_res_ov {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; height: auto; min-height: 56px; line-height: 1.5;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 16px; padding: 14px 18px;
}
#sch_res_ov:after { display: none; }
#sch_res_ov h2 { float: none; display: block; font-size: 15px; color: var(--text); font-weight: 600; }
#sch_res_ov h2 strong { color: var(--accent); }
#sch_res_ov ul { display: flex; float: none; gap: 8px; line-height: 1; font-size: 12.5px; color: var(--text-3); margin: 0; }
#sch_res_ov ul:after { display: none; }
#sch_res_ov li { float: none; margin: 0; padding: 0 8px 0 0; border-right: 1px solid var(--border); }
#sch_res_ov li:last-child { padding: 0; border: 0; }

#sch_res_board { margin-bottom: 24px; }
#sch_res_board ul { display: flex; flex-wrap: wrap; gap: 6px; }
#sch_res_board ul:after { display: none; }
#sch_res_board li { display: inline-block; padding: 0; }
#sch_res_board a {
  display: inline-flex; align-items: center; height: 34px; line-height: 1; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 500;
}
#sch_res_board a:focus, #sch_res_board a:hover { text-decoration: none; background: var(--surface-2); color: var(--text); }
#sch_res_board .cnt_cmt { font-weight: 700 !important; margin-left: 4px; color: var(--accent); line-height: 1; font-size: 12px; }
#sch_res_board a:hover .cnt_cmt { color: var(--accent); }
#sch_res_board .sch_on {
  background: var(--text); color: var(--surface); font-weight: 600;
  border-color: var(--text); box-shadow: none;
}
#sch_res_board .sch_on .cnt_cmt { color: var(--surface); }

.sch_res_list {
  position: relative; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-1);
}
.sch_res_list h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.sch_res_list ul { margin: 0; padding: 0; list-style: none; border-top: 0; }
.sch_res_list li { border-bottom: 1px solid var(--border); background: transparent; position: relative; }
.sch_res_list li:last-child { border-bottom: 0; }
.sch_res_list .sch_tit { display: block; padding: 16px 0 6px; }
.sch_res_list .pop_a {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-2); border-radius: 50%;
  width: 26px; height: 26px; font-size: 12px;
}
.sch_res_title { display: inline-block; margin: 0 0 4px; font-size: 15.5px; font-weight: 600; }
.sch_res_list p { padding-bottom: 8px; color: var(--text-2); line-height: 1.6; font-size: 14px; }
.sch_res_list .sch_info { padding: 8px 0 14px; color: var(--text-3); font-size: 12.5px; }
.sch_res_list .sch_info:after { display: block; visibility: hidden; clear: both; content: ""; }
.sch_res_list .profile_img img { border-radius: 50%; }
.sch_res_list .sch_datetime { margin-left: 6px; }
.sch_more { position: absolute; right: 20px; top: 22px; text-align: right; font-weight: 500; color: var(--accent); font-size: 13px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
#faq_wrap {
  margin: 0 0 30px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  padding: 6px 20px;
}
.faq_admin { text-align: right; }
#faq_wrap ol { margin: 0; padding: 0; list-style: none; }
#faq_wrap li { border-bottom: 1px solid var(--border); background: transparent; position: relative; }
#faq_wrap li:first-child { border-top: 0; }
#faq_wrap li:last-child { border-bottom: 0; }
#faq_wrap li h3 { min-height: 56px; line-height: 1.5; padding: 18px 44px 18px 40px; position: relative; font-size: 15px; font-weight: 500; }
#faq_wrap li h3 .tit_btn {
  position: absolute; right: 0; top: 14px; border: 0; width: 32px; height: 32px;
  background: transparent; color: var(--text-3); font-size: 14px; border-radius: var(--radius-sm);
}
#faq_wrap li h3 .tit_btn:hover { background: var(--surface-2); color: var(--text); }
#faq_wrap li h3 .tit_bg {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: 17px; left: 0; width: 26px; height: 26px;
  color: var(--accent); background: var(--accent-soft); border-radius: 8px;
  font-size: 13px; font-weight: 800;
}
#faq_wrap li h3.faq_li_open a { color: var(--accent); }

#faq_con .con_inner { display: none; padding: 0 44px 20px 40px; color: var(--text-2); line-height: 1.8; }
#faq_con .con_inner .tit_bg {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: 2px; left: 0; background: var(--surface-3); color: var(--text-2);
  border-radius: 8px; width: 26px; height: 26px; line-height: 1; font-size: 13px; font-weight: 800;
}
#faq_con .con_inner .closer_btn {
  position: absolute; right: 0; top: 0; border: 0; width: 32px; height: 32px;
  background: transparent; color: var(--text-3); font-size: 14px; border-radius: var(--radius-sm);
}
#faq_con .con_inner .closer_btn:hover { background: var(--surface-2); color: var(--text); }

/* FAQ 분류 탭 (루트 faq 스킨) */
#faq_hhtml + #bo_cate a, #faq_sch ~ #bo_cate a { border-color: var(--border); }

/* --------------------------------------------------------------------------
   현재 접속자
   -------------------------------------------------------------------------- */
#current_connect {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 6px 20px;
}
#current_connect li {
  position: relative; padding: 16px 0; border-bottom: 1px solid var(--border);
  min-height: 1px; margin-left: 0;
}
#current_connect li:first-child { border-top: 0; }
#current_connect li:last-child { border-bottom: 0; }
#current_connect .crt_num { float: left; line-height: 44px; margin-right: 16px; color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; }
#current_connect .crt_profile { float: left; margin-right: 14px; line-height: 44px; }
#current_connect .crt_profile > img { width: 44px; height: 44px; border-radius: 50%; }
#current_connect .crt_info { float: left; margin-top: 3px; }
#current_connect .sv_member { font-weight: 600; line-height: 1.5; font-size: 14.5px; color: var(--text); }
#current_connect .crt_lct a { color: var(--text-3); font-size: 13px; }
#current_connect li.empty_li { width: 100%; padding: 80px 0 !important; border: 0; color: var(--text-3); text-align: center; }

/* --------------------------------------------------------------------------
   루트 스킨들이 공유하는 체크박스 (theme 밖의 chk.png 대신 SVG 사용)
   -------------------------------------------------------------------------- */
.chk_box input[type="checkbox"]:checked + label span {
  background-color: var(--accent) !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5,8.5 6.5,11.5 12.5,4.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: 50% 50% !important; background-size: 13px !important;
  border-color: var(--accent) !important;
}

/* --------------------------------------------------------------------------
   회원가입 / 로그인 등 member 스킨의 남은 파란색
   -------------------------------------------------------------------------- */
#mb_login #login_fs .btn_submit,
#register_form .btn_submit,
#mb_confirm .btn_submit { background: var(--accent-solid); color: var(--on-accent); }
