/* 커뮤니티: 목록(게시판 표) · 상세 · 글쓰기(에디터) · 이미지 확대 보기 */

/* ---- 목록 ---- */
.board-tools{display:flex;gap:10px;align-items:center;margin-top:28px}
.board-tools-gap{flex:1}
.board-tabs{display:flex;border:1px solid var(--gray-200);border-radius:10px;overflow:hidden;flex:none}
.board-tabs a{padding:0 18px;height:38px;display:flex;align-items:center;font-size:14px;font-weight:600;color:var(--gray-600);border-left:1px solid var(--gray-200);white-space:nowrap}
.board-tabs a:first-child{border-left:0}
.board-tabs a.is-on{background:var(--ink);color:#fff}
.board-select{position:relative;display:inline-flex;align-items:center;flex:none}
.board-select select{appearance:none;-webkit-appearance:none;height:38px;border:1px solid var(--gray-200);border-radius:8px;padding:0 34px 0 14px;font-size:14px;font-weight:600;background:#fff;cursor:pointer}
.board-select svg{position:absolute;right:12px;pointer-events:none}
.board-write{height:38px;border-radius:8px;font-size:14px;padding:0 16px}
@media(min-width:769px){.board-write{height:38px;font-size:14px}}
.board-searching{margin-top:16px;font-size:14px;color:var(--gray-600)}
.board-searching a{margin-left:8px;text-decoration:underline;text-underline-offset:2px}
.bbs{margin-top:16px;font-size:14px}
.bbs-head,.bbs-row{display:grid;grid-template-columns:72px 76px 1fr 120px 76px 64px 56px;align-items:center;column-gap:8px;padding:0 8px}
.bbs-head{height:36px;background:var(--gray-50);border-radius:8px;color:var(--gray-600);font-weight:600;font-size:13px;text-align:center}
.bbs-head div:nth-child(3){text-align:left}
.bbs-row{min-height:34px;border-bottom:1px solid var(--gray-100);color:var(--gray-700);text-align:center;transition:background .15s}
.bbs-row:hover{background:var(--brand-pale)}
.bbs-no,.bbs-date,.bbs-views,.bbs-likes{font-size:13px;color:var(--gray-500)}
.bbs-cat{color:var(--gray-600);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bbs-title{text-align:left;min-width:0;display:flex;align-items:center;gap:5px;color:var(--text-body);font-size:14px}
.bbs-title-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bbs-row:hover .bbs-title-text{text-decoration:underline;text-underline-offset:3px}
.bbs-count{color:var(--link-blue);font-size:13px;flex:none}
.bbs-pic{flex:none;opacity:.6}
.bbs-nick{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bbs-row.is-notice{background:var(--brand-pale)}
.bbs-row.is-notice .bbs-title-text{font-weight:700;color:var(--ink)}
.bbs-row.is-notice .bbs-no{color:var(--ink);font-weight:700}
.bbs-likes.is-hot{color:var(--red-strong);font-weight:700}
.bbs-row.is-current{background:var(--brand-pale)}
.bbs-row.is-current .bbs-title-text{font-weight:700;color:var(--ink)}
.bbs-mobile{display:none}
.bbs-empty{padding:60px 0;text-align:center;color:var(--gray-500);font-size:15px;border-bottom:1px solid var(--gray-100)}
.board-search{display:flex;justify-content:center;gap:8px;margin-top:20px}
.board-search .field-input{height:38px;width:220px;font-size:14px;border-radius:8px;padding:0 12px}
.board-search .btn{height:38px;border-radius:8px;font-size:14px;padding:0 16px}
@media(max-width:768px){
  .board-tools{flex-wrap:nowrap;gap:6px}
  .board-tabs a{padding:0 12px}
  .board-write{padding:0 12px}
  .bbs-head{display:none}
  .bbs-row{display:block;padding:7px 4px;text-align:left}
  .bbs-row>div:not(.bbs-title):not(.bbs-mobile){display:none}
  .bbs-title{font-size:15px}
  .bbs-mobile{display:block;font-size:11px;color:var(--gray-500);margin-top:1px}
  .board-search .field-input{width:100%;flex:1}
}

/* ---- 상세 ---- */
.post-preview{margin-top:16px;padding:10px 14px;border-radius:10px;background:var(--brand-soft);font-size:13px;font-weight:600}
.post-bar{display:flex;align-items:center;gap:10px;margin-top:20px}
.post-bar h2{font-size:20px}
.post-bar-right{display:flex;align-items:center;margin-left:auto}
.post-bar .text-link{margin-left:auto;font-size:13px;color:var(--gray-600)}
.post-more{display:none}
.post-head{padding:14px 4px;border-bottom:1px solid var(--gray-200)}
.post-head h1{font-size:20px;line-height:1.45;letter-spacing:-.4px}
.post-cat{color:var(--gray-600);font-weight:600;margin-right:6px}
.post-pin{display:inline-flex;align-items:center;height:22px;padding:0 7px;border-radius:6px;background:var(--brand);font-size:12px;margin-right:6px;vertical-align:2px}
.post-meta{display:flex;align-items:center;flex-wrap:wrap;margin-top:8px;font-size:13px;color:var(--gray-600)}
.post-meta>*{display:flex;align-items:center}
.post-meta>*+*::before{content:"";width:1px;height:11px;background:var(--gray-400);margin:0 9px}
.post-meta b{color:var(--ink);font-weight:600}
.post-meta [data-like-count]{margin-left:3px}
.post-meta-gap{margin-left:auto}
.post-meta-gap::before,.post-meta-gap+*::before{display:none!important}
.post-body{padding:28px 4px 36px;font-size:16px;line-height:1.8;color:var(--text-body);min-height:240px;word-break:break-word;overflow-wrap:anywhere}
.post-body p{min-height:1em}
.post-body p+p{margin-top:12px}
.post-body.is-text p:first-child{white-space:normal}
.post-body img{max-width:100%;height:auto!important;display:inline-block;border-radius:4px;margin:6px 0}
.post-body img.is-zoomable{cursor:zoom-in}
.post-body a{color:var(--blue);text-decoration:underline;text-underline-offset:2px;word-break:break-all}
.post-body ul{list-style:disc;padding-left:22px}
.post-body ol{list-style:decimal;padding-left:22px}
.post-body blockquote{border-left:4px solid var(--gray-200);padding:4px 0 4px 14px;color:var(--gray-600);margin:10px 0}
.post-body table{border-collapse:collapse;max-width:100%;margin:10px 0;font-size:14px}
.post-body td,.post-body th{border:1px solid var(--gray-300);padding:6px 10px}
.post-body h2,.post-body h3,.post-body h4{margin:16px 0 6px;line-height:1.4}
.post-body figure{margin:8px 0}
.post-body pre{white-space:pre-wrap;background:var(--gray-50);padding:12px;border-radius:8px;font-size:14px}
.post-vote{display:flex;justify-content:center;gap:8px;padding-bottom:28px}
.vote-box{width:110px;height:76px;border:1px solid var(--gray-200);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:13px;color:var(--gray-600);background:#fff;transition:all .15s}
.vote-box b{font-size:22px;color:var(--ink)}
.vote-box.is-up b{color:var(--hot-red)}
.vote-box:hover{border-color:var(--ink)}
.vote-box.is-on{background:var(--brand-pale);border-color:#E2B800}
.post-actions{display:flex;justify-content:space-between;gap:6px}
.post-actions-group{display:flex;gap:6px;flex-wrap:wrap}
.small-btn{height:32px;padding:0 12px;border:1px solid var(--gray-200);font-size:13px;font-weight:600;color:var(--gray-700);display:inline-flex;align-items:center;background:#fff;transition:all .15s}
.small-btn:hover{border-color:var(--ink);color:var(--ink)}
.small-btn.is-dark{background:var(--ink);border-color:var(--ink);color:#fff}
.comments{margin-top:40px}
.comments-head{display:flex;align-items:center;gap:8px;padding-bottom:6px}
.comments-head h3{font-size:15px}
.comments-head em{font-style:normal;color:var(--hot-red)}
.comments-sort{margin-left:auto;display:flex;gap:10px;font-size:13px;font-weight:500;color:var(--gray-600)}
.comments-sort button.is-on{color:var(--ink);font-weight:700}
.cmt{display:grid;grid-template-columns:140px 1fr 110px;gap:12px;align-items:start;padding:10px 4px;border-bottom:1px solid var(--gray-100);font-size:14px}
.cmt-nick{font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmt-nick small{font-weight:400;color:var(--gray-500);font-size:11px;margin-left:3px}
.cmt-text{color:var(--text-body);line-height:1.6;word-break:break-all}
.cmt-text a{color:var(--blue);text-decoration:underline}
.cmt-side{font-size:12px;color:var(--gray-500);text-align:right}
.cmt-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
.cmt-acts button{font-size:12px;color:var(--gray-500)}
.cmt-acts button:hover{color:var(--ink)}
.cmt.is-reply{padding-left:28px;background:var(--gray-50)}
.cmt.is-reply .cmt-nick::before{content:"└ ";color:var(--gray-400)}
.cmt-empty{padding:28px 0;text-align:center;color:var(--gray-500);font-size:14px;border-bottom:1px solid var(--gray-100)}
.cmt-form{margin-top:14px;padding:12px;background:var(--gray-50);border-radius:8px}
.cmt-form-row{display:flex;gap:6px}
.cmt-form-row+.cmt-form-row{margin-top:6px}
.cmt-form input,.cmt-form textarea{border:1px solid var(--gray-200);background:#fff;font-size:14px;outline:none;padding:0 10px}
.cmt-form input{height:34px;width:140px}
.cmt-form input:focus,.cmt-form textarea:focus{border-color:var(--ink)}
.cmt-form textarea{flex:1;height:72px;padding:8px 10px;resize:none;line-height:1.5}
.cmt-form button[type=submit]{width:84px;background:var(--ink);color:#fff;font-size:14px;font-weight:700}
.cmt-form>p{font-size:12px;color:var(--gray-500);margin-top:6px}
.cmt-replying{font-size:13px;margin-bottom:8px;color:var(--gray-700)}
.cmt-replying button{margin-left:6px;text-decoration:underline;font-size:12px}
.cm-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.post-around{margin-top:48px}
.post-around .post-bar h2{font-size:17px}
.post-around .bbs{margin-top:10px}
.pw-field{position:relative;margin-top:20px}
.pw-field .field-input{text-align:left;font-size:18px;letter-spacing:2px;padding-right:44px}
.pw-field svg{position:absolute;right:16px;top:16px}
.report-detail{margin-top:14px;height:96px}
@media(max-width:768px){
  .post-bar h2{display:none}
  .post-bar{justify-content:flex-end;margin-top:8px}
  .post-more{display:flex;width:36px;height:36px;margin-left:8px}
  .post-head h1{font-size:17px}
  .post-meta-gap{margin-left:0;flex-basis:100%;margin-top:4px}
  .post-body{font-size:15px;padding:20px 2px 28px}
  .vote-box{width:92px;height:64px}
  .vote-box b{font-size:18px}
  .post-actions .small-btn{padding:0 9px}
  .cmt{grid-template-columns:1fr auto;gap:2px 8px}
  .cmt-text{grid-column:1/-1;grid-row:2}
  .cmt-side{grid-row:1;grid-column:2}
  .cmt-form input{width:50%}
}

/* ---- 글쓰기 ---- */
.write{margin-top:20px}
.write-head{display:flex;align-items:baseline;gap:10px;padding-bottom:16px;border-bottom:1px solid var(--gray-200)}
.write-head h1{font-size:26px}
.write-head span{font-size:15px;font-weight:500;color:var(--gray-500)}
.write-row{display:flex;gap:8px;align-items:center;margin-top:16px}
.write-input{height:46px;border:1px solid var(--gray-300);padding:0 14px;font-size:15px;color:var(--ink);background:#fff;border-radius:0;outline:none;min-width:0}
.write-input:focus{border-color:var(--ink)}
.write-input::placeholder{color:var(--gray-400)}
.write-row .write-input{width:200px}
.write-select{position:relative;width:160px;flex:none}
.write-select select{appearance:none;-webkit-appearance:none;width:100%;height:46px;border:1px solid var(--gray-300);border-radius:0;background:#fff;padding:0 34px 0 14px;font-size:15px;font-weight:700;color:var(--ink)}
.write-select svg{position:absolute;right:14px;top:17px;pointer-events:none}
.write-hint{font-size:13px;color:var(--gray-500);margin-left:8px}
.write-title{width:100%;margin-top:8px;display:block}
.write-notice{font-size:13px;color:var(--gray-600);margin:14px 0 0;line-height:1.5}
.write-editor{position:relative;margin-top:14px}
.write-placeholder{position:absolute;left:24px;right:24px;top:22px;font-size:14px;line-height:26px;color:var(--gray-400);z-index:2;pointer-events:none}
.write-placeholder b{display:block;font-size:15px;color:var(--gray-600);margin-bottom:6px}
.write-help{font-size:12px;color:var(--gray-500);margin-top:10px}
.write-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.write-actions a,.write-actions button{height:50px;border-radius:8px;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center}
.write-cancel{width:104px;background:var(--gray-100);color:var(--gray-700)}
.write-ok{width:128px;background:var(--ink);color:#fff}
/* SunEditor 를 시안의 모양으로 */
.write .sun-editor{border:1px solid var(--gray-300);border-radius:0;font-family:inherit;color:var(--text-body)}
.write .sun-editor .se-toolbar{background:var(--gray-50);outline:0;border-bottom:1px solid var(--gray-200);padding:4px 8px}
.write .sun-editor .se-btn-module-border{border:0;border-radius:0}
.write .sun-editor .se-btn-module{margin:0 4px 0 0;padding-right:6px;border-right:1px solid var(--gray-300)!important}
.write .sun-editor .se-btn-module:last-child{border-right:0!important}
.write .sun-editor .se-btn{color:var(--text-body);border-radius:4px}
.write .sun-editor .se-btn:hover{background:var(--gray-200)}
.write .sun-editor .se-btn.active{background:var(--gray-200);color:var(--ink)}
.write .sun-editor .se-wrapper{position:relative}
.write .sun-editor .se-wrapper .se-wrapper-wysiwyg{padding:22px 24px}
.write .sun-editor-editable{font-family:inherit;font-size:15px;line-height:1.7;color:var(--text-body)}
.write .sun-editor-editable a{color:var(--blue)}
.write .sun-editor .se-resizing-bar{background:var(--gray-50);border-top:1px solid var(--gray-200);min-height:16px}
.write .sun-editor .se-wrapper .se-placeholder{display:none}
@media(max-width:768px){
  .write-head h1{font-size:22px}
  .write-head span{font-size:13px}
  .write-row{gap:4px;margin-top:12px}
  .write-select{width:110px}
  .write-select select{height:44px;font-size:14px;padding-left:12px}
  .write-select svg{right:10px;top:16px}
  .write-row .write-input{flex:1;width:auto;height:44px;font-size:14px;padding:0 12px}
  .write-hint{display:none}
  .write-title{height:44px;font-size:14px;padding:0 12px;margin-top:4px}
  .write-notice{font-size:12px}
  .write .sun-editor .se-toolbar{overflow-x:auto;white-space:nowrap}
  .write .sun-editor .se-btn-tray{white-space:nowrap;display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent)}
  .write .sun-editor .se-btn-tray::-webkit-scrollbar{display:none}
  .write .sun-editor .se-btn-module{flex:none;float:none}
  .write .sun-editor .se-btn-module .se-menu-list{display:flex;flex-wrap:nowrap}
  .write .sun-editor .se-btn-module .se-menu-list li{float:none;flex:none}
  .write .sun-editor .se-wrapper .se-wrapper-wysiwyg{padding:16px}
  .write-placeholder{left:16px;right:16px;top:16px;font-size:13px;line-height:22px}
  .write-actions{margin-top:18px}
  .write-cancel{width:110px;height:52px}
  .write-ok{flex:1;height:52px}
}

/* ---- 이미지 확대 보기 ---- */
.viewer{position:fixed;inset:0;z-index:350;background:rgba(10,12,16,.94);touch-action:none;user-select:none}
.viewer-stage{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;cursor:grab}
.viewer-stage.is-panning{cursor:grabbing}
.viewer-stage img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;will-change:transform;-webkit-user-drag:none}
.viewer-bar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:6px;padding:12px 14px;background:linear-gradient(rgba(0,0,0,.55),transparent)}
.viewer-count{flex:1;font-size:14px;font-weight:600;color:#fff}
.viewer-bar button,.viewer-nav{display:grid;place-items:center;min-width:40px;height:40px;padding:0 8px;border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:18px;font-weight:700;cursor:pointer}
.viewer-bar button:hover,.viewer-nav:hover{background:rgba(255,255,255,.26)}
.viewer-bar [data-viewer-zoom="0"]{font-size:13px}
.viewer-close{font-size:24px!important}
.viewer-nav{position:absolute;top:50%;width:44px;height:44px;margin-top:-22px;font-size:26px}
.viewer-nav.is-prev{left:12px}
.viewer-nav.is-next{right:12px}
@media(max-width:599px){.viewer-bar [data-viewer-zoom]{display:none}.viewer-nav{top:auto;bottom:24px;margin-top:0}}
