/*
 * The scenario funnel's rungs (ticket 009), drawn as one card per Status Service on Reports ›
 * Effectiveness (ticket 983, js/views/effectiveness.js) and as the technique page's funnel
 * (js/views/entities.js). The `.deception-rung*` rules are shared by both; the cards and their grid
 * are Effectiveness's own. Bars are a neutral ink, not the accent (design note rule 3: the accent marks
 * only interactive things).
 */

.effectiveness-funnels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  gap: var(--space-4);
}

.effectiveness-funnel {
  padding: var(--space-4) var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--card-from), var(--card-to));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.effectiveness-funnel__title {
  margin: 0;
  font: var(--type-headline);
  color: var(--ink);
}

.effectiveness-funnel__meta {
  margin: var(--space-1) 0 var(--space-4);
  color: var(--ink-muted);
  font: var(--type-footnote);
}

.deception-rungs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* The vertical connector between rungs — a short line above every rung except the first, drawn as
   a pseudo-element so no extra DOM node is needed per gap. */
.deception-rung {
  position: relative;
  padding-top: 0.65rem;
}

.deception-rung:first-child {
  padding-top: 0;
}

.deception-rung:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.6rem;
  width: 1px;
  height: 0.65rem;
  background: var(--border);
}

.deception-rung__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.deception-rung__label {
  flex: 1 1 auto;
  color: var(--ink-body);
  font-size: var(--fs-sm);
}

.deception-rung__count {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.deception-rung__pct {
  min-width: 3.5rem;
  text-align: right;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
}

.deception-rung__track {
  margin-top: 0.3rem;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.deception-rung__bar {
  height: 100%;
  min-width: 2px;
  background: var(--ink-dim);
  border-radius: 999px;
}
