@charset "utf-8";
/* ====================== 게시판 스킨 (네이비 + 레드, 메인과 통일) ====================== */

/* 본문 콘텐츠 영역 - 사용자 입력 HTML 기본 스타일 */
#bo_v_con a { color:#0B1A3A; text-decoration:underline; }
#bo_v_con a:hover { color:#D7263D; }
#bo_v_con img { max-width:100%; height:auto; }

/* 임시저장 콘텐츠 숨김 */
.autosave_content { display:none; }

.ptb{
    --ptb-navy:#0B1A3A; --ptb-navy-2:#13254D; --ptb-accent:#D7263D;
    --ptb-text:#1B2236; --ptb-sub:#4A5470; --ptb-muted:#5D6782;
    --ptb-line:#E4E7EF; --ptb-bg:#EEF0F5; --ptb-field:#D5DAE5;
    color:var(--ptb-text);
}
.ptb *{ box-sizing:border-box; }
.ptb a{ text-decoration:none; }
.ptb-card{ background:#fff; border-radius:14px; overflow:hidden; }
.ptb-sr, .ptb .sound_only{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- 버튼 ---------- */
.ptb-btn{
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    height:44px; padding:0 18px; border-radius:8px; border:1px solid var(--ptb-field);
    background:#fff; color:var(--ptb-text) !important; font-size:14px; font-family:inherit;
    cursor:pointer; white-space:nowrap; transition:border-color .15s, color .15s, background .15s;
}
.ptb-btn:hover{ border-color:var(--ptb-navy); color:var(--ptb-navy) !important; }
.ptb-btn svg{ width:18px; height:18px; flex:none; }
.ptb-btn-icon{ width:44px; padding:0; }
.ptb-btn-primary{ background:var(--ptb-navy); border-color:var(--ptb-navy); color:#fff !important; font-weight:700; }
.ptb-btn-primary:hover{ background:var(--ptb-navy-2); color:#fff !important; }
.ptb-btn-danger{ border-color:#F1C6CD; color:#B01E32 !important; }
.ptb-btn-danger:hover{ border-color:#B01E32; color:#B01E32 !important; }
.ptb-btn-sm{ height:40px; padding:0 14px; }

/* ---------- 표시용 칩 ---------- */
.ptb-tag{ display:inline-block; flex:none; font-size:12px; line-height:1.5; color:var(--ptb-sub); background:var(--ptb-bg); border-radius:4px; padding:2px 8px; }
a.ptb-tag:hover{ color:var(--ptb-navy); }
.ptb-tag-notice{ color:#fff; background:var(--ptb-accent); font-weight:700; }
.ptb-cnt{ flex:none; color:var(--ptb-accent); font-size:13px; font-weight:700; }
.ptb-new{ flex:none; font-size:10px; font-weight:900; line-height:1.4; color:#fff; background:var(--ptb-accent); border-radius:3px; padding:1px 4px; }

/* ---------- 목록: 상단 ---------- */
.ptb-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.ptb-total{ font-size:14px; color:var(--ptb-muted); }
.ptb-toolbar-bottom{ justify-content:flex-end; margin:14px 0 0; }
.ptb-total strong{ color:var(--ptb-text); }
.ptb-actions{ display:flex; align-items:center; gap:6px; list-style:none; margin:0; padding:0; }

/* 분류 */
.ptb #bo_cate{ margin:0 0 14px; }
.ptb #bo_cate_ul{ display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0; }
.ptb #bo_cate_ul a{ display:inline-block; padding:8px 16px; border-radius:999px; background:#fff; color:var(--ptb-sub); font-size:14px; }
.ptb #bo_cate_ul a:hover{ color:var(--ptb-navy); }
.ptb #bo_cate_ul a#bo_cate_on{ background:var(--ptb-navy); color:#fff; font-weight:500; }

/* ---------- 목록: 표 ---------- */
.ptb-list{ width:100%; border-collapse:collapse; font-size:15px; }
.ptb-list th{ background:#F6F7FA; color:var(--ptb-muted); font-size:13px; font-weight:500; padding:12px 8px; text-align:center; white-space:nowrap; }
.ptb-list th a{ color:inherit; }
.ptb-list th.ptb-th-subj{ text-align:left; padding-left:16px; }
.ptb-list td{ padding:14px 8px; border-top:1px solid var(--ptb-bg); text-align:center; color:var(--ptb-muted); font-size:14px; vertical-align:middle; }
.ptb-list td.ptb-subj{ text-align:left; padding-left:16px; }
.ptb-list tr.is-notice td{ background:#FFF5F6; border-top-color:#F1E2E5; }
.ptb-list tr.is-notice .ptb-link{ font-weight:700; }
.ptb-list tbody tr:not(.is-notice):hover td{ background:#F9FAFC; }
.ptb-title{ display:flex; align-items:center; gap:8px; min-width:0; }
.ptb-link{ color:var(--ptb-text) !important; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.ptb-link:hover{ color:var(--ptb-accent) !important; }
.ptb-title img{ vertical-align:middle; flex:none; }
.ptb-author{ text-align:left !important; color:var(--ptb-sub) !important; max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ptb-meta-m{ display:none; font-size:12px; color:var(--ptb-muted); margin-top:4px; }
.ptb-empty{ padding:60px 0 !important; color:var(--ptb-muted); }
.ptb-reading{ color:var(--ptb-accent); font-size:12px; font-weight:700; }

@media (max-width:768px){
    .ptb-list .ptb-hide-m{ display:none; }
    .ptb-list td.ptb-subj, .ptb-list th.ptb-th-subj{ padding-left:12px; }
    .ptb-list td{ padding:12px 6px; }
    .ptb-meta-m{ display:block; }
    .ptb-btn-label{ display:none; }
    .ptb-btn-write{ width:44px; padding:0; }
}

/* ---------- 페이지 번호 ---------- */
.ptb .pg_wrap{ display:flex; justify-content:center; margin:20px 0 0; float:none; width:100%; }
.ptb .pg_wrap .pg{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.ptb .pg_wrap .pg_page, .ptb .pg_wrap .pg_current{
    min-width:40px; height:40px; padding:0 10px; border-radius:8px; border:0;
    display:inline-flex; align-items:center; justify-content:center;
    font-size:14px; line-height:1; background:#fff; color:var(--ptb-sub); text-decoration:none;
}
.ptb .pg_wrap .pg_page:hover{ color:var(--ptb-navy); }
.ptb .pg_wrap .pg_current{ background:var(--ptb-navy); color:#fff; font-weight:700; }

/* ---------- 글보기 ---------- */
.ptb-view-head{ padding:28px 28px 20px; border-bottom:1px solid var(--ptb-line); }
.ptb-view-title{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 14px; font-size:26px; font-weight:700; line-height:1.35; color:var(--ptb-text); word-break:break-word; }
.ptb-view-meta{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ptb-meta{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-size:14px; color:var(--ptb-muted); }
.ptb-meta strong{ color:var(--ptb-text); }
.ptb-meta a{ color:var(--ptb-muted); }
.ptb-meta .ptb-red{ color:var(--ptb-accent); font-weight:700; }
.ptb-avatar{ width:36px; height:36px; border-radius:50%; overflow:hidden; background:var(--ptb-navy); color:#fff; display:flex; align-items:center; justify-content:center; flex:none; }
.ptb-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.ptb-avatar svg{ width:18px; height:18px; }
.ptb-view-btns{ display:flex; gap:6px; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.ptb #bo_v_share{ padding:10px 28px; border-bottom:1px solid var(--ptb-bg); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ptb #bo_v_share:empty{ display:none; }
.ptb #bo_v_img{ padding:28px 28px 0; }
.ptb #bo_v_img img{ max-width:100%; height:auto; border-radius:10px; display:block; margin:0 auto 12px; }
.ptb #bo_v_con{ padding:28px; font-size:16px; line-height:1.85; color:var(--ptb-text); word-break:break-word; }
.ptb-sign{ padding:16px 28px; margin:0; border-top:1px solid var(--ptb-bg); font-size:14px; color:var(--ptb-muted); }
.ptb #bo_v_act{ display:flex; justify-content:center; gap:12px; padding:0 28px 32px; flex-wrap:wrap; }
.ptb-good, .ptb-nogood{ height:48px; padding:0 24px; border-radius:999px; font-size:15px; display:inline-flex; align-items:center; gap:8px; transition:background .15s, color .15s; }
.ptb-good{ border:2px solid var(--ptb-navy); background:#fff; color:var(--ptb-navy) !important; font-weight:700; }
a.ptb-good:hover{ background:var(--ptb-navy); color:#fff !important; }
.ptb-nogood{ border:1px solid var(--ptb-field); background:#fff; color:var(--ptb-muted) !important; }
a.ptb-nogood:hover{ border-color:var(--ptb-muted); }
.ptb-good svg, .ptb-nogood svg{ width:18px; height:18px; }
.ptb-act-msg{ display:none; text-align:center; font-size:13px; color:var(--ptb-sub); margin-top:6px; }

.ptb-section{ margin-top:16px; }
.ptb-section-head{ margin:0; padding:14px 24px; font-size:15px; font-weight:700; border-bottom:1px solid var(--ptb-bg); display:flex; align-items:center; gap:8px; color:var(--ptb-text); }
.ptb-rows{ list-style:none; margin:0; padding:0; }
.ptb-rows > li{ padding:14px 24px; border-top:1px solid var(--ptb-bg); font-size:14px; }
.ptb-rows > li:first-child{ border-top:0; }
.ptb-rows a{ color:var(--ptb-text); }
.ptb-rows a:hover{ color:var(--ptb-accent); }
.ptb-small{ font-size:12px; color:var(--ptb-muted); }
.ptb-nav > li{ display:flex; gap:16px; align-items:center; }
.ptb-nav .ptb-nav-lb{ flex:none; width:52px; font-size:13px; color:var(--ptb-muted); }
.ptb-nav a{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:15px; }

/* ---------- 댓글 ---------- */
.ptb-cmt{ background:#fff; border-radius:14px; padding:24px 28px; margin-top:16px; }
.ptb-cmt-title{ margin:0 0 8px; font-size:18px; font-weight:700; color:var(--ptb-text); }
.ptb-cmt-title span{ color:var(--ptb-accent); }
.ptb-cmt-item{ display:flex; gap:12px; padding:16px 0; border-top:1px solid var(--ptb-bg); }
.ptb-cmt-av{ width:32px; height:32px; border-radius:50%; overflow:hidden; background:var(--ptb-bg); color:var(--ptb-sub); flex:none; display:flex; align-items:center; justify-content:center; }
.ptb-cmt-av img{ width:100%; height:100%; object-fit:cover; display:block; }
.ptb-cmt-av svg{ width:16px; height:16px; }
.ptb-cmt-body{ flex:1; min-width:0; }
.ptb-cmt-head{ display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; font-size:13px; color:var(--ptb-muted); margin-bottom:4px; }
.ptb-cmt-head .ptb-cmt-name{ color:var(--ptb-text); font-size:14px; font-weight:700; }
.ptb-cmt-opt{ display:flex; gap:12px; margin-left:auto; }
.ptb-cmt-opt a{ color:var(--ptb-muted); font-size:13px; }
.ptb-cmt-opt a:hover{ color:var(--ptb-accent); }
.ptb-cmt-opt a.is-del:hover{ color:#B01E32; }
.ptb-cmt-text{ margin:0; font-size:15px; line-height:1.7; word-break:break-word; color:var(--ptb-text); }
.ptb-cmt-empty{ text-align:center; color:var(--ptb-muted); padding:32px 0; font-size:14px; border-top:1px solid var(--ptb-bg); margin:0; }
.ptb .bo_vc_w{ display:block; }
.ptb #bo_vc_w{ margin-top:16px; }
.ptb-cmt-form textarea{ width:100%; min-height:96px; border:1px solid var(--ptb-field); border-radius:10px; padding:14px; font-family:inherit; font-size:15px; resize:vertical; color:var(--ptb-text); background:#fff; }
.ptb-cmt-form textarea:focus, .ptb-input:focus{ outline:2px solid var(--ptb-navy); outline-offset:-1px; }
.ptb-cmt-foot{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:10px; }
.ptb-cmt-foot-l{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.ptb-cmt-foot-r{ display:flex; gap:14px; align-items:center; margin-left:auto; }
.ptb-charcnt{ display:block; text-align:right; font-size:12px; color:var(--ptb-muted); margin-bottom:4px; }

/* ---------- 입력 공통 ---------- */
.ptb-input, .ptb select.ptb-input{ height:48px; width:100%; border:1px solid var(--ptb-field); border-radius:8px; padding:0 14px; font-family:inherit; font-size:15px; background:#fff; color:var(--ptb-text); }
.ptb-input-inline{ width:auto; height:44px; }
.ptb-check{ display:inline-flex; align-items:center; gap:6px; font-size:14px; color:var(--ptb-sub); cursor:pointer; }
.ptb-check input{ width:16px; height:16px; accent-color:var(--ptb-navy); margin:0; }

/* ---------- 글쓰기 ---------- */
.ptb-write{ background:#fff; border-radius:14px; padding:28px; display:flex; flex-direction:column; gap:18px; }
.ptb-field{ display:flex; flex-direction:column; gap:6px; }
.ptb-label{ font-size:13px; font-weight:500; color:var(--ptb-sub); }
.ptb-grid2{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.ptb-opts{ display:flex; flex-wrap:wrap; gap:18px; list-style:none; margin:0; padding:4px 0; }
.ptb-write .wr_content textarea{ width:100%; min-height:340px; border:1px solid var(--ptb-field); border-radius:8px; padding:14px; font-family:inherit; font-size:15px; }
.ptb-file{ border:2px dashed #C3CADB; border-radius:10px; padding:16px; background:#F9FAFC; display:flex; flex-direction:column; gap:10px; }
.ptb-file input[type=file]{ font-size:14px; color:var(--ptb-muted); max-width:100%; }
.ptb-file input[type=file]::file-selector-button{ height:40px; padding:0 16px; border:0; border-radius:8px; background:var(--ptb-bg); color:var(--ptb-navy); font-weight:700; margin-right:12px; cursor:pointer; font-family:inherit; }
.ptb-file-del{ font-size:13px; color:#B01E32; }
.ptb-write-foot{ display:flex; justify-content:center; gap:10px; padding-top:18px; border-top:1px solid var(--ptb-bg); }
.ptb-write-foot .ptb-btn{ height:50px; padding:0 28px; font-size:15px; }
.ptb-help{ font-size:12px; color:var(--ptb-muted); margin:0; }

@media (max-width:768px){
    .ptb-view-head{ padding:20px 18px 16px; }
    .ptb-view-title{ font-size:20px; }
    .ptb #bo_v_con, .ptb #bo_v_img{ padding-left:18px; padding-right:18px; }
    .ptb-cmt{ padding:18px; }
    .ptb-write{ padding:18px; }
    .ptb-rows > li{ padding:12px 16px; }
}
