/* ============ demo · parivar — identity graph instrument ============
   One SVG in a 360-unit viewBox, so every label holds >=10px at a 360px container.
   Hairlines stay 1 device px (non-scaling) while the drawing scales. Colour is
   ink on near-black; --signal marks only the record being merged / verified and
   --case-tint only the verified check. Default styles describe the scattered
   start; .pv--still describes the finished, reduced-motion frame. */

.pv {
  --pv-tint: var(--case-tint, #7fb59a);
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 284;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  overflow: hidden;
  contain: layout paint;
  user-select: none;
  -webkit-user-select: none;
}

.pv__svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- type ---------- */

.pv text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  fill: var(--ink-2);
}

.pv .pv-label { letter-spacing: 0.12em; fill: var(--ink-3); }
.pv .pv-title { letter-spacing: 0.12em; fill: var(--ink-2); }
.pv .pv-read { letter-spacing: 0.12em; fill: var(--ink-3); }

.pv .pv-deva {
  font-family: 'Noto Sans Devanagari', 'Nirmala UI', 'Kohinoor Devanagari', 'Mangal', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- structure ---------- */

.pv .pv-dot { fill: var(--signal); }

.pv .pv-hair,
.pv .pv-ln,
.pv .pv-scan__line,
.pv .pv-card__box,
.pv .pv-card__hi,
.pv .pv-slot__box,
.pv .pv-uline {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}

.pv .pv-hair { stroke: var(--hairline); }
.pv .pv-grid { fill: rgba(236, 232, 225, 0.07); }

/* ---------- record cards ---------- */

.pv .pv-card { opacity: 0.6; } /* unresolved; js lifts each to full ink as it resolves */
.pv--still .pv-card { opacity: 1; }

.pv .pv-card__box { fill: var(--surface-2); stroke: var(--hairline-strong); }
.pv .pv-card--dup .pv-card__box { stroke: var(--ink-4); stroke-dasharray: 3 2; }
.pv .pv-card__hi { stroke: var(--signal); opacity: 0; }

.pv .pv-card__rel { fill: var(--ink); font-weight: 500; }
.pv .pv-card__fid,
.pv .pv-card__tag { fill: var(--ink-3); }
.pv .pv-card__tick { fill: var(--signal); letter-spacing: 0.12em; opacity: 0; }

.pv .pv-card__ck {
  fill: none;
  stroke: var(--pv-tint);
  stroke-width: 1.25;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ---------- graph ---------- */

.pv .pv-ln { stroke: var(--ink-4); }
.pv .pv-jn { fill: var(--ink-2); opacity: 0; }
.pv .pv-scan { opacity: 0; }
.pv .pv-scan__line { stroke: var(--signal); }
.pv .pv-scan__tag { fill: var(--signal); letter-spacing: 0.12em; }

/* ---------- output strip ---------- */

.pv .pv-slot__box { stroke: var(--ink-4); }
.pv .pv-slot__on { fill: var(--ink-2); opacity: 0; }
.pv .pv-slot__txt { letter-spacing: 0.02em; opacity: 0.38; }

.pv .pv-lang--hi { opacity: 0.38; }
.pv .pv-uline { stroke: var(--ink-2); }

.pv .pv-bar { fill: var(--ink-3); }
.pv .pv-cap { fill: var(--ink-2); letter-spacing: 0.02em; opacity: 0; }

/* ---------- finished frame (reduced motion) ---------- */

.pv--still .pv-card__ck { stroke-dashoffset: 0; }
.pv--still .pv-jn { opacity: 1; }
.pv--still .pv-slot--on .pv-slot__on,
.pv--still .pv-slot--on .pv-slot__txt { opacity: 1; }
.pv--still .pv-lang { opacity: 1; }
.pv--still .pv-uline { opacity: 0; }
.pv--still .pv-cap--hi { opacity: 1; }
