/* Audit fixes (docs/DESIGN_AUDIT.md) — no Tailwind rebuild required. */

/* Keyboard skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    background: #1b2b44;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-size: 0.875rem;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* Tabular numerics for data-dense tables and stat values */
table td,
table th,
.card .text-2xl,
.stat-card .text-2xl,
[class*="badge-"] {
    font-variant-numeric: tabular-nums;
}

/* Pressed feedback on buttons */
.btn-primary:active,
.btn-cta:active,
.btn-outline:active,
.btn-secondary:active,
.btn-danger:active,
.btn-gold:active {
    transform: translateY(1px) scale(0.98);
}

/* Tinted card shadows (navy hue instead of pure black) */
.card,
.stat-card {
    box-shadow: 0 1px 2px rgb(27 43 68 / 0.07), 0 1px 3px rgb(27 43 68 / 0.05);
}

/* Smooth anchor scrolling */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Unify neutral ramp: cool Tailwind gray -> warm neutral-200 family */
:root {
    --color-gray: #e8e8e8;
}

/* Shared page-hero scrim (replaces copy-pasted gradient in 4 shop views) */
.page-hero {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgb(27 43 68 / 0.95), rgb(27 43 68 / 0.85), rgb(27 43 68 / 0.75));
}

/* Consistent focus indicator where Tailwind removed outlines */
:focus-visible {
    outline: 2px solid #856434;
    outline-offset: 2px;
}

/* AJAX table loading skeleton */
@keyframes ag-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.12; }
}
.ag-loading {
    position: relative;
    pointer-events: none;
}
.ag-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 20;
    border-radius: 9999px;
    background: rgb(27 43 68 / 0.25);
    animation: ag-pulse 1.1s ease-in-out infinite;
}
