/* 새말동 이야기 — 동네 아파트 카페 (규칙표 1절, 2026-11-14 개편)
 * 포털 동네 카페의 흔한 문법만 쓴다: 대문 사진, 왼쪽 카페정보·나의활동·메뉴, 가운데 게시판 표, 글 보기와 댓글.
 * 빽빽하게: 본문 13px, 줄 사이 좁게, 얇은 회색 선. 카페 스킨색은 청록. */
:root {
  --teal: #1f8a7a;
  --teal-d: #166b5f;
  --teal-l: #e8f4f1;
  --teal-ll: #f4faf8;
  --ink: #222;
  --ink-2: #555;
  --ink-3: #6e7472;
  --ink-4: #8d9391;
  --line: #ececec;
  --line-2: #dcdfde;
  --line-3: #c9cecc;
  --red: #e5533d;
  --warn: #b23b2c;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #fff; }
body.cafe { margin: 0; min-width: 1100px; color: var(--ink); font: 13px/1.5 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.cf-empty { padding: 70px 0; color: var(--ink-3); text-align: center; }

/* ── 아이콘 */
.gr, [class^="ic-"], [class*=" ic-"] { display: inline-block; flex: none; background: center / contain no-repeat; vertical-align: -2px; font-style: normal; }
.gr { width: 14px; height: 14px; margin-left: 3px; vertical-align: -2px; }
.gr-sprout { background-image: url("i/gr-sprout.svg"); }
.gr-leaf { background-image: url("i/gr-leaf.svg"); }
.gr-fruit { background-image: url("i/gr-fruit.svg"); }
.gr-best { background-image: url("i/gr-best.svg"); }
.gr-manager { background-image: url("i/gr-manager.svg"); }
.ic-lock { width: 12px; height: 12px; margin-left: 4px; background-image: url("i/lock.svg"); opacity: 0.8; }
.ic-lock-big { width: 48px; height: 48px; background-image: url("i/lock-big.svg"); }
.ic-search { width: 16px; height: 16px; background-image: url("i/search.svg"); }
.ic-list { width: 14px; height: 14px; margin-right: 6px; background-image: url("i/list.svg"); }
.ic-fire { width: 14px; height: 14px; margin-right: 6px; background-image: url("i/fire.svg"); }
.ic-photo { width: 14px; height: 14px; margin-left: 5px; background-image: url("i/photo.svg"); }
.ic-pen { width: 13px; height: 13px; margin-right: 5px; background-image: url("i/pen.svg"); }
.ic-chev { width: 12px; height: 12px; margin-left: 2px; background-image: url("i/chev.svg"); vertical-align: -1px; }
.ic-bubble { width: 15px; height: 15px; margin-right: 4px; background-image: url("i/bubble.svg"); }
.ic-heart { width: 15px; height: 15px; margin-right: 4px; background-image: url("i/heart.svg"); }

/* 프로필 그림: 기본 그림·작은 그림, 사진은 카페에 올라온 사진의 일부 */
.av { display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #e3e8e6 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); vertical-align: middle; }
.av-md { width: 40px; height: 40px; }
.av-lg { width: 56px; height: 56px; }
.av-xl { width: 64px; height: 64px; }
.av-none { background-image: url("av/none.svg"); }
.av-del { background-image: url("av/del.svg"); }
.av-cafe { background-image: url("av/cafe.svg"); }
.av-coffee { background-image: url("av/coffee.svg"); }
.av-cat { background-image: url("av/cat.svg"); }
.av-rainbow { background-image: url("av/rainbow.svg"); }
.av-bear { background-image: url("av/bear.svg"); }
.av-moon { background-image: url("av/moon.svg"); }
.av-bean { background-image: url("av/bean.svg"); }
.av-wave { background-image: url("av/wave.svg"); }
.av-azalea { background-image: url("/_shared/img/saemal-jangseung.jpg"); background-size: 820% auto; background-position: 79% 56%; }
.av-jangseung { background-image: url("/_shared/img/saemal-jangseung.jpg"); background-size: 520% auto; background-position: 41% 22%; }
.av-tree { background-image: url("/_shared/img/saemal-jangseung.jpg"); background-size: 420% auto; background-position: 97% 12%; }

/* ── 맨 위 띠 */
.cf-gnb { border-bottom: 1px solid #e6e6e6; background: #fff; }
.cf-gnb-in { display: flex; align-items: center; gap: 14px; max-width: 1080px; height: 34px; margin: 0 auto; color: var(--ink-3); font-size: 12px; }
.cf-gnb-home { color: var(--ink); font-weight: 700; }
.cf-gnb-sep { width: 1px; height: 10px; background: var(--line-2); }
.cf-gnb-dim { color: var(--ink-4); }
.cf-gnb-me { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cf-gnb-me a { color: var(--ink-2); }
.cf-gnb-me strong { color: var(--ink); }

/* ── 대문 */
.cf-head { max-width: 1080px; margin: 14px auto 0; }
.cf-banner { position: relative; display: block; height: 216px; overflow: hidden; border-radius: 3px; background: #6e8f86; text-decoration: none !important; }
.cf-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 63%; }
.cf-banner-img.is-stand-in { left: auto; right: -2%; top: -6%; width: 232%; height: auto; object-fit: initial; filter: saturate(0.9) brightness(1.03) blur(0.6px); }
.cf-banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 52, 46, 0.78) 0%, rgba(12, 52, 46, 0.5) 34%, rgba(12, 52, 46, 0) 64%); }
.cf-banner-text { position: absolute; left: 34px; bottom: 30px; display: grid; gap: 4px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.cf-banner-kicker { font-size: 12px; letter-spacing: 0.04em; opacity: 0.92; }
.cf-banner-name { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.cf-banner-tag { font-size: 13px; opacity: 0.95; }

/* ── 틀 */
.cf-body { display: grid; grid-template-columns: 200px 1fr; gap: 26px; max-width: 1080px; margin: 16px auto 0; }
.cf-side { display: grid; gap: 10px; align-content: start; }
.cf-box { border: 1px solid var(--line-2); background: #fff; }
.cf-main { min-width: 0; min-height: 640px; }

/* 왼쪽: 카페정보 · 나의활동 */
.cf-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-2); }
.cf-tabs button { padding: 9px 0 8px; border: 0; border-bottom: 2px solid transparent; background: #fafbfa; color: var(--ink-3); font-size: 12.5px; cursor: pointer; }
.cf-tabs button.is-on { border-bottom-color: var(--teal); background: #fff; color: var(--ink); font-weight: 700; }
.cf-tabpanel { padding: 14px 13px 4px; }
.cf-manager { display: flex; align-items: center; gap: 9px; }
.cf-manager-name { margin: 0; font-weight: 700; }
.cf-manager-name .gr { margin-left: 1px; }
.cf-manager-sub { margin: 1px 0 0; color: var(--ink-4); font-size: 11.5px; }
.cf-stats { display: grid; gap: 3px; margin: 12px 0 2px; padding-top: 10px; border-top: 1px dotted var(--line-3); font-size: 12px; }
.cf-stats div { display: flex; justify-content: space-between; }
.cf-stats dt { color: var(--ink-3); }
.cf-stats dd { margin: 0; color: var(--ink-2); }
.cf-stats a { color: var(--teal-d); text-decoration: underline; }
.cf-me-empty { margin: 4px 0 8px; color: var(--ink-3); font-size: 12px; line-height: 1.6; text-align: center; }
.cf-me { display: grid; gap: 8px; }
.cf-me-top { display: flex; align-items: center; gap: 9px; }
.cf-me-top strong { display: block; font-size: 13px; word-break: break-all; }
.cf-me-top span { color: var(--ink-3); font-size: 11.5px; }
.cf-me-stats { display: grid; gap: 3px; padding-top: 9px; border-top: 1px dotted var(--line-3); font-size: 12px; }
.cf-me-stats div { display: flex; justify-content: space-between; }
.cf-me-stats dt { color: var(--ink-3); }
.cf-me-stats dd { margin: 0; }
.cf-side-btns { display: grid; gap: 6px; padding: 10px 13px 13px; }

/* 단추 */
.cf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 3px; background: #fff; color: var(--ink-2); font-size: 12.5px; line-height: 1; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.cf-btn:hover { border-color: #aab1ae; color: var(--ink); }
.cf-btn-main { min-height: 36px; border-color: var(--teal); background: var(--teal); color: #fff !important; font-weight: 700; font-size: 13px; }
.cf-btn-main:hover { border-color: var(--teal-d); background: var(--teal-d); }
.cf-btn-write { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 700; }
.cf-btn-write:hover { border-color: var(--teal-d); background: var(--teal-d); color: #fff; }
.cf-side-btns .cf-btn { width: 100%; }

/* 왼쪽 검색 */
.cf-side-search { display: flex; border: 1px solid var(--line-3); background: #fff; }
.cf-side-search input { flex: 1; min-width: 0; padding: 7px 8px; border: 0; outline: none; font-size: 12.5px; }
.cf-side-search button { display: grid; place-items: center; width: 32px; border: 0; background: none; cursor: pointer; }

/* 메뉴 */
.cf-menu { padding: 6px 0 8px; }
.cf-menu ul { margin: 0; padding: 0; list-style: none; }
.cf-menu-top { padding: 2px 0 6px !important; border-bottom: 1px solid var(--line); }
.cf-menu-top a { display: flex; align-items: center; padding: 6px 13px; font-weight: 700; color: var(--ink); }
.cf-menu-group { padding: 6px 0 2px; }
.cf-menu-group + .cf-menu-group { border-top: 1px dotted var(--line-2); }
.cf-menu-head { margin: 2px 0 2px; padding: 0 13px; color: var(--ink-4); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.cf-menu-group a { display: flex; align-items: center; padding: 4px 13px 4px 22px; color: var(--ink-2); font-size: 12.5px; position: relative; }
.cf-menu-group a::before { content: ""; position: absolute; left: 14px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: #b9c0be; }
.cf-menu a:hover { background: var(--teal-ll); text-decoration: none; }
.cf-menu a[aria-current="page"] { color: var(--teal-d); font-weight: 700; background: var(--teal-ll); }
.cf-menu a[aria-current="page"]::before { background: var(--teal); }

.cf-side-note { padding: 11px 13px; font-size: 11.5px; }
.cf-side-note-h { margin: 0 0 6px; color: var(--ink-2); font-weight: 700; }
.cf-side-note ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; color: var(--ink-3); }
.cf-side-note li { display: flex; justify-content: space-between; }

/* ── 홈: 인기글 · 새 댓글 */
.cf-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.cf-widget { min-width: 0; border-top: 2px solid var(--ink); }
.cf-widget-h { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 10px 2px 8px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.cf-widget-h > span:not(.cf-widget-t) { color: var(--ink-4); font-size: 11.5px; font-weight: 400; }
.cf-widget-h .cf-more { margin-left: auto; color: var(--ink-3); font-size: 11.5px; font-weight: 400; }
.cf-widget-h .cf-more:hover { color: var(--ink); }
.cf-widget-h a { color: var(--ink); }
.cf-hot, .cf-newc { margin: 0; padding: 4px 0 0; list-style: none; }
.cf-hot li { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid #f3f3f3; }
.cf-hot li a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cf-rank { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 2px; background: #f0f2f1; color: var(--ink-3); font-size: 11px; font-weight: 800; }
.cf-rank.r-1, .cf-rank.r-2, .cf-rank.r-3 { background: var(--teal); color: #fff; }
.cf-newc li a { display: grid; gap: 1px; padding: 5px 2px; border-bottom: 1px solid #f3f3f3; text-decoration: none; }
.cf-newc li a:hover .cf-newc-text { text-decoration: underline; }
.cf-newc-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.cf-newc-meta { color: var(--ink-4); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ── 게시판 */
.cf-board-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.cf-board-title { margin: 0; font-size: 18px; letter-spacing: -0.03em; }
.cf-board-count { margin-left: 6px; color: var(--teal); font-size: 13px; }
.cf-board-desc { margin: 0; color: var(--ink-3); font-size: 12px; }
.cf-board-tools { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.cf-sort { display: flex; gap: 10px; color: var(--ink-4); font-size: 12px; }
.cf-sort .is-on { color: var(--ink); font-weight: 700; }
.cf-sort span + span::before { content: ""; display: inline-block; width: 1px; height: 9px; margin-right: 10px; background: var(--line-2); }

.cf-list { width: 100%; border-collapse: collapse; table-layout: fixed; border-top: 1px solid #4a4a4a; }
.cf-list col.w-kind { width: 86px; }
.cf-list col.w-author { width: 128px; }
.cf-list col.w-date { width: 82px; }
.cf-list col.w-views { width: 56px; }
.cf-list col.w-likes { width: 52px; }
.cf-list th { height: 36px; padding: 0 6px; border-bottom: 1px solid var(--line-2); background: #fafafa; color: var(--ink-2); font-size: 12px; font-weight: 400; text-align: center; }
.cf-list td { height: 37px; padding: 0 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cf-list tr:hover td { background: #fbfcfc; }
.c-kind { color: var(--ink-4); font-size: 11.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-kind a { color: var(--ink-3); }
.c-title-in { display: flex; align-items: center; min-width: 0; }
.c-title-in > a:first-of-type, .c-title-in > .c-tag + a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.c-tag { flex: none; margin-right: 4px; font-size: 12.5px; color: var(--teal-d); }
.c-tag::before { content: "["; }
.c-tag::after { content: "]"; }
.c-tag.t-1 { color: #c05a1e; }
.c-tag.t-2 { color: #3d6fb6; }
.c-tag.t-3 { color: #7b5aa6; }
.c-tag.t-4 { color: #5b7d2b; }
.c-count { flex: none; margin-left: 4px; color: var(--red); font-size: 11.5px; font-weight: 700; }
.c-new { flex: none; display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 4px; border-radius: 2px; background: #ff6a3d; color: #fff; font-size: 9px; font-weight: 800; }
.c-author { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-date, .c-views, .c-likes { color: var(--ink-3); font-size: 12px; text-align: center; white-space: nowrap; }
.is-pinned td { background: #fbfaf5; }
.is-pinned .c-title-in a { font-weight: 700; }
.c-notice { display: inline-block; padding: 1px 6px 0; border: 1px solid #f0b5a9; border-radius: 2px; color: var(--red); font-size: 11px; font-weight: 700; background: #fff; }
.is-slot td { height: auto; padding: 0; border: 0; }
.is-slot [data-piece-status="locked"], .is-slot [data-piece-status="missing"], .is-slot [data-piece]:not([data-piece-status="open"]) { display: none; }
.is-gone { display: none !important; }

/* 닉네임 단추 */
.nick { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.nick:hover { text-decoration: underline; }
.c-author .nick { color: var(--ink-2); }

/* 쪽 넘김 */
.cf-pager { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 20px 0 14px; font-size: 13px; }
.cf-pager a, .cf-pager strong, .cf-pager span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; color: var(--ink-2); }
.cf-pager strong { border: 1px solid var(--line-3); color: var(--teal-d); font-weight: 800; }
.cf-pager .pg-arrow { color: var(--ink-3); font-size: 12px; }
.cf-pager .is-off { color: #c4c8c7; }
.cf-board-search { display: flex; justify-content: center; gap: 4px; margin: 6px 0 0; }
.cf-board-search select, .cf-board-search input { height: 30px; padding: 0 8px; border: 1px solid var(--line-3); background: #fff; font-size: 12.5px; }
.cf-board-search input { width: 200px; }

.cf-locked { display: grid; justify-items: center; gap: 4px; padding: 60px 20px; border-top: 1px solid #4a4a4a; border-bottom: 1px solid var(--line); color: var(--ink-3); text-align: center; }
.cf-locked p { margin: 0; }
.cf-locked .ic-lock-big { margin-bottom: 8px; }
.cf-locked-t { color: var(--ink); font-size: 14px; }
.cf-locked a { color: var(--teal-d); text-decoration: underline; }

/* ── 글 */
.post-head { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.post-board { margin: 0 0 6px; font-size: 12.5px; }
.post-board a { color: var(--teal-d); font-weight: 700; }
.post-title { margin: 0 0 14px; font-size: 22px; line-height: 1.38; letter-spacing: -0.03em; font-weight: 700; word-break: keep-all; }
.post-tag { color: var(--teal-d); font-weight: 400; }
.post-writer { display: flex; align-items: center; gap: 10px; }
.post-writer-in { min-width: 0; }
.post-writer-name { display: flex; align-items: center; margin: 0; font-size: 13.5px; font-weight: 700; }
.post-grade { margin-left: 4px; color: var(--ink-3); font-size: 11.5px; font-weight: 400; }
.post-meta { display: flex; gap: 10px; margin: 2px 0 0; color: var(--ink-4); font-size: 12px; }
.post-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; color: var(--ink-3); font-size: 12px; }
.post-ccount { display: inline-flex; align-items: center; color: var(--ink-2); }
.post-url { padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; color: var(--ink-3); font-size: 11.5px; cursor: pointer; }
.post-body { padding: 26px 0 6px; font-size: 15px; line-height: 1.82; letter-spacing: -0.015em; word-break: keep-all; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 16px; }
.post-body a { color: #2a62b8; text-decoration: underline; }
.post-body ul { margin: 0 0 16px; padding-left: 20px; }
.post-body strong { font-weight: 700; }
.post-body .sd-linkcard { margin: -6px 0 18px; }
.post-react { display: flex; gap: 16px; margin: 10px 0 0; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; }
.post-react span { display: inline-flex; align-items: center; }
.post-gate { display: grid; justify-items: center; gap: 0; margin: 26px 0; padding: 44px 24px 40px; border: 1px solid var(--line-2); background: var(--teal-ll); text-align: center; }
.post-gate .ic-lock-big { margin-bottom: 12px; }
.post-gate-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.post-gate-text { margin: 0 0 18px; color: var(--ink-2); }
.post-gate .cf-btn { padding: 0 28px; }
.post-gone { margin: 26px 0; padding: 50px 0; border: 1px solid var(--line); background: #fafafa; color: var(--ink-3); text-align: center; }
.post-gone .sd-body p { margin: 0; }
.post-bottom { display: flex; justify-content: space-between; gap: 6px; margin: 18px 0 0; }
.post-pn { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid #4a4a4a; }
.post-pn li { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.post-pn .pn-label { flex: none; width: 50px; color: var(--ink-3); font-size: 12px; }
.pn-next .pn-label::after { content: " ▲"; font-size: 9px; }
.pn-prev .pn-label::after { content: " ▼"; font-size: 9px; }
.post-pn a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.post-pn .pn-date { flex: none; color: var(--ink-4); font-size: 12px; }
.post-pn .is-off { color: var(--ink-4); }

/* 사진 첨부 */
.sd-figure { position: relative; margin: 4px 0 18px; max-width: 600px; }
.sd-ph { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: linear-gradient(135deg, #eef2f1 25%, #e6ecea 25% 50%, #eef2f1 50% 75%, #e6ecea 75%) 0 0 / 24px 24px; }
.sd-img { display: block; width: 100%; height: auto; }
.sd-alt { margin-top: 6px; color: var(--ink-4); font-size: 12px; }
/* 진짜 카페 사진엔 설명 글이 붙지 않는다. 그림이 있으면 설명은 숨기고 원본 보기 안내만 */
.sd-figure.has-img .sd-alt { font-size: 0; text-align: right; }
.sd-figure.has-img .sd-alt::before { content: "사진 원본 보기"; color: var(--ink-4); font-size: 11.5px; }
.sd-figure.has-img { cursor: zoom-in; }

/* 박스 스티커 (사진 위에 코드로 얹음). 사진 창에서는 --sdv-k 배율만큼 같이 커진다 */
.sticker { --k: 1; position: absolute; display: grid; gap: calc(2px * var(--k)); padding: calc(7px * var(--k)) calc(8px * var(--k)); color: #2a2a2a; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; pointer-events: none; }
.sticker-logo { color: #d9481c; font: 800 calc(11px * var(--k)) / 1.2 var(--sans); letter-spacing: 0.02em; }
.sticker-no { font-weight: 700; white-space: nowrap; line-height: 1.2; }
.sticker-full { left: 35.6%; top: 30%; width: 24.4%; transform: rotate(-0.6deg); }
.sticker-full .sticker-no { font-size: calc(11px * var(--k)); letter-spacing: -0.01em; }
.sticker-half { left: 74.5%; top: 78.5%; width: 21%; transform: rotate(-7deg); }
.sticker-half .sticker-no { font-size: calc(10px * var(--k)); letter-spacing: -0.02em; }
.sticker-half .sticker-logo { font-size: calc(10px * var(--k)); }
.sd-figure:not(.in-viewer) .sticker-half .sticker-no { filter: blur(0.35px); opacity: 0.88; }
.in-viewer .sticker { --k: var(--sdv-k, 1); }
.sd-figure:not(.has-img) .sticker-full { left: 30%; top: 42%; width: auto; background: #fffdf6; }
.sd-figure:not(.has-img) .sticker-half { left: 58%; top: 56%; width: auto; background: #fffdf6; }

/* ── 댓글 */
.post-comments { margin-top: 0; padding-top: 4px; }
.post-comments-h { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 0 6px; font-size: 15px; }
.post-comments-sort { display: flex; gap: 8px; color: var(--ink-4); font-size: 12px; font-weight: 400; }
.post-comments-sort .is-on { color: var(--ink); font-weight: 700; }
.cms, .sd-comments { margin: 0; padding: 0; list-style: none; }
.cm { display: flex; gap: 10px; padding: 13px 2px 12px; border-bottom: 1px solid var(--line); }
.cm.is-reply { padding-left: 40px; background: #fafbfb; }
.cm.is-reply::before { content: ""; flex: none; width: 8px; height: 8px; margin: 4px -4px 0 -16px; border-left: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.cm-box { flex: 1; min-width: 0; }
.cm-head { display: flex; align-items: center; margin: 0 0 3px; font-size: 13px; font-weight: 700; }
.cm-writer { margin-left: 6px; padding: 1px 5px 0; border: 1px solid #9fd3c7; border-radius: 9px; color: var(--teal-d); font-size: 10.5px; font-weight: 700; }
.cm-text { margin: 0; font-size: 14px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.cm-foot { display: flex; gap: 10px; margin: 5px 0 0; color: var(--ink-4); font-size: 11.5px; }
.cm-re { color: var(--ink-4); }
.cm.is-del .cm-text, .cm-del .sd-body p { margin: 0; color: var(--ink-3); font-size: 13px; }
.cm-del .sd-body { margin: 0; }
.cm.is-late { animation: late 2.4s ease-out; }
@keyframes late { from { background: #eef6f3; } to { background: transparent; } }
.cm-write { margin: 18px 0 0; padding: 12px 14px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; }
.cm-write-nick { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.cm-write-msg { margin: 0; padding: 14px 12px; border-radius: 3px; background: #f6f7f7; color: var(--ink-3); font-size: 12.5px; }
.cm-write-msg a { color: var(--teal-d); text-decoration: underline; }

/* ── 닉네임 작은 창 · 안내 쪽지 */
.cf-pop { word-break: keep-all; position: absolute; z-index: 50; width: 270px; padding: 14px 15px 12px; border: 1px solid var(--line-3); border-radius: 4px; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13); font-size: 12.5px; }
.cf-pop-top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cf-pop-nick { display: flex; align-items: center; margin: 0; font-size: 14px; font-weight: 700; word-break: break-all; }
.cf-pop-grade { margin: 2px 0 0; color: var(--ink-3); font-size: 11.5px; }
.cf-pop-x { position: absolute; right: 8px; top: 6px; width: 22px; height: 22px; border: 0; background: none; color: var(--ink-4); font-size: 16px; line-height: 1; cursor: pointer; }
.cf-pop-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 0; text-align: center; }
.cf-pop-stats div + div { border-left: 1px solid var(--line); }
.cf-pop-stats dt { color: var(--ink-4); font-size: 11px; }
.cf-pop-stats dd { margin: 1px 0 0; font-weight: 700; font-size: 12.5px; }
.cf-pop-h { margin: 12px 0 4px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.cf-pop-list { margin: 0; padding: 0; list-style: none; }
.cf-pop-list li { display: flex; gap: 8px; padding: 3px 0; }
.cf-pop-list a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cf-pop-list span { flex: none; color: var(--ink-4); font-size: 11px; }
.cf-pop-none { margin: 4px 0 0; color: var(--ink-4); font-size: 12px; }
.cf-pop-btns { display: flex; gap: 6px; margin-top: 10px; }
.cf-pop-btns .cf-btn { flex: 1; min-height: 28px; color: #a6acaa; cursor: default; }
.cf-pop.is-tip { width: 300px; }
.cf-pop.is-tip p { margin: 0 22px 10px 0; line-height: 1.6; color: var(--ink-2); }
.cf-pop.is-tip .cf-btn { min-height: 30px; }

/* ── 엔딩 뒤 새 글 (상태별 글) */
.post-new .sd-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-4); font-size: 12px; }
.post-new .sd-f-title { order: -1; width: 100%; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.post-new .sd-f-board { order: -2; width: 100%; color: var(--teal-d); font-weight: 700; font-size: 12.5px; }
.post-new .sd-f-author { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.post-new .sd-body { font-size: 15px; line-height: 1.82; word-break: keep-all; }
.post-new .sd-body p { margin: 0 0 16px; }
.post-new .sd-comments { margin-top: 20px; border-top: 1px solid var(--line); }
.post-new .sd-comment { padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.post-new .sd-comment .sd-c-date { margin-left: 10px; color: var(--ink-4); font-size: 11.5px; }

/* ── 가입 */
.join { padding: 18px 0 30px; }
.join-card { max-width: 470px; margin: 0 auto; padding: 26px 30px 24px; border: 1px solid var(--line-2); }
.join-cafe { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.join-cafe-name { margin: 0; font-size: 16px; font-weight: 800; }
.join-cafe-sub { margin: 2px 0 0; color: var(--ink-3); font-size: 12px; }
.join h1 { margin: 18px 0 8px; font-size: 19px; }
.join-text { color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.join-text p { margin: 0 0 8px; }
.join-form { display: grid; gap: 7px; margin-top: 18px; }
.join-form label { font-size: 12.5px; font-weight: 700; }
.join-input { display: flex; align-items: center; border: 1px solid var(--line-3); border-radius: 3px; }
.join-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); }
.join-input input { flex: 1; min-width: 0; padding: 11px 12px; border: 0; outline: none; font-size: 14px; }
.join-count { padding: 0 12px; color: var(--ink-4); font-size: 12px; }
.join-hint { margin: 0 0 6px; color: var(--ink-3); font-size: 12px; }
.join-agree { margin: 0 0 10px; color: var(--ink-3); font-size: 11.5px; line-height: 1.5; }
.join-form .cf-btn-main { min-height: 42px; font-size: 14px; }
.form-msg { min-height: 20px; margin: 2px 0 0; font-size: 12.5px; }
.form-msg[data-kind="error"] { color: var(--warn); }

/* ── 검색 */
.cf-search-big { display: flex; gap: 5px; margin: 0 0 14px; padding: 14px; background: #f6f8f7; border: 1px solid var(--line); }
.cf-search-big select, .cf-search-big input { height: 36px; padding: 0 10px; border: 1px solid var(--line-3); background: #fff; font-size: 13px; }
.cf-search-big input { flex: 1; }
.cf-search-big .cf-btn-main { min-width: 72px; }
.cf-search-sum { margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid #4a4a4a; color: var(--ink-2); font-size: 13px; }
.cf-search-sum strong { color: var(--teal-d); }
.cf-search-sum:empty { display: none; }
.search-hit { padding: 14px 2px 13px; border-bottom: 1px solid var(--line); }
.search-hit-board { margin: 0 0 3px; color: var(--teal-d); font-size: 12px; }
.search-hit-t { font-size: 14.5px; font-weight: 700; }
.search-hit-t .c-tag { font-weight: 400; }
.search-hit-x { display: -webkit-box; margin: 4px 0 4px; overflow: hidden; color: var(--ink-2); font-size: 13px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-hit-m { margin: 0; color: var(--ink-4); font-size: 12px; }
.search-hit-m span + span::before { content: "·"; margin: 0 5px; }
mark { padding: 0 1px; background: #fff1a8; color: inherit; font-weight: 700; }

/* ── 바닥 */
.cf-foot { max-width: 1080px; margin: 50px auto 0; padding: 18px 0 100px; border-top: 1px solid var(--line-2); color: var(--ink-4); font-size: 11.5px; text-align: center; }
.cf-foot p { margin: 0 0 3px; }
.cf-foot strong { color: var(--ink-3); }
.sd-fiction { margin-top: 8px !important; color: #9aa09e; font-size: 11px; }

/* ── 글에 붙은 녹음 파일 (휴대폰 음성 녹음 첨부) */
.post-audio { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 0 0 18px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--teal-ll); }
.pa-play { flex: none; position: relative; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--teal); cursor: pointer; }
.pa-play:hover { background: var(--teal-d); }
.pa-play i { position: absolute; left: 13px; top: 10px; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.post-audio.is-on .pa-play i { left: 12px; top: 11px; width: 10px; height: 12px; border: 0; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.pa-main { flex: 1; min-width: 0; }
.pa-name { margin: 0 0 6px; color: var(--ink); font-size: 12.5px; line-height: 1.3; }
.pa-bar { position: relative; height: 4px; border-radius: 2px; background: var(--line-2); cursor: pointer; }
.pa-bar::before { content: ""; position: absolute; inset: -6px 0; }
.pa-fill { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--teal); }
.pa-time { flex: none; color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
