/* YN 블로그 스타일 — css/style.css 변수(--panel,--line,--text,--muted,--blue…) 위에서 동작 */
.blog-body { background: var(--bg); color: var(--text); }
.bp-back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.bp-back:hover { color: var(--text); }
.bp-main { max-width: 820px; padding-top: 26px; padding-bottom: 60px; }

/* ===== 블로그 색인 ===== */
.blog-hero { padding: 40px 0 8px; }
.blog-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; margin: 0 0 8px; }
.blog-hero p { color: var(--muted); margin: 0; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 10px; }
.blog-filter { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-soft); color: var(--muted); }
.blog-filter.active { background: linear-gradient(90deg, #0ea5e9, #a855f7); color: #fff; border-color: transparent; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 18px 0 40px; }
.blog-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; transition: .18s; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .7); }
.blog-card-thumb { aspect-ratio: 1200/630; display: flex; align-items: flex-end; padding: 14px; position: relative; }
.blog-card-thumb .e { position: absolute; top: 12px; left: 14px; font-size: 30px; }
.blog-card-thumb .cat { font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .35); padding: 4px 9px; border-radius: 999px; }
.blog-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-body h3 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.3px; line-height: 1.35; }
.blog-card-body p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-date { margin-top: auto; font-size: 12px; color: var(--faint); }
.blog-empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ===== 글 본문 ===== */
.bp-cat { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px; }
.bp-title { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -1.1px; line-height: 1.16; margin: 0 0 10px; }
.bp-meta { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.bp-thumb { width: 100%; height: auto; border-radius: 16px; display: block; border: 1px solid var(--line-soft); }
.bp-disc { font-size: 12px; color: var(--faint); background: var(--panel); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 14px 0; }

/* 제휴 링크 행 */
.bp-affrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 22px; }
.bp-aff { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 13px 14px; border-radius: 12px;
  font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(120deg, #0ea5e9, #6366f1); transition: .16s; }
.bp-aff.mid { background: linear-gradient(120deg, #f43f5e, #a855f7); }
.bp-aff:hover { filter: brightness(1.08); transform: translateY(-2px); }
.bp-aff-e { font-size: 18px; }
.bp-aff-t { flex: 1; min-width: 0; }
.bp-aff-go { opacity: .85; }

/* 목차 */
.bp-toc { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 18px; margin: 22px 0; }
.bp-toc-h { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.bp-toc ol { margin: 0; padding-left: 20px; color: var(--muted); }
.bp-toc li { margin: 4px 0; }
.bp-toc a { color: var(--muted); text-decoration: none; }
.bp-toc a:hover { color: var(--blue); }

/* 인용구 */
.bp-quote { margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--blue);
  background: var(--panel); border-radius: 0 12px 12px 0; font-size: 17px; font-style: italic; color: var(--text); }

/* 섹션/이미지/본문 */
.bp-sec { margin: 30px 0; }
.bp-sec h2 { font-size: clamp(20px, 3vw, 27px); font-weight: 800; letter-spacing: -.5px; margin: 18px 0 12px; scroll-margin-top: 80px; }
.bp-sec h3 { font-size: 18px; font-weight: 700; margin: 20px 0 8px; }
.bp-sec p { line-height: 1.85; margin: 12px 0; color: var(--text); font-size: 16px; }
.bp-sec ul, .bp-sec ol { line-height: 1.8; color: var(--text); padding-left: 22px; }
.bp-sec li { margin: 6px 0; }
.bp-sec strong { color: #fff; }
.bp-figure { margin: 6px 0 4px; }
.bp-figure svg { width: 100%; height: auto; border-radius: 14px; display: block; }
.bp-figure figcaption { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 6px; }

/* 표 */
.bp-table { margin: 22px 0; }
.bp-table figcaption { font-weight: 700; margin-bottom: 8px; }
.bp-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
.bp-table table { width: 100%; border-collapse: collapse; background: var(--panel); min-width: 460px; }
.bp-table th, .bp-table td { padding: 11px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.bp-table thead th { background: var(--panel-2); color: var(--muted); }
.bp-table tbody th { color: #fff; font-weight: 700; }
.bp-table tr:last-child td, .bp-table tr:last-child th { border-bottom: none; }

/* 그래프 */
.bp-chart { margin: 22px 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; }
.bp-chart-title { font-weight: 700; margin: 0 0 6px; }
.bp-chart svg { width: 100%; height: auto; }

/* 요약/팁/체크 박스 */
.bp-box { margin: 20px 0; border-radius: 14px; padding: 14px 18px; border: 1px solid var(--line-soft); background: var(--panel); }
.bp-box-h { margin: 0 0 8px; font-weight: 800; font-size: 15px; }
.bp-box ul { margin: 0; padding-left: 20px; line-height: 1.75; color: var(--text); }
.bp-box.sum { border-left: 4px solid #22c55e; }
.bp-box.tip { border-left: 4px solid #fb923c; }
.bp-box.chk { border-left: 4px solid #a855f7; }

/* 해시태그 */
.bp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.bp-tags span { font-size: 12.5px; color: var(--blue); background: rgba(56, 189, 248, .1); padding: 5px 10px; border-radius: 999px; }

.bp-cta-tool { text-align: center; margin: 30px 0 10px; }

@media (max-width: 560px) {
  .bp-affrow { grid-template-columns: 1fr; }
  .bp-aff { justify-content: center; }
  .bp-quote { font-size: 16px; }
}
[dir="rtl"] .bp-quote { border-left: none; border-right: 4px solid var(--blue); border-radius: 12px 0 0 12px; }
[dir="rtl"] .bp-box.sum, [dir="rtl"] .bp-box.tip, [dir="rtl"] .bp-box.chk { border-left: none; }
