/* Skip Links for Accessibility */
.skip-links {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
}

.skip-links a {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.2;
    transition: top 0.3s ease;
    z-index: 10001;
}

.skip-links a:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Ensure skip links are visible when focused */
.skip-links a:focus:not(:focus-visible) {
    outline: none;
}

.skip-links a:focus-visible {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Screen reader only text */
.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;
}

/* Ensure main content has proper focus management */
main:focus {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .skip-links a {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }

    .skip-links a:focus {
        background: #fff;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .skip-links a {
        transition: none;
    }
}
