/* 데이터 산책 — craftspace.co.kr (스페이스 main 전용)
   방향: 통계연보 · 측정. 쿨 그레이 종이 + 코발트(데이터) + 형광 마커(강조).
   제목 Wanted Sans · 본문 IBM Plex Sans KR · 숫자/라벨 IBM Plex Mono.
   시그니처: 대표 수치 아래 눈금자 — 표식이 실제 비율 위치에 놓인다(.ruler). */
:root {
  --paper: #f3f5f7;
  --surface: #ffffff;
  --ink: #0e1b2b;
  --ink-2: #2e3b4e;
  --muted: #5d6879;
  --line: #dce2e8;
  --line-2: #c3ccd6;
  --cobalt: #2146d0;
  --cobalt-soft: #e7ecfb;
  --marker: #ffe066;
  --c: var(--cobalt);
  --cat-business: #e8590c;
  --cat-living: #0c8599;
  --cat-safety: #e03131;
  --cat-consumer: #7048e8;
  --cat-policy: #2f9e44;
  --s0: #2146d0;
  --s1: #f08c00;
  --s2: #0c8599;
  --display: "Wanted Sans Variable", "Wanted Sans", "IBM Plex Sans KR", -apple-system, sans-serif;
  --body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16.5px; line-height: 1.8; letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
/* 작은 라벨·날짜 — 한글이 섞이므로 본문 글꼴 + 고정폭 숫자. 진짜 고정폭(--mono)은 순수 숫자(축·표)에만 */
.mono { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: .8rem; letter-spacing: .01em; }
.muted { color: var(--muted); }

.cat-business { --c: var(--cat-business); }
.cat-living { --c: var(--cat-living); }
.cat-safety { --c: var(--cat-safety); }
.cat-consumer { --c: var(--cat-consumer); }
.cat-policy { --c: var(--cat-policy); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* ── header ───────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 30px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.brand-mark circle { fill: var(--cobalt); stroke: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.nav { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; font-size: .92rem; color: var(--muted); text-decoration: none; padding: 18px 0 16px;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--cobalt); }
@media (max-width: 759px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 12px; }
  .nav { width: 100%; margin: 4px 0 0; gap: 18px; }
  .nav a { padding: 8px 0 10px; }
}

/* ── ruler (signature) ───────────────────────── */
.figure { font-family: var(--body); }
.figure-value { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.figure-label { margin-top: 10px; font-family: var(--body); font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.figure-note { margin-top: 10px; font-size: .75rem; color: var(--muted); }
.figure-lg .figure-value { font-size: clamp(3.4rem, 9vw, 5.2rem); }
.ruler { position: relative; height: 40px; margin-top: 18px; }
.ruler::before { /* 눈금: 10% 굵은 눈금 + 2% 가는 눈금 */
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 12px;
  background:
    linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 0 / 10% 100% repeat-x,
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 6px / 2% 6px repeat-x;
  border-right: 1px solid var(--ink);
}
.ruler::after { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--ink); }
.ruler-fill { position: absolute; left: 0; top: 17px; height: 4px; width: var(--p); background: var(--c);
  transform-origin: left; animation: fill .9s cubic-bezier(.2,.7,.2,1) both .15s; }
.ruler-mark { position: absolute; left: var(--p); top: -3px; width: 0; height: 0; transform: translateX(-6px);
  border: 6px solid transparent; border-top: 9px solid var(--c); border-bottom: 0;
  animation: pop .4s ease both 1s; }
.ruler-tick { position: absolute; top: 24px; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.ruler-tick.t0 { left: 0; } .ruler-tick.t50 { left: 50%; transform: translateX(-50%); } .ruler-tick.t100 { right: 0; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: translate(-6px, -6px); } to { opacity: 1; transform: translate(-6px, 0); } }
@media (prefers-reduced-motion: reduce) { .ruler-fill, .ruler-mark { animation: none; } }

.mini-ruler { position: relative; display: block; height: 10px; margin-top: 10px;
  background: linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 0 / 10% 6px repeat-x; }
.mini-ruler::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.mini-ruler i { position: absolute; left: 0; top: 5px; height: 3px; width: var(--p); background: var(--c); border-radius: 2px; }

/* ── home hero ───────────────────────── */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 36px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 80px; } }
.eyebrow { color: var(--cobalt); font-weight: 600; margin-bottom: 18px; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.045em;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem); line-height: 1.08; }
.hero-lead { margin-top: 22px; max-width: 34rem; color: var(--ink-2); font-size: 1.04rem; }
.hero-plate { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--c); border-radius: 4px 4px 14px 14px; padding: 24px 24px 22px; transition: border-color .2s; }
@media (min-width: 760px) { .hero-plate { padding: 32px 36px 28px; } }
.hero-plate:hover { border-color: var(--line-2); border-top-color: var(--c); }
.plate-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; color: var(--muted); }
.plate-title { display: block; margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line-2);
  font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; line-height: 1.4; }
.plate-go { display: inline-block; margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--cobalt); }
.plate-go::after { content: " →"; }
.hero-plate:hover .plate-go { text-decoration: underline; text-underline-offset: 4px; }

/* ── sections / cards ───────────────────────── */
.section { margin: 56px auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.035em; }
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 10px 30px -18px rgba(14,27,43,.35); }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; text-decoration: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.card-figure { display: block; margin: 22px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-value { display: block; font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 2.4rem; letter-spacing: -0.05em; line-height: 1; }
.card-flabel { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 1.14rem; line-height: 1.42; letter-spacing: -0.03em; }
.card:hover .card-title { color: var(--cobalt); }
.card-summary { margin-top: 8px; font-size: .9rem; color: var(--muted); line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-src { margin-top: 16px; color: var(--muted); }

.pager { display: flex; justify-content: center; gap: 22px; margin-top: 28px; }
.pager a { color: var(--cobalt); font-weight: 600; text-decoration: none; }

.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .cat-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
.cat-list a { display: flex; align-items: center; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 600; }
.cat-list a .mono { margin-left: auto; font-weight: 400; }
.cat-list a:hover { color: var(--c); }
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }

/* ── page head (category / static) ───────────────────────── */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-title { display: flex; align-items: center; gap: 14px; margin: 12px 0 0;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.2; }
.page-title .cat-dot { width: 16px; height: 16px; border-radius: 4px; }
.page-lead { margin-top: 12px; max-width: 46rem; color: var(--ink-2); }
.page-lead.mono { color: var(--muted); margin-top: 8px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cobalt); }
.empty { color: var(--muted); padding: 32px 0; }

/* ── post ───────────────────────── */
.post-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.post-head-inner { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 1000px) { .post-head-inner { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: end; padding-top: 56px; padding-bottom: 52px; } }
.post-h1 { margin: 16px 0 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.045em;
  font-size: clamp(1.95rem, 4.6vw, 3rem); line-height: 1.2; }
.post-lead { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); line-height: 1.75; max-width: 44rem; }
.post-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); }
.post-source { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .88rem; align-items: baseline; }
.post-source .mono { color: var(--cobalt); font-weight: 600; }
.post-source a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.post-source a:hover { color: var(--cobalt); text-decoration-color: currentColor; }
.post-head .figure { padding: 22px 0 0; border-top: 2px solid var(--ink); }
@media (min-width: 1000px) { .post-head .figure { padding: 0 0 0 28px; border-top: 0; border-left: 2px solid var(--ink); } }

.post-layout { display: grid; gap: 28px; padding-top: 36px; }
@media (min-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 720px) 250px; justify-content: space-between; }
  .post-layout .toc { order: 2; }
  .toc details { position: sticky; top: 88px; }
}
.toc details { border-left: 2px solid var(--line); padding: 2px 0 2px 16px; }
.toc summary { cursor: pointer; list-style: none; color: var(--muted); font-weight: 600; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: toc; font-size: .88rem; line-height: 1.5; }
.toc li { margin: 8px 0; counter-increment: toc; display: grid; grid-template-columns: 1.6rem 1fr; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--line-2); padding-top: 2px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--cobalt); }

.prose { min-width: 0; max-width: 720px; font-size: 1.03rem; line-height: 1.88; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.3em; }
.prose h2 { position: relative; margin: 2.6em 0 .8em; padding-top: 22px;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.35; letter-spacing: -0.035em; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 3px; background: var(--c); }
.prose h3 { margin: 2em 0 .6em; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.025em; }
.prose strong { font-weight: 700; background: linear-gradient(transparent 60%, var(--marker) 60%); }
.prose a { color: var(--cobalt); text-underline-offset: 3px; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--muted); }
.prose blockquote { margin: 1.8em 0; padding: 16px 20px; background: var(--cobalt-soft); border-left: 3px solid var(--cobalt); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--line); padding: 1px 6px; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); padding: 14px; border-radius: 8px; }
.prose pre code { background: none; padding: 0; }
.prose.static { max-width: 760px; padding: 36px 0 24px; }
.prose.static h2 { font-size: 1.28rem; margin-top: 2em; }

.table-wrap { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; background: var(--surface); }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.prose thead th { border-bottom: 2px solid var(--ink); font-weight: 600; font-size: .82rem; color: var(--ink-2); }
.prose td:not(:first-child), .prose thead th:not(:first-child) { text-align: right; font-family: var(--mono); font-size: .86rem; }
.prose tbody tr:hover { background: var(--paper); }

/* ── charts (ChartBlock.java) ───────────────────────── */
.chart { margin: 2.2em 0; padding: 20px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
@media (min-width: 760px) { .chart { padding: 24px 26px 16px; } }
.chart-title { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 0 0 10px !important; font-size: .82rem; color: var(--ink-2); }
.chart-legend li { margin: 0; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chart-legend i.s0, .bar.s0 { background: var(--s0); fill: var(--s0); }
.chart-legend i.s1, .bar.s1 { background: var(--s1); fill: var(--s1); }
.chart-legend i.s2, .bar.s2 { background: var(--s2); fill: var(--s2); }
.chart-svg svg { display: block; width: 100%; height: auto; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .base { stroke: var(--ink); stroke-width: 1; }
.chart-svg .ax { fill: var(--muted); font-size: 12px; font-family: var(--mono); }
.chart-svg .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .ln.s0, .chart-svg .dot.s0 { stroke: var(--s0); } .chart-svg .dot.s0 { fill: var(--s0); }
.chart-svg .ln.s1, .chart-svg .dot.s1 { stroke: var(--s1); } .chart-svg .dot.s1 { fill: var(--s1); }
.chart-svg .ln.s2, .chart-svg .dot.s2 { stroke: var(--s2); } .chart-svg .dot.s2 { fill: var(--s2); }
.chart-svg .bar:hover, .chart-svg .dot:hover { opacity: .75; }
.hbar { display: grid; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: minmax(5.5rem, 8.5rem) 1fr auto; align-items: center; gap: 12px; font-size: .86rem; }
.hbar-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 12px; background: var(--paper); border-radius: 2px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: #9fb2ec; border-radius: 2px; }
.hbar-row.is-hl .hbar-fill { background: var(--cobalt); }
.hbar-row.is-hl .hbar-label, .hbar-row.is-hl .hbar-value { color: var(--ink); font-weight: 600; }
.hbar-value { min-width: 4.8rem; text-align: right; font-family: var(--mono); font-size: .82rem; }
.chart-source { margin: 14px 0 0 !important; font-size: .78rem; color: var(--muted); line-height: 1.6; }
.chart-table { margin-top: 6px; font-size: .84rem; }
.chart-table summary { cursor: pointer; color: var(--muted); width: fit-content; }
.chart-table .table-wrap { margin: 8px 0 4px; }

/* ── sources box (MarkdownRenderer ```sources) ───────────────────────── */
.sources { margin: 2.2em 0 0; padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 10px 10px; }
.sources-title { font-family: var(--body); font-size: .82rem; font-weight: 600; color: var(--cobalt); margin: 0 0 12px !important; }
.sources ol { margin: 0 0 14px !important; padding: 0; list-style: none; counter-reset: src; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 1.8rem 1fr; column-gap: 4px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: .94rem; line-height: 1.55; }
.sources li::before { content: counter(src, decimal-leading-zero); grid-row: span 3; font-family: var(--mono); font-size: .75rem; color: var(--muted); padding-top: 3px; }
.src-org { font-size: .8rem; color: var(--muted); }
.sources a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sources a:hover { color: var(--cobalt); text-decoration-color: currentColor; }
.sources a::after { content: " ↗"; font-weight: 400; color: var(--muted); }
.src-date { font-variant-numeric: tabular-nums; font-size: .76rem; color: var(--muted); }
.sources-note { font-size: .8rem; color: var(--muted); line-height: 1.65; margin: 0 !important; }

.source-index { list-style: none; padding: 0; margin: 1.6em 0 0 !important; }
.source-index li { padding: 20px 0; border-top: 1px solid var(--line); margin: 0; }
.si-org { color: var(--muted); }
.si-name { margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.si-name a { color: var(--ink); }
.si-name a::after { content: " ↗"; color: var(--muted); font-weight: 400; }
.si-meta { margin-top: 4px; color: var(--muted); word-break: break-all; }
.si-used { margin-top: 8px; font-size: .9rem; color: var(--ink-2); }

/* ── post footer ───────────────────────── */
.post-foot { max-width: 720px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.tags li { font-size: .8rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 4px; }
.post-note { font-size: .84rem; color: var(--muted); line-height: 1.7; }
.post-note a { color: var(--cobalt); }

/* ── footer ───────────────────────── */
.site-footer { margin-top: 88px; background: var(--ink); color: #aab4c3; }
.footer-inner { display: grid; gap: 22px; padding-top: 44px; padding-bottom: 48px; font-size: .88rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; column-gap: 48px; } }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.footer-brand p:not(.footer-name) { max-width: 36rem; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-start; }
.footer-nav a { color: #dfe5ee; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #7d889a; }

/* 모바일 차트 — .ax 기본값보다 뒤에 있어야 이긴다 */
@media (max-width: 759px) {
  .chart-svg .ax { font-size: 21px; }
  .chart-svg .xl.alt { display: none; }
  .chart { padding: 16px 12px 12px; }
  .hbar-row { grid-template-columns: minmax(4.5rem, 6.5rem) 1fr auto; gap: 8px; }
}

/* ── 본문 사진 (MarkdownRenderer ```photo) ───────────────────────── */
.photo { margin: 2.2em 0; }
.photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 10px; background: var(--line); }
.photo figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; font-size: .84rem; line-height: 1.55; }
.photo-caption { color: var(--ink-2); }
.photo-credit { color: var(--muted); font-size: .76rem; }
.photo-credit a { color: var(--muted); }
