/* Sparkline Cell Component — analytics-channels-density-redesign
 * Requires: tokens.css
 *
 * Usage (table cell, default 56×20):
 *   <div class="sparkline-cell">
 *     <svg aria-hidden="true"><polyline points="..."/></svg>
 *   </div>
 *
 * Usage (KPI strip, 48×20):
 *   <div class="sparkline-cell sparkline-cell--variant-kpi">
 *     <svg aria-hidden="true"><polyline points="..."/></svg>
 *   </div>
 *
 * SVG is injected and sized by channels-analytics.js.
 * No dots, no gradient fill, no area fill — stroke only.
 */

/* ── Block ────────────────────────────────────────────────────────────────── */
.sparkline-cell {
  display: inline-block;
  width: 56px;
  height: 20px;
  flex-shrink: 0;
  overflow: hidden;
  vertical-align: middle;
  line-height: 0;             /* kill inline baseline gap */
}

/* ── SVG child: stroke only, brand blue at 80% opacity ── */
.sparkline-cell svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sparkline-cell svg path,
.sparkline-cell svg polyline {
  stroke: var(--color-brand-500);
  stroke-width: 1.5;
  stroke-opacity: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* ── KPI strip modifier: 48×20 ───────────────────────────────────────────── */
.sparkline-cell--variant-kpi {
  width: 48px;
  height: 20px;
}
