/* AODA Accessibility Styles */

/* Skip to main content link - hidden until focused */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: bold;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #ffcb05;
    outline-offset: 2px;
}

/* Enhanced focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.nav-link:focus {
    outline: 3px solid #ffcb05;
    outline-offset: 2px;
}

/* Ensure focus is visible on interactive elements */
.nav-link:focus {
    box-shadow: 0 0 0 3px #ffcb05;
}

/* High contrast focus for better visibility */
*:focus-visible {
    outline: 3px solid #ffcb05;
    outline-offset: 2px;
}

/* Remove default outline but keep our custom one */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure tab navigation is clear */
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px #ffcb05;
}

/* Counter animations - ensure they're accessible */
.counter {
    display: inline-block;
}

/* 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-width: 0;
}

/* Ensure sufficient color contrast for text */
.text-height-0 {
    line-height: 1.2;
}
