:root {
    --text-high-contrast: #1a1a1a;
    --bg-high-contrast: #ffffff;
    --border-high-contrast: #333333;
}

@media (prefers-contrast: high) {
    body {
        color: var(--text-high-contrast);
        background: var(--bg-high-contrast);
    }

    .card {
        border: 2px solid var(--border-high-contrast);
    }

    a:focus,
    button:focus,
    input:focus,
    select:focus {
        outline: 3px solid #0056b3;
        outline-offset: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0056b3;
    color: white;
    padding: 8px;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-link:focus {
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.5);
}

[aria-busy="true"] {
    cursor: wait;
}

[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}