/* 공개 블로그(마이그레이션 671) — Claude 디자인 시안(Main·Post·ListMobile·PostMobile — 2026-10-15 개편): 색·글꼴·간격·구성.
   관리자 app.css 와 섞지 않는다(이 화면은 이 파일 하나만 싣는다). 인라인 스타일 없음(CSP) — 시안의 인라인 style 은 전부 여기 클래스로 옮겼다.
   글꼴 IBM Plex Sans KR 하나(400·500·600·700) · 숫자는 tabular-nums. 휴대폰 배치 = 720px 아래(같은 페이지의 반응형).
   공개 렌더(BlogVisual — chart-*·md-*·legend·small·muted)의 모양도 여기서 정한다. 상승 빨강·하락 파랑(한국 관례).
   대비: 본문 #13161B·#3D4550, 보조 #5A6370(흰 바탕 6:1), 강조 #1E4FD8(흰 바탕 6:1) — 모두 4.5:1 이상.
   누르는 것(따로 선 링크·버튼)은 44px 이상 — min-height 를 44px 아래로 두지 않는다(tests/run-blog-public.php). 문장 속 글자 링크(본문·각주)만 예외. */

:root {
  --bp-bg: #FFFFFF;
  --bp-surface: #FFFFFF;
  --bp-soft: #F5F6F8;
  --bp-chip: #F2F4F7;
  --bp-th: #F7F8FA;
  --bp-border: #E3E6EA;
  --bp-row: #EDF0F3;
  --bp-input: #CBD1D8;
  --bp-ink: #13161B;
  --bp-text: #13161B;
  --bp-body: #1F242B;
  --bp-text-2: #3D4550;
  --bp-muted: #5A6370;
  --bp-accent: #1E4FD8;
  --bp-accent-hover: #163DAA;
  --bp-points: #F3F6FD;
  --bp-points-h: #1E3F9E;
  --bp-dark-text: #C3C9D1;
  --bp-dark-line: #2C323B;
  --bp-up: #B42318;
  --bp-down: #1D4FA3;
  --bp-danger: #B42318;
  --bp-sans: 'IBM Plex Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --bp-gutter: 24px;
  --bp-body-fs: 18px;
}
/* 글자 크기(blog.js 가−/가+) — 본문·요점만 키운다 */
:root[data-bp-fs="-2"] { --bp-body-fs: 15px; }
:root[data-bp-fs="-1"] { --bp-body-fs: 16.5px; }
:root[data-bp-fs="1"] { --bp-body-fs: 19.5px; }
:root[data-bp-fs="2"] { --bp-body-fs: 21px; }
:root[data-bp-fs="3"] { --bp-body-fs: 23px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body.bp { margin: 0; background: var(--bp-bg); color: var(--bp-text); font-family: var(--bp-sans); font-size: 16px; line-height: 1.65; letter-spacing: -0.01em; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.bp a { color: var(--bp-text); text-decoration: none; }
.bp a:hover { color: var(--bp-accent); }
.bp a:focus-visible, .bp button:focus-visible, .bp input:focus-visible, .bp textarea:focus-visible, .bp summary:focus-visible { outline: 2px solid var(--bp-accent); outline-offset: 2px; }
.bp .ico { width: 16px; height: 16px; stroke-width: 2; flex: none; }
.bp-num { font-variant-numeric: tabular-nums; }
.bp time { font-variant-numeric: tabular-nums; }
.bp-muted { color: var(--bp-muted); }
.bp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bp-skip { position: absolute; left: -9999px; top: 0; }
.bp-skip:focus { left: 16px; top: 8px; z-index: 30; background: var(--bp-surface); padding: 8px 12px; border-radius: 8px; }
.bp-only-m { display: none !important; }   /* 표시 도구 — 개별 클래스의 display 보다 앞선다 */
.bp-grow { flex: 1 1 auto; }
.bp-dot { color: #8A939E; }

.bp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--bp-gutter); width: 100%; }

/* 날짜 줄(PC 맨 위 — 시안 Main). #E8EAEE·#9AA3AE on #13161B 은 4.5:1 이상 */
.bp-daybar { background: var(--bp-ink); color: #E8EAEE; font-size: 13px; }
.bp-daybar-in { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; }
.bp-daybar-day { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.bp-daybar-n { color: #9AA3AE; }
.bp-daybar-links { display: flex; gap: 16px; }
.bp .bp-daybar-links a { color: #E8EAEE; min-height: 44px; display: inline-flex; align-items: center; }
.bp .bp-daybar-links a:hover { color: #FFFFFF; text-decoration: underline; }

/* 주제 탭(머리 아래 — PC 밑줄 탭 · 휴대폰 가로 칩) */
.bp-tabs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; font-weight: 500; }
.bp .bp-tab { min-height: 44px; padding: 12px 14px; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; color: var(--bp-text); white-space: nowrap; }
.bp .bp-tab.is-on { border-bottom-color: var(--bp-accent); color: var(--bp-accent); font-weight: 600; }
.bp-tabs-inline { font-size: 14px; }
.bp .bp-tabs-inline .bp-tab { padding: 12px; border-bottom: 0; }
.bp-head-in + .bp-wrap .bp-tabs { margin-top: -8px; }

/* 머리 — 목록: 큰 이름 + 태그라인 · 글: 짧은 이름 + 읽기 진행 막대 */
/* 로그인 링크가 추가돼도 작은 화면에서 브랜드만 줄어들고 머리 버튼은 겹치지 않는다. */
.bp-head-in > .bp-brand { min-width: 0; }
.bp-brand-name, .bp-brand-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp .bp-head-post > .bp-brand-s { min-width: 0; display: block; line-height: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-head-in > .bp-icon-btn, .bp-head-in > .bp-fs { flex-shrink: 0; }
.bp .bp-admin-link { flex: 0 0 auto; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; color: var(--bp-muted); }
.bp-head { background: var(--bp-surface); border-bottom: 1px solid var(--bp-border); }
.bp-head-in { padding-top: 28px; padding-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.bp .bp-brand { display: flex; flex-direction: column; gap: 4px; color: var(--bp-text); }
.bp-brand-name { font-weight: 700; font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; }
.bp-brand-tag { font-size: 14px; color: var(--bp-muted); }
.bp-head-post { padding-top: 16px; padding-bottom: 16px; justify-content: space-between; }
.bp .bp-brand-s { font-weight: 700; font-size: 24px; letter-spacing: -0.02em; min-height: 44px; display: inline-flex; align-items: center; }
.bp-progress { height: 3px; background: var(--bp-border); overflow: hidden; }
.bp-progress-bar { height: 3px; background: var(--bp-accent); transform: scaleX(0); transform-origin: left center; }
.bp .bp-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.bp-icon-btn .ico { width: 22px; height: 22px; }
.bp-fs { display: flex; }
.bp-fs-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--bp-text); font: inherit; font-weight: 600; cursor: pointer; }
.bp-fs-down { font-size: 14px; }
.bp-fs-up { font-size: 17px; }
.bp-fs-btn[disabled] { color: var(--bp-muted); cursor: default; }

.bp-main { flex: 1; padding: 40px 0 64px; }
.bp-is-post .bp-main { padding: 32px 0 0; }

/* 검색(머리 PC 검색창 · 검색 화면) */
.bp-search { display: flex; gap: 8px; align-items: center; }
.bp-search input { width: 260px; min-height: 44px; padding: 0 14px; border: 1px solid var(--bp-input); border-radius: 8px; font: inherit; font-size: 15px; background: var(--bp-surface); color: var(--bp-text); }
.bp-search .bp-btn { gap: 6px; padding: 0 18px; }
.bp-search-lg input { flex: 1 1 auto; width: auto; min-width: 0; font-size: 16px; }
.bp-search-box { display: flex; flex-direction: column; gap: 14px; }
.bp-search-box h1 { margin: 0; font-size: 28px; font-weight: 700; }

/* 두 단(본문 + 곁) */
.bp-cols { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.bp-colmain { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.bp-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.bp-side-sec { display: flex; flex-direction: column; gap: 12px; }
.bp-side-sec h2 { margin: 0; font-size: 16px; font-weight: 600; padding-bottom: 8px; border-bottom: 2px solid var(--bp-ink); }
.bp-box { border: 1px solid var(--bp-border); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.bp-box h2 { margin: 0; font-size: 16px; font-weight: 600; }
.bp-box p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--bp-text-2); }

/* 새 글 받아 보기(RSS) — 어두운 상자(시안 Main·Post). 글자 #C3C9D1·흰색 on #13161B 은 4.5:1 이상 */
.bp-sub { border-radius: 12px; background: var(--bp-ink); color: var(--bp-dark-text); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.bp-sub h2 { margin: 0; font-size: 16px; font-weight: 600; color: #FFFFFF; }
.bp-sub p { margin: 0; font-size: 14px; line-height: 1.6; }
.bp-sub-btn { min-height: 44px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: #FFFFFF; color: var(--bp-ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.bp .bp-sub-link { min-height: 44px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; color: #FFFFFF; font-size: 14px; }
.bp .bp-sub-link:hover { color: #FFFFFF; text-decoration: underline; }

/* 상자 안 «더 보기» 링크(쓰는 방식 보기) */
.bp .bp-box-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--bp-accent); }

/* 안내 네 화면(소개·쓰는 방식·자료 출처·개인정보) — 글 읽기와 같은 폭·글자 */
.bp-info { flex: 999 1 640px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.85; color: var(--bp-body); overflow-wrap: anywhere; word-break: keep-all; }
.bp-info h1 { margin: 0 0 4px; font-size: 36px; font-weight: 700; line-height: 1.3; color: var(--bp-text); }
.bp-info h2 { margin: 16px 0 0; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--bp-text); }
.bp-info p { margin: 0; }
.bp .bp-info p a { color: var(--bp-accent); text-decoration: underline; text-underline-offset: 2px; }
.bp-src-items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bp-src-item { border: 1px solid var(--bp-border); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.6; color: var(--bp-text-2); }
.bp-src-item strong { color: var(--bp-text); font-weight: 600; }
.bp .bp-src-item a { min-height: 44px; display: inline-flex; align-items: center; color: var(--bp-accent); align-self: flex-start; }
.bp .bp-links a.is-on { color: var(--bp-accent); font-weight: 600; }

/* 첫 화면 — 대표 글 */
.bp-feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.bp-feat.has-fig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-feat-text { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bp-kicker-row { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--bp-muted); }
.bp-kicker { font-size: 13px; font-weight: 600; color: var(--bp-accent); }
.bp-feat-title { margin: 0; font-weight: 700; font-size: 34px; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; word-break: keep-all; }
.bp-feat-sum { margin: 0; font-size: 16px; line-height: 1.7; color: var(--bp-text-2); }
.bp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--bp-muted); }
.bp-meta-s { gap: 6px 14px; }
.bp-count { display: inline-flex; gap: 6px; align-items: center; }
.bp-feat-fig { min-width: 0; margin: 0; background: #EEF2FB; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bp-fig-cap { margin: 0; font-size: 13px; color: var(--bp-muted); }

/* 최신 글 목록 */
.bp-list { display: flex; flex-direction: column; gap: 4px; }
.bp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--bp-ink); padding-bottom: 10px; }
.bp-sec-head h1, .bp-sec-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.bp-sec-head span { font-size: 13px; color: var(--bp-muted); }
.bp-item { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--bp-border); }
.bp .bp-item-title a { display: block; min-height: 44px; }   /* 제목 링크 — 한 줄이어도 44px */
.bp-item-title { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; word-break: keep-all; }
.bp-item-sum { margin: 0; font-size: 15px; line-height: 1.7; color: var(--bp-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 썸네일(US-007 — 첫 그림을 줄인 SVG·미니 표). 그림 없는 글은 칸이 없다 */
.bp-item.has-thumb { flex-direction: row; gap: 24px; align-items: flex-start; }
.bp-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bp-thumb { flex: 0 0 200px; width: 200px; height: 130px; border-radius: 10px; background: var(--bp-chip); overflow: hidden; padding: 12px; display: flex; align-items: center; }
.bp-thumb-chart { padding: 16px 12px; }   /* 선그래프 — 위아래 여백(끝점이 잘리지 않게) */
.bp-thumb-table { align-items: center; }
.bp-thumb-svg { display: block; width: 100%; height: 100%; overflow: visible; }   /* 끝점(둥근 선끝)이 오른쪽 끝에서 반쯤 잘리지 않게 — 상자 안쪽 여백이 받는다 */
.bp-thumb-t { width: 100%; table-layout: auto; border-collapse: collapse; font-size: 12px; line-height: 1.4; color: var(--bp-text-2); }
.bp-thumb-t th, .bp-thumb-t td { padding: 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-thumb-t th { text-align: left; font-weight: 500; color: var(--bp-text); width: 100%; max-width: 0; }   /* 이름 칸이 남는 폭을 쓰고 값 칸은 글자만큼 — 긴 이름만 말줄임 */
.bp-thumb-t td { text-align: right; font-variant-numeric: tabular-nums; }
.bp-thumb-t tr + tr { border-top: 1px solid var(--bp-border); }
.bp .bp-thumb-t .chart-up { color: var(--bp-up); }
.bp .bp-thumb-t .chart-down { color: var(--bp-down); }
.bp-more-card .bp-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; flex: none; }
.bp-empty { padding: 32px 0; color: var(--bp-text-2); }
.bp-empty p { margin: 0 0 8px; }
.bp .bp-empty a { color: var(--bp-accent); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.bp-pages { display: flex; gap: 8px; padding-top: 24px; flex-wrap: wrap; }
.bp .bp-page { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--bp-input); color: var(--bp-text); font-variant-numeric: tabular-nums; }
.bp .bp-page-wide { padding: 0 16px; }
.bp .bp-page.is-on { background: var(--bp-ink); border-color: var(--bp-ink); color: #FFFFFF; font-weight: 600; }

/* 곁 — 주제·글 모음·글 목록 */
.bp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bp .bp-chip { min-height: 44px; padding: 8px 12px; border-radius: 999px; background: var(--bp-chip); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.bp-chip .bp-num { color: var(--bp-muted); }
.bp .bp-chip.is-on { background: var(--bp-ink); color: #FFFFFF; }
.bp .bp-chip.is-on .bp-num { color: var(--bp-dark-text); }
.bp-months, .bp-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; font-size: 14px; }
.bp-months li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bp-months a { min-height: 44px; display: inline-flex; align-items: center; }
.bp .bp-months a.is-on { color: var(--bp-accent); font-weight: 600; }
.bp-months .bp-num { color: var(--bp-muted); }
.bp-links li a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; line-height: 1.5; }
.bp-links-dated li a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.bp-links-t { font-size: 15px; font-weight: 500; }
.bp-links-dated time { font-size: 13px; color: var(--bp-muted); }
/* 많이 읽은 글(809) — 순위 번호 + 제목 */
.bp-rank { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.bp-rank li { display: flex; gap: 12px; align-items: flex-start; }
.bp-rank-n { flex: 0 0 24px; font-size: 20px; line-height: 44px; color: var(--bp-accent); }
.bp .bp-rank a { flex: 1 1 auto; min-width: 0; min-height: 44px; display: flex; align-items: center; padding: 8px 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }

/* 글 */
.bp-post-cols { gap: 56px; }
.bp-post { flex: 999 1 640px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.bp-crumb { font-size: 13px; color: var(--bp-muted); display: flex; gap: 8px; align-items: center; }
.bp .bp-crumb a { color: var(--bp-muted); min-height: 44px; display: inline-flex; align-items: center; }
.bp-slot:not(:has(*)) { display: none; }   /* 늘 있는 앵커 자리 — 안이 비면 간격도 차지하지 않는다 */
.bp-post-head { display: flex; flex-direction: column; gap: 16px; }
.bp-post-head .bp-kicker { font-size: 14px; }
.bp-post-title { margin: 0; font-weight: 700; font-size: 42px; line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; word-break: keep-all; }
.bp-lede { margin: 0; font-size: 19px; line-height: 1.7; color: var(--bp-text-2); }
.bp-post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--bp-border); border-bottom: 1px solid var(--bp-border); font-size: 14px; color: var(--bp-muted); }
.bp-post-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-pill-btn { min-height: 44px; padding: 0 14px; border: 1px solid var(--bp-input); border-radius: 999px; background: var(--bp-surface); color: var(--bp-text); font: inherit; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.bp-points { background: var(--bp-points); border-radius: 12px; padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.bp-points h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--bp-points-h); }
.bp-points ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: calc(var(--bp-body-fs) - 2px); line-height: 1.7; }
.bp-toc-m { border: 1px solid var(--bp-border); border-radius: 12px; padding: 0 16px; }
.bp-toc-m summary { min-height: 48px; display: flex; align-items: center; font-size: 15px; font-weight: 600; cursor: pointer; }
.bp-toc-m ol { margin: 0 0 14px; padding-left: 20px; font-size: 15px; }
.bp-toc-m a { display: inline-flex; min-height: 44px; align-items: center; }

/* 본문 — 공개 렌더(SafeMarkdown·BlogVisual)의 요소 */
.bp-body { font-size: var(--bp-body-fs); line-height: 1.9; color: var(--bp-body); display: flex; flex-direction: column; gap: 22px; overflow-wrap: anywhere; word-break: keep-all; min-width: 0; }
.bp-body > * { margin: 0; }
.bp-body h2 { margin: 12px 0 0; font-weight: 700; font-size: 26px; line-height: 1.4; color: var(--bp-text); }
.bp-body h3 { margin: 4px 0 0; font-weight: 700; font-size: 21px; line-height: 1.45; color: var(--bp-text); }
.bp-body p { margin: 0; }
.bp-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.bp .bp-body a { color: var(--bp-accent); text-decoration: underline; text-underline-offset: 2px; }
.bp-body blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--bp-input); color: var(--bp-text-2); }
.bp-body blockquote p { margin: 0; }
.bp-body blockquote.md-key { border-left-color: var(--bp-ink); color: var(--bp-text); font-weight: 700; font-size: 20px; line-height: 1.7; }
.bp-body .md-fnref { line-height: 0; }
.bp .bp-body .md-fnref a { font-size: 12px; padding: 0 2px; text-decoration: none; font-variant-numeric: tabular-nums; }
.bp-body .md-footnotes { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--bp-border); font-size: 14px; color: var(--bp-muted); display: flex; flex-direction: column; gap: 4px; }
.bp-body .md-fn { padding: 2px 0; }
.bp-body .small, .bp-body .small.muted { font-size: 12px; }
.bp-body .muted { color: var(--bp-muted); }

/* 그림 — 공개 렌더(Svg::lineChart · 표). 선그래프 수치는 Svg::AXIS_W·PAD_T·PLOT_H·AXIS_H·PAD_R 와 같다(app.css 와 같은 값) */
.bp .chart-fig { margin: 8px 0; background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; line-height: 1.6; }
.bp-feat-fig .chart-fig { margin: 0; border: 0; padding: 0; background: transparent; }
/* 대표 글 카드의 재무 표 — 좁은 칸이라 «그 전·직전 회계연도» 두 열을 숨기고 기업·단위·최근·전년 대비만(전체 표는 글에서). 표 구조(BlogVisual::htmlPublic) = 머리 6칸 · 행 th+td5 */
.bp-feat-fig .chart-table thead th:nth-child(3), .bp-feat-fig .chart-table thead th:nth-child(4),
.bp-feat-fig .chart-table tbody td:nth-of-type(2), .bp-feat-fig .chart-table tbody td:nth-of-type(3) { display: none; }
.bp .bp-feat-fig .chart-table { min-width: 0; }
.bp .bp-feat-fig .chart-table { font-size: 14px; }
.bp .bp-feat-fig .chart-table th, .bp .bp-feat-fig .chart-table td { padding-left: 10px; padding-right: 10px; }
.bp .chart-table-fig { padding: 0; border: 0; background: transparent; gap: 8px; }   /* 표 그림 — 테두리는 안쪽 스크롤 상자(chart-scroll)가 진다 */
.bp .chart-table-fig figcaption { padding: 0 4px; }
.bp .chart-box { position: relative; padding: 12px 16px 30px 60px; }
.bp .chart-plot { display: block; width: 100%; height: 178px; overflow: visible; }
.bp .chart-yaxis { position: absolute; left: 0; top: 0; width: 60px; height: 220px; overflow: visible; }
.bp .chart-xaxis { position: absolute; left: 60px; bottom: 0; width: calc(100% - 76px); height: 30px; overflow: visible; }
.bp .chart-grid { stroke: var(--bp-row); stroke-width: 1; }
.bp .chart-axis { fill: var(--bp-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bp .chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bp .chart-dot { stroke-width: 7; stroke-linecap: round; }
.bp .chart-s1 { stroke: var(--bp-accent); } .bp .legend-swatch.chart-s1 { background: var(--bp-accent); }
.bp .chart-s2 { stroke: #7A3E12; } .bp .legend-swatch.chart-s2 { background: #7A3E12; }
.bp .chart-s3 { stroke: #0B6B57; } .bp .legend-swatch.chart-s3 { background: #0B6B57; }
.bp .chart-s4 { stroke: #6B4FA3; } .bp .legend-swatch.chart-s4 { background: #6B4FA3; }
.bp .chart-s5 { stroke: #5A6370; } .bp .legend-swatch.chart-s5 { background: #5A6370; }
.bp .chart-fig figcaption { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--bp-muted); }
.bp .legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--bp-muted); }
.bp .legend li { display: inline-flex; align-items: center; gap: 6px; }
.bp .legend-swatch { display: inline-block; width: 12px; height: 3px; border-radius: 999px; }
.bp .chart-source, .bp .chart-note { margin: 0; font-size: 13px; color: var(--bp-muted); }
.bp .chart-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--bp-border); border-radius: 12px; background: var(--bp-surface); -webkit-overflow-scrolling: touch; }
.bp .chart-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 480px; }
.bp .chart-table th, .bp .chart-table td { padding: 12px 16px; text-align: left; white-space: nowrap; }
.bp .chart-table thead tr { background: var(--bp-th); }
.bp .chart-table thead th { font-weight: 600; }
.bp .chart-table tbody tr { border-top: 1px solid var(--bp-row); }
.bp .chart-table tbody th { font-weight: 500; }
.bp .chart-table .chart-num { text-align: right; font-variant-numeric: tabular-nums; }
.bp .chart-table .chart-up { color: var(--bp-up); }
.bp .chart-table .chart-down { color: var(--bp-down); }
.bp .chart-cap { caption-side: top; text-align: left; font-weight: 600; font-size: 15px; padding: 16px 20px 8px; color: var(--bp-text); }
.bp .chart-sub { display: block; font-size: 11px; color: var(--bp-muted); }
.bp .chart-alt { width: 100%; }
.bp .chart-alt-s { cursor: pointer; font-size: 13px; color: var(--bp-muted); min-height: 44px; display: flex; align-items: center; }

/* 이 글에 나온 기업·업종(811) — 곁 상자의 칸 */
.bp .bp-co { min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--bp-input); font-size: 14px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.bp .bp-cos p { font-size: 13px; color: var(--bp-muted); }

/* 주제 태그 · 근거 자료 · 쓰는 방식 · 이전/다음 */
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bp .bp-tag { min-height: 44px; padding: 8px 12px; border-radius: 999px; background: var(--bp-chip); font-size: 14px; display: inline-flex; align-items: center; }
.bp-src { border-top: 1px solid var(--bp-border); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.bp-src h2 { margin: 0; font-size: 16px; font-weight: 600; }
.bp-src-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--bp-text-2); overflow-wrap: anywhere; }
.bp-src-list li::marker { font-variant-numeric: tabular-nums; color: var(--bp-muted); }
.bp .bp-src-list a { color: var(--bp-accent); }
.bp-src-list li:target { background: var(--bp-points); }
.bp-credit { margin: 0; font-size: 13px; color: var(--bp-muted); }
.bp-how { border-radius: 12px; background: var(--bp-soft); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.bp-how-mark { flex: 0 0 48px; height: 48px; border-radius: 999px; background: var(--bp-ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.bp-how h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.bp-how p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--bp-text-2); }
.bp-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bp .bp-pn-a { border: 1px solid var(--bp-border); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.bp .bp-pn-next { grid-column: 2; text-align: right; align-items: flex-end; }
.bp-pn-k { font-size: 13px; color: var(--bp-muted); display: inline-flex; gap: 4px; align-items: center; }
.bp-pn-t { font-weight: 700; line-height: 1.5; }

/* 좋아요·버튼 */
.bp-like { cursor: pointer; }
.bp-like .ico { width: 16px; height: 16px; }
.bp-like.is-on { border-color: var(--bp-accent); background: var(--bp-accent); color: #FFFFFF; }
.bp-like.is-on .ico { fill: currentColor; }
.bp-like[disabled], .bp-btn[disabled] { opacity: .6; cursor: progress; }
.bp-btn-line { min-height: 44px; padding: 0 16px; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--bp-input); border-radius: 8px; background: var(--bp-surface); color: var(--bp-text); font: inherit; font-size: 14px; cursor: pointer; }
.bp-btn-line.bp-pill-btn { border-radius: 999px; }
.bp-hint { margin: 0; font-size: 13px; color: var(--bp-muted); }
.bp .bp-btn { min-height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--bp-ink); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.bp .bp-btn:hover { background: #2A2F37; color: #FFFFFF; }
.bp .bp-btn-danger { background: var(--bp-danger); }
.bp .bp-btn-danger:hover { background: #8E1B12; }

/* 리뷰 */
.bp-reviews { display: flex; flex-direction: column; gap: 18px; border-top: 2px solid var(--bp-ink); padding-top: 20px; margin-bottom: 64px; }
.bp-reviews h2 { margin: 0; font-size: 20px; font-weight: 700; }
.bp-reviews-n { color: var(--bp-muted); }
.bp-form { border: 1px solid var(--bp-border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bp-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.bp-field input, .bp-field textarea { min-height: 44px; padding: 0 12px; border: 1px solid var(--bp-input); border-radius: 8px; font: inherit; font-size: 16px; font-weight: 400; background: var(--bp-surface); color: var(--bp-text); width: 100%; }
.bp-field textarea { padding: 12px; line-height: 1.6; resize: vertical; }
.bp-field [aria-invalid="true"] { border-color: var(--bp-danger); }
.bp-field-err { color: var(--bp-danger); font-size: 13px; font-weight: 400; }
.bp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bp-form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.bp-review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bp-review { padding: 16px 0; border-bottom: 1px solid var(--bp-border); display: flex; flex-direction: column; gap: 8px; }
.bp-review-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 14px; }
.bp-review-head strong { font-weight: 600; overflow-wrap: anywhere; }
.bp-review-ip { font-size: 12px; color: var(--bp-muted); font-variant-numeric: tabular-nums; }
.bp-review-head time { color: var(--bp-muted); font-size: 13px; }
.bp-review-del { margin-left: auto; min-height: 44px; padding: 0 12px; border: 1px solid var(--bp-input); border-radius: 8px; background: var(--bp-surface); color: var(--bp-text); font: inherit; font-size: 13px; cursor: pointer; }
.bp-review-del:hover { color: var(--bp-danger); border-color: var(--bp-danger); }
.bp-review-body { margin: 0; font-size: 15px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.bp-review-empty { margin: 0; font-size: 14px; color: var(--bp-muted); }

/* 곁(글) — 차례 */
.bp-post-side { position: sticky; top: 24px; }
.bp-toc { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.bp .bp-toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-left: 3px solid transparent; }
.bp .bp-toc a.is-on { border-left-color: var(--bp-accent); color: var(--bp-accent); font-weight: 600; }

/* 이어서 읽기 */
.bp-more { background: var(--bp-soft); border-top: 1px solid var(--bp-border); }
.bp-more .bp-wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.bp-more h2 { margin: 0; font-size: 20px; font-weight: 600; }
.bp-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bp .bp-more-card { color: var(--bp-text); display: flex; flex-direction: column; gap: 10px; background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: 12px; padding: 20px; }
.bp-more-t { font-weight: 700; font-size: 18px; line-height: 1.45; }
.bp-more-card time { font-size: 13px; color: var(--bp-muted); }

/* 휴대폰 하단 고정 막대(글) */
.bp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bp-surface); border-top: 1px solid var(--bp-border); gap: 8px; }
.bp .bp-bar-btn { flex: 1 1 0; min-height: 48px; border: 1px solid var(--bp-input); border-radius: 12px; background: var(--bp-surface); color: var(--bp-text); font: inherit; font-size: 15px; font-weight: 600; display: flex; gap: 6px; align-items: center; justify-content: center; cursor: pointer; }
.bp .bp-bar-btn.is-on { background: var(--bp-accent); border-color: var(--bp-accent); color: #FFFFFF; }
.bp .bp-bar-main { border: 0; background: var(--bp-ink); color: #FFFFFF; }

/* 삭제 모달(<dialog>) */
.bp-modal { border: 0; border-radius: 12px; padding: 0; width: min(420px, calc(100vw - 32px)); background: var(--bp-surface); color: var(--bp-text); box-shadow: 0 20px 60px rgba(19, 22, 27, .25); }
.bp-modal::backdrop { background: rgba(19, 22, 27, .45); }
.bp-modal-in { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.bp-modal-in h2 { margin: 0; font-size: 20px; font-weight: 700; }
.bp-modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* 404 */
.bp-404 { max-width: 560px; margin: 24px auto; border: 1px solid var(--bp-border); border-radius: 12px; padding: 40px 32px; text-align: center; }
.bp-404-code { margin: 0; font-size: 44px; font-weight: 700; color: var(--bp-accent); }
.bp-404 h1 { margin: 8px 0; font-size: 26px; font-weight: 700; }
.bp-404 p { color: var(--bp-text-2); }

/* 꼬리 — 4단(소개·주제·안내·글 모음) + 면책. 글 화면은 어두운 꼬리(시안 Post) */
.bp-foot { background: var(--bp-soft); border-top: 1px solid var(--bp-border); color: var(--bp-text-2); }
.bp-foot-in { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.bp-foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.bp-foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bp-foot-col p { margin: 0; line-height: 1.7; }
.bp-foot-name { font-weight: 700; font-size: 22px; color: var(--bp-text); }
.bp-foot-h { font-weight: 600; color: var(--bp-text); }
.bp .bp-foot-col a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.bp .bp-foot-col a:hover { color: var(--bp-accent); }
.bp-foot-bottom { border-top: 1px solid #DDE1E6; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; line-height: 1.6; color: var(--bp-muted); }
.bp-foot-bottom p { margin: 0; max-width: 760px; }
.bp-foot-bottom a { color: inherit; text-decoration: underline; }
.bp-foot.is-dark { background: var(--bp-ink); border-top: 0; color: var(--bp-dark-text); }
.bp-foot.is-dark .bp-foot-name, .bp-foot.is-dark .bp-foot-h { color: #FFFFFF; }
.bp .bp-foot.is-dark .bp-foot-col a:hover { color: #FFFFFF; text-decoration: underline; }
.bp-foot.is-dark .bp-foot-bottom { border-top-color: var(--bp-dark-line); color: var(--bp-dark-text); }

/* 토스트(행동 결과 — 사라진다) */
.bp-toasts { position: fixed; right: 16px; bottom: 16px; left: auto; z-index: 40; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.bp-toast { background: var(--bp-ink); color: #FFFFFF; border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.5; box-shadow: 0 8px 24px rgba(19, 22, 27, .25); display: flex; gap: 10px; align-items: flex-start; }
.bp-toast.is-error { background: #7A1A12; }
.bp-toast.is-ok { background: #163DAA; }
.bp-toast button { margin-left: auto; background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; min-width: 44px; min-height: 44px; margin-top: -12px; margin-bottom: -12px; margin-right: -12px; }

/* 중간 폭 — 꼬리 2단 · 이어서 읽기 2단 */
@media (max-width: 1000px) {
  .bp-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-post-side { position: static; }
}

/* 휴대폰(720px 아래) — 시안 ListMobile·PostMobile. 좌우 16~22px, 가로 스크롤 없음(표는 상자 안에서만 스크롤) */
@media (max-width: 720px) {
  :root { --bp-gutter: 20px; }
  .bp-only-m { display: flex !important; }
  .bp-only-pc { display: none !important; }
  details.bp-toc-m.bp-only-m { display: block !important; }
  .bp-head-in { padding-top: 12px; padding-bottom: 12px; }
  .bp-brand-name { font-size: 21px; }
  .bp-brand-tag { font-size: 13px; }
  .bp-head-post { padding: 6px 8px; }
  .bp-head-in { gap: 4px; }
  .bp-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 4px 0 12px; font-weight: 600; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bp-head-in + .bp-wrap .bp-tabs { margin-top: 0; }
  .bp .bp-tab { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bp-chip); }
  .bp .bp-tab.is-on { background: var(--bp-ink); color: #FFFFFF; }
  .bp-search-box h1 { font-size: 22px; }
  .bp-info { font-size: 16px; }
  .bp-info h1 { font-size: 26px; }
  .bp-info h2 { font-size: 19px; }
  .bp .bp-brand-s { font-size: 17px; }
  .bp-main { padding: 24px 0 32px; }
  .bp-is-post .bp-main { padding-top: 28px; }
  .bp-cols, .bp-post-cols { gap: 28px; }
  .bp-colmain { gap: 28px; }
  .bp-feat, .bp-feat.has-fig { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bp-feat-fig { border-radius: 14px; padding: 14px; }
  .bp-feat-title { font-size: 25px; line-height: 1.4; }
  .bp-feat-sum { font-size: 16px; line-height: 1.75; }
  .bp-meta { font-size: 14px; gap: 6px 12px; }
  .bp-sec-head h1, .bp-sec-head h2 { font-size: 18px; font-weight: 700; }
  .bp-item { padding: 18px 0; gap: 6px; }
  .bp-item-title { font-size: 17px; font-weight: 600; line-height: 1.5; }
  .bp-item.has-thumb { gap: 14px; }
  .bp-item .bp-thumb { flex: 0 0 88px; width: 88px; height: 88px; padding: 6px; }
  .bp-item .bp-thumb-t { font-size: 10px; }
  .bp-item .bp-thumb-t td + td { display: none; }   /* 88px 칸 — 이름·값 두 칸만(전년 대비는 글에서) */
  .bp-item-sum { font-size: 14px; }
  .bp-meta-s { font-size: 13px; }
  .bp-box { border: 0; border-radius: 14px; background: var(--bp-soft); padding: 20px; }
  .bp-box p { font-size: 15px; }
  .bp-side .bp-pop { order: -1; }   /* 휴대폰은 곁이 목록 아래로 내려온다 — «많이 읽은 글»을 소개보다 먼저(시안 ListMobile) */
  .bp-side-sec h2 { font-size: 18px; font-weight: 700; }
  .bp-post { gap: 24px; }
  .bp-crumb { display: none; }
  .bp-post-head { gap: 14px; }
  .bp-post-title { font-size: 27px; line-height: 1.42; letter-spacing: -0.02em; }
  .bp-lede { font-size: 17px; line-height: 1.75; }
  .bp-post-meta { border: 0; padding: 0; gap: 6px 14px; }
  .bp-post-acts { width: 100%; }
  .bp-points { border-radius: 14px; padding: 20px; }
  .bp-points ol { gap: 10px; font-size: calc(var(--bp-body-fs) - 1px); }
  .bp-body h2 { font-size: 22px; line-height: 1.45; margin-top: 8px; }
  .bp-body blockquote.md-key { font-size: 19px; font-weight: 600; padding-left: 16px; }
  .bp .chart-fig { padding: 16px 12px; }
  .bp .chart-box { padding-right: 8px; }   /* 왼쪽 60px 는 y축 글자 자리(Svg 의 x=54 끝맞춤)라 줄이지 않는다 */
  .bp .chart-xaxis { width: calc(100% - 68px); }
  /* 재무 표 → 기업별 카드(CSS 만 — 칸 이름은 BlogPage::doc 이 data-label 로 붙인다) */
  .bp .chart-scroll:has(.bp-cards) { border: 0; overflow: visible; }
  .bp .chart-table.bp-cards { min-width: 0; display: block; }
  .bp .chart-table.bp-cards caption { display: block; padding: 0 0 10px; font-size: 16px; font-weight: 700; }
  .bp .chart-table.bp-cards thead { display: none; }
  .bp .chart-table.bp-cards tbody { display: flex; flex-direction: column; gap: 10px; }
  .bp .chart-table.bp-cards tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border: 1px solid var(--bp-border); border-radius: 12px; padding: 14px 16px; }
  .bp .chart-table.bp-cards tbody th { grid-column: 1 / -1; padding: 0; font-size: 15px; font-weight: 600; white-space: normal; }
  .bp .chart-table.bp-cards td { padding: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; font-size: 14px; white-space: normal; }
  .bp .chart-table.bp-cards td::before { content: attr(data-label); font-size: 12px; color: var(--bp-muted); }
  .bp .chart-table.bp-cards .chart-num { text-align: left; }
  .bp-pn { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bp .bp-pn-next { grid-column: auto; text-align: left; align-items: flex-start; }
  .bp .bp-pn-a { padding: 14px 16px; }
  .bp-form { border: 0; padding: 0; gap: 12px; }
  .bp-form-row { grid-template-columns: minmax(0, 1fr); }
  .bp-field input { min-height: 48px; padding: 0 14px; border-radius: 10px; }
  .bp-field textarea { padding: 12px 14px; border-radius: 10px; }
  .bp-form-foot .bp-btn { width: 100%; min-height: 50px; border-radius: 10px; font-size: 16px; }
  .bp-review-body { font-size: 16px; }
  .bp-reviews { margin-bottom: 0; }
  .bp-post-side { padding-bottom: 32px; }
  .bp-more .bp-wrap { padding-top: 28px; padding-bottom: 28px; }
  .bp-more-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bp-foot-in { padding-top: 28px; padding-bottom: 28px; gap: 20px; }
  .bp-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bp-foot-name { font-size: 18px; }
  .bp-is-post .bp-foot-in { padding-bottom: 110px; }   /* 하단 고정 막대에 가리지 않게 */
  .bp-is-post .bp-toasts { bottom: 84px; }
  .bp-toasts { left: 16px; right: 16px; max-width: none; }
}
