/* Utilities */

.touch-target {
    min-width: var(--touch-min, 44px);
    min-height: var(--touch-min, 44px);
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Light click ripple — reuse via v-ripple / .ui-ripple
   Wave is portaled to body (.ui-ripple__layer) so it survives menu remounts. */
.ui-ripple {
    -webkit-tap-highlight-color: transparent;
}

.ui-ripple__layer {
    position: fixed;
    overflow: hidden;
    pointer-events: none;
    z-index: 10000;
}

.ui-ripple__layer > .ui-ripple__wave {
    position: absolute;
    border-radius: 50%;
    background: var(--ripple-color);
    pointer-events: none;
    transform: scale(0);
    opacity: 0.55;
    will-change: transform, opacity;
    animation: ui-ripple-wave 0.45s ease-out forwards;
}

@keyframes ui-ripple-wave {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-ripple__layer {
        display: none;
    }
}
