/* ==========================================
   CUSTOM CURSOR — red circle
   A single red circle that follows the pointer.
   It keeps the same size and shape on every page
   and over every element (no morphing).

   Enabled by js/cursor-effect.js, which adds
   .cursor-effect-active to <html>.
   ========================================== */

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 100%;
    background-color: #e11d2e;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    will-change: transform;
    transition: opacity 0.2s ease;
}

/* Only show dot after the pointer has actually moved on the active page */
.cursor-effect-active.is-pointer-active .cursor-dot {
    opacity: 0.45;
}

.cursor-effect-active.is-pointer-leaving .cursor-dot,
.cursor-effect-active:not(.is-pointer-active) .cursor-dot {
    opacity: 0 !important;
}

/* Only fine pointers (mouse / trackpad) get the custom cursor.
   Touch and pen input keep the native behaviour. */
@media (pointer: coarse), (max-width: 991px) {
    .cursor-dot {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor-dot {
        display: none !important;
    }
}
