/* community 화면 (Night Edition) — 08 게시판 · W1 게시판 웹 · 09 게시글 · 12 이벤트 · 05 벙개 만들기
   토큰·공통 클래스는 style.css 'Night Edition' 블록. 여기서는 cm-(게시판·글) ev-(이벤트) mt-(벙개 만들기) 접두어만 쓴다. */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 공통 ---------- */
.cm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cm-head h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.2; }
.cm-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.cm-head .btn.cm-write { flex: none; white-space: nowrap; padding: 11px 18px; border-radius: 10px; font-size: 14px; box-shadow: none; }
.cm-link { color: var(--gold); background: none; border: 0; padding: 0; font: inherit; font-size: 13px; cursor: pointer; }
.cm-section-t { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.cm-section-t .cm-link { margin-left: auto; font-weight: 500; }
.cm-av { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #3a3428; color: var(--text-2); font-weight: 700; line-height: 1; }
.cm-av.vip { background: #5a503a; box-shadow: 0 0 0 2px var(--gold); color: var(--gold-hi); }
.cm-cat { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; background: var(--panel-2); color: #c9c3b2; white-space: nowrap; }
.cm-cat.gold { background: rgba(212,175,55,.14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212,175,55,.4); }
.cm-region { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.cm-mt { font-size: 12px; font-weight: 700; color: var(--muted-2); white-space: nowrap; }
.cm-mt.open { color: var(--coral); }
.cm-rules { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--gold-edge); font-size: 13px; line-height: 1.6; color: var(--text-2); }
.cm-rules[hidden] { display: none; }

/* ---------- 08 게시판 / W1 게시판 웹 ---------- */
body[data-page="board"] main { max-width: 1320px; }
.cm-board { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 0; align-items: start; border: 1px solid #24221c; border-radius: 14px; background: var(--bg); min-height: 70vh; }
.cm-main { padding: 28px 32px; min-width: 0; }
.cm-side { position: sticky; top: 84px; align-self: start; border-right: 1px solid var(--line-soft); padding: 24px 14px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.cm-side-g { display: flex; flex-direction: column; gap: 2px; }
.cm-side a { padding: 7px 12px; border-radius: 8px; font-size: 14px; color: #c9c3b2; transition: background .15s, color .15s; }
.cm-side a:hover { background: var(--panel); color: var(--text); }
.cm-side a.cm-side-h { font-size: 11px; color: var(--muted-2); letter-spacing: .14em; font-weight: 700; padding: 0 12px 6px; background: none; }
.cm-side a.cm-side-h:hover { color: var(--gold); }
.cm-side a.on { background: rgba(212,175,55,.1); color: var(--gold-hi); font-weight: 700; box-shadow: inset 2px 0 0 var(--gold); }
.cm-side a.cm-side-h.on { background: none; box-shadow: none; color: var(--gold); }
.cm-rail { border-left: 1px solid var(--line-soft); padding: 28px 22px; display: flex; flex-direction: column; gap: 24px; min-width: 0; align-self: stretch; }
.cm-rail-t { display: block; font-size: 15px; margin-bottom: 6px; }
.cm-hot { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; font-size: 14px; color: var(--text-2); }
.cm-hot .serif { font-size: 18px; width: 14px; flex: none; }
.cm-hot span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cm-hot:hover span:last-child { color: var(--gold-hi); }

.cm-chips { margin-bottom: 12px; }
.cm-subchips { margin-bottom: 14px; }
.cm-subchips .chip { font-size: 13px; padding: 6px 12px; }
.cm-chips { display: none; }

.cm-notice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--panel); font-size: 13px; margin-bottom: 14px; }
.cm-notice b { color: var(--gold); flex: none; }
.cm-notice span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.cm-notice i { font-style: normal; color: var(--muted-2); }
.cm-pick { display: flex; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--gold-edge); background: radial-gradient(320px 120px at 0 0, rgba(212,175,55,.14), transparent 70%), var(--panel); transition: border-color .15s; }
.cm-pick:hover { border-color: var(--gold); }
.cm-pick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cm-pick-txt .serif { font-size: 15px; }
.cm-pick-txt b { font-size: 16px; line-height: 1.4; text-wrap: pretty; }
.cm-pick-img { width: 76px; height: 96px; border-radius: 12px; }
.cm-rail .cm-pick-img { display: none; }
.cm-rail .cm-pick-txt b { font-size: 15px; }
.cm-pick-m { display: none; }

/* 글 행 (모바일 카드형) */
.cm-feed { display: flex; flex-direction: column; }
.cm-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #1a1814; }
.cm-row:hover .cm-row-title { color: var(--gold-hi); }
.cm-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.cm-row-top { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.cm-row-top .cm-mt { margin-left: auto; }
.cm-row-title { font-size: 15px; font-weight: 600; line-height: 1.45; text-wrap: pretty; word-break: break-word; transition: color .15s; }
.cm-row-meta { font-size: 12px; color: var(--muted-2); }
.cm-row-thumb { width: 68px; height: 68px; border-radius: 10px; }
.cm-row.notice .cm-row-title { color: var(--gold-hi); }

/* 글 표 (W1 웹) */
.cm-table { display: none; border: 1px solid #24221c; border-radius: 14px; overflow: hidden; }
.cm-tr { display: grid; grid-template-columns: 96px minmax(0, 1fr) 100px 76px 56px; align-items: center; gap: 14px; padding: 15px 18px; border-top: 1px solid #1a1814; transition: background .15s; }
.cm-tr:first-child { border-top: 0; }
.cm-tr:hover { background: var(--panel); }
.cm-tr.notice { background: rgba(212,175,55,.05); }
.cm-td-st { font-size: 12px; font-weight: 700; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-td-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-cc { color: var(--gold); font-size: 13px; }
.cm-td-au { font-size: 13px; color: #c9c3b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-td-time { font-size: 13px; color: var(--muted-2); white-space: nowrap; }
.cm-td-fire { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.cm-feed.has-table { display: none; }
.cm-feed.has-table + .cm-table { display: block; }

.cm-fab { display: none; }

@media (max-width: 1180px) {
  .cm-board { grid-template-columns: 200px minmax(0, 1fr); }
  .cm-rail { display: none; }
  .cm-pick-m { display: block; margin-bottom: 4px; }
}
@media (max-width: 860px) {
  .cm-board { display: block; border: 0; border-radius: 0; background: none; min-height: 0; }
  .cm-side { display: none; }
  .cm-main { padding: 0; }
  .cm-chips { display: flex; }
  .cm-feed.has-table { display: flex; }
  .cm-feed.has-table + .cm-table { display: none; }
}
@media (max-width: 720px) {
  body[data-page="board"] main, body[data-page="post"] main, body[data-page="events"] main, body[data-page="meetup"] main { padding: 14px 20px 40px; }
  .cm-head { margin-bottom: 14px; }
  .cm-head h1 { font-size: 28px; }
  .cm-sub { font-size: 13px; }
  .cm-head .btn.cm-write { display: none; }
  .ev-head .cm-sub { display: none; }
  .cm-fab { display: flex; align-items: center; gap: 6px; position: fixed; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 80; height: 50px; padding: 0 20px; border-radius: 25px; background: var(--gold); color: var(--bg); font-weight: 700; font-size: 15px; box-shadow: var(--shadow-gold); }
  body.has-dock .cm-fab { bottom: 210px; }
  .cm-pick-m .cm-pick { margin-bottom: 0; }
}

/* ---------- 09 게시글 ---------- */
.cm-post { max-width: 720px; margin: 0 auto; }
.cm-topbar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 48px; margin: -6px 0 8px; }
.cm-topbar > span { text-align: center; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-back { font-size: 26px; line-height: 1; padding: 6px 4px; color: var(--text); }
.cm-more { justify-self: end; background: none; border: 0; color: var(--muted); font: inherit; font-size: 20px; letter-spacing: 2px; cursor: pointer; padding: 6px 2px; }
.cm-article { display: flex; flex-direction: column; gap: 16px; }
.cm-author { display: flex; align-items: center; gap: 10px; }
.cm-author > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cm-au-name { font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.cm-au-name .badge { font-size: 10px; padding: 1px 5px; }
.cm-follow { margin-left: auto; flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.cm-follow.on { border-color: var(--gold-edge); color: var(--gold); }
.cm-title { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; text-wrap: pretty; word-break: break-word; }
.cm-body { font-size: 15px; line-height: 1.75; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.cm-body[hidden] { display: none; }
.cm-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cm-photos.n1 { grid-template-columns: 1fr; }
.cm-photos a { display: block; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(135deg, #1d1b16 0 8px, #17150f 8px 16px); aspect-ratio: 4 / 3; }
.cm-photos.n1 a { aspect-ratio: auto; max-height: 520px; }
.cm-photos.n3 a:first-child { grid-row: span 2; aspect-ratio: auto; }
.cm-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-photos.n1 img { height: auto; max-height: 520px; object-fit: contain; }
.cm-venue { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s; }
.cm-venue:hover { border-color: var(--gold-edge); }
.cm-venue .thumb { font-size: 1.2rem; }
.cm-venue > span:not(.thumb) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cm-venue b { font-size: 14px; } .cm-venue small { font-size: 12px; color: var(--muted); }
.cm-venue em { font-style: normal; color: var(--gold); font-size: 13px; flex: none; }
.cm-rx { display: flex; gap: 8px; align-items: center; }
.cm-rx > span { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-pill { flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 99px; font: inherit; font-size: 14px; border: 1px solid var(--line); background: none; color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s; }
.cm-pill:hover { border-color: var(--gold-edge); }
.cm-pill.on { border-color: var(--gold); background: rgba(212,175,55,.1); color: var(--gold-hi); font-weight: 700; }
.cm-bm { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: inline-flex; }
.cm-bm.on { color: var(--gold); } .cm-bm.on svg { fill: currentColor; fill-opacity: .25; }

.cm-comments { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.cm-c-t { font-size: 15px; }
.cm-c { display: flex; gap: 10px; }
.cm-c { position: relative; border-radius: 10px; transition: background .2s; }
.cm-c.reply { padding-left: 40px; margin-top: -4px; }
.cm-c-elbow { position: absolute; left: 14px; top: -6px; width: 16px; height: 20px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 8px; }
.cm-c.replying { background: rgba(212,175,55,.07); box-shadow: 0 0 0 6px rgba(212,175,55,.07); }
.cm-c-gone .cm-c-ghost { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px dashed var(--line); }
.cm-c-gone p { font-size: 13px; font-style: normal; }
.cm-replying { position: absolute; left: 0; right: 0; bottom: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; font-size: 12px; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line-soft); }
.cm-replying[hidden] { display: none; }
.cm-replying b { color: var(--gold); font-weight: 700; }
.cm-replying button { background: none; border: 0; padding: 2px 4px; font: inherit; font-size: 12px; color: var(--muted-2); cursor: pointer; }
.cm-c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cm-c-head { font-size: 12px; color: var(--muted); }
.cm-c-head a { color: var(--muted); }
.cm-c-head .badge { font-size: 10px; padding: 1px 5px; }
.cm-c p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.cm-c-act { display: flex; gap: 12px; }
.cm-c-act button { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--muted-2); cursor: pointer; }
.cm-c-act button:hover { color: var(--text); }
.cm-c-act button.coral { color: var(--coral); }
.cm-composer { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 8px; align-items: flex-end; margin-top: 18px; padding: 10px 0 14px; background: var(--bg); border-top: 1px solid var(--line-soft); }
.cm-composer textarea { flex: 1; min-height: 44px; height: 44px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; font-size: 15px; line-height: 1.4; background: var(--panel); }
.cm-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--bg); font-weight: 700; font-size: 18px; cursor: pointer; }
.cm-cerr:empty { display: none; }
.cm-sheet-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cm-sheet-acts .btn { width: 100%; }

/* 글 안의 벙개 모집 카드 */
.cm-meet { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--gold-edge); background: radial-gradient(320px 120px at 0 0, rgba(212,175,55,.1), transparent 70%), var(--panel); }
.cm-meet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-meet-top .cm-mt { font-size: 14px; }
.cm-meet-when { font-size: 14px; font-weight: 600; color: var(--text); }
.cm-meet-dots { display: flex; align-items: center; gap: 6px; }
.cm-meet-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
.cm-meet-dots i.on { background: var(--gold); border-color: var(--gold); }
.cm-meet-dots span { margin-left: 6px; font-size: 12px; color: var(--muted-2); }
.cm-meet-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-meet-tags span { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--gold-edge); color: var(--gold); font-size: 12px; font-weight: 600; }
.cm-meet-btn { width: 100%; }
.cm-meet-apps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.cm-meet-apps-t { width: 100%; font-weight: 700; }
.cm-meet-apps a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--panel-2); }
.cm-meet-note { margin: 0; font-size: 12px; color: var(--muted-2); line-height: 1.5; }
.cm-meet-att { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.cm-meet-att[hidden] { display: none; }
.cm-meet-ok { font-size: 13px; font-weight: 700; color: var(--gold); }
.cm-meet-apps-t small { font-weight: 400; margin-left: 6px; }
.cm-meet-people { display: flex; flex-direction: column; gap: 8px; }
.cm-meet-person { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cm-meet-person > a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); min-width: 0; }
.cm-meet-person em { font-style: normal; font-size: 11px; color: var(--lime, #b8d86b); }
.cm-meet-pacts { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.cm-meet-rep { background: none; border: 0; padding: 0 2px; font: inherit; font-size: 12px; color: var(--muted-2); cursor: pointer; }
.cm-manner-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.cm-manner-tag { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.cm-manner-tag.on { border-color: var(--gold); background: rgba(212,175,55,.1); color: #f0d98a; font-weight: 700; }

@media (max-width: 720px) {
  body[data-page="post"] #tabbar, body[data-page="meetup"] #tabbar { display: none; }
  body[data-page="post"], body[data-page="meetup"] { padding-bottom: 0; }
  body[data-page="post"] .footer, body[data-page="meetup"] .footer { padding-bottom: 96px; }
  .cm-composer { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .cm-post { padding-bottom: 20px; }
  .cm-cerr { position: fixed; left: 16px; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 21; background: var(--bg); }
}

/* ---------- 12 이벤트 ---------- */
.ev-page { max-width: 980px; margin: 0 auto; }
.ev-head { align-items: center; }
.ev-head h1 { font-size: 28px; }
.ev-seg { flex: none; padding: 3px; border-radius: 10px; border: 0; gap: 0; }
.ev-seg > a { white-space: nowrap; padding: 6px 14px; font-size: 13px; border-radius: 8px; color: var(--muted); }
.ev-seg > a.on { background: #24221c; color: var(--text); font-weight: 700; }
.ev-strip { display: flex; gap: 2px; margin: 0 -6px 14px; }
.ev-day { flex: 1; height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background .15s; }
.ev-day:hover { background: var(--panel); }
.ev-day small { font-size: 11px; color: var(--muted-2); }
.ev-day .serif { font-size: 24px; line-height: 1; }
.ev-day i { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.ev-day i.on { background: var(--gold); }
.ev-day.today:not(.on) { box-shadow: inset 0 0 0 1px var(--line); }
.ev-day.on { background: var(--gold); color: var(--bg); }
.ev-day.on small { color: var(--bg); font-weight: 700; }
.ev-day.on i.on { background: var(--bg); }
.ev-filters { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ev-filters .chips { flex: 1; min-width: 0; gap: 7px; }
.ev-filters .chip { font-size: 13px; padding: 7px 13px; }
.ev-region { margin: 0; flex: none; letter-spacing: 0; }
.ev-region select { width: auto; padding: 6px 26px 6px 10px; border: 0; background: transparent; color: var(--muted); font-size: 13px; border-radius: 8px; cursor: pointer; }
.ev-region select:focus { box-shadow: 0 0 0 2px var(--gold-edge); }
.ev-admin { margin-bottom: 18px; } .ev-admin summary { cursor: pointer; font-weight: 700; }
.ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; align-items: start; }
.ev-list.past { opacity: .6; }
.ev-card { display: flex; gap: 16px; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.ev-date { width: 54px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-right: 16px; border-right: 1px solid var(--line); box-sizing: content-box; }
.ev-date .serif { font-size: 40px; line-height: 1; color: var(--gold); }
.ev-date small { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.ev-body, .ev-fest-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-badges { display: flex; gap: 6px; }
.ev-title { font-size: 17px; letter-spacing: -0.02em; line-height: 1.35; word-break: break-word; }
.ev-lineup { font-size: 13px; color: var(--gold); }
.ev-lineup a { color: var(--gold); }
.ev-meta { font-size: 12px; color: var(--muted); }
.ev-desc { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-link { font-size: 12px; color: var(--gold); }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ev-count { font-size: 12px; color: var(--muted); } .ev-count b { color: var(--text); }
.ev-actions { display: flex; gap: 6px; align-items: center; }
.ev-rsvp { padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; background: var(--gold); color: var(--bg); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ev-rsvp:hover { filter: brightness(1.06); }
.ev-rsvp.on { background: transparent; border-color: var(--line); color: var(--text-2); font-weight: 600; }
.ev-fest { border-radius: 18px; background: var(--panel); border: 1px solid var(--gold-edge); overflow: hidden; }
.ev-poster { height: 120px; padding: 12px; display: flex; justify-content: space-between; align-items: flex-start; background: repeating-linear-gradient(135deg, #1d1b16 0 8px, #17150f 8px 16px); }
.ev-poster .badge { font-size: 11px; font-weight: 700; padding: 4px 9px; }
.ev-poster .mono { font-size: 10px; color: #6e6a5e; letter-spacing: 0; }
.ev-poster { position: relative; }
.ev-poster.has-img { height: 180px; }
.ev-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-poster .badge, .ev-poster .ev-img-edit { position: relative; z-index: 1; }
.ev-img-edit { margin-left: auto; background: rgba(0,0,0,.55); }
.ev-card.has-img { flex-wrap: wrap; }
.ev-thumb { position: relative; flex: 0 0 100%; height: 150px; border-radius: 12px; overflow: hidden; background: var(--panel-2, #1d1b16); }
.tn-ev-img { position: relative; overflow: hidden; }
.tn-ev-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-fest-body { padding: 14px 16px 16px; gap: 4px; }
.ev-fest-body .ev-meta { font-size: 13px; }
/* 홈의 '다가오는 이벤트' 격자(.grid.cols-3)에서도 같은 카드 */
.grid > .ev-card, .grid > .ev-fest { height: 100%; }

/* ---------- 05 벙개 만들기 ---------- */
.mt-new { max-width: 560px; margin: 0 auto; }
.mt-new .cm-topbar { grid-template-columns: 72px 1fr 72px; }
.mt-save { font-size: 14px; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.mt-form { display: flex; flex-direction: column; gap: 22px; padding-top: 10px; }
.mt-form section { display: flex; flex-direction: column; gap: 10px; }
.mt-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.mt-label small { font-weight: 400; color: var(--muted-2); margin-left: 4px; }
.mt-place { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); width: 100%; font: inherit; color: var(--text); text-align: left; }
.mt-place > span:not(.thumb) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-place b { font-size: 15px; } .mt-place small { font-size: 12px; color: var(--muted); }
.mt-place .cm-link, .mt-place em { flex: none; font-style: normal; color: var(--gold); font-size: 13px; }
.mt-place.empty { cursor: pointer; border-style: dashed; }
.mt-place.empty svg { color: var(--gold); flex: none; }
.mt-place.empty:hover { border-color: var(--gold-edge); }
.mt-dates { display: grid; grid-template-columns: repeat(7, minmax(64px, 1fr)); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.mt-dates::-webkit-scrollbar { display: none; }
.mt-date { height: 52px; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3; cursor: pointer; }
.mt-date b { font-size: 14px; font-weight: 600; }
.mt-date small { font-size: 11px; color: var(--muted-2); }
.mt-date.on { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-hi); }
.mt-date.on b { font-weight: 700; } .mt-date.on small { color: var(--gold-hi); font-weight: 500; }
.mt-times { gap: 8px; }
.mt-times .chip { font: inherit; font-size: 14px; padding: 9px 14px; color: var(--text); cursor: pointer; }
.mt-times .chip[disabled] { color: var(--muted-2); opacity: .55; cursor: not-allowed; }
.mt-times .chip.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.mt-time-other { margin: 0; display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0; }
.mt-time-other input { width: auto; padding: 0; border: 0; background: none; color: inherit; font-size: 13px; box-shadow: none !important; color-scheme: dark; }
.mt-time-other.on input { color-scheme: light; }
.mt-people { flex-direction: row !important; align-items: center; justify-content: space-between; }
.mt-people > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.mt-people small { font-size: 12px; color: var(--muted-2); }
.mt-step { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.mt-step button { width: 40px; height: 40px; border-radius: 9px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 20px; cursor: pointer; }
.mt-step button:last-child { background: var(--panel-2); color: var(--text); }
.mt-step button[disabled] { opacity: .35; cursor: not-allowed; }
.mt-step b { width: 36px; text-align: center; font-size: 26px; color: var(--gold); }
.mt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-tag { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.mt-tag.on { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.mt-desc { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 14px; gap: 8px !important; }
.mt-desc:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.14); }
.mt-desc textarea { min-height: 76px; padding: 0; border: 0; background: none; font-size: 15px; line-height: 1.55; resize: none; box-shadow: none !important; }
.mt-desc small { font-size: 12px; color: var(--muted-2); }
.mt-cta { position: sticky; bottom: 0; padding: 12px 0 18px; background: var(--bg); border-top: 1px solid var(--line-soft); }
.mt-cta .btn { width: 100%; font-size: 16px; }
.mt-res { display: flex; flex-direction: column; margin-top: 8px; max-height: 50vh; overflow-y: auto; }
.mt-res-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mt-res-row:hover b { color: var(--gold-hi); }
.mt-res-row > span:not(.thumb) { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mt-res-row b { font-size: 14px; } .mt-res-row small { font-size: 12px; color: var(--muted); }
.mt-res-row .thumb { font-size: 1.2rem; }
@media (max-width: 720px) {
  .mt-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .mt-form { padding-bottom: 90px; }
}

/* ---------- 회원 제안 (pp-) ---------- */
.pp-wrap { max-width: 860px; margin: 0 auto; }
.pp-narrow { max-width: 680px; }
.pp-wrap button.chip { font: inherit; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.pp-wrap button.chip.on { color: var(--bg); }
.pp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 14px; }
.pp-bar .chips { flex-wrap: wrap; }
.pp-sort { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.pp-sort a { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.pp-sort a.on { background: var(--panel-2); color: var(--gold-hi); font-weight: 700; }
.pp-list { display: flex; flex-direction: column; gap: 10px; }
.pp-card { display: flex; gap: 14px; align-items: stretch; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); }
.pp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pp-title { font-size: 16px; line-height: 1.4; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pp-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pp-vote { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: .15s; }
.pp-vote b { font-size: 16px; color: var(--text); }
.pp-vote.on { border-color: var(--gold); color: var(--gold); background: var(--gold-tint); }
.pp-vote.on b { color: var(--gold-hi); }
.pp-vote:disabled { cursor: default; opacity: .7; }
.pp-vote.wide { width: auto; flex-direction: row; gap: 6px; padding: 10px 16px; font-size: 14px; }
.pp-st { display: inline-flex; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; background: var(--panel-2); color: var(--muted); }
.pp-st.open { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-edge); background: none; }
.pp-st.accepted { color: var(--lime); box-shadow: inset 0 0 0 1px rgba(143,227,160,.4); background: none; }
.pp-st.done { background: var(--lime); color: #17151a; }
.pp-st.rejected { color: var(--muted-2); }
.pp-form label { display: block; margin-top: 12px; }
.pp-form input, .pp-form select, .pp-form textarea, .pp-admin input, .pp-admin select, .pp-admin textarea { width: 100%; box-sizing: border-box; }
.pp-hint { margin: 0 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); line-height: 1.6; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pp-grid > div { min-width: 0; }
.pp-detail { margin-top: 12px; }
.pp-h { margin: 10px 0 4px; font-size: 24px; letter-spacing: -0.03em; line-height: 1.3; overflow-wrap: anywhere; }
.pp-pl { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gold-edge); background: var(--gold-tint); }
.pp-pl > span:first-child { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .08em; }
.pp-body { white-space: pre-wrap; line-height: 1.7; color: var(--text-2); overflow-wrap: anywhere; margin: 12px 0; }
.pp-actions { align-items: center; gap: 12px; }
.pp-reply { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pp-reply p { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.pp-admin { margin-top: 12px; }
.pp-admin .row { margin-top: 10px; flex-wrap: wrap; gap: 8px; }
.cm-side a.pp-side { color: var(--gold); font-weight: 600; border: 1px dashed var(--gold-edge); text-align: center; }
@media (max-width: 720px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-card { padding: 12px; gap: 12px; }
  .pp-vote { width: 48px; }
  .pp-h { font-size: 21px; }
}
#evregion{min-height:38px}

/* 모임 바로가기 (4×2 큰 버튼) */
.moim-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.moim-quick .mq { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px 10px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-soft); color: var(--text); text-decoration: none; font: inherit; cursor: pointer; text-align: center; min-width: 0; min-height: 84px; }
.moim-quick .mq:hover, .moim-quick .mq:focus-visible { background: var(--panel-2); border-color: var(--gold-edge); }
.moim-quick .mq-ic { font-size: 1.5rem; line-height: 1.1; }
.moim-quick b { font-size: .84rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.moim-quick .mq-sub { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (min-width: 900px) { .moim-quick { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.cm-allboards { flex: none; border-color: var(--gold-edge) !important; color: var(--gold-hi) !important; font: inherit; cursor: pointer; }
/* 전체 게시판 시트 */
.bp-list { display: flex; flex-direction: column; gap: 14px; }
.bp-group { border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px; background: var(--panel); }
.bp-head { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; color: inherit; text-decoration: none; padding: 2px 4px 8px; }
.bp-head .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-all { color: var(--gold); font-size: .8rem; }
.bp-boards { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-b { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--panel-2); color: var(--text); text-decoration: none; font-size: .88rem; }
.bp-b:hover { background: var(--panel-3, var(--panel-2)); }
