
:root{
  --community-green:#0f513b;
  --community-ink:#27322c;
  --community-muted:#78817c;
  --community-line:#e2e7e4;
  --community-soft:#f7f9f7;
}
body.page-community{
  color:var(--community-ink);
}
.community-shell{
  width:var(--site-width);
  max-width:calc(100% - 64px);
  margin:0 auto;
  padding:24px 0 62px;
}
.community-team{
  width:min(38%,430px);
  height:225px;
  margin:0 0 34px auto;
  overflow:hidden;
  border-bottom:1px solid var(--community-line);
  background:#fff;
}
.community-team img{
  width:100%;
  height:auto;
  display:block;
  transform:translateY(-48px);
}
.community-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:42px;
  align-items:start;
}
.community-panel{min-width:0}
.community-panel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.community-panel-head h1,
.community-panel-head h2{
  margin:0;
  font-family:"Noto Serif KR","Noto Serif CJK KR","Batang",serif;
  font-size:25px!important;
  line-height:1.2!important;
  font-weight:600!important;
  color:var(--community-green);
  letter-spacing:-.025em;
}
.community-panel-head .en{
  margin-left:8px;
  font-family:Arial,sans-serif;
  font-size:11px;
  font-weight:400;
  color:#929995;
  letter-spacing:0;
}
.community-count{
  font-size:11px;
  color:#909893;
  white-space:nowrap;
}
.community-rule{
  height:2px;
  background:#6f8d80;
}

/* News: editorial feed, not a generic board row */
.news-list{
  border-bottom:1px solid var(--community-line);
}
.news-item{
  display:block;
  padding:17px 5px 16px;
  border-bottom:1px solid #edf0ee;
}
.news-item:last-child{border-bottom:0}
.news-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:7px;
}
.news-category{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:#eef4f0;
  color:var(--community-green);
  font-size:10px;
  line-height:1.6;
}
.news-date{
  font-size:10.5px;
  color:#989f9b;
  white-space:nowrap;
}
.news-title{
  font-size:14px;
  font-weight:650;
  line-height:1.48;
  letter-spacing:-.012em;
  color:#2a332e;
}
.news-summary{
  margin-top:4px;
  font-size:11.5px;
  line-height:1.55;
  color:#7d8681;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.news-item:hover .news-title{color:var(--community-green)}

/* Q&A: question/answer status interaction */
.qa-toolbar{
  display:flex;
  align-items:center;
  gap:9px;
}
.qa-write{
  border:1px solid #cbd8d1;
  border-radius:999px;
  background:#fff;
  color:#587262;
  font:inherit;
  font-size:10.5px;
  padding:5px 10px;
  cursor:pointer;
}
.qa-write:hover{background:#f6f9f7}
.qa-list{
  border-bottom:1px solid var(--community-line);
}
.qa-item{
  border-bottom:1px solid #edf0ee;
}
.qa-item:last-child{border-bottom:0}
.qa-item summary{
  list-style:none;
  cursor:pointer;
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:69px;
  padding:10px 4px;
}
.qa-item summary::-webkit-details-marker{display:none}
.qa-q{
  width:25px;
  height:25px;
  border:1px solid #a8b9b0;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--community-green);
  font-size:10px;
  font-weight:700;
}
.qa-main{min-width:0}
.qa-title{
  font-size:13px;
  line-height:1.45;
  font-weight:600;
  color:#2b342f;
}
.qa-meta{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:4px;
  color:#949b97;
  font-size:10px;
}
.qa-status{
  display:inline-block;
  border:1px solid #cbd8d1;
  border-radius:999px;
  padding:1px 6px;
  color:#5c7667;
  background:#f8fbf9;
}
.qa-status.wait{
  color:#8c7859;
  border-color:#ded2bd;
  background:#fcfaf5;
}
.qa-chevron{
  color:#98a09b;
  font-size:16px;
  transition:transform .15s ease;
}
.qa-item[open] .qa-chevron{transform:rotate(90deg)}
.qa-answer{
  margin:0 4px 14px 42px;
  padding:12px 14px;
  background:var(--community-soft);
  border-left:2px solid #9bb0a6;
  color:#606b65;
  font-size:11.5px;
  line-height:1.7;
}

/* Shared board footer */
.community-board-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:16px;
}
.community-search{
  display:flex;
  align-items:center;
  gap:6px;
}
.community-search input{
  width:145px;
  height:30px;
  border:1px solid #d5ddd8;
  background:#fff;
  padding:0 9px;
  font:inherit;
  font-size:11px;
  color:#4f5a54;
}
.community-search button{
  height:30px;
  border:1px solid #cdd8d2;
  background:#fff;
  padding:0 10px;
  color:#5b7466;
  font:inherit;
  font-size:11px;
  cursor:pointer;
}
.community-pages{
  display:flex;
  align-items:center;
  gap:5px;
}
.community-pages a{
  width:27px;
  height:27px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dfe4e1;
  color:#7f8782;
  font-size:10.5px;
}
.community-pages a.active{
  border-color:#738f82;
  background:#738f82;
  color:#fff;
}

/* Test-only question dialog; no persistence until Supabase is connected */
.qa-dialog{
  width:min(520px,calc(100% - 36px));
  border:0;
  border-radius:0;
  padding:0;
  box-shadow:0 18px 60px rgba(0,0,0,.18);
}
.qa-dialog::backdrop{background:rgba(16,31,24,.22)}
.qa-dialog-inner{padding:26px 28px 24px}
.qa-dialog-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}
.qa-dialog-head h3{
  margin:0;
  color:var(--community-green);
  font-family:"Noto Serif KR","Noto Serif CJK KR","Batang",serif;
  font-size:22px;
  font-weight:600;
}
.qa-dialog-close{
  border:0;
  background:transparent;
  font-size:24px;
  line-height:1;
  color:#808985;
  cursor:pointer;
}
.qa-form{display:grid;gap:12px}
.qa-form label{
  display:grid;
  gap:5px;
  font-size:11px;
  color:#68736d;
}
.qa-form input,.qa-form textarea{
  width:100%;
  border:1px solid #d7ded9;
  padding:9px 10px;
  font:inherit;
  font-size:12px;
  color:#354039;
  background:#fff;
}
.qa-form textarea{min-height:120px;resize:vertical}
.qa-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:4px;
}
.qa-form-actions button{
  border:1px solid #c8d5ce;
  background:#fff;
  color:#557060;
  padding:7px 13px;
  font:inherit;
  font-size:11px;
  cursor:pointer;
}
.qa-form-actions .primary{
  background:#6f8d80;
  border-color:#6f8d80;
  color:#fff;
}
.qa-test-note{
  margin:12px 0 0;
  padding-top:11px;
  border-top:1px solid #edf0ee;
  color:#969d99;
  font-size:10.5px;
}

@media(max-width:900px){
  .community-shell{max-width:calc(100% - 34px)}
  .community-team{
    width:min(62%,430px);
    height:220px;
  }
  .community-columns{
    grid-template-columns:1fr;
    gap:46px;
  }
}
@media(max-width:620px){
  .community-shell{padding-top:18px}
  .community-team{
    width:80%;
    height:185px;
  }
  .community-team img{transform:translateY(-36px)}
  .community-board-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .news-summary{white-space:normal}
  .qa-item summary{
    grid-template-columns:27px minmax(0,1fr) 16px;
  }
}


/* v155: News / Q&A visual alignment */
.news-item{
  box-sizing:border-box;
  height:94px;
  padding:14px 5px 13px;
}
.qa-item summary{
  box-sizing:border-box;
  height:94px;
  min-height:94px;
  padding:10px 4px;
}
.news-title,
.qa-title{
  font-size:13.5px;
  font-weight:650;
  line-height:1.48;
  letter-spacing:-.012em;
}
.news-summary,
.qa-meta{
  font-size:11px;
}
.news-list,
.qa-list{
  min-height:470px;
}
.qa-faq{
  display:inline-block;
  border:1px solid #d3ddd7;
  border-radius:999px;
  padding:1px 6px;
  color:#6d8176;
  background:#f6f9f7;
}
@media(max-width:620px){
  .news-item,
  .qa-item summary{
    height:auto;
    min-height:88px;
  }
  .news-list,
  .qa-list{
    min-height:0;
  }
}

/* v156: live Supabase Q&A content */
.qa-question-text{margin-bottom:8px;color:#6f7773;}
.qa-answer-text strong{color:var(--community-green);font-weight:700;}


/* Supabase live data status */
.community-data-message{
  padding:28px 4px;
  color:#6f766f;
  font-size:14px;
  line-height:1.6;
}
.community-data-message.error{
  color:#8b4b4b;
}
