/* 오디행 광장 게시판(카페형) (2026-12-04, js/cafe.js). 목업: docs/mockups/village-cafe.html — 글씨는 목업 크기(작게) */
.cafe { padding-top: 64px; word-break: keep-all; }
.cafe [hidden], .cf-view [hidden], .cf-write [hidden] { display: none !important; }
.cf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.cf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cf-head .h2 { margin: 0; font-size: 18px; }
.cf-head .btn { height: 32px; padding: 0 14px; font-size: 12px; }
.cf-sub { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.cf-tabs { display: flex; gap: 5px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.cf-tabs::-webkit-scrollbar { display: none; }
.cf-tab { flex-shrink: 0; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 11.5px; color: var(--text); white-space: nowrap; cursor: pointer; }
.cf-tab:hover { border-color: var(--burgundy); }
.cf-tab.on { background: var(--burgundy); border-color: var(--burgundy); color: #fff; font-weight: 700; }
.cf-tab:disabled { background: #f1f1f1; border-color: #e4e4e4; color: #b5b5b5; cursor: not-allowed; } /* 공지 말머리(못 쓰는 분) */
.cf-tab .lk { font-size: 10px; opacity: .75; margin-left: 3px; }
.cf-tools { display: flex; gap: 8px; margin-top: 10px; }
.cf-search { flex: 1; min-width: 0; height: 32px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 12px; background: var(--surface); }
.cf-search:focus { outline: 2px solid var(--burgundy); outline-offset: -1px; border-color: transparent; }
.cf-filter { margin: 10px 0 0; font-size: 12px; color: var(--text); }
.cf-filter button { margin-left: 6px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 11px; color: var(--muted); cursor: pointer; }
.cf-empty { margin: 10px 0 0; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); text-align: center; font-size: 12.5px; color: var(--muted); }
.cf-locked { margin-top: 14px; padding: 22px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cf-locked p { margin: 0 0 12px; font-size: 13px; color: var(--text); }
.cf-locked p:last-child { margin: 0; }
.cf-locked .btn { height: 36px; padding: 0 16px; font-size: 12.5px; }

/* 목록: PC 한 줄 표 · 휴대폰 두 줄 */
.cf-tbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; table-layout: fixed; }
.cf-tbl th { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; padding: 7px 4px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.cf-tbl th:nth-child(2) { text-align: left; padding-left: 8px; }
.cf-tbl td { padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-tbl .no { width: 46px; text-align: center; color: var(--muted); font-size: 11px; }
.cf-tbl .tt { padding-left: 8px; }
.cf-tbl .tt a { color: var(--ink); }
.cf-tbl .tt a:hover { text-decoration: underline; }
.cf-tbl .au { width: 150px; }
.cf-tbl .dt { width: 92px; text-align: center; color: var(--muted); font-size: 11.5px; }
.cf-tbl .vw { width: 48px; text-align: center; color: var(--muted); font-size: 11.5px; }
.cf-tbl tr.notice td, .cf-mlist li.notice { background: #fdf7f8; }
.cf-tbl tr.notice .tt a, .cf-mlist li.notice .mt { color: var(--burgundy); font-weight: 700; }
.cf-ntag { display: inline-block; padding: 1px 7px; border: 1px solid #efc3ca; border-radius: 3px; background: #fbecee; color: var(--burgundy); font-size: 11px; font-weight: 600; line-height: 17px; }
.cf-cat { color: #9a9a9a; font-size: 12px; margin-right: 4px; }
.cf-cat::before { content: '['; } .cf-cat::after { content: ']'; }
.cf-ic { color: #b9b9b9; font-size: 10px; margin-left: 5px; }
.cf-c { color: #e0473f; font-weight: 700; font-size: 11.5px; }
.cf-bd { display: inline-block; margin-left: 3px; padding: 0 3px; border-radius: 2px; border: 1px solid #d6d6d6; color: #a0a0a0; font-size: 8.5px; font-weight: 600; line-height: 12px; vertical-align: 1px; }
.cf-bd.a { border-color: #b9b9b9; color: #777; }
.cf-mlist { display: none; list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.cf-mlist li { border-bottom: 1px solid var(--line); }
.cf-mlist a { display: block; padding: 8px 2px; }
.cf-mlist .mt { margin: 0; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-mlist .mm { margin: 2px 0 0; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-pager { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.cf-pager button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.cf-pager button.on { background: var(--ink); color: #fff; }
@media (max-width: 720px) {
  .cf-tbl { display: none; }
  .cf-mlist { display: block; }
  .cf-tab .lk { display: none; }
}

/* 글 보기: 큰 팝업 · 휴대폰은 화면 전체 */
html.cf-lock { overflow: hidden; }
.cf-view .sheet { width: min(820px, 100%); max-height: 90vh; padding: 32px 36px 28px; border-radius: 16px; }
.cf-view .cf-empty, .cf-ask .cf-empty { border: 0; }
.cf-crumb { margin: 0; padding-right: 40px; }
.cf-crumb button { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.cf-crumb button:hover { color: var(--burgundy); }
.cf-view .cf-vt { margin: 6px 0 14px; padding-right: 30px; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.35; word-break: keep-all; }
.cf-av { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #eadfd6; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; color: #8a6f5c; }
.cf-av.s { width: 22px; height: 22px; font-size: 10px; vertical-align: middle; margin-right: 6px; }
.cf-av.cf-face { overflow: hidden; place-items: start center; } /* 글쓴이 캐릭터 상체(2026-12-04 대표) */
.cf-av.cf-face svg { display: block; width: 74%; height: auto; margin-top: 8%; }
.cf-arow { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cf-ainfo { flex: 1; min-width: 0; }
.cf-ainfo p { margin: 0; font-size: 13px; color: var(--ink); }
.cf-role { margin-left: 4px; font-size: 11.5px; color: var(--burgundy); }
.cf-ainfo small { font-size: 11px; color: var(--muted); }
.cf-acnt { flex-shrink: 0; font-size: 12px; color: var(--text); }
.cf-pbody { padding: 18px 0 6px; font-size: 13.5px; line-height: 1.65; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.cf-pbody > p { margin: 0 0 14px; }
.cf-pbody a { color: var(--burgundy); }
.cf-file { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 0 0 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 12.5px; color: var(--ink) !important; }
a.cf-file:hover { border-color: var(--burgundy); }
.cf-file .fi { color: #888; }
.cf-file .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-file .dl { color: #aaa; font-size: 15px; }
.cf-file.off .dl { font-size: 11px; }
.cf-file.sm { margin: 0 0 6px; padding: 8px 12px; }
.cf-file button.dl { border: 0; background: none; padding: 0 2px; font: inherit; font-size: 16px; cursor: pointer; }
.cf-pimgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 520px; margin-top: 6px; }
.cf-pimgs a { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--bg); }
.cf-pimgs img { width: 100%; height: 100%; object-fit: cover; }
.cf-more { margin: 10px 0 12px; }
.cf-more button { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; }
.cf-more button:hover b { color: var(--burgundy); }
.cf-pbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink); }
.cf-like { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.cf-like .h { color: #e5484d; font-size: 14px; }
.cf-own { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.cf-own button { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.cf-own button:hover { color: var(--burgundy); }
.cf-csort { display: flex; gap: 10px; padding: 16px 0 10px; }
.cf-csort button { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.cf-csort button.on { color: var(--ink); font-weight: 700; }
.cf-cm { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cf-cm li { display: flex; gap: 10px; padding: 14px 0; }
.cf-cm li + li { border-top: 1px solid #ececec; }
.cf-cm li.re { padding-left: 32px; }
.cf-cm .cf-av.s { margin-right: 0; }
.cf-cm .cc { flex: 1; min-width: 0; }
.cf-cm .cn { margin: 0 0 3px; font-size: 12.5px; color: var(--ink); }
.cf-cm .ct { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.cf-cm small { display: block; margin-top: 4px; font-size: 11px; color: #9a9a9a; }
.cf-cm small button { margin-left: 8px; padding: 0; border: 0; background: none; font: inherit; color: #9a9a9a; cursor: pointer; }
.cf-cm small button:hover { color: var(--ink); }
.cf-cm .cr { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cf-cm .cr > button { padding: 0 2px; border: 0; background: none; font: inherit; font-size: 12px; color: #aaa; cursor: pointer; line-height: 1.2; }
.cf-cm .cr > button.on { color: #e5484d; }
.cf-cm .cr i { display: block; font-style: normal; font-size: 10px; }
.cf-menu { position: absolute; top: 18px; right: 0; z-index: 2; display: flex; flex-direction: column; min-width: 72px; padding: 4px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.cf-menu button { padding: 6px 12px; border: 0; background: none; font: inherit; font-size: 12px; color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; }
.cf-menu button:hover { background: var(--bg); }
.cf-cbox { display: block; margin-top: 14px; padding: 14px 16px; border: 2px solid #e6e6e6; border-radius: 8px; }
.cf-cbox:focus-within { border-color: #cfcfcf; }
.cf-cbox b { font-size: 12.5px; color: var(--ink); }
.cf-cbox textarea { display: block; width: 100%; margin: 6px 0 8px; padding: 0; border: 0; resize: vertical; min-height: 40px; font: inherit; font-size: 12.5px; color: var(--ink); background: none; outline: none; }
.cf-cbox textarea::placeholder { color: #b5b5b5; }
.cf-cft { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cf-cerr { color: var(--burgundy); font-size: 11.5px; }
.cf-reg { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--burgundy); cursor: pointer; }
.cf-reg.off { color: #9a9a9a; font-weight: 400; margin-right: 8px; }
.cf-reg:disabled { color: #b5b5b5; }
.cf-rbox, .cf-ebox { margin-top: 10px; padding: 10px 12px; }
.cf-pfoot { display: flex; gap: 6px; margin-top: 16px; }
.cf-pfoot button { padding: 7px 12px; border-radius: 6px; border: 0; background: #f1f1f1; font: inherit; font-size: 12px; color: var(--ink); font-weight: 600; cursor: pointer; }
.cf-pfoot .wr { background: #fbecee; color: var(--burgundy); }
.cf-pfoot .sp { flex: 1; }

/* 글 쓰기 · 로그인 안내 팝업 */
.cf-write .sheet { width: min(560px, 100%); }
.cf-write h3, .cf-ask h3 { font-size: var(--fs-h3); font-weight: 800; color: var(--ink); }
.cf-wform { margin-top: 18px; }
.cf-wform .field + .field { margin-top: 12px; }
.cf-wform .field label, .cf-wform .lbl { font-size: 11.5px; }
.cf-wform input[type=text] { height: 38px; }
.cf-wform textarea { height: 160px; }
.cf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cf-hint { color: var(--muted); font-size: 11.5px; }
.cf-ph { display: flex; gap: 6px; flex-wrap: wrap; }
.cf-th { position: relative; width: 56px; height: 56px; border-radius: 10px; background: var(--bg); overflow: hidden; }
.cf-th img { width: 100%; height: 100%; object-fit: cover; }
.cf-th button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(28,27,27,.6); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.cf-th.add { display: grid; place-items: center; background: var(--surface); border: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); cursor: pointer; }
.cf-pick { justify-self: start; height: 32px; padding: 0 14px; font-size: 12px; cursor: pointer; }
.cf-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.cf-acts .btn { height: 38px; padding: 0 18px; font-size: 13px; }
.cf-ask .sheet { width: min(400px, 100%); }
.cf-ask .since { margin-top: 6px; }

@media (max-width: 720px) {
  .cf-view { padding: 0; align-items: stretch; }
  .cf-view .sheet { width: 100%; height: 100%; max-height: none; border-radius: 0; padding: 22px 16px 32px; }
  .cf-view .cf-vt { font-size: 18px; }
  .cf-cm li.re { padding-left: 20px; }
  .cf-pfoot button { padding: 7px 10px; }
}
/* 말머리 필수 표시 (2026-12-04) */
.cf-req { font-weight: 600; color: var(--burgundy); font-size: 12px; }
