@charset "utf-8";
/* ============================================================
   thecatch.kr 커뮤니티 게시판 스타일
   · /css/common.css 의 디자인 토큰(--brand, --pop, --ink, --line ...) 재사용
   · common.css 뒤에 로드
   ============================================================ */

/* ---------- 서브 히어로 ---------- */
.subhero{
  position:relative;overflow:clip;padding:46px 0 44px;
  background:radial-gradient(620px 300px at 88% -20px,rgba(255,91,46,.28),transparent 58%),
             linear-gradient(120deg,var(--brand) 0%,var(--brand-dk) 70%,#0f1e6b 130%);
  color:#fff;
}
.subhero .crumb{font-size:13px;color:rgba(255,255,255,.9);margin-bottom:14px;font-weight:500}
.subhero .crumb a{color:#fff;text-decoration:underline;text-underline-offset:3px;font-weight:600}
.subhero .crumb span{margin:0 7px;color:rgba(255,255,255,.6)}
.subhero h2{font-size:clamp(26px,4.2vw,40px);font-weight:800;line-height:1.16;letter-spacing:-1.2px;color:#fff;margin:0}
.subhero h2 .cc{color:#ffd7c9}
.subhero p{margin:14px 0 0;color:rgba(255,255,255,.92);font-size:15px;max-width:640px}

/* ---------- 공통 래퍼 ---------- */
.bwrap{padding:34px 0 72px}
.bbtn{
  display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 20px;
  border-radius:12px;border:1px solid var(--line);background:var(--base);color:var(--ink);
  font-weight:700;font-size:14px;font-family:inherit;cursor:pointer;transition:.15s;white-space:nowrap;text-decoration:none
}
.bbtn:hover{border-color:var(--brand);color:var(--brand)}
.bbtn.bwrite,.bbtn.bwrite:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.bbtn.bdel{color:var(--pop);border-color:#ffd9cd}
.bbtn.bdel:hover{background:var(--pop);border-color:var(--pop);color:#fff}

/* ---------- 검색 줄: 글쓰기(왼쪽) + 검색(가운데) ---------- */
.btoolbar{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.btoolbar .bwrite{flex:none}
.btoolbar .bsearch{flex:1;min-width:0;margin-bottom:0}
.bsearch{display:flex;gap:8px;justify-content:center}
.bsearch input{flex:0 1 340px;min-width:0;height:44px;border:1px solid var(--line);border-radius:12px;padding:0 16px;font-size:14px;font-family:inherit;background:var(--base);color:var(--ink)}
.bsearch input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-sf)}
.bsearch .bbtn{flex:none}

/* ---------- 목록 테이블 ---------- */
.btable{border-top:2px solid var(--brand)}
.bhead,.brow{display:grid;grid-template-columns:70px 1fr 108px 96px 66px;align-items:center;gap:8px}
.bhead{padding:14px 12px;font-size:13px;font-weight:800;color:var(--ink-3);border-bottom:1px solid var(--line);background:var(--soft)}
.brow{padding:15px 12px;border-bottom:1px solid var(--line);color:var(--ink);transition:background .12s;text-decoration:none}
.brow:hover{background:var(--brand-sf)}
.brow .c-ti{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bhead .c-no,.bhead .c-ht,.bhead .c-dt,.bhead .c-wr,
.brow .c-no,.brow .c-ht,.brow .c-dt,.brow .c-wr{text-align:center;font-size:13px;color:var(--ink-3)}
.bempty{padding:56px 0;text-align:center;color:var(--ink-3);border-bottom:1px solid var(--line)}

/* ---------- 하단: 페이징(가운데) ---------- */
.bbottom{margin-top:24px}
.bpage{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.bpage a{
  min-width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:10px;font-weight:700;font-size:14px;color:var(--ink-2);
  background:var(--base);text-decoration:none;transition:.12s
}
.bpage a:hover{border-color:var(--brand);color:var(--brand)}
.bpage a.on{background:var(--brand);border-color:var(--brand);color:#fff}

/* ---------- 글보기 ---------- */
.bview{
  background:var(--base);border:1px solid var(--line);border-radius:var(--r);
  padding:28px 26px;font-size:15.6px;line-height:1.85;color:var(--ink-2);min-height:180px;
  box-shadow:var(--shadow-sm);overflow-wrap:anywhere
}
.bview img{max-width:100%;height:auto}
.bview p{margin:0 0 12px}
.bview a{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.bview-act{display:flex;justify-content:space-between;gap:10px;margin:18px 0 4px}
.bview-act>div{display:flex;gap:8px}

/* ---------- 글쓰기 폼 ---------- */
.bform{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.bform label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:14px;color:var(--ink)}
.bform input,.bform textarea{border:1px solid var(--line);border-radius:12px;padding:12px 15px;font-size:15px;background:var(--base);font-family:inherit;color:var(--ink)}
.bform input{height:48px;padding:0 15px}
.bform input:focus,.bform textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-sf)}
.bform input[readonly]{background:var(--soft);color:var(--ink-3)}
.lbl-hint{font-size:12px;font-weight:600;color:var(--ink-3)}
.binfo-notice{background:var(--pop-sf);border:1px solid #ffd9cd;color:#c23c17;border-radius:12px;padding:12px 16px;font-size:13px;line-height:1.65}
.binfo-notice b{font-weight:800}
.robotwrap{margin:2px 0 4px}
.bform-act{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}

/* ---------- 반응형 ---------- */
@media (max-width:720px){
  .btable{border-top:2px solid var(--brand)}
  .bhead{display:none}
  .brow{grid-template-columns:1fr auto;gap:4px 10px;padding:14px 6px}
  .brow .c-ti{grid-column:1 / -1;order:1;white-space:normal}
  .brow .c-no{display:none}
  .brow .c-wr{order:2;text-align:left}
  .brow .c-dt{order:3}
  .brow .c-ht{display:none}          /* 모바일: 조회수 숨김 */
  /* 페이징: 현재 기준 5개만 + 버튼 축소 */
  .bpage{width:100%}
  .bpage a{min-width:32px;height:32px;font-size:13px;border-radius:9px}
  .bpage a.pfar{display:none}
}
@media (max-width:380px){
  .bpage{gap:5px}
  .bpage a{min-width:28px;height:28px;font-size:12px}
}

/* ============================================================
   SmartEditor2 모바일 가로 넘침 방지 (글쓰기·수정)
   · 툴바가 nowrap 한 줄이라 화면을 넘김 → 줄바꿈 허용
   · 편집 영역/컨테이너를 100% 폭으로 고정
   ============================================================ */
#smart_editor2{max-width:100%!important;box-sizing:border-box}
#smart_editor2 .se2_input_wysiwyg,
#smart_editor2 .se2_input_syntax,
#smart_editor2 iframe{max-width:100%}
@media (max-width:720px){
  #smart_editor2 .se2_tool{overflow:visible}
  /* 툴바 줄들이 다음 줄로 흐르도록 nowrap/float 해제 */
  #smart_editor2 .se2_text_tool ul{white-space:normal;float:none;display:inline-block;vertical-align:top}
  #smart_editor2 .se2_text_tool li{float:left}
  /* 오른쪽에 고정돼 있던 정렬/더보기 묶음을 흐름 안으로 */
  #smart_editor2 .se2_text_tool .se2_multy{position:static;float:none;display:inline-block;vertical-align:top;border-left:0}
}
