/* Catatan Budi: Granger lag demo */
.cb-granger{border:1px solid var(--line,#e2e0ea);border-radius:14px;padding:16px;margin:24px 0;background:var(--surface-2,#f7f6fb)}
.cb-granger__legend{display:flex;flex-wrap:wrap;gap:16px;font-size:.92em;margin:0 0 8px;color:var(--muted,#555)}
.cb-granger__legend span::before{content:"";display:inline-block;width:22px;height:4px;border-radius:2px;margin-right:6px;vertical-align:middle;background:currentColor}
.cb-granger__legend .w{color:var(--brand,#5b3df5)}.cb-granger__legend .r{color:var(--accent,#e8590c)}
.cb-granger__chart{aspect-ratio:720/300;width:100%}
.cb-granger__svg{width:100%;height:100%;display:block}
.cb-granger__grid{stroke:var(--line,#e2e0ea);stroke-width:1}
.cb-granger__tick{fill:var(--muted,#666);font-size:11px}
.cb-granger__line{fill:none;stroke-width:3;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.6s ease,d .6s ease}
.cb-granger.is-visible .cb-granger__line{stroke-dashoffset:0}
.cb-granger__line--wholesale{stroke:var(--brand,#5b3df5)}
.cb-granger__line--retail{stroke:var(--accent,#e8590c);transition-delay:.3s}
.cb-granger__ctl{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:end;margin-top:12px}
.cb-granger__ctl label{font-weight:600;font-size:.95em}
.cb-granger__ctl input{width:100%;accent-color:var(--brand,#5b3df5)}
.cb-granger__bars{display:flex;gap:6px;align-items:flex-end;height:84px}
.cb-granger__bar{width:24px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.cb-granger__fill{display:block;width:100%;background:var(--line,#d9d6e6);border-radius:4px 4px 0 0;transition:background .3s}
.cb-granger__bar small{font-size:11px;color:var(--muted,#666)}
.cb-granger__bar.is-on .cb-granger__fill{background:var(--brand,#5b3df5)}
.cb-granger__out{min-height:3em;margin:10px 0 0;font-size:.95em}
@media (prefers-reduced-motion:reduce){.cb-granger__line{transition:none;stroke-dashoffset:0}}
@media (max-width:560px){.cb-granger__ctl{grid-template-columns:1fr}}
.entry-content .cb-note{font-size:.88em;color:var(--muted,#666);margin-top:-.4em}
