/* ==========================================================
   영단컷 블로그(/guide/ · /blog/) + 홈 '최근 글' 칸
   색·글꼴은 site.css 변수 그대로. 글은 읽기 좋게 폭 720px.
   만드는 도구: scripts/homepage/blog_build.py
   ========================================================== */

/* ---------- 머리 ---------- */
.bh { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.bh-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bh-logo img { width: 90px; height: auto; }

/* ---------- 본문 틀 ---------- */
.bl-main { padding: 48px 16px 90px; background: var(--white); }
.bl-post, .bl-list { max-width: 720px; margin: 0 auto; }
.bl-crumb { font-size: 14px; font-weight: 700; color: var(--muted); }
.bl-crumb a:hover { color: var(--blue); }
.bl-post h1, .bl-list h1 { margin-top: 14px; font-size: clamp(28px, 5vw, 40px); font-weight: 900; line-height: 1.3; letter-spacing: -.03em; color: var(--navy); }
.bl-meta { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.bl-lead { margin-top: 18px; font-size: 18px; font-weight: 600; line-height: 1.7; color: var(--text); }

/* ---------- 목차 ---------- */
.bl-toc { margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--gray); }
.bl-toc p { font-size: 14px; font-weight: 900; color: var(--blue); }
.bl-toc ol { margin: 8px 0 0; padding-left: 20px; font-size: 16px; font-weight: 700; line-height: 1.9; }
.bl-toc a:hover { color: var(--blue); }

/* ---------- 글 본문 ---------- */
.bl-body { margin-top: 30px; font-size: 17px; line-height: 1.85; color: var(--text); overflow-wrap: anywhere; }
.bl-body > * + * { margin-top: 18px; }
.bl-body h2 { margin-top: 48px; font-size: clamp(22px, 3.6vw, 27px); font-weight: 900; line-height: 1.4; letter-spacing: -.02em; color: var(--navy); scroll-margin-top: 84px; }
.bl-body h3 { margin-top: 32px; font-size: 20px; font-weight: 800; color: var(--navy); }
.bl-body p, .bl-body li { margin: 0; }
.bl-body ul, .bl-body ol { padding-left: 22px; }
.bl-body ul { list-style: disc; }
.bl-body li + li { margin-top: 6px; }
.bl-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.bl-body strong { color: var(--navy); font-weight: 800; }
.bl-body blockquote { margin: 24px 0 0; padding: 16px 20px; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--ice); font-weight: 600; }
.bl-body blockquote p + p { margin-top: 8px; }
.bl-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.bl-body th, .bl-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bl-body th { background: var(--gray); font-weight: 800; color: var(--navy); white-space: nowrap; }
.bl-body code { padding: 2px 6px; border-radius: 6px; background: var(--gray); font-size: .92em; }
.bl-body img { margin: 0 auto; border-radius: 16px; height: auto; }

/* ---------- 글 속 그림 (blog_figures.py 가 붙이는 이름) ---------- */
.bl-body figure { margin: 32px 0 0; }
.bl-body figcaption { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--muted); }
.bl-photo img { width: 100%; }
.bl-comic img { width: 100%; max-width: 480px; border-radius: 20px; box-shadow: 0 10px 30px rgba(8, 24, 53, .10); }
.bl-shot img { width: 100%; max-width: 280px; border-radius: 26px; box-shadow: 0 18px 40px rgba(8, 24, 53, .16); }
.bl-shots { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px 16px; border-radius: 24px; background: #F6F3EE; }
.bl-shots figure { margin: 0; }
.bl-shots .bl-shot img { max-width: 260px; }

/* ---------- 앱 받기 칸 ---------- */
.bl-cta { margin-top: 56px; padding: 22px; border-radius: 20px; background: var(--navy); color: var(--white); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bl-cta img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.bl-cta > div { flex: 1 1 220px; min-width: 0; }
.bl-cta-t { font-size: 19px; font-weight: 900; }
.bl-cta-d { margin-top: 4px; font-size: 15px; font-weight: 600; line-height: 1.6; color: rgba(255, 255, 255, .75); }
.bl-cta-btn { flex: none; padding: 12px 24px; border-radius: 999px; background: var(--blue); font-size: 16px; font-weight: 900; color: var(--white); }
.bl-cta-btn:hover { background: var(--blue-deep); }

/* ---------- 글 카드 (목록 · 관련 글 · 홈) ---------- */
.bl-rel { max-width: 720px; margin: 64px auto 0; }
.bl-rel h2 { font-size: 22px; font-weight: 900; color: var(--navy); }
.bl-cards { margin-top: 20px; display: grid; gap: 14px; }
.bl-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.bl-card a:hover { border-color: var(--sky); box-shadow: 0 10px 26px rgba(8, 24, 53, .08); }
.bl-card-sec { font-size: 13px; font-weight: 900; color: var(--blue); }
.bl-card strong { font-size: 19px; font-weight: 900; line-height: 1.4; color: var(--navy); }
.bl-card-d { font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--muted); }
.bl-card time { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.bl-empty { padding: 30px; text-align: center; color: var(--muted); }
.bl-more { margin-top: 22px; font-size: 16px; font-weight: 800; }
.bl-more a { color: var(--blue); margin: 0 10px; white-space: nowrap; }

/* 홈 '최근 글' 칸 */
.bl-home { background: var(--gray); }
.bl-home .bl-cards { margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 640px) {
  .bh-in { height: 60px; padding: 0 16px; }
  .bh-logo img { width: 72px; }
      .bl-main { padding-top: 32px; }
  .bl-body { font-size: 16px; }
  .bl-home .bl-cards { margin-top: 32px; grid-template-columns: 1fr; }
  .bl-shots { grid-template-columns: 1fr; gap: 24px; }
  .bl-shots .bl-shot img { max-width: 230px; }
}
@media (max-width: 360px) {
    }

/* 블로그 목록 머리 그림 (11-20) — 본문 폭보다 넓게 */
.bl-banner { margin: 0 calc(50% - min(50vw - 16px, 520px)) 32px; }
.bl-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 686; object-fit: cover; border-radius: 28px; box-shadow: 0 18px 40px rgba(8, 24, 53, .10); }
@media (max-width: 640px) { .bl-banner { margin-bottom: 22px; } .bl-banner img { border-radius: 18px; } }
