﻿/* bid_national skin - card UI (v1.7.0) */
:root{--bn-max-width:1200px;--bn-gutter:24px;--bn-pad-y:28px;}
.bn-wrap{max-width:var(--bn-max-width);margin:0 auto;padding:var(--bn-pad-y) var(--bn-gutter);}
.bn-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 1px 0 rgba(0,0,0,.02);padding:18px;}
.bn-card + .bn-card{margin-top:14px;}
.bn-title{font-size:22px;font-weight:800;letter-spacing:-.02em;margin:0;}
.bn-sub{color:#6b7280;font-size:13px;margin-top:6px;}
.bn-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;}
.bn-row .bn-col{flex:1 1 220px;min-width:220px;}
.bn-label{display:block;font-size:12px;color:#6b7280;margin-bottom:6px;}
.bn-input, .bn-select{width:100%;height:40px;border:1px solid #e5e7eb;border-radius:12px;padding:0 12px;background:#fff;}
.bn-textarea{width:100%;min-height:110px;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;background:#fff;}
.bn-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;}
.bn-btn{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 12px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;font-size:13px;}
.bn-btn.primary{background:#111827;color:#fff;border-color:#111827;}
.bn-btn.danger{background:#ef4444;color:#fff;border-color:#ef4444;}
.bn-badges{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
/* 제목 카드 하단: 배지 + 수정/삭제/목록 버튼 */
.bn-view-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:12px;}
.bn-view-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;}
.bn-view-actions .bn-btn{font-weight:700;}
.bn-btn.danger:hover{background:#dc2626;border-color:#dc2626;}
@media(max-width:600px){.bn-view-bottom{flex-direction:column;align-items:flex-start;}}
.bn-badge{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid #e5e7eb;background:#f9fafb;color:#111827;}
.bn-badge.ok{background:#ecfdf5;border-color:#a7f3d0;color:#065f46;}
.bn-badge.info{background:#fdf4ff;border-color:#bfdbfe;color:#7C3AED;}
.bn-badge.warn{background:#fffbeb;border-color:#fde68a;color:#92400e;}
.bn-badge.gray{background:#f3f4f6;border-color:#e5e7eb;color:#374151;}
.bn-badge.red{background:#fff1f2;border-color:#fecdd3;color:#9f1239;}
.bn-table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid #e5e7eb;border-radius:16px;}
.bn-table th{background:#f9fafb;color:#374151;font-size:12px;font-weight:800;text-align:left;padding:12px;border-bottom:1px solid #e5e7eb;}
.bn-table td{padding:12px;border-bottom:1px solid #f1f5f9;vertical-align:top;}
.bn-table tr:last-child td{border-bottom:none;}
.bn-tr-budget{background:#fff5f5;}
.bn-muted{color:#6b7280;}
.bn-kv{display:grid;grid-template-columns:160px 1fr;gap:10px;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;}
.bn-kv .k{background:#f9fafb;padding:12px;font-weight:800;font-size:12px;color:#374151;border-bottom:1px solid #e5e7eb;}
.bn-kv .v{padding:12px;border-bottom:1px solid #f1f5f9;}
.bn-kv .k:last-child,.bn-kv .v:last-child{border-bottom:none;}
.bn-section-title{font-size:16px;font-weight:900;margin:0 0 10px 0;}
.bn-split{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
@media (max-width: 860px){.bn-split{grid-template-columns:1fr;}.bn-row .bn-col{min-width:100%;}}
.bn-details{border:1px dashed #e5e7eb;border-radius:16px;padding:12px;background:#fafafa;}
.bn-details summary{cursor:pointer;font-weight:800;font-size:13px;}
.bn-pre{white-space:pre-wrap;word-break:break-word;font-size:12px;color:#111827;margin:10px 0 0 0;}
.bn-pre--pretty{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:14px;line-height:1.7;font-size:12.5px;color:#1e293b;max-height:480px;overflow:auto;}


/* v1.7.1: filter rows top-aligned */
.bn-row.top{align-items:flex-start;}
.bn-row.top .bn-col{display:flex;flex-direction:column;}

/* v1.7.1: normalize gnuboard action buttons inside bn-actions */
.bn-actions a,
.bn-actions button{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 12px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;font-size:13px;line-height:1;cursor:pointer;text-decoration:none;}
.bn-actions a:hover{filter:brightness(.98);}
.bn-actions a#bo_v_list{background:#fff;color:#111827;border-color:#e5e7eb;}
.bn-actions a#bo_v_mod{background:#111827;color:#fff;border-color:#111827;}
.bn-actions a#bo_v_del{background:#ef4444;color:#fff;border-color:#ef4444;}

/* v1.7.1: table header/padding tune */
.bn-table th{padding:14px 12px;}
.bn-table td{padding:14px 12px;}
.bn-card{padding:20px;}


/* v1.7.2: compact filter row (label: control inline) */
.bn-field{display:flex;align-items:center;gap:10px;flex:1 1 260px;min-width:260px;}
.bn-field .bn-label{margin:0;min-width:82px;font-size:12px;white-space:nowrap;}
.bn-field .bn-input,.bn-field .bn-select{flex:1;}
.bn-filter-grid{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;}
.bn-filter-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex:0 0 auto;}
.bn-help{margin-top:8px;color:#6b7280;font-size:12px;}
.bn-keywords{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #e5e7eb;border-radius:14px;padding:10px 12px;background:#fff;}
.bn-keywords label{display:inline-flex;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:999px;padding:6px 10px;font-size:12px;background:#f9fafb;cursor:pointer;}
.bn-keywords input{width:14px;height:14px;}
.bn-banner{max-width:var(--bn-max-width);margin:0 auto 14px auto;padding:0 var(--bn-gutter);}
.bn-card.compact{padding:16px;}


/* v1.7.3: tighter cards */
.bn-card{padding:16px;}
.bn-section-title{margin-bottom:10px;}
.bn-title{margin-bottom:4px;}
.bn-table th{padding:12px 10px;}
.bn-table td{padding:12px 10px;}

/* v1.7.3: write form grid (2 columns) */
.bn-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;}
@media (max-width: 900px){.bn-form-grid{grid-template-columns:1fr;}}
.bn-fieldrow{display:flex;align-items:center;gap:10px;}
.bn-fieldrow .bn-label{margin:0;min-width:140px;font-size:12px;white-space:nowrap;}
.bn-fieldrow .bn-input,.bn-fieldrow .bn-select,.bn-fieldrow .bn-textarea{flex:1;}
.bn-fieldrow.full{grid-column:1 / -1;align-items:flex-start;}
.bn-fieldrow.full .bn-label{padding-top:10px;}
.bn-textarea{min-height:160px;}
.bn-kwwrap{display:flex;flex-direction:column;gap:10px;}
.bn-kwbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.bn-kwbar .bn-input{max-width:260px;}
.bn-kwbar .bn-btn{height:34px;padding:0 10px;}


/* v1.7.4: keyword row one-line label + toolbar */
.bn-kwrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;}
.bn-kwrow .bn-label{margin:0;min-width:82px;font-size:12px;white-space:nowrap;}
.bn-kwrow .bn-kwbar{margin:0;display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.bn-kwrow .bn-kwbar .bn-input{max-width:320px;}
.bn-help{margin-top:8px;}

/* datetime-local inputs */
.bn-datetime{padding-right:10px;}



/* v1.7.5: keep keyword search + buttons on one line */
.bn-kwbar{flex-wrap:nowrap;}
.bn-kwbar .bn-input{width:260px;max-width:none;}
@media (max-width: 720px){
  .bn-kwbar{flex-wrap:wrap;}
  .bn-kwbar .bn-input{width:100%;}
}



/* v1.7.6: keyword action chips inside box */
.bn-keywords .bn-kw-action{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid #e5e7eb;border-radius:999px;
  padding:6px 10px;font-size:12px;
  background:#fff;cursor:pointer;
}
.bn-keywords .bn-kw-action:hover{filter:brightness(.98);}
.bn-keywords .bn-kw-action.primary{background:#111827;color:#fff;border-color:#111827;}
.bn-keywords .bn-kw-action.secondary{background:#fff;color:#111827;border-color:#e5e7eb;}


/* v1.7.7: kw action chip strong (override theme buttons) */
#bn_kw_box .bn-kw-action{
  -webkit-appearance:none;appearance:none;
  display:inline-flex;align-items:center;justify-content:center;
  height:32px; line-height:32px;
  border:1px solid #e5e7eb !important;
  border-radius:999px !important;
  padding:0 12px !important;
  font-size:12px !important;
  background:#f9fafb !important;
  color:#111827 !important;
  cursor:pointer;
  box-shadow:none !important;
}
#bn_kw_box .bn-kw-action.primary{
  background:#111827 !important;
  border-color:#111827 !important;
  color:#fff !important;
}
#bn_kw_box .bn-kw-action.secondary{
  background:#fff !important;
  border-color:#e5e7eb !important;
  color:#111827 !important;
}
#bn_kw_box .bn-kw-action:hover{filter:brightness(.98);}

/* spacing between keyword search row and chips box */
.bn-kwrow{margin-bottom:10px;}


/* v1.7.8: kw spacing (make it clearly separated) */
.bn-kwrow{margin-bottom:14px;}
#bn_kw_box{margin-top:0;} /* keep box tight internally */

/* v1.8.0: container gutter for consistent left edge */


/* v1.8.3: banner width fix (when banner is inside bn-wrap, avoid double gutter) */
.bn-wrap .bn-banner{max-width:none;margin:0 0 14px 0;padding:0;}


/* ═══════════════════════════════════════════════════════════════════
   pc_support_guide 공유 스타일 – topbar / card-list / buttons / pager
   (bid_national 스킨에서도 동일 클래스 사용)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Topbar (상단 타이틀 영역) ─────────────────────────────────── */
.pcest-topbar{
  display:flex;justify-content:space-between;align-items:center;
  padding:0 0 20px 0;flex-wrap:wrap;gap:12px;
}
.pcest-title{
  font-size:24px;font-weight:900;letter-spacing:-.03em;color:#111827;margin:0;
}
.pcest-actions{display:flex;gap:8px;flex-wrap:wrap;}

/* ── 버튼 공통 ─────────────────────────────────────────────────── */
.pcest-btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:6px;height:36px;padding:0 14px;border-radius:20px;
  border:1px solid #e5e7eb;background:#fff;
  font-size:13px;font-weight:700;color:#374151;
  text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s;
}
.pcest-btn.primary{background:#111827;color:#fff;border-color:#111827;}
.pcest-btn.primary:hover{background:#1f2937;border-color:#1f2937;}
.pcest-btn:hover{background:#f3f4f6;}
.pcest-btn.small{height:30px;padding:0 10px;font-size:12px;border-radius:16px;}

/* ── 결과 건수 헤더 ────────────────────────────────────────────── */
.pcsg-result-head{
  font-size:15px;color:#6b7280;margin:18px 0 10px;padding:0 4px;
}
.pcsg-result-head strong{font-size:20px;font-weight:900;color:#111827;margin-right:3px;}
.pcsg-result-head span{font-size:13px;color:#9ca3af;margin-left:6px;}

/* ── 카드 목록 ─────────────────────────────────────────────────── */
.pcsg-list{display:flex;flex-direction:column;gap:12px;}
.pcsg-card{
  display:flex;justify-content:space-between;align-items:flex-start;gap:16px;
  padding:18px 20px;background:#fff;
  border:1px solid #e5e7eb;border-radius:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  transition:box-shadow .15s,border-color .15s;
}
.pcsg-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.08);border-color:#d1d5db;}
.pcsg-card__main{flex:1;min-width:0;}
.pcsg-card__badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;}
.pcsg-card__badges span{
  display:inline-flex;align-items:center;height:24px;padding:0 9px;
  border-radius:999px;font-size:11px;font-weight:700;
  background:#f3f4f6;border:1px solid #e5e7eb;color:#374151;
}
.pcsg-card__badges span.multi{background:#fdf4ff;border-color:#bfdbfe;color:#7C3AED;}
.pcsg-card__badges span.serial{background:#ecfdf5;border-color:#a7f3d0;color:#065f46;}
/* bn-badge 클래스도 카드 뱃지 안에서 동일 모양 유지 */
.pcsg-card__badges .bn-badge{height:24px;padding:0 9px;font-size:11px;}
.pcsg-card h3{
  margin:0 0 6px;font-size:16px;font-weight:800;letter-spacing:-.02em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pcsg-card h3 a{color:#111827;text-decoration:none;}
.pcsg-card h3 a:hover{color:#9333EA;}
.pcsg-card__meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:#6b7280;margin-top:6px;}
.pcsg-card__meta span::before{content:'';display:inline-block;}
.pcsg-card__links{
  display:flex;flex-direction:column;align-items:flex-end;gap:6px;
  flex-shrink:0;
}

/* ── 빈 목록 ───────────────────────────────────────────────────── */
.pcsg-empty{
  text-align:center;padding:48px 16px;color:#9ca3af;font-size:14px;
  background:#fff;border:1px solid #e5e7eb;border-radius:16px;
}

/* ── 페이저 ────────────────────────────────────────────────────── */
.pcest-pager{ margin:20px 0 0; display:flex; justify-content:center; align-items:center; gap:4px; flex-wrap:wrap; }
.pcest-pager .sound_only{ display:none !important; }
.pcest-pager .pg_wrap{ background:none; border:none; padding:0; margin:0; }
.pcest-pager .pg{ display:flex; align-items:center; gap:4px; }
.pcest-pager .pg a,
.pcest-pager .pg span,
.pcest-pager .pg strong{
  min-width:30px; height:30px; line-height:30px;
  padding:0 6px;
  border:1px solid #ddd;
  border-radius:4px;
  background:#fff;
  color:#555;
  font-size:12px;
  font-weight:400;
  text-align:center;
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none;
  transition:all .15s;
}
.pcest-pager .pg a:hover{ background:#f5f5f5; border-color:#2b2b2b; color:#2b2b2b; }
.pcest-pager .pg .pg_current,
.pcest-pager .pg strong{ background:#2b2b2b; border-color:#2b2b2b; color:#fff; font-weight:700; }
.pcest-pg-total{ font-size:11px; color:#999; white-space:nowrap; margin-left:6px; }

@media (max-width: 600px){
  .pcsg-card{flex-direction:column;}
  .pcsg-card__links{flex-direction:row;align-items:center;}
  .pcest-topbar{padding-bottom:14px;}
  .pcest-title{font-size:20px;}
}

/* ── 한 줄 필터 바 ───────────────────────────────────────────── */
.bn-filter-row{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
}
.bn-filter-row .bn-label{
  font-size:12px; color:#6b7280; font-weight:700;
}
.bn-filter-select{
  width:auto !important; min-width:100px; height:38px; flex:0 0 auto;
}
.bn-filter-date{
  width:auto !important; min-width:130px; height:38px; flex:0 0 auto;
}
.bn-filter-stx{
  flex:1 1 200px; min-width:160px; max-width:320px; height:38px;
}
@media(max-width:640px){
  .bn-filter-row{ gap:6px; }
  .bn-filter-date{ min-width:110px; }
}

/* ── 날짜 범위 필드 (From ~ To 한 줄) ──────────────────────────── */
.bn-field--daterange{flex:2 1 320px;}
.bn-field--daterange .bn-input{flex:1;min-width:100px;}
.bn-date-sep{flex-shrink:0;color:#9ca3af;font-size:13px;padding:0 4px;}

/* ── 키워드 빠른필터 바 ─────────────────────────────────────────── */
.bn-catbar{
  display:flex;flex-wrap:wrap;gap:8px;
  margin:14px 0 4px;
  padding:4px 0;
}
.bn-cattag{
  display:inline-flex;align-items:center;gap:5px;
  height:34px;padding:0 12px;border-radius:999px;
  border:1px solid #e8eaf0;background:#fff;
  font-size:13px;font-weight:400;color:#303549;
  text-decoration:none;cursor:pointer;
  transition:background .12s,border-color .12s,color .12s;
  white-space:nowrap;
}
.bn-cattag:hover{background:#f6f7ff;border-color:#dfe3f5;}
.bn-cattag.active{background:rgba(124,58,237,.10);border-color:rgba(124,58,237,.35);color:#5b21b6;}
.pcsg-card__meta .meta-date{color:#9ca3af;}
.pcsg-card__meta .meta-deadline{color:#dc2626;font-weight:700;}
@media (max-width:600px){.bn-catbar{gap:6px;padding:10px 12px;}}

/* ===== 용어 툴팁 ===== */
.bn-tip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px; height:16px;
  border-radius:999px;
  background:#e5e7eb;
  color:#6b7280;
  font-size:10px; font-weight:900;
  margin-left:5px;
  cursor:pointer;
  position:relative;
  vertical-align:middle;
  flex-shrink:0;
  line-height:1;
  user-select:none;
}
.bn-tip::after{
  content: attr(data-tip);
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%);
  min-width:240px;
  max-width:320px;
  background:#1e293b;
  color:#f1f5f9;
  font-size:12px; font-weight:500;
  line-height:1.6;
  padding:10px 13px;
  border-radius:10px;
  white-space:normal;
  word-break:keep-all;
  pointer-events:none;
  opacity:0;
  transition:opacity .15s;
  z-index:100;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}
.bn-tip::before{
  content:"";
  position:absolute;
  bottom:calc(100% + 2px);
  left:50%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color:#1e293b;
  opacity:0;
  transition:opacity .15s;
  z-index:100;
  pointer-events:none;
}
.bn-tip:hover::after,
.bn-tip:hover::before{ opacity:1; }
/* 화면 왼쪽 끝에 붙을 때 오른쪽으로 */
.bn-tbl td:nth-child(2) .bn-tip::after{ left:0; transform:none; }
.bn-tbl td:nth-child(2) .bn-tip::before{ left:8px; transform:none; }

/* 개찰장소 나라장터 링크 */
.bn-place-link{
  color:#9333EA; font-weight:700; text-decoration:none;
}
.bn-place-link:hover{ text-decoration:underline; }

/* bn-tbl: 공고 상세보기 원문 테이블 */
.bn-tbl{width:100%;border-collapse:collapse;font-size:13px;}
.bn-tbl th,.bn-tbl td{padding:10px 12px;border:1px solid #e5e7eb;vertical-align:top;text-align:left;}
.bn-tbl th{background:#f9fafb;font-weight:700;color:#374151;width:140px;white-space:nowrap;}
.bn-tbl tr:first-child th:first-child{border-top-left-radius:8px;}
.bn-tbl tr:first-child td:last-child{border-top-right-radius:8px;}
.bn-tbl tr:last-child th:first-child{border-bottom-left-radius:8px;}
.bn-tbl tr:last-child td:last-child{border-bottom-right-radius:8px;}
@media (max-width:640px){
  .bn-tbl,.bn-tbl tbody,.bn-tbl tr,.bn-tbl th,.bn-tbl td{display:block;width:100%;}
  .bn-tbl th{border-bottom:none;padding-bottom:4px;}
  .bn-tbl td{border-top:none;padding-top:4px;padding-left:14px;}
}


/* ── 태그 ──────────────────────────────────────────────────────── */
.bn-tag-row{display:flex;flex-wrap:wrap;gap:8px;}
.bn-tag{
  display:inline-flex;align-items:center;
  height:28px;padding:0 12px;
  border-radius:999px;
  border:1px solid #e5e7eb;background:#f9fafb;
  font-size:12px;font-weight:700;color:#374151;
  text-decoration:none;
}
.bn-tag:hover{background:#f3f4f6;border-color:#d1d5db;}

/* ── 관련링크 ───────────────────────────────────────────────────── */
.bn-link-row{
  display:flex;align-items:center;gap:8px;
  padding:8px 0;border-bottom:1px solid #f1f5f9;font-size:13px;
}
.bn-link-row:last-child{border-bottom:none;}
.bn-link-row a{color:#9333EA;text-decoration:none;word-break:break-all;}
.bn-link-row a:hover{text-decoration:underline;}

/* ── 하단 액션 바 ───────────────────────────────────────────────── */
.bn-view-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.bn-view-nav > div{display:flex;gap:6px;}

/* ── 이전글/다음글 ──────────────────────────────────────────────── */
.bn-prevnext{padding:0;}
.bn-prevnext__row{
  display:flex;align-items:center;gap:12px;
  padding:12px 16px;border-bottom:1px solid #f1f5f9;
}
.bn-prevnext__row:last-child{border-bottom:none;}
.bn-prevnext__label{
  flex-shrink:0;min-width:60px;
  font-size:12px;font-weight:800;color:#6b7280;
}
.bn-prevnext__link{
  font-size:13px;color:#111827;text-decoration:none;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.bn-prevnext__link:hover{color:#9333EA;}

/* ── 댓글 ───────────────────────────────────────────────────────── */
.bn-comments{padding:0;}
.bn-cmt-heading{
  padding:14px 16px 12px;margin:0;
  font-size:14px;font-weight:900;color:#111827;
  border-bottom:1px solid #f1f5f9;
}
.bn-cmt-count{font-size:13px;color:#6b7280;font-weight:700;margin-left:4px;}
.bn-cmt-list{margin:0;padding:0;list-style:none;}
.bn-cmt-item{
  padding:14px 16px;
  border-bottom:1px solid #f1f5f9;
}
.bn-cmt-item:last-child{border-bottom:none;}
.bn-cmt-item.is-re{
  padding-left:32px;
  background:#fafafa;
  border-left:3px solid #e5e7eb;
}
.bn-cmt-meta{display:flex;gap:10px;align-items:center;margin-bottom:6px;}
.bn-cmt-name{font-size:13px;font-weight:900;color:#111827;}
.bn-cmt-date{font-size:12px;color:#9ca3af;}
.bn-cmt-content{font-size:13px;line-height:1.65;color:#111827;}
.bn-cmt-actions{display:flex;gap:6px;margin-top:8px;}
.bn-cmt-btn{
  display:inline-flex;align-items:center;
  height:24px;padding:0 10px;
  border-radius:999px;border:1px solid #e5e7eb;
  background:#f9fafb;font-size:11px;font-weight:700;color:#374151;
  text-decoration:none;cursor:pointer;
  appearance:none;
}
.bn-cmt-btn:hover{background:#f3f4f6;}
.bn-cmt-btn.danger{color:#b91c1c;border-color:#fecaca;background:#fff;}
.bn-cmt-empty{padding:20px 16px;font-size:13px;color:#9ca3af;margin:0;}
/* 댓글 작성 폼 */
.bn-cmt-form{
  padding:14px 16px;
  border-top:1px solid #f1f5f9;
  background:#fafafa;
}
.bn-cmt-guest{display:flex;gap:8px;margin-bottom:8px;}
.bn-cmt-guest .bn-input{height:36px;flex:1;border:1px solid #e5e7eb;border-radius:10px;padding:0 10px;font-size:13px;background:#fff;}
.bn-cmt-textarea{
  width:100%;min-height:80px;
  border:1px solid #e5e7eb;border-radius:12px;
  padding:10px 12px;font-size:13px;
  resize:vertical;background:#fff;outline:none;
  display:block;
}
.bn-cmt-textarea:focus{border-color:rgba(147,51,234,.45);box-shadow:0 0 0 3px rgba(147,51,234,.08);}
.bn-cmt-form-foot{display:flex;align-items:center;justify-content:space-between;margin-top:8px;}
.bn-cmt-charcount{font-size:12px;color:#9ca3af;}

.mb-pill-cnt{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 5px;border-radius:999px;background:#e5e7eb;color:#374151;font-size:11px;font-weight:700;}
.bn-cattag.active .mb-pill-cnt{background:rgba(124,58,237,.2);color:#5b21b6;}
/* ─── Dark Mode ────────────────────────────────────────── */
html.dark-mode .bn-wrap { color: #f4f4f5; }
html.dark-mode .bn-card { background: #18181b; border-color: rgba(255,255,255,.07); }
html.dark-mode .bn-title { color: #f4f4f5; }
html.dark-mode .bn-sub,
html.dark-mode .bn-label,
html.dark-mode .bn-muted,
html.dark-mode .bn-help { color: #a1a1aa; }
html.dark-mode .bn-input,
html.dark-mode .bn-select,
html.dark-mode .bn-textarea { background: #27272a; color: #f4f4f5; border-color: rgba(255,255,255,.1); }
html.dark-mode .bn-btn { background: #18181b; border-color: rgba(255,255,255,.1); color: #d4d4d8; }
html.dark-mode .bn-btn.primary { background: #e4e4e7; color: #09090b; }
html.dark-mode .bn-table { border-color: rgba(255,255,255,.07); }
html.dark-mode .bn-table th { background: #141416; color: #a1a1aa; border-bottom-color: rgba(255,255,255,.07); }
html.dark-mode .bn-table td { border-bottom-color: rgba(255,255,255,.05); }
html.dark-mode .bn-tr-budget { background: rgba(239,68,68,.08); }
html.dark-mode .bn-kv { border-color: rgba(255,255,255,.07); }
html.dark-mode .bn-kv .k { background: #141416; color: #a1a1aa; border-bottom-color: rgba(255,255,255,.07); }
html.dark-mode .bn-details { background: #141416; border-color: rgba(255,255,255,.07); }
html.dark-mode .bn-pre { color: #d4d4d8; }
html.dark-mode .bn-pre--pretty { background: #141416; border-color: rgba(255,255,255,.07); color: #d4d4d8; }
html.dark-mode .bn-badge { background: #27272a; border-color: rgba(255,255,255,.08); color: #a1a1aa; }
html.dark-mode .bn-badge.ok  { background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.2); color: #4ade80; }
html.dark-mode .bn-badge.info { background: rgba(147,51,234,.12); border-color: rgba(147,51,234,.2); color: #c084fc; }
html.dark-mode .bn-badge.warn { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.2); color: #fbbf24; }
html.dark-mode .bn-badge.red  { background: rgba(159,18,57,.12); border-color: rgba(159,18,57,.2); color: #fb7185; }
html.dark-mode .bn-keywords { background: #27272a; border-color: rgba(255,255,255,.1); }
html.dark-mode .bn-keywords label { background: #3f3f46; border-color: rgba(255,255,255,.1); color: #d4d4d8; }
html.dark-mode .bn-actions button,
html.dark-mode .bn-actions a#bo_v_list { background: #18181b; color: #d4d4d8; border-color: rgba(255,255,255,.1); }
html.dark-mode .bn-actions a#bo_v_mod { background: #27272a !important; color: #d4d4d8 !important; border-color: rgba(255,255,255,.1) !important; }

/* ─── Dark Mode 보완 ────────────────────────────────────────── */

/* primary 버튼 흰색 수정 */
html.dark-mode .bn-btn.primary { background: #27272a !important; color: #d4d4d8 !important; border-color: rgba(255,255,255,.1) !important; }
html.dark-mode .bn-btn.primary:hover { background: #3f3f46 !important; }
html.dark-mode .bn-btn.danger { background: rgba(239,68,68,.15) !important; border-color: rgba(239,68,68,.3) !important; color: #f87171 !important; }

/* 섹션 제목 */
html.dark-mode .bn-section-title { color: #f4f4f5; }

/* bn-tbl (보기 원문 테이블) */
html.dark-mode .bn-tbl th,
html.dark-mode .bn-tbl td { border-color: rgba(255,255,255,.07); }
html.dark-mode .bn-tbl th { background: #141416 !important; color: #a1a1aa !important; }
html.dark-mode .bn-tbl td { color: #d4d4d8; }

/* 툴팁 아이콘 */
html.dark-mode .bn-tip { background: #3f3f46; color: #a1a1aa; }

/* badge.gray */
html.dark-mode .bn-badge.gray { background: #27272a; border-color: rgba(255,255,255,.08); color: #a1a1aa; }

/* 태그 */
html.dark-mode .bn-tag { background: #27272a; border-color: rgba(255,255,255,.1); color: #d4d4d8; }
html.dark-mode .bn-tag:hover { background: #3f3f46; }

/* 관련링크 */
html.dark-mode .bn-link-row { border-bottom-color: rgba(255,255,255,.07); }

/* 이전글/다음글 */
html.dark-mode .bn-prevnext__row { border-bottom-color: rgba(255,255,255,.07); }
html.dark-mode .bn-prevnext__label { color: #71717a; }
html.dark-mode .bn-prevnext__link { color: #d4d4d8; }

/* 댓글 영역 */
html.dark-mode .bn-cmt-heading { color: #f4f4f5; border-bottom-color: rgba(255,255,255,.07); }
html.dark-mode .bn-cmt-item { border-bottom-color: rgba(255,255,255,.07); }
html.dark-mode .bn-cmt-item.is-re { background: #141416; border-left-color: rgba(255,255,255,.1); }
html.dark-mode .bn-cmt-name { color: #f4f4f5; }
html.dark-mode .bn-cmt-content { color: #d4d4d8; }
html.dark-mode .bn-cmt-btn { background: #27272a; border-color: rgba(255,255,255,.1); color: #d4d4d8; }
html.dark-mode .bn-cmt-btn:hover { background: #3f3f46; }
html.dark-mode .bn-cmt-btn.danger { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.25); color: #f87171; }
html.dark-mode .bn-cmt-form { background: #141416; border-top-color: rgba(255,255,255,.07); }
html.dark-mode .bn-cmt-guest .bn-input { background: #27272a; border-color: rgba(255,255,255,.1); color: #f4f4f5; }
html.dark-mode .bn-cmt-textarea { background: #27272a; border-color: rgba(255,255,255,.1); color: #f4f4f5; }

/* 댓글 등록 버튼 */
html.dark-mode #bo_vc_w button[type="submit"],
html.dark-mode #reply_box button[type="submit"] {
    background: #27272a !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: #d4d4d8 !important;
}

/* pcest-topbar 제목 */
html.dark-mode .pcest-title { color: #f4f4f5; }

/* pcest-btn */
html.dark-mode .pcest-btn { background: #27272a; border-color: rgba(255,255,255,.1); color: #d4d4d8; }
html.dark-mode .pcest-btn:hover { background: #3f3f46; color: #f4f4f5; }
html.dark-mode .pcest-btn.primary { background: #27272a !important; border-color: rgba(255,255,255,.1) !important; color: #d4d4d8 !important; }

/* 결과 건수 */
html.dark-mode .pcsg-result-head { color: #71717a; }
html.dark-mode .pcsg-result-head strong { color: #f4f4f5; }

/* 카드 목록 */
html.dark-mode .pcsg-card { background: #18181b; border-color: rgba(255,255,255,.07); }
html.dark-mode .pcsg-card:hover { border-color: rgba(255,255,255,.12); }
html.dark-mode .pcsg-card h3 a { color: #f4f4f5; }
html.dark-mode .pcsg-card__meta { color: #a1a1aa; }
html.dark-mode .pcsg-card__meta .meta-date { color: #71717a; }
html.dark-mode .pcsg-card__badges span { background: #27272a; border-color: rgba(255,255,255,.1); color: #a1a1aa; }
html.dark-mode .pcsg-card__badges span.multi { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.25); color: #c084fc; }
html.dark-mode .pcsg-card__badges span.serial { background: rgba(4,120,87,.12); border-color: rgba(4,120,87,.25); color: #6ee7b7; }

/* 빈 목록 */
html.dark-mode .pcsg-empty { background: #18181b; border-color: rgba(255,255,255,.07); color: #71717a; }

/* 페이지네이션 */
html.dark-mode .pcest-pager .pg a,
html.dark-mode .pcest-pager .pg span { background: #18181b !important; border-color: rgba(255,255,255,.1) !important; color: #a1a1aa !important; }
html.dark-mode .pcest-pager .pg .pg_current,
html.dark-mode .pcest-pager .pg strong { background: #e4e4e7 !important; border-color: #e4e4e7 !important; color: #09090b !important; }

/* 필터 바 */
html.dark-mode .bn-filter-row .bn-label { color: #a1a1aa; }
html.dark-mode .bn-date-sep { color: #71717a; }

/* 키워드 카테고리 바 */
html.dark-mode .bn-cattag { background: #27272a; border-color: rgba(255,255,255,.1); color: #a1a1aa; }
html.dark-mode .bn-cattag:hover { background: #3f3f46; }
html.dark-mode .bn-cattag.active { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.3); color: #c084fc; }
html.dark-mode .mb-pill-cnt { background: #3f3f46; color: #a1a1aa; }
html.dark-mode .bn-cattag.active .mb-pill-cnt { background: rgba(124,58,237,.2); color: #c084fc; }

/* 키워드 박스 액션 칩 */
html.dark-mode #bn_kw_box .bn-kw-action { background: #27272a !important; border-color: rgba(255,255,255,.1) !important; color: #d4d4d8 !important; }
html.dark-mode #bn_kw_box .bn-kw-action.primary { background: #3f3f46 !important; border-color: rgba(255,255,255,.15) !important; color: #f4f4f5 !important; }
html.dark-mode #bn_kw_box .bn-kw-action.secondary { background: #27272a !important; border-color: rgba(255,255,255,.1) !important; color: #d4d4d8 !important; }
