/* ──────────────────────────────────────────────────────────────
   blog/post.css — 블로그 글 공통 테마 (2026-09-05 · LG 미니멀 · PC 와이드 2단)
   각 글의 인라인 <style> 뒤에 로드된다. 같은 선택자는 이 파일이 이긴다.
   토큰: 흰 바탕 · 웜그레이 패널 · 차콜 글자 · 포인트 1색(LG 레드)만.
   ────────────────────────────────────────────────────────────── */
:root {
  --paper: #FFFFFF; --white: #FFFFFF; --soft: #F4F3F1;
  --ink: #1A1A1A; --ink-2: #3D3D3D; --muted: #767676; --line: #E5E3DF;
  --red: #A50034;
  /* 구 토큰을 새 팔레트로 접속 — 글마다 있는 고유 컴포넌트 CSS가 그대로 재도색된다 */
  --ox: #A50034; --ivory: #FFFFFF;
  --g-50: #F4F3F1; --g-100: #F4F3F1; --g-200: #E5E3DF; --g-300: #D6D3CE;
  --g-500: #767676; --g-700: #3D3D3D; --g-900: #1A1A1A;
  --code-bg: #1A1A1A; --code-fg: #EDEDED;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1180px; --aside: 300px; --gap: 64px;
}
html[data-theme="dark"] {
  --paper: #121212; --white: #1A1A1A; --soft: #232323; --ink: #F1F1F1; --ink-2: #CFCFCF; --muted: #9A9A9A; --line: #333333;
  --red: #E8446F; --ox: #E8446F; --ivory: #121212;
  --g-50: #1A1A1A; --g-100: #232323; --g-200: #333333; --g-300: #444444; --g-500: #9A9A9A; --g-700: #CFCFCF; --g-900: #F1F1F1;
  --code-bg: #0A0A0A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17.5px; line-height: 1.85; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; overflow-x: visible; }
.pv-container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ── 헤더 ── */
.pv-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.pv-nav-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.pv-brand { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-decoration: none; color: var(--ink); }
.pv-brand small { font-weight: 500; color: var(--muted); letter-spacing: .18em; }
.pv-nav-right { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.pv-nav-right a { text-decoration: none; color: var(--ink-2); }
.pv-nav-right a:hover { color: var(--red); }
.pv-theme { background: none; border: 1px solid var(--line); border-radius: 999px; width: 30px; height: 30px; cursor: pointer; font-size: 13px; color: var(--ink); font-family: var(--sans); }

/* ── 타이틀 밴드: 좌 제목 · 우 대표 도판 ── */
.pv-head { background: var(--soft); }
.pv-head-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px 0 56px; }
.pv-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 20px; }
.pv-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: -4px; }
.pv-eyebrow span { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 14px; }
.pv-head h1 { font-size: clamp(2rem, 3.3vw, 2.85rem); font-weight: 800; line-height: 1.18; letter-spacing: -.035em; color: var(--ink); margin: 0; }
.pv-dek { margin-top: 24px; font-size: 1.15rem; line-height: 1.7; color: var(--ink-2); max-width: 34rem; }
.pv-dek em { font-style: normal; color: var(--ink); font-weight: 600; }
.pv-dek code { font-family: var(--mono); font-size: .86em; background: var(--white); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.pv-byline { margin-top: 26px; font-size: 14px; color: var(--muted); }
.pv-byline b { color: var(--ink); font-weight: 600; }

/* 대표 도판 = 카드뉴스 썸네일을 2.2배로 확대 렌더. 색은 차콜 단색으로 통일 */
.pv-hero { position: relative; aspect-ratio: 1792 / 1024; border-radius: 8px; overflow: hidden; background: var(--soft); margin: 0; border: 1px solid var(--line); }
.pv-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-hero.thumb, .pv-hero.thumb[class*="thumb-"] { background: radial-gradient(120% 140% at 80% 20%, #2A2A2A 0%, #1A1A1A 60%, #111111 100%); }
.pv-hero .tg { position: absolute; inset: 0; width: calc(100% / 2.2); height: calc(100% / 2.2); transform: scale(2.2); transform-origin: top left; padding: 15px 16px; display: flex; flex-direction: column; }
.tg-eyebrow { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); position: relative; z-index: 2; }
.tg-title { font-size: 17px; font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1.18; margin-top: 7px; position: relative; z-index: 2; }
.tg-wm { position: absolute; right: 13px; top: 8px; font-family: var(--sans); font-size: 33px; font-weight: 800; color: rgba(255,255,255,.07); letter-spacing: -.03em; line-height: 1; z-index: 1; }
.tg-bars { margin-top: auto; display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 2; }
.tg-lab { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--sans); font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.82); margin-bottom: 3px; }
.tg-lab b { font-weight: 800; color: #fff; }
.tg-track { height: 7px; border-radius: 4px; background: rgba(255,255,255,.13); overflow: hidden; }
.tg-fill { height: 100%; border-radius: 4px; }
.tg-fill.f1 { width: 96%; background: #fff; }
.tg-fill.f2 { width: 48%; background: var(--red); }
.tg-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.tg-graph-cap { margin-top: auto; position: relative; z-index: 2; font-family: var(--sans); font-size: 9px; color: rgba(255,255,255,.8); }
.tg-funnel { margin-top: auto; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 2; }
.tg-fl { display: flex; align-items: center; gap: 8px; }
.tg-fl .n { font-family: var(--sans); font-size: 10px; font-weight: 800; color: rgba(255,255,255,.92); min-width: 38px; text-align: right; }
.tg-fl .bar { height: 9px; border-radius: 3px; }
.tg-fl.l1 .bar { width: 100%; background: rgba(255,255,255,.26); }
.tg-fl.l2 .bar { width: 42%; background: rgba(255,255,255,.42); }
.tg-fl.l3 .bar { width: 14px; background: var(--red); }
.tg-fl .cap { font-family: var(--sans); font-size: 9px; color: rgba(255,255,255,.85); font-weight: 700; white-space: nowrap; }
.tg-fl.l3 .n { color: #fff; }
.tg-steps { margin-top: auto; display: flex; align-items: center; gap: 6px; position: relative; z-index: 2; flex-wrap: wrap; }
.tg-steps .s { font-family: var(--sans); font-size: 9px; font-weight: 700; color: rgba(255,255,255,.5); padding: 3px 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; }
.tg-steps .s.on { color: #fff; border-color: var(--red); background: rgba(165,0,52,.35); }
.tg-steps .a { color: rgba(255,255,255,.3); font-size: 10px; }

/* ── 2단: 본문 + 사이드바 ── */
.pv-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); gap: var(--gap); padding: 56px 0 96px; align-items: start; }
.pv-main { min-width: 0; }
.pv-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; }
.pv-card { background: var(--soft); border-radius: 8px; padding: 22px 24px; }
.pv-card .t { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 12px; }
.pv-toc { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.pv-toc li { counter-increment: t; }
.pv-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 7px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); text-decoration: none; border-top: 1px solid var(--line); }
.pv-toc li:first-child a { border-top: 0; }
.pv-toc a::before { content: counter(t, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .06em; padding-top: 3px; }
.pv-toc a:hover, .pv-toc a.active { color: var(--ink); font-weight: 700; }
.pv-card.nl { background: var(--ink); color: #fff; }
html[data-theme="dark"] .pv-card.nl { background: #000; }
.pv-card.nl .t { color: rgba(255,255,255,.55); }
.pv-card.nl h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; margin: 0; }
.pv-card.nl p { margin: 8px 0 0; font-size: 13.5px; opacity: .7; line-height: 1.6; }
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; padding: 13px 18px; border-radius: 4px; font-size: 14.5px; font-weight: 700; text-decoration: none; margin-top: 16px; width: 100%; }
.pv-btn:hover { opacity: .9; }
.pv-author { display: flex; gap: 12px; align-items: center; }
.pv-author .av { width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; overflow: hidden; }
.pv-author img.av { background: #EDE9E3; object-fit: cover; }
.pv-author b { display: block; font-size: 14.5px; color: var(--ink); }
.pv-author small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ── 본문 (구 shell 규칙을 덮는다) ── */
.prose { max-width: none; }
.prose h2 { display: block; margin: 76px 0 18px; padding-top: 30px; border-top: 1px solid var(--line); font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.28; color: var(--ink); scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 8px; padding-top: 0; border-top: 0; }
.prose h2 .h-marker { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 10px; opacity: 1; }
.prose h2 .h-marker::before { content: "Part "; }
.prose h3 { margin: 44px 0 12px; font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.015em; }
.prose p { margin-bottom: 1.15em; color: var(--ink-2); max-width: 43rem; }
.prose ul, .prose ol { max-width: 43rem; }
.prose li { margin-bottom: .45em; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose em { font-style: normal; color: var(--ink); font-weight: 600; background: linear-gradient(transparent 62%, rgba(165,0,52,.14) 62%); padding: 0 1px; }
html[data-theme="dark"] .prose em { background: linear-gradient(transparent 62%, rgba(232,68,111,.3) 62%); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red); opacity: 1; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--ink); white-space: nowrap; }
.prose pre { background: var(--code-bg); color: var(--code-fg); border: 0; border-radius: 8px; padding: 22px 24px; margin: 22px 0 26px; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; overflow-x: auto; word-break: normal; overflow-wrap: normal; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.prose pre .c { color: #8B8B8B; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose ul, .prose ol { color: var(--ink-2); }
.prose blockquote { margin: 24px 0; padding: 18px 24px; border-left: 3px solid var(--ink); background: var(--soft); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th { background: var(--white); color: var(--ink); text-align: left; padding: 12px 16px; font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--ink); }
.prose td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }

/* 라벨류: 코드 글꼴 → 본문 글꼴 + 레드 */
.howto-label, .callout-label, .ev-k, .ev-src, .product-card-label, .concept-label, .fig-cap, .section-label, .stat-label, .sc-meta, .sc-when, .d-lab, .dia-cap, .spec-sub, .arch-sub, .arch-owner, .ol-cmd, .op-cmd, .evo-t, .vs-t, .mindos-k, .loop-sub, .result-label { font-family: var(--sans) !important; }
.howto-label, .callout-label, .ev-k, .concept-label, .product-card-label, .section-label { font-size: 12px !important; letter-spacing: .1em; color: var(--red) !important; }
.ev-src, .fig-cap, .dia-cap { font-size: 13px !important; color: var(--muted) !important; }

/* 상자류: 테두리 대신 웜그레이 면 · 8px */
.callout, .ev, .concept, .vs-box, .stat-cell, .scenario-card, .result-card, .tpl-card, .loop-step, .arch-box, .fig, .mindos-row, .evo-step, .rail-step, .ol-item, .op, .act .num, .fstep, .gap-call { border-color: transparent !important; box-shadow: none !important; }
.callout, .ev, .concept, .vs-box, .stat-cell, .scenario-card, .result-card, .tpl-card, .fig, .gap-call { background: var(--soft) !important; border: 0 !important; border-radius: 8px !important; }
.callout { border-left: 0 !important; padding: 20px 24px !important; }
.callout p { font-size: 15.5px !important; color: var(--ink-2) !important; }
.act .num { background: var(--red) !important; color: #fff !important; font-family: var(--sans) !important; border-radius: 50% !important; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.act { background: var(--soft); border-radius: 8px; padding: 16px 18px; }
.act .atxt { font-size: 15px !important; }
.gfill, .gbar .gfill.bad { font-family: var(--sans) !important; }
.gfill.bad { background: var(--red) !important; }
.gfill.mid { background: #9A9A9A !important; }
.pct, .stat-val, .result-num, .stat-n { font-family: var(--sans) !important; color: var(--ink) !important; }

/* ── 가독성 바닥: 글 고유 컴포넌트의 작은 글자를 14px 이상으로, 라벨은 본문 글꼴로 ── */
.ev-quote, .gap-call, .sc-body, .sc-biz, .qb, .arch-sub, .ol-desc, .op-body, .layer-desc, .stat-sub, .result-label, .loop-sub,
.vs-s, .evo-s, .fig-cap, .dia-cap, .spec-text, .spec-sub, .repo-info-desc, .pull-quote .pq-src, .mindos-v, .rail-step, .slider-ends,
.growth-labels, .gbar-n, .grow .gl, .d-lab, .d-other, .d-me, .tc-l, .ol-item, .op { font-size: 14.5px !important; line-height: 1.6 !important; font-family: var(--sans) !important; }
.ev-k, .callout-label, .howto-label, .sc-when, .sc-meta, .loop-name, .arch-owner, .op-cmd, .ol-cmd, .spec-marker-label, .layer-label,
.stat-u, .stat-l, .vs-l, .vs-mid, .evo-t, .vs-t, .mindos-k, .concept-label, .section-label, .product-card-label, .repo-star, .cmd-ref .cn,
.arch-arrow-label, .rail-arrow, .evo-arrow, .tc-n, .stat-label { font-size: 12.5px !important; letter-spacing: .08em; font-family: var(--sans) !important; }
.ev-h, .sc-title, .concept-title, .arch-name, .loop-name b, .layer-title, .repo-info-name { font-size: 16.5px !important; line-height: 1.45 !important; }
.stat-val, .stat-n, .result-num, .pct, .tc-n b { font-family: var(--sans) !important; letter-spacing: -.02em; }
.ev, .callout, .concept, .vs-box, .stat-cell, .scenario-card, .result-card, .fig, .gap-call, .act, .step { padding: 20px 22px !important; }
.prose figure, .fig, .dia { margin-left: 0; margin-right: 0; }

/* 글 끝 푸터 */
.pv-foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); line-height: 1.6; }
.pv-foot b { color: var(--ink); font-weight: 600; }
.pv-foot a { color: var(--muted); text-decoration: none; }
.pv-foot a:hover { color: var(--ink); }

@media (max-width: 1024px) {
  .pv-head-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 40px; }
  .pv-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pv-aside { position: static; }
  .pv-aside .pv-card.toc-card { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .pv-container { padding: 0 20px; }
  .pv-head-grid { padding: 36px 0 32px; }
  .pv-head h1 br { display: none; }
  .acts { grid-template-columns: 1fr; }
  .pv-layout { padding: 36px 0 64px; }
  .pv-hero .tg { width: calc(100% / 1.7); height: calc(100% / 1.7); transform: scale(1.7); }
}

/* ── 도식 블록 (blog-autopilot build.py ```fig``` → .fg-*) · 글자는 전부 HTML ── */
.fg { margin: 30px 0 34px; padding: 0; }
.fg figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.fg .fg-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.fg-stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 12px; }
.fg-stats figcaption, .fg-stats .fg-note, .fg-cards figcaption, .fg-cards .fg-note { grid-column: 1 / -1; }
.fg-stat { background: var(--soft); border-radius: 8px; padding: 22px 20px 18px; }
.fg-stat .n { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.fg-stat.red .n { color: var(--red); }
.fg-stat .l { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.fg-bars { display: flex; flex-direction: column; gap: 16px; background: var(--soft); border-radius: 8px; padding: 22px 24px; }
.fg-bar .l { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; color: var(--ink-2); margin-bottom: 7px; }
.fg-bar .l b { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 16px; }
.fg-bar.red .l b { color: var(--red); }
.fg-bar .t { height: 12px; border-radius: 999px; background: var(--white); overflow: hidden; border: 1px solid var(--line); }
.fg-bar .f { height: 100%; background: var(--ink); border-radius: 999px; }
.fg-bar.red .f { background: var(--red); }
.fg-compare { overflow-x: auto; }
.fg-compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fg-compare th { text-align: left; padding: 11px 14px; font-size: 13.5px; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--ink); }
.fg-compare tbody th { color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.fg-compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.fg-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.fg-step { flex: 1 1 118px; background: var(--soft); border-radius: 8px; padding: 14px 14px 12px; min-width: 118px; }
.fg-step.red { background: var(--red); color: #fff; }
.fg-step .k { font-size: 11.5px; letter-spacing: .12em; font-weight: 800; color: var(--red); }
.fg-step.red .k { color: rgba(255,255,255,.7); }
.fg-step .t { font-size: 16px; font-weight: 800; margin-top: 6px; line-height: 1.3; }
.fg-step .s { font-size: 13.5px; margin-top: 6px; line-height: 1.5; color: var(--ink-2); }
.fg-step.red .s { color: rgba(255,255,255,.85); }
.fg-arrow { align-self: center; color: var(--muted); font-size: 18px; padding: 0 2px; }
.fg-flow figcaption, .fg-flow .fg-note, .fg-bars figcaption, .fg-bars .fg-note, .fg-compare figcaption, .fg-compare .fg-note { flex-basis: 100%; width: 100%; }
.fg-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 12px; }
.fg-card { background: var(--soft); border-radius: 8px; padding: 18px 18px 16px; border-top: 3px solid var(--ink); }
.fg-card.red { border-top-color: var(--red); }
.fg-card .t { font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.fg-card .s { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 700px) { .fg-stats, .fg-cards { grid-template-columns: 1fr 1fr; } .fg-arrow { display: none; } .fg-step { flex-basis: 100%; } }

/* ── 다음 문 (글 끝 · 2026-09-07) ─────────────────────────────
   본문이 끝난 자리에서 독자가 갈 곳을 한 번만 제시한다.
   관련 글은 매니페스트 data-related 가 있을 때만 나온다 — 없으면 안내 두 줄만.
   생성: scripts/sync-posts.mjs (마커 <!-- NEXT:START/END --> 사이) */
.pv-next { margin-top: 56px; padding: 28px 30px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; }
.pv-next .nx-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--red); margin-bottom: 16px; }
.pv-next .nx-posts { list-style: none; margin: 0 0 20px; padding: 0; }
.pv-next .nx-posts li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.pv-next .nx-posts li:last-child { border-bottom: 0; }
.pv-next .nx-posts a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; line-height: 1.5; }
.pv-next .nx-posts a:hover { color: var(--red); }
.pv-next .nx-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-next .nx-cta a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); text-decoration: none; font-size: 14px; }
.pv-next .nx-cta a:hover { border-color: var(--red); color: var(--red); }
.pv-next .nx-cta a.is-primary { background: var(--red); border-color: var(--red); color: #fff; }
.pv-next .nx-cta a.is-primary:hover { color: #fff; opacity: .9; }
@media (max-width: 600px) { .pv-next { padding: 22px 20px; } .pv-next .nx-cta a { flex: 1 1 100%; text-align: center; } }

/* ── 공유 (글 끝 · 2026-09-13) ─────────────────────────────
   외부 SDK 없이 공유 URL 링크 + 링크 복사 + 모바일 기본 공유 시트.
   생성: scripts/sync-posts.mjs (마커 <!-- SHARE:START/END --> 사이) */
.pv-share { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.pv-share .sh-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--red); margin-bottom: 14px; }
.pv-share .sh-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-share .sh-row a, .pv-share .sh-row button { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); text-decoration: none; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; }
.pv-share .sh-row a:hover, .pv-share .sh-row button:hover { border-color: var(--red); color: var(--red); }
.pv-share .sh-row .sh-copy { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.pv-share + .pv-next, .pv-share + * + .pv-next { margin-top: 28px; }

/* ── 조회수 (제목 위 메타 줄 · 2026-09-13) — 생성: scripts/sync-posts.mjs 5e · 집계: netlify/functions/views.mjs */
/*    2026-09-13 수정: 회색 작은 글씨라 날짜·읽기 시간에 묻혔다(사용자 "눈에 잘 안 들어오네") → 테두리 알약 + 진한 굵은 숫자 */
.pv-eyebrow .pv-views { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; line-height: 1.4; }
.pv-eyebrow .pv-views svg { flex: none; width: 17px; height: 17px; color: var(--red); }

/* ── 글씨체·글씨 톤 = 요즘IT 기사 규격 (2026-09-13 사용자 지시 "블로그 글씨체는 요즘IT의 글씨체로 · 글씨톤도") ──
   실측: yozm.wishket.com/magazine/detail/3920 계산 스타일 (Pretendard · 자간 +0.48px 전 요소 공통)
   제목 32/48 400 #212121 · 절 제목 24/36 700 #212121 · 소제목 18/28 700 · 본문 16/30 400 #313131 · 캡션 13/20 #9E9E9E
   굵기 상한 700 (요즘IT 는 800 미사용). 포인트 색(LG 레드)·레이아웃·다크 팔레트는 기존 유지. 되돌리기 = 이 블록 삭제. */
:root { --ink: #212121; --ink-2: #313131; --caption: #9E9E9E; --yz-ls: .48px; }
html[data-theme="dark"] { --caption: #8A8A8A; }
body { font-size: 16px; line-height: 30px; letter-spacing: var(--yz-ls); }
/* 글마다 인라인 <style> 에 .pv-head h1 (36px 700 -.02em) · .prose .fg figcaption (600) 이 박혀 있어 선택자 강도를 올린다 */
html body .pv-head h1 { font-size: 32px; line-height: 48px; font-weight: 400; letter-spacing: var(--yz-ls); }
.pv-dek { font-size: 18px; line-height: 28px; letter-spacing: var(--yz-ls); }
html .prose p, html .prose li { font-size: 16px; line-height: 30px; letter-spacing: var(--yz-ls); text-align: start; }
.prose strong, .prose b { font-weight: 700; }
html body .prose h2 { font-size: 24px; line-height: 36px; font-weight: 700; letter-spacing: var(--yz-ls); }
html body .prose h3 { font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: var(--yz-ls); }
.prose blockquote { letter-spacing: var(--yz-ls); }
.prose table, .fg-compare table { letter-spacing: var(--yz-ls); }
html .prose .fg figcaption, .fg figcaption { font-size: 13px; line-height: 20px; font-weight: 400; color: var(--caption); letter-spacing: var(--yz-ls); }
.fg .fg-note { font-size: 13px; line-height: 20px; color: var(--caption); letter-spacing: var(--yz-ls); }
.fg-stat .n, .fg-step .t, .fg-card .t, .pv-card.nl h3, .pv-author .av { font-weight: 700; }
.fg-stat .l, .fg-bar .l, .fg-step .s, .fg-card .s, .fg-compare td, .fg-compare th { letter-spacing: var(--yz-ls); }
@media (max-width: 600px) {
  body { font-size: 16px; }
  html body .pv-head h1 { font-size: 24px; line-height: 36px; }
}

/* ── 글마다 다른 리듬 (2026-09-29 «너무 똑같은 스타일이라 가독성이 떨어진다») ──
   글자 크기·톤은 위 요즘IT 규격 그대로 둔다(2026-09-13 지시). 바꾸는 것은 뼈대의 반복뿐:
   ① 본문 PART 번호 숨김 — 목차가 이미 01·02 번호를 갖는다  ② «가져갈 것» 3줄  ③ 핵심 문장 인용.
   ②③ 의 문장은 scripts/post-extras.json → sync-posts.mjs 5f 가 끼운다. 되돌리기 = 이 블록 삭제. */
html body .prose .part-rule .k { display: none; }
html body .prose .part-rule .n { color: var(--red); }
.pv-take { margin: 0 0 40px; padding: 22px 26px 18px; background: var(--soft); border-radius: 10px; max-width: 744px; }
.pv-take .tk-h { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--red); letter-spacing: var(--yz-ls); margin-bottom: 8px; }
.pv-take ol { margin: 0; padding-left: 1.25em; }
html .prose .pv-take li { font-size: 16px; line-height: 28px; color: var(--ink); margin-bottom: 4px; letter-spacing: var(--yz-ls); }
html body .prose .pv-pull { margin: 36px 0 40px; padding: 2px 0 2px 22px; border-left: 3px solid var(--red); background: none; border-radius: 0; max-width: 700px;
  font-size: 20px; line-height: 32px; font-weight: 700; color: var(--ink); letter-spacing: var(--yz-ls); font-style: normal; }
@media (max-width: 600px) {
  .pv-take { padding: 18px 18px 14px; }
  html body .prose .pv-pull { font-size: 18px; line-height: 29px; padding-left: 16px; }
}
/* ── 가독성 개편 (2026-09-29 · 참고 aidp.wishket.com/blog 실측) ──
   사용자 결정: 요즘IT 규격(9/13)과 PC 와이드 우측 사이드바(9/5)를 이 블록이 대체한다.
   ① 글자 톤: 본문 17/32 · 자간 0 · 문단 24px · 제목 700  ② 절 호흡: h2 앞 72px · h3 19/28.5 600
   ③ 배치: 왼쪽 목차 레일 + 가운데 본문 700px · 구독 카드는 글 끝  ④ 첫머리: 가운데 제목 → 메타 → 큰 대표 이미지
   되돌리기 = 이 블록 삭제. */
:root { --yz-ls: 0px; --rd-body: 17px; --rd-lh: 32px; --rd-col: 700px; --rd-rail: 200px; }
body { letter-spacing: 0; }

/* ① 글자 톤 */
html .prose p, html .prose li { font-size: var(--rd-body); line-height: var(--rd-lh); letter-spacing: -0.003em; }
html body .prose p { margin: 0 0 24px; }
html body .prose li { margin-bottom: 8px; }
html .prose .pv-take li { font-size: 16px; line-height: 28px; letter-spacing: 0; }

/* ② 절 호흡 */
html body .prose h2 { font-size: 24px; line-height: 33.6px; font-weight: 700; letter-spacing: -0.02em; margin: 72px 0 24px; }
html body .prose h3 { font-size: 19px; line-height: 28.5px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 16px; }
html body .prose .part-rule { margin-top: 80px; }
html body .prose .part-rule + h2 { margin-top: 12px; }

/* ④ 첫머리 — 가운데 제목 · 메타 · 큰 대표 이미지 */
.pv-head { background: var(--white, #fff); }
.pv-head-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 28px; padding: 64px 0 24px; max-width: 900px; margin: 0 auto; }
.pv-head-grid > div { max-width: 780px; }
html body .pv-head h1 { font-size: 44px; line-height: 1.4; font-weight: 700; letter-spacing: -0.025em; margin: 14px 0 0; }
.pv-dek { font-size: 18px; line-height: 30px; letter-spacing: -0.005em; color: var(--ink-2); margin: 18px auto 0; max-width: 680px; }
.pv-eyebrow { justify-content: center; }
.pv-byline { margin-top: 18px; }
.pv-hero { width: 100%; max-width: 860px; margin: 8px auto 0; }
.pv-hero img { width: 100%; height: auto; border-radius: 14px; }

/* ③ 배치 — 왼쪽 목차 레일 + 가운데 본문, 구독 카드는 본문 아래 */
@media (min-width: 1101px) {
  .pv-layout { grid-template-columns: var(--rd-rail) minmax(0, var(--rd-col)) minmax(0, 1fr); column-gap: 48px; padding-top: 40px; }
  .pv-main { grid-column: 2; grid-row: 1; }
  .pv-aside { display: contents; }
  .pv-aside .toc-card { grid-column: 1; grid-row: 1; position: sticky; top: 96px; align-self: start; background: none; padding: 0; border: 0; }
  .pv-aside .toc-card .t { font-size: 13px; color: var(--caption); font-weight: 600; margin-bottom: 10px; }
  .pv-aside .toc-card .pv-toc { border-left: 1px solid var(--line, #E5E5E5); padding-left: 14px; }
  .pv-aside .toc-card .pv-toc a { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
  .pv-aside .toc-card .pv-toc li, .pv-aside .toc-card .pv-toc li.toc-part { border: 0; padding: 5px 0; margin: 0; }
  .pv-aside .toc-card .pv-toc li.toc-part { padding-top: 12px; }
  .pv-aside .toc-card .pv-toc li.toc-part:first-child { padding-top: 0; }
  .pv-aside .toc-card .pv-toc li.toc-part a { font-weight: 700; color: var(--ink); }
  .pv-aside .pv-card.nl { grid-column: 2; grid-row: 2; margin-top: 24px; }
}
@media (max-width: 1100px) {
  .pv-layout { grid-template-columns: minmax(0, var(--rd-col)); justify-content: center; }
  .pv-aside .toc-card { display: none; }
}
.pv-main .prose, .pv-take { max-width: var(--rd-col); }

@media (max-width: 600px) {
  html body .pv-head h1 { font-size: 28px; line-height: 1.4; }
  .pv-head-grid { padding: 36px 0 16px; text-align: left; justify-items: stretch; }
  .pv-eyebrow { justify-content: flex-start; }
  html .prose p, html .prose li { font-size: 16.5px; line-height: 30px; }
  html body .prose h2 { font-size: 22px; line-height: 31px; margin-top: 56px; }
}

/* 긴 인라인 코드가 휴대폰 폭을 넘기던 것 (github-trending-0927 실측 791px) */
html body .prose p code, html body .prose li code { white-space: normal; overflow-wrap: anywhere; word-break: break-all; }

/* ──────────────────────────────────────────────────────────────
   글 구성 장치 (2026-10-02 · projectresearch.co.kr 글 벤치마킹)
   가져온 것은 구성이다: 3줄 요약 상자 · 왜 읽나 한 줄 · 절 요지 문단 · 핵심 질문 상자 · HTML 도식 · 경고 상자.
   색은 기존 토큰(먹색 + 크림슨 1색), 굵기 상한 700(typography.md), 도식은 편집 디자인(BJ1)을 유지한다.
   원고에서 raw HTML 로 쓴다 (build.py extra 확장의 markdown="1" 허용). 되돌리기 = 이 블록 삭제.
   ────────────────────────────────────────────────────────────── */
html body .prose .bx-summary { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 0 0 20px; }
/* 작은 표지 글자는 본문 줄높이(32px)를 물려받지 않게 한다 */
html body .prose .bx-links-t, html body .prose .bx-fig-t, html body .prose .bx-tiles-n, html body .prose .bx-question-k { line-height: 1.5; }
html body .prose .bx-summary .bx-summary-t { font-size: 12.5px; line-height: 1.4; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
html body .prose .bx-summary ol { margin: 0; padding-left: 20px; }
html body .prose .bx-summary li { font-size: 16px; line-height: 28px; margin: 0 0 8px; }
html body .prose .bx-summary li:last-child { margin-bottom: 0; }

html body .prose .bx-why { display: flex; gap: 14px; align-items: baseline; border-left: 3px solid var(--red); padding: 4px 0 4px 16px; margin: 0 0 40px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
html body .prose .bx-why .bx-why-k { flex: none; font-size: 13px; font-weight: 700; color: var(--red); }

html body .prose p.bx-lead { font-size: 18.5px; line-height: 32px; color: var(--ink-2); margin: 0 0 24px; }

html body .prose .bx-question { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 26px 8px 22px; margin: 36px 0; text-align: center; }
html body .prose .bx-question p { text-align: center; max-width: none; }
html body .prose .bx-question .bx-question-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
html body .prose .bx-question .bx-question-b { font-size: 22px; line-height: 1.5; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin: 0 0 10px; }
html body .prose .bx-question .bx-question-n { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* 도식 — 상자 대신 구분선·큰 번호·글자 위계·강조 1색 (BJ1) */
html body .prose .bx-depth, html body .prose .bx-four { margin: 36px 0; border-top: 1px solid var(--ink); }
html body .prose .bx-fig-t { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin: 12px 0 4px; }
html body .prose .bx-fig-n { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; text-align: center; }
html body .prose .bx-depth-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
html body .prose .bx-depth-n { font-size: 32px; line-height: 1; font-weight: 700; color: var(--line); font-variant-numeric: tabular-nums; }
html body .prose .bx-depth-h { font-size: 17px; line-height: 1.5; font-weight: 700; margin: 0 0 4px; }
html body .prose .bx-depth-d { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0; }
html body .prose .bx-depth-row.is-key .bx-depth-n, html body .prose .bx-depth-row.is-key .bx-depth-h { color: var(--red); }
html body .prose .bx-four-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
html body .prose .bx-four-k { font-size: 16px; font-weight: 700; }
html body .prose .bx-four-v { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
html body .prose .bx-four-s { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
html body .prose .bx-four-row.is-key .bx-four-k, html body .prose .bx-four-row.is-key .bx-four-s { color: var(--red); }

html body .prose .bx-note { border-left: 3px solid var(--ink); background: var(--soft); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 28px 0; }
html body .prose .bx-note.is-warn { border-left-color: var(--red); }
html body .prose .bx-note .bx-note-t { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
html body .prose .bx-note.is-warn .bx-note-t { color: var(--red); }
html body .prose .bx-note p { font-size: 15.5px; line-height: 1.7; margin: 0; }

/* 상자 변형 — 레퍼런스의 파랑(통찰)·빨강(금지)·주황(주의)을 1색 원칙으로 옮긴다: 통찰 = 먹색 · 금지 = 크림슨 · 주의 = 회색 */
html body .prose .bx-note.is-key { border-left-color: var(--ink); }
html body .prose .bx-note.is-caution { border-left-color: var(--muted); }
html body .prose .bx-note ul { margin: 8px 0 0; padding-left: 19px; }
html body .prose .bx-note li { font-size: 15.5px; line-height: 1.65; margin: 0 0 6px; }

/* 표 — 먹색 머리줄 · 짝수 줄 옅은 바탕 · 폰에서는 표만 가로 스크롤 */
html body .prose .bx-tw { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
html body .prose .bx-tw table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14.5px; line-height: 1.6; }
html body .prose .bx-tw th { background: var(--ink); color: var(--paper); text-align: left; padding: 10px 12px; font-size: 13.5px; font-weight: 700; }
html body .prose .bx-tw td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; line-height: 1.6; }
html body .prose .bx-tw tr:nth-child(even) td { background: var(--soft); }
html body .prose .bx-tw td.is-key, html body .prose .bx-tw td strong { color: var(--red); }

/* 숫자 타일 */
html body .prose .bx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 24px 0; }
html body .prose .bx-tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; text-align: center; }
html body .prose .bx-tile .bx-tv { display: block; font-size: 28px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
html body .prose .bx-tile .bx-tl { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 5px; }
html body .prose .bx-tile.is-key { border-color: var(--red); }
html body .prose .bx-tile.is-key .bx-tv { color: var(--red); }
html body .prose .bx-tiles-n { font-size: 12.5px; color: var(--muted); margin: -12px 0 24px; text-align: center; }

/* 번호 단계 — 월요일에 할 일 */
html body .prose .bx-steps { counter-reset: bxst; margin: 24px 0; border-top: 1px solid var(--line); }
html body .prose .bx-step { position: relative; padding: 16px 0 16px 46px; border-bottom: 1px solid var(--line); }
html body .prose .bx-step::before { counter-increment: bxst; content: counter(bxst); position: absolute; left: 0; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
html body .prose .bx-step .bx-step-h { display: block; font-size: 16px; font-weight: 700; margin-bottom: 3px; }
html body .prose .bx-step .bx-step-d { display: block; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* 이어 읽기 · 원천 링크 */
html body .prose .bx-links { display: flex; flex-direction: column; gap: 9px; margin: 0 0 32px; }
html body .prose .bx-links-t { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin: 0; }
html body .prose a.bx-lk { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; text-decoration: none; color: var(--ink); background: var(--soft); }
html body .prose a.bx-lk:hover { border-color: var(--red); }
html body .prose .bx-lk .bx-lk-t { display: block; font-weight: 700; font-size: 15px; line-height: 1.45; margin-bottom: 3px; }
html body .prose .bx-lk .bx-lk-d { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* 꼬리말 — 용어 풀이 · 출처 */
html body .prose .bx-foot { margin-top: 56px; padding-top: 20px; border-top: 2px solid var(--ink); }
html body .prose .bx-foot .bx-fh { font-size: 13px; font-weight: 700; margin: 16px 0 6px; }
html body .prose .bx-foot .bx-fh:first-child { margin-top: 0; }
html body .prose .bx-foot p, html body .prose .bx-foot li { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 6px; }
html body .prose .bx-foot ol { padding-left: 18px; margin: 0; }

@media (max-width: 600px) {
  html body .prose p.bx-lead { font-size: 17.5px; line-height: 30px; }
  html body .prose .bx-question .bx-question-b { font-size: 19px; }
  html body .prose .bx-why { flex-direction: column; gap: 4px; }
  html body .prose .bx-depth-row { grid-template-columns: 44px 1fr; }
  html body .prose .bx-depth-n { font-size: 24px; }
  html body .prose .bx-four-row { grid-template-columns: 56px 1fr; row-gap: 4px; }
  html body .prose .bx-four-s { grid-column: 2; }
}
