/* Flare global accessibility layer.
   Keep this visual-light: it strengthens focus, motion, text scaling, and target affordance
   without changing Flare's dark neon brand. */

:root {
    --flare-focus-ring: #ffffff;
    --flare-focus-glow: rgba(var(--flare-accent-rgb), .42);
    --flare-min-target: 44px;
}

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.45;
}

.sr-only,
.visually-hidden,
.flare-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: calc(env(safe-area-inset-left, 0px) + 10px);
    z-index: 100000;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ff5a3d, var(--flare-accent) 58%, #b832ff);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .38), 0 0 24px rgba(var(--flare-accent-rgb), .28);
    font-weight: 900;
    text-decoration: none;
    transform: translateY(-140%);
    transition: transform var(--flare-dur-fast) ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid var(--flare-focus-ring);
    outline-offset: 3px;
}

:where(a, button, input, select, textarea, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid var(--flare-focus-ring) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px var(--flare-focus-glow) !important;
}

:where(button, [role="button"], input[type="button"], input[type="submit"], input[type="checkbox"], input[type="radio"], select, summary) {
    min-width: min(var(--flare-min-target), 100%);
    min-height: var(--flare-min-target);
}

:where(a, button, [role="button"], input, select, textarea) {
    touch-action: manipulation;
}

:where(input, select, textarea) {
    font-size: max(16px, 1em);
}

:where(p, li, label, input, select, textarea, button, a, small, span) {
    overflow-wrap: anywhere;
}

[aria-disabled="true"],
:disabled {
    cursor: not-allowed !important;
}

[aria-busy="true"] {
    cursor: progress;
}

.flare-a11y-live-region {
    position: fixed !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --flare-focus-glow: rgba(255, 255, 255, .44);
    }

    body {
        color: #fff;
    }

    :where(.muted, small, .secondary, .subtitle) {
        color: #d6d2df !important;
    }

    :where(.bottom-nav, .app-bottom-nav, .map-control-panel, .flare-modal, .login-card, .signup-card) {
        border-color: rgba(255, 255, 255, .22) !important;
    }
}

@media (min-resolution: 2dppx) {
    :where(svg, img) {
        image-rendering: auto;
    }
}
