/* Radial Maps rank pins. Shared by the live animated map (v3.js) and the static image renderer
   (scripts/render-sample-rank-map.js), so crawlers and visitors see the same design. */
.rk-wrap { position: relative; display: block; container-type: inline-size; line-height: 0; }
.rk-wrap > img { display: block; width: 100%; height: auto; }
.rk-layer { position: absolute; inset: 0; pointer-events: none; line-height: 1; }
.rk-spokes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rk-spokes line { stroke: #102b3b; stroke-opacity: .28; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.rk-pin {
  --s: var(--rk-pin, 5.2cqw);
  --c: #22a55a; --hi: #8be6ab; --lo: #0c6431; --glow: rgba(34, 165, 90, .45);
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--c) 0%, var(--c) 55%, var(--lo) 130%);
  box-shadow: 0 0 0 calc(var(--s) * .075) #fff, 0 calc(var(--s) * .14) calc(var(--s) * .32) rgba(16, 43, 59, .38), inset 0 calc(var(--s) * -.06) calc(var(--s) * .12) rgba(0, 0, 0, .12);
  color: #fff; font: 800 calc(var(--s) * .42)/1 "Plus Jakarta Sans", Arial, sans-serif; letter-spacing: -0.02em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
  pointer-events: auto; cursor: default; z-index: 2;
}
.rk-pin::before { content: ""; position: absolute; inset: calc(var(--s) * -.5); border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, transparent 68%); z-index: -1; }
.rk-pin.is-mid { --c: #f5a623; --hi: #ffe0a0; --lo: #c06f00; --glow: rgba(245, 166, 35, .45); }
.rk-pin.is-low { --c: #e5484d; --hi: #ffa3a3; --lo: #9e1418; --glow: rgba(229, 72, 77, .42); }
.rk-pin.is-none { --c: #98a2b3; --hi: #e2e6ec; --lo: #5f6878; --glow: rgba(152, 162, 179, .35); font-size: calc(var(--s) * .3); }
.rk-pin.is-center {
  --s: calc(var(--rk-pin, 5.2cqw) * 1.42);
  --c: #e2387f; --hi: #ffb3d1; --lo: #a3093f; --glow: rgba(235, 100, 159, .55);
  z-index: 3;
  box-shadow: 0 0 0 calc(var(--s) * .07) #fff, 0 0 0 calc(var(--s) * .15) rgba(203, 12, 89, .35), 0 calc(var(--s) * .14) calc(var(--s) * .34) rgba(16, 43, 59, .42), inset 0 calc(var(--s) * -.06) calc(var(--s) * .12) rgba(0, 0, 0, .12);
}
.rk-label {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, calc(var(--rk-pin, 5.2cqw) * 1.05));
  padding: .35em .75em; border-radius: 999px; background: #102b3b; color: #fff; white-space: nowrap;
  font: 700 calc(var(--rk-pin, 5.2cqw) * .32)/1.1 "Plus Jakarta Sans", Arial, sans-serif; box-shadow: 0 4px 12px rgba(16, 43, 59, .3); z-index: 3;
}
.rk-ripple { position: absolute; left: var(--x); top: var(--y); width: calc(var(--rk-pin, 5.2cqw) * 1.42); height: calc(var(--rk-pin, 5.2cqw) * 1.42); margin: calc(var(--rk-pin, 5.2cqw) * -.71) 0 0 calc(var(--rk-pin, 5.2cqw) * -.71); border-radius: 50%; border: 2px solid rgba(235, 100, 159, .7); opacity: 0; }

/* Live animation (only when v3.js enhances a map; static images are already complete). */
.rk-live .rk-spokes line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: rk-draw .9s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: var(--d); }
.rk-live .rk-pin, .rk-live .rk-label { opacity: 0; animation: rk-pop .55s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: var(--d); }
.rk-live .rk-label { animation-name: rk-fade; }
.rk-live .rk-ripple { animation: rk-ripple 2.6s ease-out infinite; animation-delay: var(--d); }
.rk-live .rk-pin { transition: transform .18s ease; }
.rk-live .rk-pin:hover, .rk-live .rk-pin:focus-visible { transform: scale(1.18); z-index: 5; outline: none; }
@keyframes rk-draw { to { stroke-dashoffset: 0; } }
@keyframes rk-pop { 0% { opacity: 0; transform: scale(.2) translateY(-40%); } 100% { opacity: 1; transform: none; } }
@keyframes rk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rk-ripple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }

.rk-tip {
  position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none;
  padding: 8px 11px; border-radius: 10px; background: #102b3b; color: #fff; white-space: nowrap;
  font: 600 13px/1.35 "Plus Jakarta Sans", Arial, sans-serif; box-shadow: 0 8px 20px rgba(16, 43, 59, .3);
  opacity: 0; transition: opacity .12s ease;
}
.rk-tip.is-on { opacity: 1; }
.rk-tip b { display: block; font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .rk-live .rk-spokes line, .rk-live .rk-pin, .rk-live .rk-label { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .rk-live .rk-ripple { display: none; }
}

/* With JavaScript the pins wait hidden until the map scrolls into view, then play in.
   Without it (crawlers, no-JS) they simply show. rk-fail is a safety net if the script never runs. */
.rk-js .rk-wrap:not(.rk-live) .rk-pin, .rk-js .rk-wrap:not(.rk-live) .rk-label, .rk-js .rk-wrap:not(.rk-live) .rk-ripple { opacity: 0; }
.rk-js .rk-wrap:not(.rk-live) .rk-spokes line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.rk-fail .rk-wrap:not(.rk-live) .rk-pin, .rk-fail .rk-wrap:not(.rk-live) .rk-label { opacity: 1; }
.rk-fail .rk-wrap:not(.rk-live) .rk-spokes line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .rk-js .rk-wrap:not(.rk-live) .rk-pin, .rk-js .rk-wrap:not(.rk-live) .rk-label { opacity: 1; }
  .rk-js .rk-wrap:not(.rk-live) .rk-spokes line { stroke-dashoffset: 0; }
}
