/* Accessibility utilities shared across all SBCSS pages. */

/* Skip-to-main-content link. Hidden off-screen until a keyboard user
   focuses it (first Tab press on the page), then slides into view. */
.skip-link {
    position: absolute;
    top: -48px;
    left: 8px;
    background: #FFBA2D;
    color: #1a1a2e;
    padding: 10px 18px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.9rem;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: top 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 3px solid #01508A;
    outline-offset: 2px;
}

/* Visible keyboard focus outline for all interactive elements.
   Uses :focus-visible so mouse clicks don't trigger the ring, only
   keyboard navigation. */
:focus-visible {
    outline: 3px solid #FFBA2D;
    outline-offset: 2px;
}

/* Visually hidden but still announced by screen readers and reachable
   by keyboard. Use on inputs styled via a sibling label. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
