/* ===== YN PDF 블로그 스타일 (style.css 위에 얹음) ===== */
.post-wrap { max-width: 820px; padding: 24px 0 60px; }
.post { }
.post-thumb { width: 100%; height: auto; border-radius: 18px; display: block; margin-bottom: 22px; box-shadow: var(--shadow); }
.post-title { font-size: clamp(24px, 4.5vw, 36px); line-height: 1.25; margin: 6px 0 10px; }
.post-meta { color: var(--faint); font-size: 13px; margin-bottom: 12px; }
.post-langs { font-size: 13px; color: var(--muted); margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.post-langs a { color: var(--gold); text-decoration: none; }
.post-langs a:hover { text-decoration: underline; }
.post-langs b { color: var(--text); }
/* 블로그 목록 언어 뱃지/필터 */
.bc-lang { position: absolute; top: 8px; right: 8px; font-size: 12.5px; font-weight: 700; background: rgba(0,0,0,.5); color: #fff; border-radius: 6px; padding: 2px 7px; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 0 0 22px; }
.blog-filter button { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: .15s; }
.blog-filter button:hover { color: var(--text); border-color: var(--line); }
.blog-filter button.active { color: #241802; background: var(--brand-grad); border-color: transparent; }
.post h2 { font-size: clamp(20px, 3vw, 26px); margin: 40px 0 12px; scroll-margin-top: 80px; }
.post p { font-size: 16px; line-height: 1.9; color: #d7d2df; margin: 0 0 16px; }
.post-list { margin: 0 0 18px; padding-left: 4px; list-style: none; }
.post-list li { font-size: 15.5px; line-height: 1.8; color: #d7d2df; padding-left: 26px; position: relative; margin-bottom: 6px; }
.post-list li::before { content: "✅"; position: absolute; left: 0; font-size: 14px; }

/* 목차 */
.post-toc { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px 20px; margin: 22px 0; }
.post-toc b { display: block; margin-bottom: 8px; font-size: 15px; }
.post-toc ol { margin: 0; padding-left: 20px; }
.post-toc li { margin: 5px 0; }
.post-toc a { color: var(--gold); text-decoration: none; font-size: 14.5px; }
.post-toc a:hover { text-decoration: underline; }

/* 인용구 */
.post-quote { border-left: 4px solid var(--amber); background: var(--brand-grad-soft); margin: 22px 0; padding: 16px 20px; border-radius: 0 12px 12px 0; font-size: 17px; font-style: italic; color: #efe9dc; line-height: 1.7; }

/* 이미지/그림 */
.post-fig { margin: 22px 0; }
.post-fig svg { width: 100%; height: auto; border-radius: 14px; display: block; }
.post-fig img { width: 100%; height: auto; aspect-ratio: 9 / 5; object-fit: cover; border-radius: 14px; display: block; background: var(--panel-2); }
.post-fig figcaption, .post-chart figcaption { text-align: center; color: var(--faint); font-size: 13px; margin-top: 8px; }
.post-chart { margin: 24px 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px; }
.post-chart svg { width: 100%; height: auto; }
.post-chart figcaption { margin: 0 0 8px; font-weight: 700; color: var(--text); }

/* 표 */
.post-table-wrap { overflow-x: auto; margin: 22px 0; }
.post-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.post-table th, .post-table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.post-table th { background: var(--panel-2); color: var(--gold); font-weight: 700; }
.post-table td { color: #d7d2df; }
.post-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* TIP / 체크리스트 / 요약 박스 */
.post-tip { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); border: 1px solid rgba(251,191,36,.28); border-radius: 12px; padding: 14px 18px; margin: 18px 0; font-size: 15px; line-height: 1.7; color: #efe6d2; }
.post-tip b { color: var(--gold); }
.post-check, .post-summary { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.post-check b, .post-summary b { display: block; margin-bottom: 10px; font-size: 16px; }
.post-check ul, .post-summary ul { margin: 0; padding-left: 4px; list-style: none; }
.post-check li, .post-summary li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 15px; line-height: 1.7; color: #d7d2df; }
.post-check li::before { content: "☑️"; position: absolute; left: 0; }
.post-summary li::before { content: "•"; position: absolute; left: 8px; color: var(--gold); font-weight: 800; }

/* 제휴 블록 */
.aff-block { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 22px 0; }
.aff-block-h { font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.aff-list { display: grid; gap: 9px; }
.aff-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; transition: .15s; }
.aff-item:hover { border-color: var(--amber); transform: translateY(-1px); }
.aff-num { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--brand-grad); color: #241802; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.aff-txt { flex: 1; display: flex; flex-direction: column; }
.aff-txt b { font-size: 14.5px; }
.aff-txt span { font-size: 12px; color: var(--muted); }
.aff-go { flex: none; font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.aff-note { margin: 10px 0 0; font-size: 12px; color: var(--faint); }

/* FAQ */
.post-faq-item { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
.post-faq-item summary { cursor: pointer; font-weight: 600; padding: 13px 0; font-size: 15.5px; }
.post-faq-item p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }

/* 하단 */
.post-disc { margin-top: 30px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.post-tag { font-size: 12.5px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 12px; }
.post-back { margin-top: 24px; }
.post-back a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* 관련 글(내부링크) */
.post-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 14px 0 26px; }
.rel-card { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; transition: .15s; }
.rel-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.rel-emoji { font-size: 22px; flex: none; }
.rel-t { font-size: 14px; line-height: 1.4; font-weight: 600; }

/* 본문 광고 유닛 */
.post-ad { margin: 28px 0; text-align: center; min-height: 90px; }
.post-ad .ad-label { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.post-ad .adsbygoogle { display: block; }
/* 블로그 목록 인피드 광고 */
.blog-infeed { margin: 8px 0 20px; text-align: center; min-height: 100px; }
.blog-infeed .ad-label { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }

/* ===== 블로그 목록 페이지 ===== */
.blog-hero { text-align: center; padding: 40px 0 24px; }
.blog-hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 8px; }
.blog-hero p { color: var(--muted); margin: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 24px 0 60px; }
.blog-card { position: relative; 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: .16s; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--amber); box-shadow: var(--shadow); }
.blog-card .bc-thumb { height: 150px; display: grid; place-items: center; font-size: 54px; }
.blog-card .bc-thumb-img { padding: 0; overflow: hidden; }
.blog-card .bc-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.blog-card:hover .bc-thumb-img img { transform: scale(1.04); }
/* 게시글 대표 이미지(썸네일) */
/* 게시글 대표 이미지 — 흐린 실사 배경 + 브랜드 타이포 오버레이 */
.post-thumb { position: relative; width: 100%; aspect-ratio: 1200 / 630; border-radius: 16px; overflow: hidden; margin: 0 0 24px; box-shadow: var(--shadow); background: #0d0d11; isolation: isolate; }
.pt-photo { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: blur(5px) brightness(.72) saturate(1.05); transform: scale(1.1); z-index: 0; }
.pt-veil { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(130% 120% at 85% 10%, color-mix(in srgb, var(--accent, var(--gold)) 30%, transparent), transparent 55%),
  linear-gradient(180deg, rgba(10,10,12,.5), rgba(10,10,12,.82)); }
.pt-inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8% 8% 12%; gap: clamp(8px, 1.6vw, 16px); }
.pt-eyebrow { font-family: Inter, 'Noto Sans KR', sans-serif; font-size: clamp(11px, 2.3vw, 17px); letter-spacing: .2em; text-transform: uppercase; color: var(--accent, var(--gold)); font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
/* .post-thumb 로 스코프 상향 → 일반 .post h2/.post p 규칙(font-size·margin)이 히어로 문구를 덮지 않도록 */
.post-thumb .pt-title { font-family: Manrope, 'Noto Sans KR', sans-serif; font-weight: 800; font-size: clamp(22px, 6vw, 56px); line-height: 1.16; letter-spacing: .01em; color: #fff; margin: 0; padding: 0; max-width: 94%; text-shadow: 0 2px 26px rgba(0,0,0,.55); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pt-div { width: clamp(64px, 12vw, 110px); height: 3px; border-radius: 2px; background: var(--accent, var(--gold)); }
.pt-sub { font-family: Inter, 'Noto Sans KR', sans-serif; font-size: clamp(12px, 2.5vw, 21px); color: #e9e5f0; max-width: 82%; line-height: 1.5; }
.pt-brand { position: absolute; left: 0; right: 0; bottom: 5%; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 7px; font-family: Inter, 'Noto Sans KR', sans-serif; font-size: clamp(10px, 2vw, 14px); letter-spacing: .05em; color: #d3cddd; }
.pt-yn { background: var(--brand-grad); color: #241802; font-weight: 800; padding: 2px 7px; border-radius: 6px; font-size: .92em; }
@media (max-width: 600px) {
  .pt-inner { padding: 8% 7% 18%; gap: 7px; }
  .post-thumb .pt-title { -webkit-line-clamp: 3; font-size: clamp(20px, 7vw, 34px); }
  .pt-sub { display: none; }
  .pt-brand { bottom: 7%; }
}
.blog-card .bc-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .bc-date { font-size: 12px; color: var(--faint); }
.blog-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.blog-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.blog-card .bc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-card .bc-tags span { font-size: 12.5px; color: var(--gold); }
.blog-empty { text-align: center; color: var(--muted); padding: 60px 0; }

@media (max-width: 640px) {
  .post p { font-size: 15.5px; }
  .aff-item { flex-wrap: wrap; }
  .aff-go { width: 100%; text-align: right; }
}

/* 블로그 목록 인피드 광고 셀(피드 사이) */
.blog-card.bc-ad { display: block; padding: 12px 14px; min-height: 240px; background: var(--panel); border: 1px dashed var(--line); border-radius: 16px; }
.blog-card.bc-ad:hover { transform: none; border-color: var(--line); box-shadow: none; }
.blog-card.bc-ad .ad-label { display: block; text-align: center; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.blog-card.bc-ad .adsbygoogle { display: block; width: 100%; }

/* 미충전 광고 접기(블로그 목록 인피드·본문 광고) */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.blog-card.bc-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
.post-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }

/* 블로그 목록 '더 보기'(페이지네이션 — 대량 카드 렉 방지) */
.blog-more-wrap { text-align: center; margin: -34px 0 46px; }
.blog-more { font-size: 14px; font-weight: 700; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 11px 28px; cursor: pointer; transition: .15s; }
.blog-more:hover { border-color: var(--amber); transform: translateY(-1px); }

/* ===== 2026-08-14 품질 보강 (추가 전용) ===== */
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--orange, #f97316); outline-offset: 2px; }
@media (max-width: 820px) {
  .blog-filter button { min-height: 44px; }
  footer a, .footer a { padding-block: 12px; }
  .blog-more { min-height: 44px; }
  .yn-growth-footer nav a { padding-block: 12px; display: inline-block; }
}
