@charset "utf-8";

/* ==========================================================================
   그누보드5 basic 테마 — 재디자인
   Pretendard Variable / 뉴트럴 팔레트 / 라이트·다크 / 반응형
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 디자인 토큰
   -------------------------------------------------------------------------- */
:root {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --bg:          #f6f7f9;
  --surface:     #ffffff;
  --surface-2:   #f1f3f6;
  --surface-3:   #e7eaef;
  --border:      #e3e6eb;
  --border-2:    #d0d5dd;

  --text:        #14171f;
  --text-2:      #59616f;
  --text-3:      #8a92a1;

  --accent:      #4262ff;
  --accent-2:    #2f4ae0;
  --accent-soft: #eef1ff;
  --accent-ring: rgba(66, 98, 255, .26);

  --hot:         #f4523b;
  --hot-soft:    #ffeeeb;
  --new:         #0e9f6e;
  --new-soft:    #e3f6ee;
  --notice:      #d6336c;
  --notice-soft: #fdeef4;
  --warn:        #b7791f;
  --warn-soft:   #fdf3e0;

  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-2: 0 4px 16px -6px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --shadow-3: 0 20px 44px -16px rgba(16, 24, 40, .24), 0 4px 12px -4px rgba(16, 24, 40, .10);

  --header-h:  68px;
  --container: 1280px;
  --gutter:    20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="dark"] {
  --bg:          #0e1014;
  --surface:     #161920;
  --surface-2:   #1c2029;
  --surface-3:   #252a35;
  --border:      #272c37;
  --border-2:    #363d4c;

  --text:        #e7eaf0;
  --text-2:      #98a1b2;
  --text-3:      #6b7484;

  --accent:      #8093ff;
  --accent-2:    #9dabff;
  --accent-soft: #1c2242;
  --accent-ring: rgba(128, 147, 255, .30);

  --hot:         #ff7a63;
  --hot-soft:    #35211d;
  --new:         #34d399;
  --new-soft:    #102c23;
  --notice:      #f472b6;
  --notice-soft: #351c28;
  --warn:        #e0a44a;
  --warn-soft:   #33280f;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .40);
  --shadow-2: 0 4px 16px -6px rgba(0, 0, 0, .55), 0 2px 6px -2px rgba(0, 0, 0, .40);
  --shadow-3: 0 20px 44px -16px rgba(0, 0, 0, .70), 0 4px 12px -4px rgba(0, 0, 0, .50);
}

/* --------------------------------------------------------------------------
   2. 리셋 / 기본 타이포
   -------------------------------------------------------------------------- */
html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
}

html, h1, h2, h3, h4, h5, h6, form, fieldset, img { margin: 0; padding: 0; border: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 1em; font-family: inherit; font-weight: 600; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

ul, ol, dl, dt, dd { margin: 0; padding: 0; list-style: none; }
legend { position: absolute; margin: 0; padding: 0; font-size: 0; line-height: 0; text-indent: -9999em; overflow: hidden; }
label, input, button, select, img { vertical-align: middle; font-size: 1em; }
input, button, textarea, select { margin: 0; font-family: inherit; font-size: 1em; color: inherit; }
input[type="submit"], button { cursor: pointer; }
p { margin: 0; padding: 0; }
hr { display: none; }
pre { overflow-x: auto; font-size: 1em; }
img { max-width: 100%; height: auto; }

a { color: var(--text); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent); }

*, :after, :before { box-sizing: border-box; }

::selection { background: var(--accent-ring); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 스크롤바 */
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* 화면낭독기 전용 */
#hd_login_msg { position: absolute; top: 0; left: 0; font-size: 0; line-height: 0; overflow: hidden; }
.msg_sound_only, .sound_only {
  display: inline-block !important; position: absolute; top: 0; left: 0;
  width: 0; height: 0; margin: 0 !important; padding: 0 !important;
  font-size: 0; line-height: 0; border: 0 !important; overflow: hidden !important;
}
#skip_to_container a { z-index: 100000; position: absolute; top: 0; left: 0; width: 1px; height: 1px; font-size: 0; line-height: 0; overflow: hidden; }
#skip_to_container a:focus, #skip_to_container a:active {
  width: 100%; height: 64px; background: var(--text); color: var(--surface);
  font-size: 1.2em; font-weight: 600; text-align: center; line-height: 64px;
}

.is-hidden { display: none !important; }
.is-visible { display: block !important; }
.pc-only { display: none; }
@media (min-width: 769px) { .pc-only { display: block !important; } }
.mobile-only { display: block; }
@media (min-width: 769px) { .mobile-only { display: none !important; } }

/* --------------------------------------------------------------------------
   3. 폼 요소 공통
   -------------------------------------------------------------------------- */
.frm_input,
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number],
textarea, select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { height: auto; padding: 10px 12px; line-height: 1.7; resize: vertical; }
select { padding-right: 30px; }

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
textarea:focus, select:focus, .frm_input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-ring);
}
::placeholder { color: var(--text-3); }
.placeholdersjs { color: var(--text-3) !important; }

input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }

/* 커스텀 체크박스 (그누보드 공통 .chk_box / .selec_chk) */
input[type=checkbox].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-flex; align-items: center; gap: 7px;
  color: var(--text-2); cursor: pointer;
}
.chk_box input[type="checkbox"] + label:hover { color: var(--accent); }
.chk_box input[type="checkbox"] + label > span {
  display: inline-block; flex: 0 0 auto; width: 17px; height: 17px;
  background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 5px;
  transition: background-color .12s var(--ease), border-color .12s var(--ease);
}
.chk_box input[type="checkbox"]:checked + label { color: var(--text); }
.chk_box input[type="checkbox"]:checked + label > span {
  background: var(--accent); border-color: var(--accent);
  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");
  background-repeat: no-repeat; background-position: 50% 50%; background-size: 13px;
}

.full_input { width: 100%; }
.half_input { width: 49.5%; }
.twopart_input { width: 60%; margin-right: 8px; }

/* --------------------------------------------------------------------------
   4. 버튼
   -------------------------------------------------------------------------- */
a.btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; line-height: 1;
  text-align: center; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .08s var(--ease);
}
a.btn:active, .btn:active { transform: translateY(1px); }

.btn_submit {
  background: var(--accent); color: #fff; border: 0; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer;
}
.btn_submit:hover { background: var(--accent-2); color: #fff; }

.btn_close, a.btn_close {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2);
  border-radius: var(--radius-sm); cursor: pointer; text-align: center;
}
.btn_close:hover { background: var(--surface-2); color: var(--text); }

a.btn01, button.btn01 {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-weight: 500;
}
a.btn01:hover, button.btn01:hover { background: var(--surface-2); text-decoration: none; }

a.btn02, button.btn02 {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 14px; border: 0; border-radius: var(--radius-sm);
  background: var(--text); color: var(--surface); font-weight: 500;
}
a.btn02:hover, .btn02:hover { opacity: .88; color: var(--surface); text-decoration: none; }

a.btn_cancel, button.btn_cancel {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2);
  border-radius: var(--radius-sm);
}
.btn_cancel:hover { background: var(--surface-2); color: var(--text); }

a.btn_frmline, button.btn_frmline {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 110px; padding: 0 14px; height: 42px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--surface-3); color: var(--text); font-weight: 500;
}
a.btn_frmline:hover, button.btn_frmline:hover { background: var(--border-2); }

.btn_confirm { text-align: right; }

/* 게시판용 버튼 */
a.btn_b01, .btn_b01 {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); border: 0; background: transparent; vertical-align: middle;
}
.btn_b01:hover, a.btn_b01:hover { color: var(--text); }

a.btn_b02, .btn_b02 {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-weight: 600;
}
a.btn_b02:hover, .btn_b02:hover { background: var(--accent-2); color: #fff; }

a.btn_b03, .btn_b03 {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-2);
}
a.btn_b03:hover, .btn_b03:hover { background: var(--surface-2); color: var(--text); }

a.btn_b04, .btn_b04 {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-2);
}
a.btn_b04:hover, .btn_b04:hover { background: var(--surface-2); color: var(--text); }

a.btn_admin, .btn_admin { display: inline-flex; align-items: center; color: var(--hot); vertical-align: middle; }
.btn_admin:hover, a.btn_admin:hover { color: var(--hot); opacity: .8; }

/* --------------------------------------------------------------------------
   5. 헤더
   -------------------------------------------------------------------------- */
#hd {
  position: relative;
  background: var(--surface);
  z-index: 200;
}
#hd.hd_zindex { z-index: 1000; } /* jquery.menu.js 가 드롭다운 열 때 부여 */
#hd_h1 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }

/* 상단 유틸 스트립 */
#tnb {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
#tnb .inner {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 38px; display: flex; align-items: center; gap: 16px;
}
#tnb:after { display: none; }

#hd_define { display: flex; align-items: center; gap: 4px; float: none; }
#hd_define li { float: none; margin: 0; padding: 0; border: 0; }
#hd_define li a {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 500; color: var(--text-3);
}
#hd_define li a:hover { background: var(--surface-2); color: var(--text-2); }
#hd_define li.active a { background: var(--text); color: var(--surface); }

#hd_qnb { display: flex; align-items: center; gap: 2px; float: none; margin-left: auto; text-align: right; }
#hd_qnb li { float: none; margin: 0; padding: 0; border: 0; }
#hd_qnb li a {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px;
  border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text-3);
}
#hd_qnb li a:hover { background: var(--surface-2); color: var(--text-2); }
#hd_qnb li span { display: inline; margin: 0; font-size: inherit; }
#hd_qnb .visit .visit-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin: 0;
  border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 700; line-height: 1;
}

/* 인기 검색어 (유틸 스트립 내부) */
#tnb #popular { flex: 1 1 auto; min-width: 0; }

/* 메인 헤더 바 (sticky) */
#hd_wrapper {
  position: sticky; top: 0; z-index: 210;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
@supports not (backdrop-filter: blur(1px)) { #hd_wrapper { background: var(--surface); } }
#hd_wrapper:after { display: none; }

.hd_inner {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 18px;
}

/* 로고 */
#logo { float: none; padding: 0; flex: 0 0 auto; }
#logo a { display: inline-flex; align-items: center; gap: 9px; }
#logo .logo_mark {
  width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent) 0%, #7d4bff 100%);
  box-shadow: 0 2px 8px -2px var(--accent-ring);
  position: relative;
}
#logo .logo_mark:after {
  content: ""; position: absolute; inset: 9px;
  border-radius: 3px; background: #fff; opacity: .92;
}
#logo .logo_txt {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--text);
}

/* 메인 메뉴 */
#gnb { position: static; background: transparent; flex: 1 1 auto; min-width: 0; }
#gnb > h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#gnb .gnb_wrap { width: auto; margin: 0; position: static; }
#gnb #gnb_1dul {
  display: flex; align-items: center; gap: 2px;
  font-size: 15px; padding: 0; border: 0;
}
#gnb ul:after { display: none; }
#gnb .gnb_1dli { float: none; line-height: normal; padding: 0; position: relative; }
#gnb .gnb_1dli:hover > a { color: var(--accent); }

.gnb_1dli .bg { display: none; }
.gnb_1da {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14.5px; color: var(--text-2); white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.gnb_1da:hover { background: var(--surface-2); color: var(--text); }
.gnb_1dli.gnb_al_li_plus .gnb_1da { padding-right: 26px; position: relative; }
.gnb_1dli.gnb_al_li_plus .gnb_1da:after {
  content: ""; position: absolute; right: 11px; top: 50%;
  width: 5px; height: 5px; margin-top: -4px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .6;
}

.gnb_2dul {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 176px; padding-top: 0; z-index: 300;
}
.gnb_2dul .gnb_2dul_box {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-3);
  padding: 6px; overflow: hidden;
}
.gnb_2dli:first-child { border: 0; }
.gnb_2da {
  display: block; padding: 0 12px; line-height: 38px; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); text-align: left; font-size: 14px;
}
a.gnb_2da:hover, .gnb_2da:focus { background: var(--surface-2); color: var(--accent); }
.gnb_1dli_over .gnb_2dul { display: block; left: 0; }
.gnb_1dli_over2 .gnb_2dul { display: block; left: auto; right: 0; }

.gnb_wrap .gnb_empty { padding: 0; width: auto; line-height: 36px; color: var(--text-3); font-size: 14px; }
.gnb_wrap .gnb_empty a { color: var(--accent); text-decoration: underline; }
.gnb_wrap .gnb_al_ul .gnb_empty, .gnb_wrap .gnb_al_ul .gnb_empty a { color: var(--text-2); }

/* 헤더 우측 유틸 */
.hd_util { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }

.hd_sch_wr { float: none; padding: 0; width: auto; margin: 0; }
#hd_sch { border-radius: var(--radius-pill); overflow: hidden; }
#hd_sch h3 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#hd_sch form { display: flex; align-items: center; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-pill); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease); }
#hd_sch form:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
#hd_sch #sch_stx {
  float: none; width: 190px; height: 38px; padding: 0 4px 0 14px;
  border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 14px;
}
#hd_sch #sch_stx:focus { border: 0 !important; box-shadow: none; }
#hd_sch #sch_submit {
  float: none; width: 40px; height: 38px; border: 0; border-radius: 0;
  background: transparent; color: var(--text-3); font-size: 14px;
}
#hd_sch #sch_submit:hover { color: var(--accent); }

.hd_login { position: static; display: flex; align-items: center; gap: 4px; margin: 0; }
.hd_login li { float: none; margin: 0; padding: 0; border: 0; line-height: normal; }
.hd_login a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 11px;
  border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; font-weight: 500;
}
.hd_login a:hover { background: var(--surface-2); color: var(--text); }
.hd_login li:last-child a,
.hd_login li.tnb_admin a {
  background: var(--accent); color: #fff; font-weight: 600;
}
.hd_login li:last-child a:hover,
.hd_login li.tnb_admin a:hover { background: var(--accent-2); color: #fff; }

/* 아이콘 버튼 */
.hd_icon_btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); font-size: 15px;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.hd_icon_btn:hover { background: var(--surface-2); color: var(--text); }

#theme_btn .fa-sun-o { display: none; }
:root[data-theme="dark"] #theme_btn .fa-moon-o { display: none; }
:root[data-theme="dark"] #theme_btn .fa-sun-o { display: inline-block; }

/* 전체메뉴 버튼 (기존 클래스 유지) */
#gnb .gnb_menu_btn, .gnb_menu_btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); font-size: 15px; vertical-align: middle;
}
.gnb_menu_btn:hover { background: var(--surface-2); color: var(--text); }
#gnb .gnb_mnal { float: none; }

/* 전체메뉴 패널 */
#gnb_all {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  width: 100%; border: 0; border-top: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-3); z-index: 1000;
}
#gnb_all > h2 {
  position: static; max-width: var(--container); margin: 0 auto;
  padding: 20px var(--gutter) 12px; font-size: 15px; font-weight: 700; border: 0; color: var(--text);
}
#gnb_all .gnb_al_ul {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 28px;
}
#gnb_all .gnb_al_ul:after { display: none; }
#gnb_all .gnb_al_ul > li:nth-child(5n+1) { border-left: 0; }
#gnb_all .gnb_al_li { float: none; width: auto; min-height: 0; padding: 14px; border: 0; border-radius: var(--radius); }
#gnb_all .gnb_al_li:hover { background: var(--surface-2); }
#gnb_all .gnb_al_li .gnb_al_a {
  font-size: 15px; display: block; position: relative; margin-bottom: 8px;
  font-weight: 700; color: var(--text);
}
#gnb_all .gnb_al_li .gnb_al_a:hover { color: var(--accent); }
#gnb_all .gnb_al_li li { line-height: 2; }
#gnb_all .gnb_al_li li a { color: var(--text-2); font-size: 14px; }
#gnb_all .gnb_al_li li a:hover { color: var(--accent); }
#gnb .gnb_close_btn {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-3); font-size: 16px;
}
#gnb .gnb_close_btn:hover { background: var(--surface-2); color: var(--text); }
#gnb_all_bg { display: none; background: rgba(0, 0, 0, .32); width: 100%; height: 100%; position: fixed; left: 0; top: 0; z-index: 190; }

/* --------------------------------------------------------------------------
   6. 레이아웃
   -------------------------------------------------------------------------- */
#hd, #wrapper, #ft { min-width: 0; }

#wrapper { width: 100%; }

#container_wr {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start;
}
#container_wr:after { display: none; }

#container {
  position: relative; float: none; width: auto; min-width: 0;
  min-height: 480px; margin: 28px 0 56px; font-size: 1em;
}
#container:after { display: none; }

#container_title {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px;
}
#container_title span { display: block; margin: 0; line-height: 1.35; }

#aside {
  float: none; width: auto; height: auto;
  margin: 28px 0 56px;
  position: sticky; top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 20px;
}

/* 최신글 래퍼(구 클래스 호환) */
.latest_wr, .latest_top_wr { margin: 0; }
.latest_wr:after, .latest_top_wr:after { display: none; }
.lt_wr { width: auto; }

/* 인덱스 전용 섹션 */
.idx_sec { margin: 0 0 36px; }
.idx_sec:last-child { margin-bottom: 0; }

.idx_lts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}

/* --------------------------------------------------------------------------
   7. 카드 / 섹션 헤더 (최신글 스킨 공통)
   -------------------------------------------------------------------------- */
.lat, .pic_lt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px 8px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.pic_lt { padding: 18px; }

.lat_title {
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 12px; padding-right: 52px;
}
.lat_title a { color: var(--text); }
.lat_title a:hover { color: var(--accent); }

.lt_more {
  position: absolute; top: 18px; right: 16px;
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: var(--radius-pill); background: var(--surface-2);
  color: var(--text-3); font-size: 12px; font-weight: 500;
}
.lt_more:hover { background: var(--accent-soft); color: var(--accent); }

/* 뱃지 */
.new_icon, .hot_icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 5px;
  border-radius: 5px; font-size: 10px; font-weight: 800; line-height: 1; vertical-align: middle;
}
.new_icon { color: var(--new); background: var(--new-soft); }
.hot_icon { color: var(--hot); background: var(--hot-soft); }

.empty_li, .empty_table, .empty_list {
  padding: 44px 0 !important; text-align: center; color: var(--text-3); font-size: 14px;
}
.empty_li { border: 0; background: transparent; }

/* --------------------------------------------------------------------------
   8. 푸터
   -------------------------------------------------------------------------- */
#ft {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin: 0 auto; text-align: left; color: var(--text-2);
}
#ft h1 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }

#ft_wr {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  position: relative;
}
#ft_wr:after { display: none; }
#ft_wr .ft_cnt { width: auto; float: none; padding: 0; }

#ft h2, #ft_company h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 14px;
}

#ft_link { text-align: left; }
#ft_link a { display: block; color: var(--text-2); line-height: 2.1; font-weight: 500; font-size: 14px; }
#ft_link a:hover { color: var(--accent); }

#ft_company { font-weight: 400; color: var(--text-2); }
#ft_company .ft_info { line-height: 2; font-size: 13.5px; color: var(--text-2); }

#ft_catch { margin: 20px 0 10px; }
#ft_copy {
  max-width: var(--container); width: 100%; margin: 0 auto;
  padding: 20px var(--gutter) 32px; text-align: center;
  color: var(--text-3); font-size: 13px; border-top: 1px solid var(--border);
}
#ft_copy b { font-weight: 600; color: var(--text-2); }

#top_btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--text-2); background: var(--surface); box-shadow: var(--shadow-2);
  font-size: 14px; z-index: 90;
  transition: transform .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
#top_btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   9. 테이블
   -------------------------------------------------------------------------- */
.tbl_wrap table {
  width: 100%; border-collapse: collapse; border-spacing: 0;
  background: transparent; border-top: 0; border-bottom: 0;
}
.tbl_wrap caption { padding: 10px 0; font-weight: 600; text-align: left; }

.tbl_head01 { margin: 0 0 16px; }
.tbl_head01 caption { padding: 0; font-size: 0; line-height: 0; overflow: hidden; }
.tbl_head01 thead th {
  padding: 0 6px; height: 42px; font-weight: 500; font-size: 12.5px; text-align: center;
  color: var(--text-3); border-bottom: 1px solid var(--border);
}
.tbl_head01 thead th a { color: var(--text-3); }
.tbl_head01 thead th input { vertical-align: middle; }
.tbl_head01 tfoot th, .tbl_head01 tfoot td {
  padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface-2); text-align: center;
}
.tbl_head01 tbody th { padding: 8px 0; border-bottom: 1px solid var(--border); }
.tbl_head01 td {
  color: var(--text-2); padding: 0 6px; height: 50px;
  border-top: 0; border-bottom: 1px solid var(--border);
  line-height: 1.5; font-size: 13px; word-break: break-all;
}
.tbl_head01 tbody tr { transition: background-color .12s var(--ease); }
.tbl_head01 tbody tr:hover td { background: var(--surface-2); }
.tbl_head01 a:hover { text-decoration: none; color: var(--accent); }

.tbl_head02 { margin: 0 0 16px; }
.tbl_head02 caption { padding: 0; font-size: 0; line-height: 0; overflow: hidden; }
.tbl_head02 thead th {
  padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 600;
  text-align: center; letter-spacing: 0;
}
.tbl_head02 thead a { color: var(--text-2); }
.tbl_head02 tfoot th, .tbl_head02 tfoot td {
  padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface-2); text-align: center;
}
.tbl_head02 tbody th { padding: 8px 0; border-top: 0; border-bottom: 1px solid var(--border); background: transparent; }
.tbl_head02 td {
  padding: 10px 6px; border-top: 0; border-bottom: 1px solid var(--border);
  background: transparent; line-height: 1.6; word-break: break-all;
}

/* 폼 테이블 */
.tbl_frm01 { margin: 0 0 24px; }
.tbl_frm01 table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.tbl_frm01 th {
  width: 120px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; text-align: left; font-weight: 600; font-size: 14px; color: var(--text-2);
}
.tbl_frm01 td {
  padding: 10px 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent;
}
.tbl_frm01 textarea, .write_div textarea { width: 100%; height: 160px; }
.tbl_frm01 a { text-decoration: none; }
.tbl_frm01 .frm_file { display: block; margin-bottom: 6px; }
.tbl_frm01 .frm_info { display: block; padding: 4px 0 2px; line-height: 1.6; font-size: 12.5px; color: var(--text-3); }
.frm_info.add_info {
  margin-top: 10px !important; padding: 10px 12px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); line-height: 1.7;
}
.btn_info_toggle {
  display: block; margin: 6px 0 0; font-size: 12px; color: var(--accent);
  background: none; border: 0; cursor: pointer; text-decoration: underline;
}
.wr_content textarea, .form_01 textarea, .frm_input {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  vertical-align: middle; border-radius: var(--radius-sm); box-shadow: none;
}

/* 기본 리스트 */
.list_01 ul { border-top: 1px solid var(--border); }
.list_01 li {
  border-bottom: 1px solid var(--border); background: var(--surface);
  padding: 14px 16px; list-style: none; position: relative;
}
.list_01 li:nth-child(odd) { background: var(--surface); }
.list_01 li:after { display: none; }
.list_01 li:hover { background: var(--surface-2); }
.list_01 li.empty_li { text-align: center; padding: 40px 0; color: var(--text-3); }

/* 폼 리스트 */
.form_01 h2 { font-size: 16px; }
.form_01 li { margin-bottom: 12px; }
.form_01 ul:after, .form_01 li:after { display: block; visibility: hidden; clear: both; content: ""; }
.form_01 .left_input { float: left; }
.form_01 .margin_input { margin-right: 1%; }
.form_01 textarea { height: 120px; width: 100%; }
.form_01 .frm_label { display: inline-block; width: 130px; }

/* 테이블 항목 폭 */
.td_board { width: 80px; text-align: center; }
.td_category { width: 90px; text-align: center; }
.td_chk { width: 34px; text-align: center; }
.td_date { width: 70px; text-align: center; }
.td_datetime { width: 96px; text-align: center; }
.td_group { width: 80px; text-align: center; }
.td_mb_id { width: 100px; text-align: center; }
.td_mng { width: 80px; text-align: center; }
.td_name { width: 110px; text-align: left; }
.td_nick { width: 100px; text-align: center; }
.td_num { width: 60px; text-align: center; }
.td_numbig { width: 80px; text-align: center; }
.td_stat { width: 60px; text-align: center; }

.txt_active { color: var(--new); }
.txt_done { color: var(--hot); }
.txt_expired { color: var(--text-3); }
.txt_rdy { color: var(--warn); }

.required, textarea.required { background-image: none !important; }
.required:after { content: " *"; color: var(--hot); }

/* --------------------------------------------------------------------------
   10. 페이징
   -------------------------------------------------------------------------- */
.pg_wrap { clear: both; float: none; display: flex; justify-content: center; margin: 28px 0 0; }
.pg_wrap:after { display: none; }
.pg { text-align: center; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.pg_page, .pg_current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14px; vertical-align: middle; transition: background-color .12s var(--ease);
}
.pg a:focus, .pg a:hover { text-decoration: none; }
.pg_page { color: var(--text-2); background: transparent; }
.pg_page:hover { background: var(--surface-2); color: var(--text); }
.pg_current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.pg_start, .pg_prev, .pg_end, .pg_next {
  background-image: none !important; text-indent: 0; overflow: visible;
  border: 1px solid var(--border); color: var(--text-2); font-size: 0;
  position: relative; background-color: transparent;
}
.pg_start:hover, .pg_prev:hover, .pg_end:hover, .pg_next:hover { background-color: var(--surface-2); }
.pg_start:before, .pg_prev:before, .pg_end:before, .pg_next:before {
  font-family: FontAwesome; font-size: 12px; line-height: 1; color: var(--text-2);
}
.pg_start:before { content: "\f100"; }
.pg_prev:before  { content: "\f104"; }
.pg_next:before  { content: "\f105"; }
.pg_end:before   { content: "\f101"; }

/* --------------------------------------------------------------------------
   11. 사이드뷰 / 기타 컴포넌트
   -------------------------------------------------------------------------- */
.sv_wrap { position: relative; font-weight: normal; display: inline-block; }
.sv_wrap .sv {
  z-index: 1000; display: none; margin: 6px 0 0; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-3); overflow: hidden; padding: 4px;
}
.sv_wrap .sv:before { display: none; }
.sv_wrap .sv a {
  display: block; margin: 0; padding: 0 10px; line-height: 32px; width: 128px;
  font-weight: normal; color: var(--text-2); border-radius: 6px;
}
.sv_wrap .sv a:hover { background: var(--surface-2); color: var(--text); }
.sv_member { color: var(--text); font-weight: 500; }
.sv_guest { color: var(--text-2); }
.sv_on { display: block !important; position: absolute; top: 26px; left: 0; width: auto; height: auto; }
.sv_nojs .sv { display: block; }

/* 팝업 레이어 */
#hd_pop { z-index: 1000; position: relative; margin: 0 auto; height: 0; max-width: var(--container); }
#hd_pop h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
.hd_pops { position: absolute; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-3); overflow: hidden; }
.hd_pops img { max-width: 100%; }
.hd_pops_footer { padding: 0; background: var(--text); color: var(--surface); text-align: left; position: relative; }
.hd_pops_footer:after { display: block; visibility: hidden; clear: both; content: ""; }
.hd_pops_footer button { padding: 12px 14px; border: 0; color: var(--surface); background: transparent; font-size: 13px; }
.hd_pops_footer .hd_pops_reject { text-align: left; }
.hd_pops_footer .hd_pops_close { position: absolute; top: 0; right: 0; }

/* 게시물 선택복사/이동 */
#copymove .win_desc { text-align: center; display: block; }
#copymove .tbl_wrap { margin: 20px; }
#copymove .win_btn { padding: 0 20px 20px; }
.copymove_current { float: right; background: var(--hot); padding: 4px 8px; color: #fff; border-radius: 6px; }
.copymove_currentbg { background: var(--surface-2); }

/* 새창 */
.new_win { position: relative; background: var(--bg); min-height: 100vh; }
.new_win .tbl_wrap { margin: 0 20px; }
.new_win #win_title {
  font-size: 18px; font-weight: 700; height: auto; line-height: 1.4; padding: 20px;
  background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); box-shadow: none;
}
.new_win #win_title .sv { font-size: 13px; line-height: 1.4; }
.new_win .win_ul { margin-bottom: 16px; padding: 16px 20px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.new_win .win_ul:after { display: none; }
.new_win .win_ul li {
  float: none; background: var(--surface); text-align: center; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); margin: 0;
}
.new_win .win_ul li a { display: block; padding: 7px 0; color: var(--text-2); font-size: 13px; }
.new_win .win_ul .selected { background: var(--accent); border-color: var(--accent); }
.new_win .win_ul .selected a { color: #fff; font-weight: 600; }
.new_win .win_desc {
  position: relative; margin: 14px 20px; border-radius: var(--radius-sm); font-size: 14px;
  background: var(--hot-soft); color: var(--hot); line-height: 1.6; text-align: left; padding: 14px 16px;
}
.new_win .win_desc:after { display: none; }
.new_win .frm_info { font-size: 12.5px; color: var(--text-3); }
.new_win .win_total {
  float: right; display: inline-flex; align-items: center; height: 26px;
  font-weight: 600; font-size: 12px; color: var(--accent); background: var(--accent-soft);
  padding: 0 10px; border-radius: var(--radius-pill);
}
.new_win .new_win_con { margin: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.new_win .new_win_con:after { display: block; visibility: hidden; clear: both; content: ""; }
.new_win .new_win_con2 { margin: 20px; }
.new_win .btn_confirm:after { display: block; visibility: hidden; clear: both; content: ""; }
.new_win .win_btn { text-align: center; padding: 0 20px 24px; }
.new_win .cert_btn { margin-bottom: 30px; text-align: center; }
.new_win .btn_close { padding: 0 20px; height: 44px; overflow: hidden; cursor: pointer; }
.new_win .btn_submit { padding: 0 20px; height: 44px; font-weight: 600; font-size: 15px; }

/* 검색결과 하이라이트 */
.sch_word { color: var(--accent); background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; line-height: 1.4; margin: 0 1px; font-weight: 600; }

/* 자바스크립트 alert 대안 */
#validation_check { margin: 100px auto; width: 520px; max-width: calc(100% - 40px); }
#validation_check h1 { margin-bottom: 16px; font-size: 20px; font-weight: 700; }
#validation_check p { margin-bottom: 20px; padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* 캡챠 */
#captcha { display: inline-block; position: relative; }
#captcha legend { position: absolute; margin: 0; padding: 0; font-size: 0; line-height: 0; text-indent: -9999em; overflow: hidden; }
#captcha #captcha_img { height: 42px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); vertical-align: top; padding: 0; margin: 0; background: #fff; }
#captcha #captcha_mp3, #captcha #captcha_reload {
  margin: 0 0 0 2px; padding: 0; width: 40px; height: 42px; border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); background: var(--surface); vertical-align: top;
  overflow: hidden; cursor: pointer; text-indent: 0; font-size: 0; position: relative;
}
#captcha #captcha_mp3:before, #captcha #captcha_reload:before {
  font-family: FontAwesome; font-size: 13px; color: var(--text-2);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
#captcha #captcha_mp3:before { content: "\f028"; }
#captcha #captcha_reload:before { content: "\f021"; }
#captcha #captcha_key {
  margin: 0 0 0 4px; padding: 0 8px; width: 100px; height: 42px;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 16px; font-weight: 700; text-align: center; vertical-align: top;
}
#captcha #captcha_info { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); letter-spacing: 0; }
#captcha.m_captcha audio { display: block; margin: 0 0 6px; width: 187px; }
#captcha.m_captcha #captcha_img { width: 160px; height: 60px; margin-bottom: 4px; margin-top: 4px; display: block; }
#captcha.m_captcha #captcha_reload span { display: none; }
#captcha.m_captcha #captcha_key { width: 115px; }

/* ckeditor */
.cke_sc { margin: 0 0 6px; text-align: right; }
.btn_cke_sc { display: inline-block; padding: 0 10px; height: 26px; border: 1px solid var(--border-2); border-radius: 6px; background: var(--surface); color: var(--text-2); line-height: 24px; vertical-align: middle; cursor: pointer; font-size: 12.5px; }
.cke_sc_def { margin: 0 0 6px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; }
.cke_sc_def dl { margin: 0 0 6px; text-align: left; }
.cke_sc_def dl:after { display: block; visibility: hidden; clear: both; content: ""; }
.cke_sc_def dt, .cke_sc_def dd { float: left; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--border); }
.cke_sc_def dt { width: 20%; font-weight: 600; }
.cke_sc_def dd { width: 30%; }
.cheditor-popup-window *, .cheditor-popup-window :after, .cheditor-popup-window :before { box-sizing: content-box; }

#bo_v_con ul { display: block; list-style-type: disc; margin: 1em 0; padding-left: 30px; }
#bo_v_con ol { display: block; list-style-type: decimal; margin: 1em 0; padding-left: 30px; }
#bo_v_con li { display: list-item; }

.img_fix { width: 100%; height: auto; }

#device_change {
  display: block; margin: 12px; padding: 12px 0; border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: var(--surface); color: var(--text);
  font-size: 16px; text-decoration: none; text-align: center;
}

/* --------------------------------------------------------------------------
   12. 반응형
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  #hd_sch #sch_stx { width: 140px; }
  #gnb #gnb_1dul { gap: 0; }
  .gnb_1da { padding: 0 9px; font-size: 14px; }
}

@media (max-width: 1023px) {
  #container_wr { grid-template-columns: minmax(0, 1fr); }
  #aside { position: static; margin-top: 0; }
  #ft_wr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .idx_lts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #gnb_all .gnb_al_ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  #gnb { display: none; }
  .hd_sch_wr { display: none; }
  #tnb .inner { height: 34px; }
  #tnb #popular { display: none; }
  #container_title { font-size: 22px; }
  .idx_lts { grid-template-columns: minmax(0, 1fr); }
  #gnb_all .gnb_al_ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --gutter: 14px; }
  #ft_wr { grid-template-columns: minmax(0, 1fr); }
  #logo .logo_txt { font-size: 17px; }
  .hd_login a { padding: 0 8px; font-size: 13.5px; }
  #gnb_all .gnb_al_ul { grid-template-columns: minmax(0, 1fr); }
  #top_btn { bottom: 16px; right: 16px; }
}

/* 모션 최소화 선호 */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
