/* Let's go AUS — 모바일 우선 (375px 기준) */
:root {
  --bg: #f4f6f7; --surface: #fff; --surface-2: #f9fbfb;
  --ink: #12191d; --ink-2: #39464e; --muted: #67747c; --line: #e2e7ea; --line-2: #eef2f3;
  --brand: #0e7c86; --brand-ink: #09565d; --brand-soft: #e2f3f4;
  --accent: #ffb627; --accent-ink: #7a4d00; --accent-soft: #fff3d8;
  --danger: #cf3b3b; --danger-soft: #fdecec; --ok: #1d8f5c; --ok-soft: #e3f5ec;
  --gold: #a86b00; --gold-soft: #fff4db;
  --r: 14px; --r-sm: 10px; --pill: 999px;
  --shadow: 0 1px 2px rgba(16, 30, 36, .06), 0 4px 14px rgba(16, 30, 36, .06);
  --shadow-lg: 0 10px 40px rgba(16, 30, 36, .18);
  --hd: 56px; --tab: 62px; --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; } .ico.lg { width: 28px; height: 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── 헤더 ── */
.hd { position: sticky; top: 0; z-index: 30; height: var(--hd); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { height: 100%; max-width: 1120px; margin: 0 auto; padding: 0 12px 0 var(--gutter); display: flex; align-items: center; gap: 6px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.02em; font-size: 18px; white-space: nowrap; }
.logo img { width: 30px; height: 30px; }
.logo b { color: var(--brand); font-weight: 900; }
.hd-sp { flex: 1; }
.region-chip { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px 0 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.region-chip .ico { width: 16px; height: 16px; color: var(--brand); }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; color: var(--ink-2); }
.icon-btn:hover { background: var(--line-2); }
.badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.badge[hidden] { display: none; }
.hd-nav { display: none; }

/* ── 레이아웃 ── */
.shell { max-width: 1120px; margin: 0 auto; padding: 0 0 calc(var(--tab) + 24px + env(safe-area-inset-bottom)); }
.main { min-width: 0; }
.aside { display: none; }
.page { padding: 14px var(--gutter) 8px; }
.page-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.page-hd h1 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.page-hd p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sec { margin: 22px 0 0; }
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.sec-hd h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.sec-hd a, .more { font-size: 14px; color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; }
.note.warn { background: var(--accent-soft); color: var(--accent-ink); }
.note.danger { background: var(--danger-soft); color: var(--danger); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty .ico { width: 40px; height: 40px; margin: 0 auto 8px; color: #b9c4c9; }

/* ── 버튼 · 입력 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .06s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #3b2600; }
.btn.danger { color: var(--danger); border-color: #f2c9c9; }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.field { display: block; margin: 0 0 14px; }
.field > span, .label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--ink-2); }
.field .req { color: var(--danger); }
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
textarea.input { min-height: 180px; resize: vertical; line-height: 1.6; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; margin: 8px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid2 > *, .row > .input { min-width: 0; }
.input { min-width: 0; }
input[type="date"].input { -webkit-appearance: none; appearance: none; }
.pfilter { display: grid; grid-template-columns: 1fr 1fr 1.25fr auto; gap: 6px; margin: -4px 0 12px; }
.pfilter .input { padding: 10px 10px; }
.editor-grid { display: grid; gap: 14px; }
.form-err { color: var(--danger); font-size: 14px; margin: 0 0 12px; font-weight: 600; }

/* ── 칩 ── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 6px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.chip.on, .chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.brand { background: var(--brand-soft); color: var(--brand-ink); }
.tag.gold { background: var(--gold-soft); color: var(--gold); }
.tag.red { background: var(--danger-soft); color: var(--danger); }
.tag.ad { background: #eef0f2; color: #5b6870; font-size: 11px; height: 18px; padding: 0 6px; }
.premium-badge { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 6px; background: linear-gradient(135deg, #ffcf5a, #f2a516); color: #4a2d00; font-size: 11px; font-weight: 900; letter-spacing: .04em; }

/* ── 게시판 바로가기 ── */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px; }
.board-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.25; }
.board-tile:hover { background: var(--line-2); }
.board-tile .bi { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.board-tile .bi.gold { background: var(--gold-soft); color: var(--gold); }
.board-tile .bi.warm { background: #ffece4; color: #b2461d; }

/* ── 글 목록 ── */
.list { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-2); align-items: flex-start; }
.item:first-child { border-top: 0; }
.item:hover { background: var(--surface-2); }
.item .t { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .sub { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.item .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); align-items: center; }
.item .meta .ico { width: 14px; height: 14px; }
.item .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 5px; }
.item .th { width: 76px; height: 76px; flex: none; border-radius: 10px; object-fit: cover; background: var(--line-2); }
.item.notice { background: #fbfcfc; }
.item.notice .t { font-size: 15px; }
.item.featured { background: linear-gradient(90deg, #fffaf0, #fff 60%); }
.price { font-weight: 800; color: var(--ink); }
.list-ad { display: block; margin: 0; border-top: 1px solid var(--line-2); padding: 10px 12px; background: var(--surface-2); }

/* ── 홈 ── */
.hero { padding: 14px var(--gutter) 0; }
.hello { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 12px; line-height: 1.35; }
.hello em { font-style: normal; color: var(--brand); }
.search-bar { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); box-shadow: var(--shadow); }
.search-bar input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.region-row { margin-top: 12px; }
.news-item { display: block; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.news-item:first-child { border-top: 0; }
.news-item .t { font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mag { flex: none; width: 150px; height: 196px; scroll-snap-align: start; border-radius: 14px; padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; box-shadow: var(--shadow); border: 0; text-align: left; }
.mag::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.16); }
.mag .k { font-size: 11px; font-weight: 800; letter-spacing: .08em; opacity: .85; }
.mag .t { font-size: 16px; font-weight: 800; line-height: 1.3; position: relative; z-index: 1; }
.prem-card { flex: none; width: 230px; scroll-snap-align: start; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.prem-card .ph { height: 120px; background: linear-gradient(135deg, #e9f6f7, #fdf6e3); display: grid; place-items: center; color: var(--brand); }
.prem-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.prem-card .bd { padding: 10px 12px 12px; }
.prem-card .t { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 2px; }
.mini-list a { display: flex; gap: 8px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.mini-list a:first-child { border-top: 0; }
.mini-list .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list .d { color: var(--muted); font-size: 12.5px; flex: none; }
.board-sec { padding: 14px 16px 8px; }

/* ── 광고 ── */
.ad-carousel { position: relative; margin: 12px var(--gutter) 0; }
.ad-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); scrollbar-width: none; }
.ad-track::-webkit-scrollbar { display: none; }
.ad-slide { flex: 0 0 100%; scroll-snap-align: start; }
.ad-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.ad-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: width .2s; }
.ad-dots i.on { width: 16px; background: #fff; }
.ad { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.ad img { width: 100%; height: auto; object-fit: cover; }
.ad .ad-k { position: absolute; top: 8px; left: 8px; }
.ad-text { padding: 16px 16px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 100%; }
.ad-text .t { font-weight: 800; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.ad-text p { margin: 0; font-size: 14px; opacity: .9; }
.ad-text .cta { margin-top: 8px; align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 8px; background: rgba(255,255,255,.95); color: var(--brand-ink); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; }
.ad.home_top { aspect-ratio: 12 / 5; } .ad.home_top .ad-text { background: linear-gradient(120deg, #0e7c86, #0b5b75 60%, #193f63); color: #fff; padding-top: 30px; }
.ad.home_top img { height: 100%; }
.ad.list_inline { aspect-ratio: 4 / 1; min-height: 76px; } .ad.list_inline img { height: 100%; }
.ad.list_inline .ad-text { background: linear-gradient(120deg, #fff6df, #ffe9ba); color: #4a3000; padding: 10px 14px 10px 54px; }
.ad.list_inline .ad-text .t { font-size: 15px; } .ad.list_inline .ad-text p { font-size: 12.5px; }
.ad.list_inline .ad-text .cta { display: none; }
.ad.sidebar { aspect-ratio: 1 / 2; } .ad.sidebar img { height: 100%; }
.ad.sidebar .ad-text { background: linear-gradient(170deg, #12355b, #0e7c86); color: #fff; justify-content: flex-end; padding: 22px; }
.ad.directory_featured { aspect-ratio: 8 / 5; } .ad.directory_featured img { height: 100%; }
.ad.directory_featured .ad-text { background: linear-gradient(135deg, #fff, #eaf7f8); color: var(--ink); padding-top: 34px; border: 1px solid var(--line); border-radius: var(--r); }
.ad.directory_featured .ad-text .cta { background: var(--brand); color: #fff; }
.dir-ads { display: grid; grid-template-columns: 1fr; gap: 10px; }
.popup-back { position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 25, .5); display: grid; place-items: center; padding: 24px; }
.popup { width: min(360px, 100%); background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.popup .ad { border-radius: 0; aspect-ratio: 1 / 1; }
.popup .ad .ad-text { background: linear-gradient(150deg, #0e7c86, #12355b); color: #fff; padding: 28px; }
.popup .ad .ad-text .t { font-size: 22px; }
.popup .ft { display: flex; border-top: 1px solid var(--line); }
.popup .ft button { flex: 1; height: 50px; border: 0; background: none; font-weight: 700; font-size: 14.5px; }
.popup .ft button + button { border-left: 1px solid var(--line); }

/* ── 하단 탭 ── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: #7a868d; }
.tabbar a.on { color: var(--brand); }
.tabbar a .badge { top: 5px; right: calc(50% - 22px); }
.tabbar a.write .ico { width: 26px; height: 26px; }
.tabbar a.write span.pen { width: 44px; height: 32px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }

/* ── 시트 · 토스트 · 대화상자 ── */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(10, 20, 25, .42); opacity: 0; transition: opacity .2s; }
.sheet-back.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px var(--gutter) calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
.sheet.open { transform: none; }
.sheet .grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.sheet h2 { margin: 0 0 4px; font-size: 19px; }
.sheet .desc { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.region-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.region-btn { height: 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; padding: 0 14px; display: flex; flex-direction: column; justify-content: center; }
.region-btn b { font-size: 17px; } .region-btn span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region-btn.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.region-btn.all { grid-column: 1 / -1; height: 48px; }
.menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu-links a { padding: 10px 4px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--tab) + 14px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: rgba(18, 25, 29, .94); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); max-width: 420px; animation: toastIn .2s ease-out; }
.toast.err { background: #b3261e; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }
.dlg-back { position: fixed; inset: 0; z-index: 65; background: rgba(10,20,25,.45); display: grid; place-items: center; padding: 20px; }
.dlg { width: min(400px, 100%); background: var(--surface); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-lg); }
.dlg h3 { margin: 0 0 8px; font-size: 18px; }
.dlg p { margin: 0 0 16px; color: var(--ink-2); }
.dlg .row { justify-content: flex-end; }

/* ── 글 보기 ── */
.post-hd { padding: 16px var(--gutter) 6px; }
.post-hd h1 { margin: 8px 0 8px; font-size: 22px; line-height: 1.38; letter-spacing: -.02em; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13.5px; color: var(--muted); }
.post-meta a { color: var(--ink-2); font-weight: 700; }
.detail { margin: 12px var(--gutter) 0; padding: 4px 16px; }
.detail dl { margin: 0; }
.detail .d { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.detail .d:first-child { border-top: 0; }
.detail dt { flex: 0 0 92px; color: var(--muted); font-size: 14px; }
.detail dd { margin: 0; flex: 1; min-width: 0; font-weight: 600; }
.detail dd a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post-body { padding: 18px var(--gutter) 4px; font-size: 16.5px; line-height: 1.75; white-space: pre-wrap; text-wrap: pretty; }
.post-body a { color: var(--brand); text-decoration: underline; word-break: break-all; }
.gallery { display: grid; gap: 8px; padding: 12px var(--gutter) 0; }
.gallery img { width: 100%; height: auto; border-radius: 12px; background: var(--line-2); cursor: zoom-in; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 16px var(--gutter) 4px; }
.actions button, .actions a { height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.actions .on { color: var(--danger); border-color: #f3caca; background: var(--danger-soft); }
.actions .fav.on { color: var(--gold); border-color: #f0dba9; background: var(--gold-soft); }
.author-box { margin: 14px var(--gutter) 0; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: 16px; }
.owner-bar { margin: 12px var(--gutter) 0; padding: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.comments { margin: 18px var(--gutter) 0; }
.cmt { padding: 12px 0; border-top: 1px solid var(--line-2); }
.cmt:first-child { border-top: 0; }
.cmt .who { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cmt .who b { color: var(--ink); } .cmt .who span { color: var(--muted); }
.cmt p { margin: 4px 0 0; white-space: pre-wrap; font-size: 15px; }
.cmt .tools { margin-left: auto; display: flex; gap: 2px; }
.cmt .tools button { border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 4px 6px; }
.cmt-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.cmt-form textarea { min-height: 46px; height: 46px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 12px; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 6px; }

/* ── 글쓰기 ── */
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photo { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 12px; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; padding: 0; }
.photo-add { width: 84px; height: 84px; border-radius: 12px; border: 1.5px dashed #b9c6cc; background: var(--surface); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; gap: 2px; }
.photo.busy::after { content: "올리는 중"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.75); font-size: 12px; font-weight: 700; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips label { position: relative; }
.radio-chips input { position: absolute; opacity: 0; inset: 0; }
.radio-chips span { display: inline-flex; height: 38px; padding: 0 14px; align-items: center; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 600; }
.radio-chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.radio-chips input:focus-visible + span { outline: 3px solid var(--brand-soft); }
.sticky-submit { position: sticky; bottom: calc(var(--tab) + 8px + env(safe-area-inset-bottom)); z-index: 5; padding: 10px 0 0; background: linear-gradient(rgba(255,255,255,0), var(--surface) 30%); }
.draft-bar { display: flex; align-items: center; gap: 8px; justify-content: space-between; }

/* ── 페이징 ── */
.pager { display: flex; justify-content: center; gap: 4px; margin: 16px 0 4px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.pager a:hover { background: var(--line-2); }
.pager .on { background: var(--ink); color: #fff; }

/* ── 탭 (쪽지·관리자) ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; padding: 10px 12px; border: 0; background: none; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); }
.memo-item { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-2); align-items: flex-start; }
.memo-item:first-child { border-top: 0; }
.memo-item .grow p { margin: 2px 0 0; color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.memo-item.unread { background: #f3fbfb; }
.memo-item.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); margin-left: 6px; vertical-align: middle; }
.noti { display: flex; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line-2); align-items: center; }
.noti:first-child { border-top: 0; }
.noti.unread { background: #f3fbfb; }
.noti .ni { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }

/* ── 내 정보 ── */
.me-card { display: flex; gap: 14px; align-items: center; padding: 18px 16px; }
.me-card .avatar { width: 56px; height: 56px; font-size: 22px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; border: 0; border-top: 1px solid var(--line-2); background: none; font-size: 16px; font-weight: 600; text-align: left; }
.menu-list > :first-child { border-top: 0; }
.menu-list .ico { color: var(--brand); }
.menu-list .end { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ── 안내 문서 (마크다운) ── */
.md { font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.md h2 { font-size: 19px; margin: 26px 0 8px; letter-spacing: -.02em; }
.md h3 { font-size: 17px; margin: 20px 0 6px; }
.md h2:first-child { margin-top: 0; }
.md p { margin: 8px 0; } .md ul, .md ol { padding-left: 22px; margin: 8px 0; } .md li { margin: 4px 0; }
.md a { color: var(--brand); text-decoration: underline; }
.md blockquote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.md img { border-radius: 12px; border: 1px solid var(--line); margin: 12px 0; width: 100%; height: auto; background: #fff; }
.md table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; display: block; overflow-x: auto; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); white-space: nowrap; }
.md code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; font-size: 14px; }
.legal { display: inline-flex; gap: 6px; align-items: center; }
.faq details { border-top: 1px solid var(--line-2); padding: 0 16px; }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; padding: 15px 0; font-weight: 700; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--brand); font-weight: 900; }
.faq .md { padding: 0 0 14px 22px; color: var(--ink-2); font-size: 15px; }

/* ── 튜토리얼 ── */
.tut-back { position: fixed; inset: 0; z-index: 90; background: rgba(8, 16, 20, .66); }
.tut-ring { position: fixed; z-index: 91; border-radius: 14px; box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(8,16,20,.0); transition: all .25s; pointer-events: none; }
.tut-card { position: fixed; z-index: 92; left: 16px; right: 16px; background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg); max-width: 400px; margin: 0 auto; }
.tut-card .step { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .06em; }
.tut-card h3 { margin: 4px 0 6px; font-size: 18px; }
.tut-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.tut-card .row { justify-content: space-between; }

/* ── 관리자 ── */
.admin-wrap { padding: 12px var(--gutter); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { padding: 14px; } .stat b { display: block; font-size: 24px; letter-spacing: -.02em; } .stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tbl th, .tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.tbl th { font-size: 12.5px; color: var(--muted); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .t { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toggle { position: relative; width: 46px; height: 28px; flex: none; }
.toggle input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 14px; background: #cfd8dc; transition: background .15s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked + span { background: var(--ok); }
.toggle input:checked + span::after { transform: translateX(18px); }
.preview-wrap { display: grid; gap: 14px; }
.pv { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 10px; }
.pv .cap { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.pv-mobile { width: 343px; max-width: 100%; }
.pv-desktop { width: 100%; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 70px; padding: 6px 0; }
.bars i { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .8; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.checks input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ── 넓은 화면 ── */
@media (min-width: 720px) {
  .board-grid { grid-template-columns: repeat(7, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .dir-ads { grid-template-columns: 1fr 1fr; }
  .preview-wrap { grid-template-columns: 343px 1fr; align-items: start; }
}
@media (min-width: 900px) { .editor-grid { grid-template-columns: minmax(360px, 1fr) minmax(0, 1.1fr); align-items: start; } .editor-grid .pv-sticky { position: sticky; top: calc(var(--hd) + 12px); } }
@media (min-width: 1024px) {
  :root { --gutter: 20px; }
  .tabbar { display: none; }
  .shell { padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hd-nav { display: flex; gap: 2px; margin-left: 18px; }
  .hd-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink-2); position: relative; }
  .hd-nav a:hover, .hd-nav a.on { background: var(--line-2); color: var(--ink); }
  .hd-nav a .badge { top: -2px; right: -4px; }
  .toast-wrap { bottom: 24px; }
  .sheet { left: 50%; right: auto; width: 520px; bottom: auto; top: 50%; border-radius: 22px; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .2s, opacity .2s; max-height: 84vh; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sticky-submit { bottom: 12px; }
  .page, .hero { padding-left: 0; padding-right: 0; }
  .post-hd, .post-body, .gallery, .actions { padding-left: 0; padding-right: 0; }
  .detail, .author-box, .owner-bar, .comments, .ad-carousel { margin-left: 0; margin-right: 0; }
  .shell { padding-left: 20px; padding-right: 20px; }
  .chips, .hscroll { margin: 0; padding-left: 0; padding-right: 0; }
}
@media (min-width: 1100px) {
  .shell.has-aside { grid-template-columns: minmax(0, 1fr) 300px; }
  .shell.has-aside .aside { display: block; padding-top: 14px; }
  .aside-sticky { position: sticky; top: calc(var(--hd) + 14px); display: grid; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* 상단 고정 (프리미엄): 목록 위 옅은 금색 줄 */
.list.pinned { background: #fffaf0; border: 1px solid #f5d98a; }
.list.pinned .item { background: transparent; }
/* 지명 자동완성 (글쓰기 위치 칸) */
.has-suggest { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.14); overflow: hidden; }
.suggest button { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 11px 12px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; font-size: 15px; color: var(--ink); cursor: pointer; }
.suggest button:first-child { border-top: 0; }
.suggest button b { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.suggest button span { margin-left: auto; font-size: 13px; color: var(--muted); }
.suggest button.on, .suggest button:hover { background: var(--line-2); }
/* 검색엔진·AI 크롤러용 본문 요약(data-ssr): HTML 에는 그대로 두고 사람 화면엔 숨김 → 첫 1초 깨져 보이던 것 없앰 (화면 코드가 #main 을 다시 그림) */
[data-ssr] { display: none; }
.main:has(> [data-ssr])::before { content: '불러오는 중…'; display: block; padding: 24px var(--gutter); color: var(--muted); }
/* 글 보기: 연락하기 (전화·문자·이메일·카톡·쪽지) */
.contact-bar { margin: 14px var(--gutter) 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .contact-bar { margin-left: 0; margin-right: 0; } }
