/* =====================================================================
   Site-wide accessibility helpers (consumer site). Loaded from _Layout.
   ===================================================================== */

/* Text for screen readers only (form labels behind icon inputs, etc.). */
.wv-sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* "Skip to main content": hidden until it receives keyboard focus. */
.wv-skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 10000;
    background: #123a73; color: #fff; padding: 10px 16px; border-radius: 8px;
    font-weight: 700; text-decoration: none; transition: top .15s ease;
}
.wv-skip-link:focus { top: 12px; color: #fff; outline: 3px solid #0a9fe6; outline-offset: 2px; }
#main-content:focus { outline: none; }

/* A visible keyboard focus ring for every link and control that has none of its own.
   :focus-visible keeps it off mouse clicks. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid #0a9fe6;
    outline-offset: 2px;
}

/* On the navy footer the light-blue ring needs a touch more contrast. */
.cw-footer a:focus-visible { outline-color: #9fd0ff; }

@media (prefers-reduced-motion: reduce) {
    .wv-skip-link { transition: none; }
}
