/* 광고 칸 (ads.js, 2026-11-15). 회원 홈 오른쪽 맨 아래 — 일하는 칸보다 튀지 않게, 그래도 '광고'는 분명히 */
.ad-slot { display: flex; flex-direction: column; gap: 10px; }
.ad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-head b { color: var(--ink); font-size: 14.5px; font-weight: 800; }
.ad-ask { border: 0; background: transparent; padding: 2px 0; color: var(--mute); font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ad-ask:hover { color: var(--ink); }
/* 글 + 오른쪽 사진 칸 (2026-11-15 사장님 "우측 여백에 사진칸"): 사진이 없으면 빈 사진 칸(집 그림)이 자리를 지킨다 */
.ad-card { display: grid; grid-template-columns: minmax(0, 1fr) 92px; grid-template-areas: "main thumb" "foot foot"; gap: 8px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); }
.ad-main { grid-area: main; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ad-thumb { grid-area: thumb; position: relative; align-self: start; display: block; width: 92px; height: 92px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); cursor: pointer; }
.ad-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ad-thumb:hover img { transform: scale(1.05); }
.ad-thumb.none { cursor: default; background: var(--gold-soft, #f6f0e5); border-style: dashed; }
a.ad-thumb.none { cursor: pointer; }
.ad-thumb.none::after { content: ""; position: absolute; inset: 0; background: url("/static/brand-house.svg") center / 40% no-repeat; opacity: .35; }
/* 사진 통째로 (2026-11-15 사장님 "통채로 사진에 텍스트가 들어갈 수 있게"): 광고 사진을 자르지 않고 그대로, 왼쪽 위에 '광고' */
.ad-card.banner { display: flex; flex-direction: column; gap: 10px; padding: 0 0 12px; overflow: hidden; }
.ad-banner { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--soft); cursor: pointer; }
.ad-banner img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.ad-tag.on-pic { position: absolute; top: 8px; left: 8px; border-color: #0000; background: #ffffffeb; color: #111318; box-shadow: 0 1px 4px #0003; }
.ad-card.banner .ad-foot { padding: 0 12px; }
.ad-pic-big { display: block; width: 100%; height: auto; border-radius: 10px; cursor: zoom-out; }
.ad-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--mute); }
.ad-tag { padding: 1px 7px; border: 1px solid var(--faint, #8a9099); border-radius: 5px; color: var(--ink2); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.ad-kind { color: #6b4f1d; font-weight: 800; }
.ad-place::before { content: "· "; }
.ad-title { color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.ad-body { margin: 0; color: var(--ink2); font-size: 13.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.ad-foot { grid-area: foot; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 2px; }
.ad-who { flex: 1 1 auto; min-width: 0; color: var(--mute); font-size: 12.5px; font-weight: 700; overflow-wrap: anywhere; }
.ad-acts { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-theme="pro"] .btn.ad-call { background: #eaf1ff; border-color: #8fb0f5; color: #1f4fbf; font-weight: 800; }
html[data-theme="pro"] .btn.ad-call:hover { background: #dbe7ff; }
html[data-theme="pro"] .btn.ad-link { font-weight: 800; }
.ad-slot[hidden] { display: none; }
/* 첫 화면 머리말 '광고 문의' — '방문 시연 신청' 옆 (2026-11-15 사장님). 시연 신청(검정)보다 한 단계 가볍게: 크림 바탕 + 금색 테두리 */
html[data-theme="pro"] .land-top .btn.ad-cta { min-height: 46px; padding: 0 18px; border: 1.5px solid #ae956b; border-radius: 12px; background: #fffaf0; color: #5c4317; font-size: 16px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
html[data-theme="pro"] .land-top .btn.ad-cta:hover { background: #f6ecd8; border-color: #8f7547; }
html[data-theme="pro"][data-mode="dark"] .land-top .btn.ad-cta { background: transparent; border-color: #e6cc92; color: #e6cc92; }
@media (max-width: 600px) {
  html[data-theme="pro"] .land-top .btn.ad-cta { min-height: 40px; padding: 0 10px; font-size: 14px; }
}
@media (max-width: 500px) {
  html[data-theme="pro"] .land-top .btn.ad-cta { display: none; }  /* 휴대폰 폭(412px 에서 넘침 확인): 머리말이 넘쳐서 빼고, 맨 아래 '광고 문의'로 */
}
.ad-no { padding: 8px 10px; border-radius: 8px; background: var(--soft); }
.ad-call-line:empty { display: none; }
html[data-mode="dark"] .ad-kind { color: #e2c48f; }
html[data-mode="dark"] .btn.ad-call { background: #1d2a44; border-color: #3d5d9e; color: #b9cdf7; }
