/* the맵계 블로그 (목록·글) */
.blog-page { background: var(--paper); }
.wrap-narrow { width: min(780px, 100% - 40px); margin: 0 auto; }

/* 목록 머리 */
.b-hero { padding: calc(var(--hd-h) + 80px) 0 70px; text-align: center; color: #fff; background: var(--ink);
  background-image: radial-gradient(ellipse at 50% 120%, rgba(255,61,31,.45), transparent 60%), linear-gradient(180deg, rgba(14,10,10,.82), rgba(14,10,10,.92)), url(../images/hero.jpg);
  background-size: cover; background-position: center; }
.b-hero h1 { font-weight: 900; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.03em; line-height: 1.2; }
.b-hero h1 em { color: var(--ember); }
.b-hero p:last-child { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 18px; }

.b-list { padding: 60px 0 100px; }
.b-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; justify-content: center; }
.b-tags a { padding: 8px 18px; border-radius: 999px; background: #fff; color: #5a4a45; font-weight: 700; font-size: 15px; border: 1px solid #eadfd5; transition: all .2s; }
.b-tags a:hover { border-color: var(--red); color: var(--red); }
.b-tags a.on { background: var(--red); border-color: var(--red); color: #fff; }
.b-empty { text-align: center; padding: 80px 0; color: var(--muted); font-size: 18px; }

.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.b-card { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 2px 0 rgba(0,0,0,.03); transition: transform .35s, box-shadow .35s; }
.b-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(120,30,30,.16); }
.b-thumb { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.b-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.b-card:hover .b-thumb img { transform: scale(1.06); }
.b-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.b-tag { color: var(--red); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.b-body h2 { font-size: 20px; font-weight: 800; line-height: 1.4; color: var(--ink); letter-spacing: -.02em; }
.b-body p { margin-top: 10px; color: #6b5d58; font-size: 15px; line-height: 1.6; flex: 1; }
.b-body time { margin-top: 16px; color: #a3948e; font-size: 14px; }

.b-pages { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.b-pages a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; font-weight: 700; border: 1px solid #eadfd5; }
.b-pages a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 상담 안내 상자 */
.b-cta { margin-top: 70px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 40px 44px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #1c1212, #3a1418); background-image: radial-gradient(ellipse at 100% 0%, rgba(255,61,31,.4), transparent 55%), linear-gradient(135deg, #1c1212, #2a1416); }
.b-cta-k { color: var(--ember); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.b-cta h3 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 6px 0 8px; }
.b-cta p { color: rgba(255,255,255,.75); }
.b-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* 글 */
.b-post { padding-bottom: 100px; }
.b-post-head { padding: calc(var(--hd-h) + 60px) 0 40px; background: var(--ink); color: #fff; background-image: radial-gradient(ellipse at 50% 130%, rgba(255,61,31,.35), transparent 60%); }
.b-back { color: rgba(255,255,255,.65); font-weight: 700; font-size: 15px; }
.b-back:hover { color: var(--ember); }
.b-post-head h1 { margin-top: 18px; font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.3; letter-spacing: -.03em; }
.b-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.6); font-size: 15px; }
.b-meta a { color: var(--ember); font-weight: 700; }
.b-cover { margin: 40px 0 10px; border-radius: 22px; overflow: hidden; }
.b-cover img { width: 100%; }
.b-content { margin-top: 30px; font-size: 18px; line-height: 1.9; color: #2f2523; }
.b-content p { margin: 0 0 1.3em; }
.b-content h2 { margin: 2.2em 0 .8em; font-size: 28px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); padding-left: 16px; border-left: 6px solid var(--red); line-height: 1.35; }
.b-content h3 { margin: 1.8em 0 .6em; font-size: 22px; font-weight: 800; color: var(--ink); }
.b-content ul, .b-content ol { margin: 0 0 1.3em 1.4em; }
.b-content ul { list-style: disc; } .b-content ol { list-style: decimal; }
.b-content li { margin-bottom: .4em; }
.b-content li::marker { color: var(--red); }
.b-content blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 16px; background: #fff3ec; border-left: 6px solid var(--fire); font-weight: 700; color: #4a2a20; }
.b-content figure { margin: 1.8em 0; }
.b-content figure img { width: 100%; border-radius: 18px; }
.b-content strong { color: var(--red); }
.b-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.b-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.b-prevnext a { padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid #eadfd5; font-weight: 700; color: var(--ink); line-height: 1.45; transition: border-color .2s; }
.b-prevnext a:hover { border-color: var(--red); }
.b-prevnext small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.b-prevnext .nx { text-align: right; }
.b-more { margin-top: 80px; }
.b-more > h2 { font-size: 26px; font-weight: 900; margin-bottom: 24px; }
.b-404 { padding: calc(var(--hd-h) + 120px) 0 120px; text-align: center; }
.b-404 h1 { font-size: 32px; font-weight: 900; }
.b-404 p { margin: 12px 0 30px; color: var(--muted); }

@media (max-width: 960px) {
  .b-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap-narrow { width: calc(100% - 32px); }
  .b-grid { grid-template-columns: 1fr; gap: 18px; }
  .b-hero { padding: calc(var(--hd-h) + 50px) 0 50px; }
  .b-content { font-size: 17px; }
  .b-content h2 { font-size: 23px; }
  .b-cta { padding: 30px 24px; }
  .b-cta h3 { font-size: 21px; }
  .b-prevnext { grid-template-columns: 1fr; }
  .b-prevnext .nx { text-align: left; }
}

/* 관리자 미리보기 띠 */
.b-preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #1d4ed8; color: #fff; text-align: center; padding: 12px 16px; font-weight: 800; }
.b-preview-bar a { color: #ffe27a; margin-left: 10px; }
