/* TDSH cursor (1.3.304.78). Mandi's avimedia.ca cursor: two trailing hairline rings that
   lag, stretch with speed and glow. The dot is now the TDSH sight (ring + four inward ticks,
   the footer .tdsh-sight mark) and it bleeds. Fixed geometry; only transform and opacity
   animate. Loaded non-blocking (print swap) and only for fine pointers without reduced motion.
   z-index sits above page content and below the WP lightbox (100000) and the Evidence Locker
   (1000000), so modals always cover it; JS hands those areas back to the native cursor.
   The layer is display:contents, so it adds no stacking context and the rings' difference
   blend still reaches the photograph underneath. */
.cur-layer{display:contents}
.cur{position:fixed;top:0;left:0;z-index:99990;pointer-events:none;display:none;will-change:transform;color:#4d4637;--cur-rgb:77,70,55;--cur-blood:#7a0e24;--cur-blood-rgb:122,14,36}
html .cur-layer.dark .cur{color:#c7c0b1;--cur-rgb:199,192,177;--cur-blood:#a3162f;--cur-blood-rgb:163,22,47}
html .cur-layer.photo :is(.cur-ring,.cur-inner){mix-blend-mode:difference;color:#fff;--cur-rgb:255,255,255}
/* Over photographs the sight stays bone with an ink edge, so the blood keeps its colour. */
html .cur-layer.photo .cur-dot{color:#f0ebe3}
html .cur-layer.photo .cur-sight{filter:drop-shadow(0 0 1px rgba(18,18,18,.85))}
.cur-ring{width:40px;height:40px;margin:-20px 0 0 -20px}
.cur-inner{width:24px;height:24px;margin:-12px 0 0 -12px}
.cur-dot{width:22px;height:22px;margin:-11px 0 0 -11px}
.cur-velocity{transform-box:view-box;transform-origin:center;will-change:transform}
/* Non-scaling SVG strokes: one physical pixel, including during hover swell. */
.cur-shape{display:block;width:100%;height:100%;overflow:visible}
.cur-shape circle{fill:transparent;stroke:currentColor;stroke-width:1px;vector-effect:non-scaling-stroke;transform:scale(1);transform-box:view-box;transform-origin:center;transition:transform .3s ease,fill .3s ease}
.cur-ring.hov .cur-shape circle{transform:scale(1.6153846154);fill:rgba(var(--cur-blood-rgb),.12)}
.cur-inner.hov .cur-shape circle{transform:scale(1.6260869565)}
.cur-ring.click .cur-shape circle{transform:scale(.7435897436);transition-duration:.12s}
.cur-inner.click .cur-shape circle{transform:scale(.7391304348);transition-duration:.12s}
@media (min-resolution:2dppx){
 .cur-shape circle{stroke-width:.5px}
 .cur-ring .cur-shape circle{r:19.75px}
 .cur-inner .cur-shape circle{r:11.75px}
 .cur-ring.hov .cur-shape circle{transform:scale(1.6075949367)}
 .cur-inner.hov .cur-shape circle{transform:scale(1.6127659574)}
 .cur-ring.click .cur-shape circle{transform:scale(.7468354430)}
 .cur-inner.click .cur-shape circle{transform:scale(.7446808511)}
}
/* Separate pre-blurred halos: the crisp hairlines above are never filtered. */
.cur-glow{position:absolute;inset:0;opacity:.7;filter:blur(2px) drop-shadow(0 0 6px rgba(var(--cur-rgb),.4)) drop-shadow(0 0 18px rgba(var(--cur-rgb),.35));will-change:transform,opacity;transition:opacity .18s ease}
.cur-glow circle{stroke:rgba(var(--cur-rgb),.45);stroke-width:3px;fill:none}
.cur-ring.hov .cur-glow circle{fill:none}
.cur-inner .cur-glow{opacity:.6}
/* The sight: TDSH reticle in place of the dot. Its halo is blood. */
.cur-sight{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.15px;vector-effect:non-scaling-stroke;transform-origin:50% 50%;transition:transform .3s ease}
.cur-sight *{vector-effect:non-scaling-stroke}
.cur-sight .cur-core{fill:var(--cur-blood);stroke:none;transform-box:fill-box;transform-origin:center;transition:transform .3s ease}
.cur-dot-glow{position:absolute;inset:3px;border-radius:50%;opacity:.8;box-shadow:0 0 6px 1px rgba(var(--cur-blood-rgb),.5),0 0 18px rgba(var(--cur-blood-rgb),.4);will-change:opacity;transition:opacity .18s ease}
.cur-dot.hov .cur-sight{transform:rotate(45deg) scale(1.12)}
.cur-dot.hov .cur-sight .cur-core{transform:scale(1.9)}
/* The hanging drop: forms under the sight while the pointer rests, swells, lets go.
   Compositor-only keyframes, so no script runs while the cursor is idle. */
.cur-hang{position:absolute;left:50%;top:calc(50% + 7px);width:7px;height:10.5px;margin:0 0 0 -3.5px;opacity:0;transform-origin:50% 0}
.cur-hang svg,.cur-drop svg{display:block;width:100%;height:100%;overflow:visible;fill:var(--cur-blood);filter:drop-shadow(0 0 2px rgba(var(--cur-blood-rgb),.55))}
.cur-dot.pool .cur-hang{animation:cur-pool 2.6s cubic-bezier(.55,0,.85,.45) infinite}
.cur-dot.hov.pool .cur-hang{animation-duration:1.5s}
@keyframes cur-pool{0%,22%{transform:translateY(-3px) scale(0);opacity:0}40%{transform:translateY(-2px) scale(.7,.6);opacity:1}66%{transform:translateY(0) scale(.95,1.1);opacity:1}86%{transform:translateY(34px) scale(.7,1.7);opacity:.95}100%{transform:translateY(58px) scale(.55,1.9);opacity:0}}
/* Falling drops: a fixed pool of 14 nodes, positioned by transform from the rAF loop. */
.cur-drop{width:7px;height:10.5px;margin:-1px 0 0 -3.5px;opacity:0;transform-origin:50% 30%}
/* The layer shows only for fine pointers without reduced motion, after the first move, and never over the
   native areas. Native cursor everywhere else is hidden by one class set at load (cur-armed). Form fields,
   editable text, the admin bar, the Evidence Locker panel, dialogs and the WP lightbox are left out of the
   rule, so they keep their own cursors (text, pointer...). Keep the list in step with `native` in cursor.js. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .cur-layer.on:not(.native) .cur{display:block}
 html.cur-armed,html.cur-armed :not(input,textarea,select,[contenteditable]:not([contenteditable=false]),[contenteditable]:not([contenteditable=false]) *,#wpadminbar,#wpadminbar *,.tdsh-search-pop,.tdsh-search-pop *,dialog,dialog *,.wp-lightbox-overlay,.wp-lightbox-overlay *){cursor:none}
 /* cursor inherits, so each left-out root restarts from auto; zero specificity lets the theme's own cursor rules win. */
 :where(html.cur-armed) :where(input,textarea,select,[contenteditable]:not([contenteditable=false]),#wpadminbar,.tdsh-search-pop,dialog,.wp-lightbox-overlay){cursor:auto}
}
