/* ═══════════════════════════════════════════════════════════════════════════
   Editorial illustration system — v2 (convert-editorial-illustration skill)
   Palette + container for the hairline SVG diagrams used on new-home,
   features and heatmaps-session-recording. Promoted per visuals-spec §6
   (system on its 3rd page).

   Usage — either:
   · wrap the inline SVG in <div class="illo" role="img" aria-label="…">, or
   · add `illo-palette` next to a page-local layout class (e.g.
     <svg class="feature-viz illo-palette" …>) to inherit the palette only.

   Diagrams are drawn on viewBox 331×140 (130/150 legal) and render at
   natural scale — never stretched to the card width. Colors inside the SVGs
   are always var(--…) — never hardcoded hex (knockouts included).
   ═══════════════════════════════════════════════════════════════════════════ */

.illo,
.illo-palette {
  /* Darkened creamy stone ramp (Trina round-8) */
  --l1: #E0D8C6;   /* barely-there — background structure, ghosted layers */
  --l2: #CBC0A6;   /* secondary — guides, connectors, rejected data */
  --l3: #B0A283;   /* primary line weight */
  --l4: #93835F;   /* emphasis + text labels, rare */
  --node: #B4A88C; /* dot/node fill */
  --knockout: #FAFAF7; /* discs/pills that punch a hole through a line */
  /* Semantic accents — violet default/mechanism · green grants · orange warns ·
     pink delight (only where it owns the story). Max 2 per diagram. */
  --acc: var(--color-violet-700, #6D28D9);
  --acc-green: var(--color-green-600, #059669);
  --acc-orange: var(--color-orange-500, #F97316);
  --acc-pink: var(--color-pink-500, #EC4899);
}

.illo {
  position: relative; min-height: 188px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow: hidden;
}
.illo::before {  /* paper grid texture */
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(180,170,148,0.07) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(180,170,148,0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 72%);
  mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 72%);
  pointer-events: none;
}
.illo svg { position: relative; width: 100%; max-width: 331px; height: auto; display: block; margin: 0 auto; }
.illo--free { min-height: 0; padding: 12px; }   /* inside already-textured cards */
.illo--free::before { display: none; }
