@charset "UTF-8";
/* ============================================================
   HBW board skin  —  HBW 레이아웃과 어울리는 모던 반응형 게시판
   레이아웃의 CSS 변수(--hbw-point 등)를 상속, 없으면 폴백값 사용
============================================================ */
.hbw-board{
	--bp:   var(--hbw-point, #6d5efc);
	--bp2:  var(--hbw-point2, #b14bff);
	--bgrad:var(--hbw-grad, linear-gradient(120deg,#6d5efc,#b14bff));
	--bink: #1b1f33;
	--btext:#3a4057;
	--bsoft:#8088a0;
	--bline:#e9ebf3;
	--bbg:  #ffffff;
	--bbg2: #f6f8fc;
	--bradius:14px;
	--bease:cubic-bezier(.22,.61,.36,1);

	color:var(--btext);
	font-family:"Pretendard","Apple SD Gothic Neo","Malgun Gothic",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
	line-height:1.6; letter-spacing:-.01em;
}
.hbw-board *{ box-sizing:border-box; }
.hbw-board a{ color:inherit; text-decoration:none; transition:color .2s var(--bease); }
.hbw-board h1,.hbw-board h2,.hbw-board h3{ color:var(--bink); letter-spacing:-.02em; }
.hbw-board img{ max-width:100%; height:auto; }
.hbw-board input,.hbw-board select,.hbw-board textarea,.hbw-board button{ font-family:inherit; font-size:14px; }
.hbw-board input[type=text],.hbw-board input[type=password],.hbw-board input[type=email],.hbw-board select,.hbw-board textarea{
	height:44px; padding:0 14px; border:1px solid var(--bline); border-radius:10px; background:var(--bbg);
	color:var(--bink); outline:none; transition:border-color .2s,box-shadow .2s;
}
.hbw-board textarea{ height:auto; padding:12px 14px; }
.hbw-board input:focus,.hbw-board select:focus,.hbw-board textarea:focus{ border-color:var(--bp); box-shadow:0 0 0 4px color-mix(in srgb, var(--bp) 16%, transparent); }

.hbw-board-notice{ padding:4px 0 18px; color:var(--bsoft); font-size:14px; }

/* ---------- buttons ---------- */
.hbw-bbtn{
	display:inline-flex; align-items:center; gap:7px; height:42px; padding:0 18px; border-radius:10px;
	font-size:14px; font-weight:600; cursor:pointer; border:1px solid var(--bline); background:var(--bbg); color:var(--btext);
	transition:transform .2s var(--bease), box-shadow .2s, background .2s, border-color .2s, color .2s; white-space:nowrap;
}
.hbw-bbtn i{ font-size:16px; }
.hbw-bbtn:hover{ transform:translateY(-2px); border-color:transparent; box-shadow:0 8px 20px rgba(30,20,80,.12); color:var(--bp); }
.hbw-bbtn.primary{ background:var(--bgrad); color:#fff; border-color:transparent; box-shadow:0 8px 20px color-mix(in srgb, var(--bp) 40%, transparent); }
.hbw-bbtn.primary:hover{ color:#fff; box-shadow:0 12px 28px color-mix(in srgb, var(--bp) 50%, transparent); }
.hbw-bbtn.ghost{ background:var(--bbg2); border-color:transparent; }
.hbw-bbtn.danger{ color:#e2426a; }
.hbw-bbtn.danger:hover{ background:#e2426a; color:#fff; }

/* ---------- category tabs ---------- */
.hbw-board-cate{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; padding-bottom:4px; }
.hbw-board-cate .cate-group{ display:contents; }
.cate-link{ display:inline-flex; align-items:center; padding:9px 18px; border-radius:50px; font-size:14px; font-weight:600; background:var(--bbg2); color:var(--btext); }
.cate-link:hover{ color:var(--bp); }
.cate-link.on{ background:var(--bgrad); color:#fff; box-shadow:0 6px 16px color-mix(in srgb, var(--bp) 35%, transparent); }
.cate-link.sub{ padding:7px 14px; font-size:13px; background:transparent; border:1px solid var(--bline); }
.cate-link.sub.on{ border-color:transparent; }

/* ---------- list table ---------- */
.hbw-board-list{ width:100%; }
.hbw-table{ width:100%; border-collapse:collapse; }
.hbw-table thead th{ padding:14px 12px; font-size:13px; font-weight:700; color:var(--bsoft); text-align:center; border-bottom:2px solid var(--bline); white-space:nowrap; }
.hbw-table thead th a{ color:var(--bsoft); }
.hbw-table thead th a:hover{ color:var(--bp); }
.hbw-table tbody td{ padding:15px 12px; font-size:14px; text-align:center; border-bottom:1px solid var(--bline); color:var(--bsoft); }
.hbw-table tbody tr{ transition:background .15s; }
.hbw-table tbody tr:hover{ background:var(--bbg2); }
.hbw-table .col-no{ width:70px; }
.hbw-table .col-title{ text-align:left; }
.hbw-table .col-author{ width:120px; }
.hbw-table .col-time{ width:96px; }
.hbw-table .col-num{ width:64px; }
.hbw-table .col-check{ width:44px; }
.hbw-table .subject{ font-size:15px; font-weight:600; color:var(--bink); }
.hbw-table .subject:hover{ color:var(--bp); }
.hbw-table .reply-num{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; margin-left:6px; border-radius:20px; background:color-mix(in srgb, var(--bp) 14%, transparent); color:var(--bp); font-size:12px; font-weight:700; vertical-align:middle; }
.hbw-table .col-author a:hover{ color:var(--bp); }
.hbw-table tr.notice{ background:color-mix(in srgb, var(--bp) 5%, transparent); }
.hbw-table tr.notice .subject{ font-weight:700; }
.badge-notice{ display:inline-block; padding:3px 10px; border-radius:20px; background:var(--bgrad); color:#fff; font-size:11px; font-weight:700; }
.hbw-table tr.current .subject{ color:var(--bp); }
.vote-pill{ display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:24px; padding:0 8px; border-radius:20px; background:color-mix(in srgb, var(--bp) 12%, transparent); color:var(--bp); font-weight:700; font-size:12px; }
.hbw-empty{ padding:60px 20px; text-align:center; color:var(--bsoft); }
.hbw-empty i{ font-size:46px; opacity:.4; display:block; margin-bottom:14px; }
.hbw-empty p{ margin:0; font-size:15px; }

/* ---------- list footer ---------- */
.hbw-board-footer{ margin-top:28px; }
.hbw-board-tools{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; margin-bottom:22px; }
.hbw-board-search{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; align-items:center; margin:0 auto 26px; }
.hbw-board-search .search-field{ position:relative; display:flex; align-items:center; }
.hbw-board-search .search-field i{ position:absolute; left:14px; color:var(--bsoft); font-size:16px; pointer-events:none; }
.hbw-board-search .search-field input{ padding-left:38px; width:240px; max-width:60vw; }
.hbw-board-search select{ max-width:160px; }

/* ---------- pagination ---------- */
.hbw-pagination{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; align-items:center; margin-top:8px; }
.hbw-pagination .page-num,.hbw-pagination .page-edge{ display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 6px; border-radius:10px; font-size:14px; font-weight:600; color:var(--btext); background:var(--bbg2); }
.hbw-pagination a:hover{ color:var(--bp); }
.hbw-pagination .page-num.on{ background:var(--bgrad); color:#fff; box-shadow:0 6px 16px color-mix(in srgb, var(--bp) 35%, transparent); }

/* ============================================================ READ ============================================================ */
.hbw-read{ background:var(--bbg); border:1px solid var(--bline); border-radius:18px; padding:34px; box-shadow:0 12px 40px rgba(30,20,80,.05); margin-bottom:28px; }
.read-head{ padding-bottom:22px; border-bottom:1px solid var(--bline); margin-bottom:24px; }
.read-cate a{ display:inline-block; margin-bottom:10px; padding:5px 12px; border-radius:20px; background:color-mix(in srgb, var(--bp) 12%, transparent); color:var(--bp); font-size:12.5px; font-weight:700; }
.read-title{ margin:0 0 16px; font-size:clamp(22px,3vw,30px); font-weight:800; line-height:1.3; }
.read-title a{ color:var(--bink); }
.read-meta{ display:flex; flex-wrap:wrap; gap:18px; font-size:13.5px; color:var(--bsoft); }
.read-meta i{ color:var(--bp); margin-right:3px; }
.read-meta a:hover{ color:var(--bp); }
.read-extra{ margin-bottom:22px; border:1px solid var(--bline); border-radius:12px; overflow:hidden; }
.read-extra dl{ display:flex; margin:0; border-bottom:1px solid var(--bline); }
.read-extra dl:last-child{ border-bottom:0; }
.read-extra dt{ flex:0 0 160px; padding:12px 16px; background:var(--bbg2); font-weight:600; color:var(--bink); font-size:13.5px; }
.read-extra dd{ flex:1; margin:0; padding:12px 16px; font-size:13.5px; }
.read-body{ min-height:120px; padding:8px 0 4px; font-size:16px; color:var(--btext); line-height:1.8; word-break:break-word; }
.read-tags{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:26px; }
.read-tags > i{ color:var(--bsoft); }
.read-tags .tag{ padding:5px 12px; border-radius:20px; background:var(--bbg2); font-size:13px; font-weight:600; color:var(--bsoft); }
.read-tags .tag:hover{ background:var(--bgrad); color:#fff; }

/* secret form */
.hbw-secret{ padding:30px; text-align:center; background:var(--bbg2); border-radius:12px; }
.hbw-secret .lock{ margin:0 0 14px; font-weight:600; color:var(--bink); }
.hbw-secret .lock i{ color:var(--bp); }
.hbw-secret .row{ display:flex; gap:8px; justify-content:center; }

/* vote */
.read-vote{ display:flex; gap:14px; justify-content:center; margin:30px 0; }
.vbtn{ display:inline-flex; flex-direction:column; align-items:center; gap:6px; min-width:104px; padding:16px 22px; border-radius:16px; border:1px solid var(--bline); background:var(--bbg); font-weight:600; transition:transform .2s var(--bease), box-shadow .2s, border-color .2s; }
.vbtn i{ font-size:24px; }
.vbtn strong{ font-size:20px; color:var(--bink); }
.vbtn span{ font-size:12px; color:var(--bsoft); }
.vbtn:hover{ transform:translateY(-3px); box-shadow:0 12px 28px rgba(30,20,80,.12); }
.vbtn.up:hover,.vbtn.up.on{ border-color:transparent; background:color-mix(in srgb, var(--bp) 12%, transparent); }
.vbtn.up i{ color:var(--bp); }
.vbtn.down i{ color:#e2426a; }
.vbtn.down.on{ border-color:transparent; background:#fdeaf0; }

/* files */
.read-files,.cm-files{ margin-top:24px; padding:18px 20px; background:var(--bbg2); border-radius:12px; }
.read-files .files-head,.cm-files .files-head{ margin:0 0 10px; font-size:14px; font-weight:700; color:var(--bink); }
.read-files .files-head i,.cm-files .files-head i{ color:var(--bp); }
.read-files ul,.cm-files ul{ list-style:none; margin:0; padding:0; }
.read-files li,.cm-files li{ padding:6px 0; font-size:14px; }
.read-files li a:hover,.cm-files li a:hover{ color:var(--bp); }
.read-files .fsize,.cm-files .fsize{ color:var(--bsoft); font-size:12px; margin-left:6px; }

/* sign */
.read-sign{ display:flex; gap:14px; align-items:center; margin-top:24px; padding:18px; border:1px dashed var(--bline); border-radius:12px; }
.read-sign .pf{ width:54px; height:54px; border-radius:50%; object-fit:cover; }
.read-sign .tx{ font-size:13.5px; color:var(--bsoft); }

/* share */
.read-share{ display:flex; gap:10px; justify-content:center; margin-top:28px; }
.sbtn{ display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:50%; background:var(--bbg2); color:var(--bsoft); font-size:20px; transition:transform .2s var(--bease), background .2s, color .2s; }
.sbtn:hover{ transform:translateY(-3px); color:#fff; }
.sbtn.fb:hover{ background:#1877f2; } .sbtn.tw:hover{ background:#111; } .sbtn.link:hover{ background:var(--bp); }

/* actions */
.read-actions{ display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; margin-top:30px; padding-top:24px; border-top:1px solid var(--bline); }
.read-actions .left,.read-actions .right{ display:flex; flex-wrap:wrap; gap:8px; }

/* ============================================================ COMMENTS ============================================================ */
.hbw-comments{ margin-bottom:28px; }
.cm-head{ display:flex; align-items:center; gap:8px; margin:0 0 20px; font-size:19px; font-weight:800; }
.cm-head i{ color:var(--bp); }
.cm-head em{ font-style:normal; color:var(--bp); }
.cm-list{ list-style:none; margin:0 0 26px; padding:0; }
.cm-item{ padding:20px 0; border-bottom:1px solid var(--bline); }
.cm-item.reply{ margin-left:32px; padding-left:20px; border-left:2px solid color-mix(in srgb, var(--bp) 25%, transparent); }
.cm-item.depth2{ margin-left:64px; } .cm-item.depth3{ margin-left:96px; }
.cm-meta{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.cm-pf{ width:40px; height:40px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.cm-pf.empty{ display:flex; align-items:center; justify-content:center; background:var(--bbg2); color:var(--bsoft); }
.cm-author{ font-weight:700; color:var(--bink); font-size:14.5px; }
.cm-author a:hover{ color:var(--bp); }
.cm-time{ margin-left:auto; font-size:12.5px; color:var(--bsoft); }
.cm-body{ font-size:15px; line-height:1.75; color:var(--btext); word-break:break-word; }
.cm-body.deleted{ color:var(--bsoft); font-style:italic; }
.cm-action{ display:flex; flex-wrap:wrap; gap:14px; margin:12px 0 0; font-size:13px; }
.cm-action .act{ display:inline-flex; align-items:center; gap:4px; color:var(--bsoft); font-weight:600; }
.cm-action .act:hover{ color:var(--bp); }
.cm-action .act.voted.on{ color:var(--bp); }
.cm-action .act.reply{ color:var(--bp); }

/* comment write */
.hbw-comment-write{ padding:22px; background:var(--bbg2); border-radius:16px; }
.cw-foot{ display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center; margin-top:14px; }
.cw-author{ display:flex; flex-wrap:wrap; gap:8px; }
.cw-author input{ width:150px; background:var(--bbg); }
.cw-opt{ display:flex; gap:16px; align-items:center; }
.cw-opt label{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; color:var(--btext); cursor:pointer; }
.cw-captcha{ margin-top:14px; }
.cw-submit{ margin-top:16px; text-align:right; }

/* ============================================================ TRACKBACK ============================================================ */
.hbw-trackback{ margin-bottom:28px; }
.tb-head{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; margin-bottom:16px; }
.tb-head h2{ display:flex; align-items:center; gap:8px; margin:0; font-size:18px; font-weight:800; }
.tb-head h2 i{ color:var(--bp); }
.tb-head em{ font-style:normal; color:var(--bp); }
.tb-url{ margin:0; font-size:12.5px; color:var(--bsoft); word-break:break-all; }
.tb-list{ list-style:none; margin:0; padding:0; }
.tb-item{ padding:16px 0; border-bottom:1px solid var(--bline); }
.tb-meta{ display:flex; gap:12px; align-items:center; margin-bottom:8px; }
.tb-meta h3{ margin:0; font-size:14.5px; }
.tb-time{ margin:0 0 0 auto; font-size:12.5px; color:var(--bsoft); }

/* ============================================================ WRITE FORM ============================================================ */
.hbw-write{ background:var(--bbg); border:1px solid var(--bline); border-radius:18px; padding:30px; box-shadow:0 12px 40px rgba(30,20,80,.05); }
.w-top{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.w-top .w-cate,.w-top .w-notice{ flex:0 0 auto; min-width:140px; }
.w-top .w-title{ flex:1 1 280px; font-size:16px; font-weight:600; }
.w-extra{ margin-bottom:18px; border:1px solid var(--bline); border-radius:12px; overflow:hidden; }
.w-extra-req{ margin:0; padding:10px 16px; background:var(--bbg2); font-size:12.5px; color:var(--bsoft); }
.w-extra-req em{ color:#e2426a; font-style:normal; }
.w-extra dl{ display:flex; margin:0; border-top:1px solid var(--bline); }
.w-extra dt{ flex:0 0 180px; padding:12px 16px; background:var(--bbg2); font-weight:600; font-size:13.5px; color:var(--bink); }
.w-extra dt em{ color:#e2426a; font-style:normal; }
.w-extra dd{ flex:1; margin:0; padding:12px 16px; }
.w-editor{ margin-bottom:18px; }
.w-options{ display:flex; flex-wrap:wrap; gap:16px; padding:16px 18px; background:var(--bbg2); border-radius:12px; margin-bottom:16px; }
.w-options label{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; color:var(--btext); cursor:pointer; }
.w-author{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.w-author input{ flex:1 1 160px; }
.w-author .w-tags{ flex:1 1 100%; }
.w-captcha{ margin-bottom:16px; }
.w-submit{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }

/* ============================================================ CONTEXT / CONFIRM / MESSAGE ============================================================ */
.hbw-context{ padding:20px 24px; background:var(--bbg2); border-radius:14px; margin-bottom:20px; }
.ctx-title{ margin:0 0 8px; font-size:18px; font-weight:700; }
.ctx-author{ margin:0 0 8px; font-size:14.5px; }
.ctx-body{ font-size:14.5px; color:var(--btext); line-height:1.7; }
.hbw-confirm{ max-width:520px; margin:40px auto; padding:36px; text-align:center; background:var(--bbg); border:1px solid var(--bline); border-radius:18px; box-shadow:0 12px 40px rgba(30,20,80,.06); }
.hbw-confirm .cf-msg{ margin:0 0 24px; font-size:17px; font-weight:700; color:var(--bink); }
.hbw-confirm .cf-msg i{ display:block; font-size:38px; color:var(--bp); margin-bottom:14px; }
.hbw-confirm.danger .cf-msg i,.hbw-confirm .cf-msg .xi-trash{ color:#e2426a; }
.cf-btns{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.cf-row{ display:flex; gap:8px; justify-content:center; }
.cf-instant{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; color:var(--btext); margin-right:auto; }
.hbw-message{ max-width:560px; margin:50px auto; padding:44px; text-align:center; }
.hbw-message i{ font-size:50px; color:var(--bp); margin-bottom:18px; display:block; }
.hbw-message h1{ font-size:20px; font-weight:700; margin:0 0 26px; line-height:1.5; }

/* ============================================================ TAG CLOUD / VOTE LOG / UPDATE LOG ============================================================ */
.hbw-tagcloud .tags{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:26px; }
.hbw-tagcloud .tag{ display:inline-flex; align-items:center; gap:5px; padding:8px 16px; border-radius:50px; background:var(--bbg2); font-weight:600; color:var(--btext); }
.hbw-tagcloud .tag em{ font-style:normal; font-size:11px; color:var(--bp); }
.hbw-tagcloud .tag:hover{ background:var(--bgrad); color:#fff; }
.hbw-tagcloud .tag:hover em{ color:#fff; }
.hbw-tagcloud .tag.rank1{ font-size:20px; } .hbw-tagcloud .tag.rank2{ font-size:17px; }
.hbw-tagcloud .tag.rank3{ font-size:15px; } .hbw-tagcloud .tag.rank4{ font-size:14px; } .hbw-tagcloud .tag.rank5{ font-size:13px; }
.hbw-votelog .vl-group{ margin-bottom:24px; }
.hbw-votelog .vl-members{ display:flex; flex-wrap:wrap; gap:8px; }
.hbw-votelog .votelog{ padding:7px 14px; border-radius:50px; background:var(--bbg2); font-size:13.5px; font-weight:600; }
.hbw-votelog .votelog:hover{ color:var(--bp); }
.update-log .upd-reason{ margin:18px 0; padding:14px 18px; background:var(--bbg2); border-radius:10px; font-size:13.5px; color:var(--bsoft); }

/* ============================================================ DARK COLORSET ============================================================ */
.hbw-board.cs-dark{
	--bink:#f4f5fb; --btext:#c5cad8; --bsoft:#8990a8; --bline:#2a2f45; --bbg:#171a2b; --bbg2:#1f2438;
	color:var(--btext);
}
.hbw-board.cs-dark .hbw-read,
.hbw-board.cs-dark .hbw-write,
.hbw-board.cs-dark .hbw-confirm{ box-shadow:0 12px 40px rgba(0,0,0,.3); }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width:768px){
	.hbw-read,.hbw-write{ padding:22px 18px; border-radius:14px; }
	.hbw-table .col-author,.hbw-table .col-time,.hbw-table .col-num{ display:none; }
	.hbw-table thead th.col-no{ display:none; }
	.hbw-table tbody td.col-no{ display:none; }
	.hbw-table tbody td{ padding:14px 8px; }
	.hbw-table .subject{ font-size:15px; }
	.hbw-board-tools{ justify-content:stretch; }
	.hbw-board-tools .hbw-bbtn{ flex:1 1 auto; justify-content:center; }
	.hbw-board-search{ flex-direction:column; align-items:stretch; }
	.hbw-board-search .search-field input{ width:100%; max-width:none; }
	.hbw-board-search select,.hbw-board-search .hbw-bbtn{ width:100%; justify-content:center; }
	.read-actions{ flex-direction:column; }
	.read-actions .left,.read-actions .right{ width:100%; }
	.read-actions .hbw-bbtn{ flex:1 1 auto; justify-content:center; }
	.read-vote .vbtn{ min-width:88px; padding:14px 16px; }
	.cm-item.reply,.cm-item.depth2,.cm-item.depth3{ margin-left:16px; padding-left:14px; }
	.read-extra dt,.w-extra dt{ flex-basis:110px; }
	.cw-foot{ flex-direction:column; align-items:stretch; }
	.cw-author input{ width:100%; }
}

/* ---------- card list mode (skin 옵션) ---------- */
.hbw-board.layout-card .hbw-table thead{ display:none; }
.hbw-board.layout-card .hbw-table,
.hbw-board.layout-card .hbw-table tbody,
.hbw-board.layout-card .hbw-table tr,
.hbw-board.layout-card .hbw-table td{ display:block; width:100%; }
.hbw-board.layout-card .hbw-table tr{ position:relative; margin-bottom:12px; padding:16px 18px; border:1px solid var(--bline); border-radius:14px; }
.hbw-board.layout-card .hbw-table tr:hover{ background:var(--bbg2); box-shadow:0 8px 22px rgba(30,20,80,.08); }
.hbw-board.layout-card .hbw-table td{ border:0; padding:2px 0; text-align:left; }
.hbw-board.layout-card .hbw-table .col-title{ margin-bottom:6px; }
.hbw-board.layout-card .hbw-table .col-author,
.hbw-board.layout-card .hbw-table .col-time,
.hbw-board.layout-card .hbw-table .col-num,
.hbw-board.layout-card .hbw-table .col-no{ display:inline-block; width:auto; margin-right:14px; font-size:12.5px; }
