/* R21 «میزان» — shared components: pattern tiles + the dial's SVG parts
   + the 56px mini-dial. Loaded on every page (base.html), so any slice
   can use the dial and the patterns. Every value comes from
   r21-tokens.css. The dial track uses currentColor: paper on ink
   (hero), ink on white (cards). */

/* Pattern tiles — deterministic per item, never a real logo. */
.r21-pattern-0 { background-image: radial-gradient(circle at 22% 22%, var(--r21-pattern-blue) 0 11px, transparent 12px), radial-gradient(circle at 82% 78%, var(--r21-pattern-blue) 0 7px, transparent 8px); }
.r21-pattern-1 { background-image: repeating-linear-gradient(45deg, var(--r21-pattern-ink) 0 6px, transparent 6px 12px); }
.r21-pattern-2 { background-image: repeating-radial-gradient(circle at 50% 50%, var(--r21-pattern-lime) 0 2px, transparent 2px 10px); }
.r21-pattern-3 { background-image: radial-gradient(circle, var(--r21-pattern-blue) 1.5px, transparent 1.5px); background-size: 12px 12px; }

/* The dial's SVG parts — shared by the 320px hero dial and the 56px
   mini-dial. Needle and value arc render at their final values on the
   server (FIX #1); the motion slice animates them on load. */
.r21-dial-track { fill: none; stroke: currentColor; opacity: 0.25; stroke-width: 6; stroke-linecap: round; }
.r21-dial-value { fill: none; stroke: var(--r21-fit); stroke-width: 6; stroke-linecap: round; }
.r21-dial-needle { stroke: var(--r21-fit); stroke-width: 4; stroke-linecap: round; }
.r21-dial-dot { fill: var(--r21-blue); }

/* The 56px card dial. */
.r21-mini-dial { position: relative; display: inline-block; width: 56px; height: 56px; flex: 0 0 56px; color: var(--r21-ink); }
.r21-mini-dial-svg { display: block; width: 100%; height: auto; }
.r21-mini-dial-num { position: absolute; inset-inline: 0; bottom: 5%; margin: 0; text-align: center; font-family: var(--r21-font-display); font-weight: 800; font-stretch: 125%; font-size: 15px; line-height: 1; color: var(--r21-ink); font-variant-numeric: tabular-nums; }
