/* ==========================================================================
   Accessibility Overrides — WCAG 2.1 AA / ADA Section 508
   Lakeland Housing Authority — WebPresence
   ========================================================================== */

/* --bs-secondary-color fix
   Bootstrap computes this as rgba($body-color, .75) = hsla(249,9%,48%,.75),
   which composites to #9693a4 on white — only 2.99:1 contrast.
   Override to #72707d for a 4.85:1 ratio against #ffffff.
   Affects: caption, .form-text, .form-control::placeholder,
            .form-control:disabled, .text-body-secondary
   -------------------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
    --bs-secondary-color: #72707d;
    --bs-secondary-rgb: 114, 112, 125;
}

/* Body-content link distinction (WCAG 1.4.1 — Use of Color)
   Links colored #065d8f have only 2.69:1 contrast against surrounding
   text #101010. Underline body-content links so they are distinguishable
   without relying solely on color. Excludes nav, buttons, badges, cards.
   -------------------------------------------------------------------------- */
main p a:not(.btn):not(.badge),
main li a:not(.btn):not(.badge),
main td a:not(.btn):not(.badge),
main dd a:not(.btn):not(.badge) {
    text-decoration: underline;
    text-decoration-color: rgba(6, 93, 143, 0.4);
    text-underline-offset: 2px;
}

/* Footer .text-reset link contrast fix
   Inherited color #969ba5 on footer bg #2d374b = 4.27:1 (below 4.5:1).
   Lighten to #9da2ad for 4.66:1 ratio.
   -------------------------------------------------------------------------- */
footer .text-reset {
    color: #9da2ad !important;
}

main p a:not(.btn):not(.badge):hover,
main li a:not(.btn):not(.badge):hover,
main td a:not(.btn):not(.badge):hover,
main dd a:not(.btn):not(.badge):hover {
    text-decoration-color: rgba(6, 93, 143, 1);
}
