:root{--community-line:#e8edf4;--community-soft:#f7f9fc;--community-blue:#005bff;--community-navy:#001b5e}
.community-page{background:#f7f8fb}.community-shell{width:min(1080px,calc(100% - 40px));margin:0 auto;padding:42px 0 110px}.community-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:14px 0 28px}.community-hero h1{margin:8px 0 7px;color:var(--community-navy);font-size:34px}.community-hero p{margin:0;color:#6b7688}.community-primary{min-height:44px;padding:0 18px;border:0;border-radius:12px;color:#fff;background:var(--community-blue);font-weight:800;cursor:pointer}.community-primary.wide{width:100%}.community-tabs{display:flex;gap:7px;padding:10px;background:#fff;border:1px solid var(--community-line);border-radius:15px;overflow:auto}.community-tabs button,.community-sort button,.community-tools button,.community-pager button{border:0;background:transparent;cursor:pointer}.community-tabs button{flex:0 0 auto;padding:9px 13px;border-radius:9px;color:#657083;font-weight:700}.community-tabs button.active{color:#fff;background:var(--community-blue)}.community-tools{display:flex;justify-content:space-between;gap:15px;margin:16px 0}.community-tools form{display:flex;gap:7px;flex:1}.community-tools input,.community-tools select,.community-dialog input,.community-dialog select,.community-dialog textarea,.comment-form input,.comment-form textarea{min-height:42px;padding:10px 12px;border:1px solid #dfe5ee;border-radius:9px;background:#fff;font:inherit}.community-tools input{width:min(380px,100%)}.community-tools button{padding:8px 12px;border-radius:9px;background:#fff;border:1px solid var(--community-line);font-weight:700}.community-sort{display:flex;gap:5px}.community-sort .active{color:var(--community-blue);border-color:#bcd1ff}.community-board{overflow:hidden;background:#fff;border:1px solid var(--community-line);border-radius:16px}.community-board-head,.community-row{display:grid;grid-template-columns:110px minmax(0,1fr) 90px 90px 62px 62px;align-items:center;gap:8px}.community-board-head{min-height:42px;padding:0 16px;color:#8a94a4;background:var(--community-soft);border-bottom:1px solid var(--community-line);font-size:12px}.community-board-head h2{margin:0;font-size:12px}.community-board-head h2{margin:0;font-size:12px}.community-row{min-height:52px;padding:0 16px;border-bottom:1px solid #f0f2f6;color:#606b7d;font-size:12px}.community-row:last-child{border-bottom:0}.community-row a{min-width:0;color:#20283a;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-row a:hover{color:var(--community-blue)}.community-row .category{color:#6c7a92}.community-row .comments{margin-left:5px;color:var(--community-blue);font-weight:800}.ip-display{margin-left:4px;color:#929cab;font-size:11px;font-weight:500}.notice-badge{display:inline-flex;align-items:center;margin-right:7px;padding:2px 7px;border-radius:999px;color:#fff;background:var(--community-blue);font-size:10px;font-weight:900;vertical-align:middle}.section-kicker .notice-badge{margin-right:8px}.answer-badge{display:inline-flex;margin-right:6px;padding:2px 6px;color:#176333;background:#eaf8ef;border-radius:999px;font-size:10px;font-weight:800}.community-empty{padding:60px 20px;text-align:center;color:#8a94a4}.community-pager{display:flex;justify-content:center;align-items:center;gap:18px;padding:16px;border-top:1px solid var(--community-line)}.community-pager button{padding:7px 12px;border:1px solid var(--community-line);border-radius:8px}.community-dialog{width:min(620px,calc(100% - 24px));border:0;border-radius:18px;padding:0;box-shadow:0 28px 80px rgba(0,0,0,.22)}.community-dialog::backdrop{background:rgba(10,20,40,.52)}.community-dialog form{padding:22px}.community-dialog label{display:grid;gap:7px;margin-top:14px;color:#4d586a;font-size:13px;font-weight:700}.community-dialog textarea{resize:vertical}.dialog-head{display:flex;justify-content:space-between;gap:20px}.dialog-head strong{display:block;font-size:20px}.dialog-head small{display:block;margin-top:5px;color:#8a94a4}.dialog-head button{width:34px;height:34px;border:0;border-radius:9px;background:#f1f4f8;font-size:22px}.community-check{grid-template-columns:auto 1fr!important;align-items:center}.community-check input{min-height:auto}.privacy-note{margin:14px 0;padding:11px 13px;border-radius:10px;color:#765c10;background:#fff8dd;font-size:12px;line-height:1.55}.community-message{min-height:18px;color:#c73535;font-size:12px}.community-top{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1080px)/2));background:#fff;border-bottom:1px solid var(--community-line)}.community-brand{color:var(--community-navy);font-weight:900}.community-detail{padding:28px;background:#fff;border:1px solid var(--community-line);border-radius:16px}.community-detail h1{margin:5px 0 12px;color:#172033;font-size:28px}.post-meta{display:flex;flex-wrap:wrap;gap:8px 14px;color:#8a94a4;font-size:12px}.post-body{min-height:160px;padding:34px 0;white-space:pre-wrap;line-height:1.75;border-bottom:1px solid var(--community-line)}.post-actions{display:flex;gap:7px;padding:15px 0}.post-actions button,.comment-actions button{padding:7px 10px;border:1px solid var(--community-line);border-radius:8px;background:#fff}.consultation-cta{display:block;margin:15px 0;padding:15px 18px;color:#fff;background:var(--community-navy);border-radius:12px;font-weight:800}.comments-title{margin-top:28px}.comment-list{display:grid;gap:8px}.comment{padding:14px 16px;background:#fafbfc;border:1px solid var(--community-line);border-radius:10px}.comment.is-admin{background:#eef5ff;border-color:#91b8ff;box-shadow:inset 4px 0 0 var(--community-blue),0 4px 14px rgba(0,91,255,.08)}.comment.is-admin .comment-head strong{color:var(--community-blue);font-weight:900}.comment.reply{margin-left:min(calc(var(--reply-depth,1)*24px),144px)}.comment-head{display:flex;gap:8px;align-items:center;font-size:12px}.admin-badge{display:inline-flex;padding:3px 8px;border-radius:999px;color:#fff;background:var(--community-blue);font-size:10px;font-weight:900;letter-spacing:.01em}.author-badge{padding:2px 5px;color:#fff;background:#6b7688;border-radius:4px;font-size:10px}.comment-body{margin:9px 0;white-space:pre-wrap;line-height:1.55}.comment-form{display:grid;gap:9px;margin-top:18px;padding-top:18px;border-top:1px solid var(--community-line)}.comment-form .comment-fields{display:grid;grid-template-columns:160px 1fr;gap:8px}.comment-form button{justify-self:end}.detail-status{padding:50px;text-align:center;color:#8893a5}
@media(max-width:720px){
  .community-page{padding-bottom:calc(75px + env(safe-area-inset-bottom));overflow-x:hidden}
  .community-shell{width:100%;padding:18px 12px 96px}
  .community-hero{align-items:stretch;flex-direction:column;gap:16px;padding:10px 0 20px}
  .community-hero>div{min-width:0}
  .community-hero h1{font-size:27px;line-height:1.2;overflow-wrap:anywhere}
  .community-hero p{font-size:14px;line-height:1.55}
  .community-hero .community-primary{width:100%}
  .community-tabs{gap:6px;padding:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .community-tabs::-webkit-scrollbar{display:none}
  .community-tabs button{padding:8px 12px}
  .community-tools{align-items:stretch;flex-direction:column;gap:10px;margin:12px 0}
  .community-tools form{display:grid;grid-template-columns:92px minmax(0,1fr);gap:7px;width:100%}
  .community-tools form>*{min-width:0}
  .community-tools form>button{grid-column:1 / -1;width:100%;min-height:40px}
  .community-tools input{width:100%}
  .community-sort{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:5px}
  .community-sort button{min-width:0;padding:8px 4px;font-size:12px;line-height:1.25}
  .community-board{border-radius:13px}
  .community-board-head{display:none}
  .community-row{grid-template-columns:64px minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:5px 8px;min-height:0;padding:12px;border-bottom:1px solid #edf0f5}
  .community-row .category{grid-column:1;grid-row:1 / span 3;align-self:start;padding-top:2px;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
  .community-row a{grid-column:2 / 4;grid-row:1;display:-webkit-box;min-width:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.4}
  .community-row>.author{grid-column:2;grid-row:2;min-width:0;font-size:11px;overflow-wrap:anywhere}
  .community-row>.time{grid-column:3;grid-row:2;font-size:10px;text-align:right;white-space:nowrap}
  .community-row>.views{grid-column:2;grid-row:3;font-size:10px}
  .community-row>.votes{grid-column:3;grid-row:3;font-size:10px;text-align:right}
  .community-row>.views::before{content:'조회 '}
  .community-row>.votes::before{content:'추천 '}
  .community-row .ip-display{margin-left:3px;font-size:10px}
  .notice-badge{margin-right:5px;padding:2px 6px}
  .community-pager{gap:12px;padding:13px 10px}
  .community-pager button{min-height:38px;padding:7px 14px}
  .community-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);margin:auto;border-radius:16px;overflow-y:auto}
  .community-dialog form{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
  .dialog-head{gap:12px}
  .dialog-head>div{min-width:0}
  .dialog-head strong{font-size:19px}
  .dialog-head small{line-height:1.45}
  .dialog-head button{flex:0 0 34px}
  .community-dialog textarea{max-height:32vh}
  .community-top{height:56px;padding:0 12px}
  .community-detail{min-width:0;padding:16px;border-radius:13px}
  .community-detail h1{font-size:22px;line-height:1.35;overflow-wrap:anywhere}
  .post-meta{gap:6px 10px}
  .post-body{min-height:120px;padding:24px 0;overflow-wrap:anywhere;word-break:break-word}
  .post-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .post-actions button{min-width:0;width:100%}
  .comment{min-width:0;padding:12px}
  .comment.reply{margin-left:min(calc(var(--reply-depth,1)*8px),40px)}
  .comment-head{flex-wrap:wrap;gap:5px 7px}
  .comment-body{overflow-wrap:anywhere;word-break:break-word}
  .comment-actions{display:flex;flex-wrap:wrap;gap:6px}
  .comment-actions button{flex:1 1 auto;min-width:0}
  .comment-form .comment-fields{grid-template-columns:1fr}
  .comment-form button{justify-self:stretch;width:100%}
  .detail-status{padding:38px 14px}
  .community-page .bottom-nav{display:grid}
}
@media(max-width:380px){
  .community-shell{padding-left:10px;padding-right:10px}
  .community-sort button{font-size:11px}
  .community-row{grid-template-columns:56px minmax(0,1fr) auto;padding:11px 10px}
  .community-row .category{font-size:10px}
}
.compose-image-field small{color:#8a94a4;font-weight:500}.compose-image-preview{display:grid;gap:8px;margin-top:10px;padding:10px;border:1px solid var(--community-line);border-radius:12px;background:#fafbfc}.compose-image-preview[hidden]{display:none}.compose-image-preview img{display:block;max-width:100%;max-height:260px;margin:0 auto;border-radius:10px;object-fit:contain}.compose-image-preview>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.compose-image-preview button{padding:7px 10px;border:1px solid var(--community-line);border-radius:8px;background:#fff;cursor:pointer}.compose-image-preview span{min-width:0;color:#7b8798;font-size:12px;overflow-wrap:anywhere}.post-image-wrap{padding:24px 0 0}.post-image{display:block;width:auto;max-width:100%;height:auto;max-height:900px;margin:0 auto;border-radius:12px;object-fit:contain}.community-primary:disabled{cursor:wait;opacity:.65}
@media(max-width:720px){.compose-image-preview img{max-height:220px}.compose-image-preview>div{align-items:stretch;flex-direction:column}.compose-image-preview button{width:100%}.post-image-wrap{padding-top:18px}.post-image{width:100%;max-height:70vh;border-radius:10px}}
