/* ============================================================================
   vd-chart-forms.css — 차트 형태 어휘 (모든 스킨 공용)
   개정: 2026-09-16

   실을 순서 — **스킨보다 나중에**
     vd-article.css → vd-brand.css → vd-<skin>.css → vd-chart-forms.css

   왜 나중인가
     여기 선택자는 `.is-cf-* .vd-bar` 처럼 (0,3,0) 이고, 스킨의 블록 규칙
     `.vd-article[data-skin='x'] .vd-bar` 도 (0,3,0) 이다. 특이도가 같으므로
     **소스 순서로만** 형태가 이긴다. 스킨보다 먼저 실으면 한 줄도 안 먹는다.
     (2026-09-16 광장 §7 이 `:where()` 특이도 0 때문에 통째로 사장됐던 것과 같은 함정이다.)

     스킨이 특정 형태를 다시 눌러야 할 때는 한 단 올려 쓴다:
       .vd-article[data-skin='hwalpan'] .is-cf-hatch .vd-bar { … }   ← (0,4,0)

   무엇을 하는 파일인가
     정본은 막대 차트 한 가지, 선 차트 한 가지, 원 차트 한 가지만 그린다.
     기사 열 건이 같은 모양이면 지면이 단조해지고, 무엇보다 **자료의 성격이 다른데
     그림이 같다**. 그래서 형태를 어휘로 만들어 기자가 고르게 한다.

     색은 여기서 정하지 않는다. 전부 `--vd-*` 토큰을 참조하므로 어느 스킨에
     얹어도 그 스킨의 색·선 언어로 나온다 — 스킨마다 차트를 다시 쓰지 않는 이유다.

   markup 계약 — 형태 클래스는 **차트 블록 감싸개 또는 그림 요소**에 붙인다
     <div class="vd-chart__frame is-cf-hatch is-cf-grid"> … </div>
     <div class="vd-bars is-cf-lollipop"> … </div>
     <div class="vd-pie is-cf-ring is-cf-sep"> … </div>
     <div class="vd-prank is-cf-rule"> … </div>
     <table class="vd-table is-cf-cellrule"> … </table>
     감싸개에 붙이면 스티키 무대(`.vd-stage__bars`)·요약 차트까지 같이 따라온다.

   어디에 서는가
     세로 막대(.vd-bar) · **가로 막대(.vd-barh__bar)** · 선 · 원 · 순위 · 표 · **증감(SVG)**.
     증감만 `<rect>` 라 무늬를 못 얹는다 — is-cf-hatch · is-cf-unit · is-cf-lollipop 셋은
     증감에서 안 선다 (아래 증감 절에 이유를 적어 두었다).

   어휘 (조합 가능 · 앞이 굵은 것이 자료 성격)
     ── 막대 ────────────────────────────────────────────────────────────────
     is-cf-strip      좁은 막대 + 넓은 간격. 항목이 적고 값 차이가 큰 자료
     is-cf-lollipop   선 + 점. 값 하나하나가 지점인 자료(측정소·지역)
     is-cf-outline    윤곽선만. 추정치·잠정치임을 형태로 말한다
     is-cf-hatch      사선 해칭. 인쇄 지면 관습. 색 없이 두 계열을 가른다
     is-cf-unit       단위 격자. 막대를 낱개로 끊는다 — 사람 수·건수처럼 셀 수 있는 자료
     is-cf-ghost      뒤에 트랙. 전체 대비 비중을 보일 때
     ── 눈금 ────────────────────────────────────────────────────────────────
     is-cf-grid       가로 눈금 4줄. 값을 읽어야 하는 자료
     is-cf-zero       기준선(0) 을 굵게
     ── 선 ──────────────────────────────────────────────────────────────────
     is-cf-thin       가는 선. 계열이 여럿일 때
     is-cf-dash       파선 — 예측·추정 구간
     is-cf-nodot      점 없음. 자료점이 많을 때
     ── 원 ──────────────────────────────────────────────────────────────────
     is-cf-ring       도넛(마스크). 합계가 의미 없을 때
     is-cf-sep        조각 사이 지면색 선
     ── 순위 ────────────────────────────────────────────────────────────────
     is-cf-rule       트랙 없이 얇은 선
     is-cf-block      굵은 사각 막대
     ── 표 ──────────────────────────────────────────────────────────────────
     is-cf-cellrule   셀 값 아래 짧은 막대(스파크라인 대용)
     is-cf-cellfill   셀 뒤 채움 막대

   금지 — 스킨 문서에 각각 적어 둔다
     여백(餘白)은 해칭·단위 격자를 쓰지 않는다(무늬가 여백을 깬다).
     관측은 윤곽선만 형태를 쓰지 않는다(다크에서 1px 윤곽은 사라진다).
   ========================================================================== */

/* ── 공통 준비 ───────────────────────────────────────────────────────────── */
/* 롤리팝 점·해칭이 얹힐 자리를 만든다. 정본 .vd-bar 에는 position 이 없다 */
.vd-article .vd-bar {
  position: relative;
}

/* ════════════════════════════════════════════════════════════════════════════
   막대 형태
   ════════════════════════════════════════════════════════════════════════════ */

/* ── is-cf-strip — 좁은 막대 ─────────────────────────────────────────────── */
.vd-article .is-cf-strip .vd-bar {
  width: 38%;
  min-width: 6px;
}
.vd-article .is-cf-strip .vd-bars,
.vd-article .vd-bars.is-cf-strip {
  gap: clamp(12px, 3cqw, 40px);
}
.vd-article .is-cf-strip .vd-axis,
.vd-article .vd-bars.is-cf-strip + .vd-axis {
  gap: clamp(12px, 3cqw, 40px);
}

/* ── is-cf-lollipop — 선 + 점 ────────────────────────────────────────────── */
/* 색은 `--vd-pal`(보통) · `--vd-pal-em`(강조) 을 먼저 본다 — 기사가 고른 팔레트다.
   막대 낱개는 렌더가 인라인으로 칠하지만 점(::after)·테두리는 칠할 길이 없어,
   그 자리만 램프 칸(a400·a700)에 박혀 있었다. 팔레트를 바꿔도 안 따라오던 곳이다. */
.vd-article .is-cf-lollipop .vd-bar {
  width: 2px;
  min-width: 2px;
  background: var(--vd-pal, var(--vd-a400));
  border: none;
}
.vd-article .is-cf-lollipop .vd-bar.is-last {
  background: var(--vd-pal-em, var(--vd-accent));
}
.vd-article .is-cf-lollipop .vd-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 999px;
  background: var(--vd-pal-em, var(--vd-a700));
}
.vd-article .is-cf-lollipop .vd-bar.is-last::after {
  background: var(--vd-pal-em, var(--vd-accent));
}
/* 사각 지면(결·광장·활판)은 점도 사각이어야 한다 — 스킨 쪽에서 되돌린다 */

/* ── is-cf-outline — 윤곽선만 ────────────────────────────────────────────── */
/* `!important` 다. 렌더가 막대마다 인라인으로 `background-color` 를 찍는데(해칭·단위격자가
   살아야 해서 단축을 안 쓴다), 인라인은 특이도로 못 이긴다 — 그동안 윤곽선 막대가
   **속이 꽉 찬 채** 테두리만 둘러 나왔다. 정본 디자인 시스템의 시연 마크업은 `.vd-bar` 에
   높이만 주고 배경을 안 준다. 형태의 뜻이 '잠정치' 라 속이 비는 것이 이 어휘의 전부다. */
/* 속은 **지면색**으로 채운다 — 투명이면 칸 배경(원고지 모눈 · ghost 트랙 · grid 눈금)이 막대 안을 가로질러
   막대 높이를 읽기 어려웠다 (스킨 검토 2026-09-30). 바탕이 민짜인 지면에서는 투명과 똑같이 보인다. */
.vd-article .is-cf-outline .vd-bar {
  background-color: var(--vd-bg) !important;
  background-image: none;
  border: 1.5px solid var(--vd-pal, var(--vd-a700));
  border-bottom: none;
}
.vd-article .is-cf-outline .vd-bar.is-last {
  border-color: var(--vd-pal-em, var(--vd-accent));
  border-width: 3px;
  border-bottom: none;
}

/* ── is-cf-hatch — 사선 해칭 ─────────────────────────────────────────────── */
.vd-article .is-cf-hatch .vd-bar {
  background-image: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--vd-text) 30%, transparent) 0 2px,
    transparent 2px 6px
  );
}
/* 강조 막대는 해칭을 빼고 꽉 채워 둔다 — 무늬 둘이 겹치면 위계가 사라진다 */
.vd-article .is-cf-hatch .vd-bar.is-last {
  background-image: none;
}

/* ── is-cf-unit — 단위 격자 ──────────────────────────────────────────────────
   `.is-last` 를 따로 적는 이유: 스킨의 `.vd-bar.is-last{background:…}` 는 (0,4,0) 이고
   `background` 는 단축이라 background-image 를 none 으로 되돌린다. 강조 막대만 낱개가
   사라지면 '셀 수 있는 자료'라는 형태의 뜻이 가장 중요한 칸에서 깨진다. */
.vd-article .is-cf-unit .vd-bar,
.vd-article .is-cf-unit .vd-bar.is-last {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--cf-u, 15px) - 3px),
    var(--vd-bg) calc(var(--cf-u, 15px) - 3px) var(--cf-u, 15px)
  );
}

/* ── is-cf-ghost — 뒤에 트랙 ─────────────────────────────────────────────── */
.vd-article .is-cf-ghost .vd-barcell {
  background: color-mix(in srgb, var(--vd-text) 7%, transparent);
}

/* ════════════════════════════════════════════════════════════════════════════
   눈금
   ════════════════════════════════════════════════════════════════════════════ */

/* ── is-cf-grid — 가로 눈금 4줄 ──────────────────────────────────────────── */
.vd-article .is-cf-grid .vd-bars,
.vd-article .vd-bars.is-cf-grid,
.vd-article .is-cf-grid .vd-stage__bars,
.vd-article .is-cf-grid .vd-stage__plot,
.vd-article .is-cf-grid .vd-sticky__bars {
  background-image: repeating-linear-gradient(
    to top,
    color-mix(in srgb, var(--vd-text) 13%, transparent) 0 1px,
    transparent 1px 25%
  );
}

/* ── is-cf-zero — 기준선을 굵게 ──────────────────────────────────────────── */
.vd-article .is-cf-zero .vd-bars,
.vd-article .vd-bars.is-cf-zero,
.vd-article .is-cf-zero .vd-stage__bars,
.vd-article .is-cf-zero .vd-sticky__bars {
  border-bottom-width: 3px;
  border-bottom-color: var(--vd-text);
}

/* ════════════════════════════════════════════════════════════════════════════
   선 차트 — 기하는 렌더가 소유한다. 여기서는 선질만 바꾼다
   ════════════════════════════════════════════════════════════════════════════ */
.vd-article .is-cf-thin .vd-linechart polyline,
.vd-article .is-cf-thin .vd-linechart path,
.vd-article .vd-linechart.is-cf-thin polyline,
.vd-article .vd-linechart.is-cf-thin path {
  stroke-width: 1;
}
/* 파선 — 정본의 등장 애니메이션(vdDraw)이 dasharray 를 쓰므로 함께 켜지 않는다.
   예측 구간에만 쓰고, 그 블록에서는 애니메이션을 끈다(vd-rv-off). */
.vd-article .is-cf-dash .vd-linechart polyline,
.vd-article .is-cf-dash .vd-linechart path,
.vd-article .vd-linechart.is-cf-dash polyline,
.vd-article .vd-linechart.is-cf-dash path {
  stroke-dasharray: 6 5;
  animation: none;
}
.vd-article .is-cf-nodot .vd-linechart circle,
.vd-article .vd-linechart.is-cf-nodot circle {
  display: none;
}
.vd-article .is-cf-bigdot .vd-linechart circle,
.vd-article .vd-linechart.is-cf-bigdot circle {
  r: 6;
}

/* ════════════════════════════════════════════════════════════════════════════
   원 차트
   ════════════════════════════════════════════════════════════════════════════ */
/* 도넛 — 조각을 다시 그릴 수 없으므로 가운데를 마스크로 뚫는다.
   조각 hover 시 transform 이 걸려도 마스크는 svg 요소 기준이라 흔들리지 않는다. */
.vd-article .is-cf-ring .vd-pie__svg,
.vd-article .vd-pie.is-cf-ring .vd-pie__svg {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 43%, #000 43.6%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 43%, #000 43.6%);
}
/* 조각 사이 지면색 선 — 인접한 두 색이 붙어 한 덩어리로 읽히는 것을 막는다 */
.vd-article .is-cf-sep .vd-pie__svg path,
.vd-article .vd-pie.is-cf-sep .vd-pie__svg path {
  stroke: var(--vd-bg);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* ════════════════════════════════════════════════════════════════════════════
   포토 랭킹
   ════════════════════════════════════════════════════════════════════════════ */
.vd-article .is-cf-rule .vd-prank__track,
.vd-article .vd-prank.is-cf-rule .vd-prank__track {
  background: transparent;
  height: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--vd-text) 18%, transparent);
}
.vd-article .is-cf-rule .vd-prank__bar,
.vd-article .vd-prank.is-cf-rule .vd-prank__bar {
  height: 2px;
  top: auto;
  bottom: 0;
}
.vd-article .is-cf-block .vd-prank__track,
.vd-article .vd-prank.is-cf-block .vd-prank__track {
  height: 14px;
}


/* ════════════════════════════════════════════════════════════════════════════
   표 안의 차트 — 셀 막대
   ════════════════════════════════════════════════════════════════════════════ */
/* 스파크라인 대용 — 값 아래 짧은 막대. 셀 배경을 덮지 않아 숫자가 또렷하다 */
.vd-article .is-cf-cellrule .vd-cellbar,
.vd-article .vd-table.is-cf-cellrule .vd-cellbar {
  top: auto;
  bottom: 5px;
  height: 3px;
  opacity: 1;
  background: var(--vd-pal, var(--vd-a400));
}
.vd-article .is-cf-cellrule td.is-em .vd-cellbar,
.vd-article .vd-table.is-cf-cellrule td.is-em .vd-cellbar {
  background: var(--vd-pal-em, var(--vd-accent));
}
/* 채움 — 정본의 기본에 가깝지만 불투명도를 낮춰 숫자를 살린다 */
.vd-article .is-cf-cellfill .vd-cellbar,
.vd-article .vd-table.is-cf-cellfill .vd-cellbar {
  top: 3px;
  bottom: 3px;
  height: auto;
  opacity: 0.18;
  background: var(--vd-pal-em, var(--vd-accent));
}

/* ════════════════════════════════════════════════════════════════════════════
   범례 · 축 — 형태와 같이 바뀌어야 하는 부속
   ════════════════════════════════════════════════════════════════════════════ */
/* 해칭 차트의 범례 칩도 해칭이어야 범례가 제 구실을 한다.
   ⚠ 칩 해칭을 background-image 로 주지 않는다. 렌더·마크업은 시리즈 색을 인라인
   `style="background: …"` 으로 찍는데, background 는 **단축**이라 background-image 를
   none 으로 되돌리고 인라인은 특이도로 이길 수 없다 — 그렇게 둔 동안 막대는 해칭/솔리드로
   갈리는데 범례는 솔리드 둘이라 범례와 그림이 어긋났다(2026-09-16 검수에서 잡음).
   그래서 해칭은 ::after 오버레이로 얹는다 — 인라인 배경이 어떤 모양이든 지우지 못한다.
   (마크업 쪽도 `background-color:` 로 쓰는 것이 옳다. 둘 다 해 둔다.) */
.vd-article .is-cf-hatch .vd-legend__chip {
  position: relative;
}
.vd-article .is-cf-hatch .vd-legend__item:not(:last-child) .vd-legend__chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--vd-text) 30%, transparent) 0 2px,
    transparent 2px 6px
  );
}
/* 롤리팝의 범례 칩은 점 */
.vd-article .is-cf-lollipop .vd-legend__chip {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
  border-radius: 999px;
}
/* 윤곽선 차트의 범례 칩도 윤곽선 */
.vd-article .is-cf-outline .vd-legend__chip {
  background: var(--vd-bg) !important;
  border: 1.5px solid var(--vd-pal, var(--vd-a700));
}

/* ════════════════════════════════════════════════════════════════════════════
   가로 막대 — 세로 막대와 **같은 어휘, 돌아누운 기하**
   ════════════════════════════════════════════════════════════════════════════
   오래 세로 막대(`.vd-bar`)에만 걸려 있었다. 그래서 스킨이 권한 형태가 가로 막대에서
   한 줄도 안 서고, 같은 기사 안에서 세로 차트만 그 지면의 말을 했다 (2026-09-16 지적).

   가로 막대는 색을 **인라인 `background-color`** 로 받는다 (세로와 같다). 그래서 무늬·
   윤곽선은 그 색을 지우지 않는 방식으로 얹는다 — `::after` 오버레이와 `background:inherit`.
   팔레트를 따로 안 읽어도 막대가 제 색을 그대로 쓴다. */

/* ── is-cf-strip — 가는 띠 + 넓은 간격 ───────────────────────────────────── */
/* **트랙 높이는 못 건드린다** — 렌더가 `[막대 굵기]` 를 인라인 `height` 로 찍는다
   (`Chart::barhBody` 의 $thick). 특이도로 못 이기고, `!important` 로 이기면 기자가
   고른 굵기가 죽는다. 그래서 트랙은 비우고 **막대만** 가운데로 좁힌다 — 세로 막대의
   `is-cf-strip`(좁은 막대 + 넓은 간격)과 읽히는 모양이 같다. */
.vd-article .is-cf-strip .vd-barh__track {
  background: transparent;
}
.vd-article .is-cf-strip .vd-barh__bar {
  top: 32%;
  bottom: 32%;
}
.vd-article .is-cf-strip .vd-barh {
  gap: clamp(14px, 2.2cqw, 28px);
}

/* ── is-cf-lollipop — 선 + 점 ────────────────────────────────────────────── */
/* 점은 트랙 밖으로 반쯤 나간다 — 잘라 두면 끝점이 잘린 반달로 보인다 */
.vd-article .is-cf-lollipop .vd-barh__track {
  overflow: visible;
  background: transparent;
}
.vd-article .is-cf-lollipop .vd-barh__bar {
  top: 50%;
  bottom: auto;
  height: 2px;
  margin-top: -1px;
  border: none;
}
/* `background: inherit` 이라 막대가 인라인으로 받은 제 색을 그대로 쓴다 —
   팔레트를 여기서 다시 읽지 않아도 계열색·강조색이 저절로 맞는다 */
.vd-article .is-cf-lollipop .vd-barh__bar::after {
  content: '';
  position: absolute;
  right: -5.5px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 999px;
  background: inherit;
}

/* ── is-cf-outline — 윤곽선만 ────────────────────────────────────────────── */
/* 세로 막대는 배경을 지우고 테두리를 칠하는데, 가로는 **안쪽을 지면색으로 덮어** 테를 남긴다.
   그래야 테 색이 막대가 인라인으로 받은 제 색이 된다 (테두리 색은 CSS 가 읽을 길이 없다).
   왼쪽은 열어 둔다 — 막대가 0 선에서 자라 나오는 쪽이라 테를 치면 축이 두 줄로 보인다. */
.vd-article .is-cf-outline .vd-barh__bar {
  border: none;
}
.vd-article .is-cf-outline .vd-barh__bar::after {
  content: '';
  position: absolute;
  inset: 1.5px 1.5px 1.5px 0;
  background: var(--vd-bg);
}

/* ── is-cf-hatch — 사선 해칭 ─────────────────────────────────────────────── */
.vd-article .is-cf-hatch .vd-barh__bar {
  background-image: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--vd-text) 30%, transparent) 0 2px,
    transparent 2px 6px
  );
}

/* ── is-cf-unit — 단위 격자 (가로로 끊는다) ──────────────────────────────── */
.vd-article .is-cf-unit .vd-barh__bar {
  background-image: repeating-linear-gradient(
    to right,
    transparent 0 calc(var(--cf-u, 15px) - 3px),
    var(--vd-bg) calc(var(--cf-u, 15px) - 3px) var(--cf-u, 15px)
  );
}

/* ── is-cf-ghost — 뒤에 트랙 ─────────────────────────────────────────────── */
/* 가로 막대는 트랙이 **기하의 일부**다 (항상 있다). 이 어휘는 그것을 또렷하게만 한다 */
.vd-article .is-cf-ghost .vd-barh__track {
  background: color-mix(in srgb, var(--vd-text) 9%, transparent);
}

/* ── 눈금 ────────────────────────────────────────────────────────────────── */
/* 가로 막대는 값 축이 **가로**라 눈금도 세로줄이다 */
.vd-article .is-cf-grid .vd-barh__track {
  background-image: repeating-linear-gradient(
    to right,
    transparent 0 calc(25% - 1px),
    color-mix(in srgb, var(--vd-text) 13%, transparent) calc(25% - 1px) 25%
  );
}
.vd-article .is-cf-zero .vd-barh.is-signed .vd-barh__track::before {
  width: 3px;
  background: var(--vd-text);
}

/* ════════════════════════════════════════════════════════════════════════════
   증감(A→B) — SVG 라 할 수 있는 것만 한다
   ════════════════════════════════════════════════════════════════════════════
   막대가 `<rect>` 다. CSS 로 `fill`·`stroke` 는 바꿀 수 있지만(표현 속성보다 세다),
   **무늬는 못 얹는다** — SVG fill 에는 그라디언트 함수를 못 쓰고 `<pattern>` 은 마크업에
   있어야 한다. 그래서 이 셋은 증감에서 **안 선다**: `is-cf-hatch` · `is-cf-unit` ·
   `is-cf-lollipop`. 형태로 말해야 하는 자료라면 막대·가로 막대를 쓴다.

   선질(`is-cf-thin`·`is-cf-dash`·`is-cf-nodot`)은 이미 선다 — 증감 SVG 가
   `class="vd-linechart vd-deltachart"` 라 선 차트 규칙을 함께 탄다.

   색은 `--vd-pal`(보통) · `--vd-pal-em`(강조)을 읽는다. rect 의 `fill` 은 낱개로 인라인
   되어 있지만 CSS 가 그 값을 되읽을 길이 없어, 테두리에는 팔레트를 쓴다. */
.vd-article .is-cf-outline .vd-deltachart rect {
  fill: none;
  stroke: var(--vd-pal, var(--vd-a700));
  stroke-width: 1.5;
}
/* 마지막 칸이 '지금' 이다 — 증감 차트에서 눈이 가야 하는 한 칸 */
.vd-article .is-cf-outline .vd-deltachart rect:last-of-type {
  stroke: var(--vd-pal-em, var(--vd-accent));
  stroke-width: 3;
}
.vd-article .is-cf-grid .vd-deltachart {
  background-image: repeating-linear-gradient(
    to top,
    color-mix(in srgb, var(--vd-text) 13%, transparent) 0 1px,
    transparent 1px 25%
  );
}
.vd-article .is-cf-zero .vd-deltachart .vd-vaxis__line.is-zero {
  stroke-width: 3;
  stroke: var(--vd-text);
}

/* ════════════════════════════════════════════════════════════════════════════
   기자가 **고른** 팔레트 — 스킨이 박아 둔 차트 색 위에 얹는다
   ════════════════════════════════════════════════════════════════════════════
   `[data-palette]` 는 기사(또는 블록)가 팔레트를 고른 경우에만 붙는다
   (SiteSerializer::paletteMark). 안 골랐으면 이 층이 통째로 안 선다 — 스킨이 제 색으로
   그린다. 스킨을 고르는 일과 팔레트를 고르는 일이 서로 싸우지 않게 하는 선이다.

   막대의 **면**은 렌더가 인라인으로 칠하므로 여기서 다시 칠하지 않는다. 여기 적는 것은
   인라인이 못 닿는 자리뿐이다 — 가상 요소(롤리팝 점) · 테두리 · 포토 랭킹 막대.

   특이도는 스킨과 **같게** 맞춘다 (`.vd-article[data-skin] .is-cf-x .vd-bar` 와 (0,4,0)).
   이 시트가 스킨보다 나중에 실리므로 같으면 이긴다 — 더 올리면 블록 낱개 설정까지 눌린다. */
/* ⚠ 형태 클래스와 `data-palette` 는 **같은 <section>** 에 붙는다 (SiteSerializer::chart).
   그래서 `[data-palette] .is-cf-x` 만 적으면 한 줄도 안 먹는다 — 붙여 쓴 짝을 같이 적는다.
   이 파일의 다른 규칙들이 `.is-cf-x .vd-bars, .vd-bars.is-cf-x` 를 나란히 적는 것과 같은 이유다. */
.vd-article [data-palette].is-cf-lollipop .vd-bar::after,
.vd-article [data-palette] .is-cf-lollipop .vd-bar::after {
  background: var(--vd-pal-em);
}
.vd-article [data-palette].is-cf-lollipop .vd-bar.is-last::after,
.vd-article [data-palette] .is-cf-lollipop .vd-bar.is-last::after {
  background: var(--vd-pal-em);
}
.vd-article [data-palette].is-cf-outline .vd-bar,
.vd-article [data-palette] .is-cf-outline .vd-bar {
  border-color: var(--vd-pal);
}
.vd-article [data-palette].is-cf-outline .vd-bar.is-last,
.vd-article [data-palette] .is-cf-outline .vd-bar.is-last {
  border-color: var(--vd-pal-em);
}
.vd-article [data-palette] .vd-cellbar {
  background: var(--vd-pal);
}
.vd-article [data-palette] td.is-em .vd-cellbar {
  background: var(--vd-pal-em);
}
/* 포토 랭킹은 인라인 색이 한 군데도 없어 이 길 말고는 팔레트가 닿지 않는다 —
   전에는 `data-palette` 를 늘 찍기만 하고 읽는 규칙이 없어 팔레트가 아무 일도 안 했다. */
.vd-article .vd-prank[data-palette] .vd-prank__bar {
  background-color: var(--vd-pal-em);
}
/* 가로 막대의 테두리 — 막대 면은 인라인이 칠하지만 테는 시트가 정한다 */
.vd-article [data-palette] .vd-barh__bar {
  border-color: var(--vd-pal-em);
}

@media (prefers-reduced-motion: reduce) {
  .vd-article .is-cf-dash .vd-linechart polyline,
  .vd-article .is-cf-dash .vd-linechart path {
    animation: none;
  }
}

@media (max-width: 768px) {
  /* 좁은 폭에서 단위 격자·해칭은 무늬가 뭉친다 — 한 단 크게 벌린다 */
  .vd-article .is-cf-unit .vd-bar {
    --cf-u: 12px;
  }
  .vd-article .is-cf-strip .vd-bars,
  .vd-article .vd-bars.is-cf-strip {
    gap: 12px;
  }
  .vd-article .is-cf-lollipop .vd-bar::after {
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
  }
}
