:root{
  --ink:#193d2d;
  --muted:#71877b;
  --line:rgba(45,92,66,.14);
  --green:#347f5c;
  --green-dark:#245f46;
  --paper:#fff;
  --soft:#f1f8f3;
  --gold:#ad8237;
  --font-ui:"Malgun Gothic","맑은 고딕",Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;color-scheme:light only}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:#f5f8f6;color:var(--ink);font-family:var(--font-ui);font-size:15px;line-height:1.65;letter-spacing:0}
main{flex:1}
button,input,textarea,select{font:inherit}
a{text-decoration:none;color:inherit}
.wrap{width:min(calc(100% - 40px),1180px);margin:auto}
.sjax-global-nav{position:sticky;top:0;z-index:100;background:rgba(251,253,251,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}
.sjax-global-main{min-height:72px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px}
.sjax-global-brand{display:flex;align-items:center;gap:11px;min-width:max-content}
.sjax-global-brand img{width:40px;height:40px;border-radius:12px}
.sjax-global-brand b{display:block;font-size:19px;line-height:1;font-weight:950}
.sjax-global-brand small{display:block;margin-top:5px;color:#81968a;font-size:7px;line-height:1;letter-spacing:.15em}
.sjax-main-tabs{display:flex;justify-content:center;gap:5px;overflow-x:auto}
.community-hero{padding:28px 0 18px;border-bottom:1px solid var(--line);background:#fff}
.eyebrow{color:var(--gold);font-size:11px;font-weight:900;letter-spacing:.14em}
.community-hero h1{margin:5px 0 5px;font-size:30px;line-height:1.25;letter-spacing:-.02em;font-weight:800}
.community-hero p{max-width:720px;margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.portal-section{padding:18px 0 42px}
.portal-card{padding:22px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(36,77,52,.05)}
.board-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:14px;align-items:start}
.category-panel{position:sticky;top:88px;width:210px;padding:13px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(36,77,52,.04)}
.category-panel h2{margin:0 0 10px;font-size:15px}
.category-panel nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 5px;max-height:none;overflow:visible}
.category-panel nav .category-button:first-child{grid-column:1/-1}
.category-featured{grid-column:1/-1;color:#9b5b16;background:#fff8e9;text-align:left}
.category-button{display:flex;align-items:center;width:100%;height:22px;min-height:22px;padding:0 7px;overflow:hidden;border:0;border-radius:5px;background:transparent;color:#526d5f;font:700 13px/1 var(--font-ui);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.category-button:hover{background:#f0f6f2}.category-button.active{background:#286c4d;color:#fff}
.category-separator{display:flex;grid-column:1/-1;align-items:center;height:21px;margin:5px 0 2px;padding:0 8px;overflow:hidden;border-radius:5px;background:#e7f0ea;color:#315b45;font-size:12px;font-weight:900;line-height:1;letter-spacing:.02em;text-align:left;white-space:nowrap}
.category-float{display:none}
.portal-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:14px}
.portal-head h2{margin:0 0 3px;font-size:20px;line-height:1.3;letter-spacing:-.015em}
.portal-head p{margin:0;color:var(--muted);font-size:13px}
.portal-actions{display:flex;gap:8px}
.portal-action{min-height:40px;padding:0 15px;border:1px solid var(--green-dark);border-radius:10px;background:linear-gradient(135deg,var(--green),var(--green-dark));color:#fff;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
.portal-action.secondary{border-color:rgba(47,125,91,.22);background:#fff;color:#32624b}
.board-table{overflow:hidden;border:1px solid #ccdcd2;border-radius:8px;background:#fff}
.board-row{display:grid;align-items:center;min-height:32px}
.notice-table .board-row{grid-template-columns:76px minmax(0,1fr) 150px}
.post-table .board-row{grid-template-columns:76px minmax(0,1fr) 130px 150px}
.board-header{min-height:30px;background:#edf4ef;color:#4e6b5c;font-size:12px;font-weight:700;text-align:center}
.board-list{display:grid}
.board-item{width:100%;padding:0;border:0;border-top:1px solid #e4eee8;background:#fff;color:var(--ink);text-align:left;cursor:pointer}
.board-item:first-child{border-top:0}
.board-item:hover,.board-item:focus-visible{background:#f7fbf8;outline:none}
.board-item>span{min-width:0;padding:0 14px;font-size:13px}
.board-item .board-no,.board-item .board-author,.board-item .board-date{text-align:center;color:#71877b;font-size:11px}
.board-title{display:flex;align-items:center;gap:7px;font-weight:700;overflow:hidden}
.board-title-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-tag{flex:none;max-width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#38634d;font-size:11px;font-weight:850}
.attachment{flex:none;color:#8c6a2d;font-size:12px}
.empty{padding:54px 20px;text-align:center;color:#87998f;font-size:13px}
.board-pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:20px}
.board-pagination[hidden]{display:none}
.page-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 9px;border:1px solid #d5e4da;border-radius:9px;background:#fff;color:#557064;font-size:12px;font-weight:850;cursor:pointer}
.page-button:hover:not(:disabled){border-color:#73a88a;background:#f1f8f3;color:#245f46}
.page-button.current{border-color:var(--green-dark);background:var(--green-dark);color:#fff;cursor:default}
.page-button:disabled{opacity:.38;cursor:default}
.post-form{display:none;gap:14px;margin-bottom:20px;padding:20px;border:1px solid #d9e8df;border-radius:16px;background:var(--soft)}
.post-form.show{display:grid}
.editor-mode-heading{display:none;margin:0 0 2px;color:#174a32;font-size:22px}.post-form.editing .editor-mode-heading{display:block}.board-list-view.editing-post>.portal-head{display:none}
.post-form>label{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:8px;color:#385b4a;font-size:12px;font-weight:900}
.post-form input[type=text],.post-form input:not([type]),.post-form textarea{width:100%;padding:12px 13px;border:1px solid #ccded3;border-radius:11px;background:#fff;color:var(--ink);font-size:14px;outline:none}
.post-form select{width:100%;height:44px;padding:0 12px;border:1px solid #ccded3;border-radius:9px;background:#fff;color:var(--ink)}
.post-form input:focus,.post-form textarea:focus{border-color:#3a8b64;box-shadow:0 0 0 4px rgba(58,139,100,.10)}
.post-form textarea{min-height:150px;resize:vertical;line-height:1.7}
.editor-field{position:relative;display:grid;gap:7px;color:#385b4a;font-size:12px;font-weight:900}
.post-video-field{display:grid;gap:7px;color:#385b4a;font-size:12px;font-weight:800}.post-video-field>span small,.post-video-field>small{color:#758b7f;font-size:10px;font-weight:500}.post-video-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.post-video-inputs input{height:40px!important;padding:0 10px!important;font-size:12px!important}
.editor-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:7px;border:1px solid #ccded3;border-bottom:0;border-radius:10px 10px 0 0;background:#f8fbf9}
.editor-toolbar button{min-height:31px;padding:0 9px;border:1px solid #d6e3dc;border-radius:6px;background:#fff;color:#355845;font:700 11px/1 var(--font-ui);cursor:pointer}
.editor-toolbar button:hover,.editor-toolbar button:focus-visible{border-color:#6aa383;background:#edf7f1;outline:none}
.editor-toolbar .insert-image{margin-left:auto;border-color:#83b39a;background:#eaf6ee;color:#205e3e}
.rich-editor{min-height:220px;max-height:none;padding:14px;border:1px solid #ccded3;border-radius:0 0 10px 10px;background:#fff;color:#243f32;font-size:14px;font-weight:400;line-height:1.75;outline:none;overflow:auto;resize:vertical}
.rich-editor:focus{border-color:#3a8b64;box-shadow:0 0 0 4px rgba(58,139,100,.10)}
.rich-editor:empty::before{content:attr(data-placeholder);color:#94a59c;pointer-events:none}
.rich-editor p,.rich-editor div{margin:0 0 8px}.rich-editor h2{margin:12px 0 8px;font-size:22px}.rich-editor ul{margin:8px 0;padding-left:24px}
.rich-editor img{display:block;min-width:80px;max-width:min(100%,760px);min-height:50px;max-height:520px;margin:12px auto;border-radius:10px;object-fit:contain;background:#edf4ef;box-shadow:0 2px 10px rgba(25,61,45,.1);overflow:auto}.rich-editor img.image-resize-selected{outline:3px solid #2e8b60;outline-offset:3px}.image-resize-handle{position:absolute;z-index:8;display:none;width:22px;height:22px;padding:0;border:3px solid #fff;border-radius:50%;background:#247c53;box-shadow:0 2px 8px rgba(16,54,35,.35);cursor:nwse-resize;touch-action:none}.image-resize-handle.show{display:block}
.image-help{color:#71877b;font-size:10px;font-weight:700}
.image-file-list{display:grid;gap:5px;margin:0;padding:0;list-style:none}.image-file-list[hidden]{display:none}.image-file-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:6px 9px;border:1px solid #d9e6de;border-radius:8px;background:#f8fbf9;color:#4d695a;font-size:11px;font-weight:500}.image-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-file-list small{color:#809288;font-size:10px}.image-file-list button{height:25px;padding:0 8px;border:1px solid #e5c8c8;border-radius:6px;background:#fff5f5;color:#a1474d;font-size:10px;cursor:pointer}
.post-form-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.post-form-row button{min-height:42px;padding:0 17px;border:0;border-radius:10px;background:var(--green);color:#fff;font-size:12px;font-weight:900;cursor:pointer}
.post-help{color:#778e81;font-size:11px;font-weight:700}
.post-help input{display:block;margin-top:8px;font-size:11px}
.board-message{display:none;margin-bottom:15px;padding:11px 13px;border-radius:10px;font-size:12px;font-weight:800}
.board-message.show{display:block}.board-message.error{background:#fff0f1;color:#a43b45}.board-message.success{background:#eaf8ef;color:#236344}
.detail-dialog{width:min(92vw,780px);max-height:88vh;padding:0;border:0;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 28px 90px rgba(22,51,36,.28)}
.detail-dialog::backdrop{background:rgba(20,42,31,.52);backdrop-filter:blur(4px)}
.detail-card{padding:30px}
.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #dfebe3}
.detail-kind{display:inline-flex;margin-bottom:8px;padding:4px 8px;border-radius:999px;background:#edf6f0;color:#357052;font-size:9px;font-weight:900;letter-spacing:.08em}
.detail-head h2{margin:0;font-size:25px;line-height:1.35;letter-spacing:-.03em}
.detail-head p{margin:7px 0 0;color:#84978d;font-size:11px}
.detail-close{flex:none;width:36px;height:36px;border:1px solid #d9e6de;border-radius:10px;background:#f6faf7;color:#496758;font-size:21px;cursor:pointer}
.detail-body{min-height:120px;padding:22px 2px;color:#496457;font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.detail-body.rich{white-space:normal}.detail-body.rich p,.detail-body.rich div{margin:0 0 10px}.detail-body.rich h2{margin:18px 0 9px;font-size:23px}.detail-body.rich h3{margin:16px 0 8px;font-size:18px}.detail-body.rich ul,.detail-body.rich ol{padding-left:25px}.detail-body.rich img{display:block;max-width:100%;height:auto;cursor:zoom-in;max-height:620px;margin:18px auto;border-radius:12px;object-fit:contain;background:#edf4ef}.youtube-embeds{display:grid;gap:14px;margin-bottom:20px}.youtube-embeds iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#13231b}
.detail-image img{display:block;max-width:100%;max-height:560px;margin:0 auto 22px;border-radius:14px;object-fit:contain;background:#edf4ef}
.post-votes{display:flex;justify-content:center;padding:4px 0 22px}.vote-bar{display:flex;align-items:center;gap:7px}.vote-button{min-height:32px;padding:0 11px;border:1px solid #d8e6dd;border-radius:999px;background:#f8fbf9;color:#597166;font:700 11px/1 var(--font-ui);cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease}.vote-button:hover{border-color:#91b9a2;background:#eef7f1}.vote-button.active.vote-up{border-color:#62a982;background:#e6f6ec;color:#1d7047}.vote-button.active.vote-down{border-color:#ce8990;background:#fff0f1;color:#9c3943}.vote-button:disabled{cursor:wait;opacity:.58}.vote-summary{flex:none;color:#70887b;font-size:10px;font-weight:700;white-space:nowrap}
.comment-section{padding-top:20px;border-top:1px solid #dfe9e2}.comment-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.comment-head h3{margin:0;font-size:17px}.comment-head h3 span{color:#286c4d}.comment-head>span{color:#7a8f83;font-size:11px}.comment-list{display:grid;margin-top:12px}.comment-item{padding:13px 4px;border-top:1px solid #e5ede8}.comment-item:first-child{border-top:0}.comment-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:#71877b;font-size:11px}.comment-meta b{color:#345b47;font-size:12px}.comment-body{margin:0;color:#405f50;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.comment-delete{margin-left:auto;padding:2px 6px;border:0;background:none;color:#a24b53;font-size:10px;cursor:pointer}.comment-empty{padding:18px 0;color:#809389;font-size:12px;text-align:center}.comment-form{display:none;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:12px}.comment-form.show{display:grid}.comment-form textarea{min-height:64px;padding:10px 12px;border:1px solid #cfded5;border-radius:8px;resize:vertical;font:inherit}.comment-form button,.comment-login{padding:0 14px;border:0;border-radius:8px;background:#286c4d;color:#fff;font:700 12px/1 var(--font-ui);cursor:pointer}.comment-login{display:none;min-height:38px;margin-top:12px}.comment-login.show{display:block}
.comment-item>.vote-bar{margin-top:8px}.comment-item>.vote-bar .vote-button{min-height:27px;padding:0 9px;font-size:10px}
.detail-actions{display:none;justify-content:flex-end;padding-top:16px;border-top:1px solid #e3ece6}
.detail-actions.show{display:flex;gap:8px}
.edit-post,.delete-post{min-height:38px;padding:0 13px;border:1px solid #c9ddd1;border-radius:9px;background:#f1f8f3;color:#286747;font-size:11px;font-weight:900;cursor:pointer}.delete-post{border-color:#e9c5c8;background:#fff4f5;color:#a8444d}
.board-list-view[hidden],.detail-page[hidden]{display:none!important}.detail-page{min-height:300px}.detail-page .detail-card{padding:4px}.detail-page .detail-head{padding:4px 0 17px}.detail-page .detail-close{width:auto;min-width:92px;height:36px;padding:0 12px;font-size:11px;font-weight:850;white-space:nowrap}.detail-page .detail-body{padding-left:2px;padding-right:2px}.detail-page .comment-section{margin-top:4px}
footer{margin-top:auto;padding:24px 0 32px;border-top:1px solid var(--line);color:#7f9187;font-size:11px;background:#fff}
@media(min-width:721px) and (max-width:960px){
  .wrap{width:min(calc(100% - 24px),1180px)}
  .portal-section{padding-top:14px}
  .board-layout{grid-template-columns:150px minmax(0,1fr);gap:10px}
  .category-panel{width:150px;padding:11px 8px}
  .category-panel h2{margin-bottom:7px;font-size:14px}
  .category-panel nav{gap:1px 3px}
  .category-button{height:21px;min-height:21px;padding:0 3px;font-size:12px}
  .category-separator{height:19px;margin:4px 0 1px;padding:0 5px;font-size:11px}
  .portal-card{padding:16px 14px}
  .portal-head{gap:10px;margin-bottom:10px}
  .portal-head h2{font-size:18px}
  .portal-actions{gap:6px}
  .portal-action{min-height:36px;padding:0 11px;font-size:11px}
  .post-table .board-row{grid-template-columns:42px minmax(0,1fr) 78px 88px}
  .board-item>span{padding:0 7px;font-size:12px}
  .board-title{gap:5px}
  .category-tag{max-width:62px;font-size:10px}
  .board-item .board-no,.board-item .board-author,.board-item .board-date{font-size:10px}
}
@media(max-width:720px){
  .post-video-inputs{grid-template-columns:1fr}
  .wrap{width:min(calc(100% - 24px),1180px)}
  .community-hero{padding:22px 0 15px}
  .community-hero h1{font-size:27px}
  .community-hero p{font-size:14px}
  .portal-section{padding-top:14px}
  .portal-card{padding:14px 10px;border-radius:10px}
  .board-layout{display:block}.category-panel{display:none;position:fixed;z-index:135;top:auto;left:12px;right:12px;bottom:78px;width:auto;max-height:calc(100vh - 150px);margin:0;padding:13px;overflow-y:auto;border-color:#bdd5c7;box-shadow:0 18px 55px rgba(21,58,39,.28)}.category-panel.mobile-open{display:block}.category-panel h2{font-size:13px}.category-panel nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 6px;max-height:none;overflow:visible;padding-bottom:0}.category-button{justify-content:center;width:100%;min-width:0;height:24px;min-height:24px;padding:0 9px;border:1px solid #dbe7df;background:#fff;text-align:center}.category-float{position:fixed;z-index:140;right:18px;bottom:18px;display:flex;align-items:center;justify-content:center;width:50px;height:50px;padding:0;border:0;border-radius:50%;background:linear-gradient(135deg,var(--green),var(--green-dark));color:#fff;box-shadow:0 10px 28px rgba(28,82,53,.32);font:900 23px/1 var(--font-ui);cursor:pointer}.category-float[aria-expanded="true"]{background:#193d2d}.category-float[aria-expanded="true"] span{transform:rotate(45deg)}
  .portal-head{align-items:flex-start;flex-direction:column;margin-bottom:16px}
  .portal-actions{width:100%}.portal-actions .portal-action{flex:1}
  .notice-table .board-row{grid-template-columns:48px minmax(0,1fr) 88px}
  .post-table .board-row{grid-template-columns:48px minmax(0,1fr) 76px}
  .post-table .board-row>*:last-child{display:none}
  .board-item>span{padding:0 8px;font-size:12px}
  .vote-summary{display:none}
  .board-item .board-no,.board-item .board-author,.board-item .board-date{font-size:10px}
  .post-form-row{align-items:stretch;flex-direction:column}
  .editor-toolbar{gap:3px}.editor-toolbar button{flex:1 0 auto;padding:0 7px}.editor-toolbar .insert-image{flex-basis:100%;margin-left:0}.rich-editor{min-height:190px}
  .detail-card{padding:22px 18px}.detail-head h2{font-size:21px}.detail-body{padding-top:22px}
  .comment-head{align-items:flex-start;flex-direction:column;gap:2px}.comment-form{grid-template-columns:1fr}.comment-form button{min-height:40px}
}
