/**
 * WCAG 2.2 AA Accessibility Enhancements
 * ne-ea-licensee-search
 *
 * WCAG Success Criteria: 1.4.3 Contrast (Minimum) Level AA
 *
 * Background: body/footer/header effective background is rgb(50, 58, 69) / #323a45 (dark).
 * Nebraska e_mau platform CSS uses !important on color rules, so all overrides must too.
 */

/* =========================================================
   Footer heading sizing: h6 changed to h3 for heading hierarchy
   Preserve original small/uppercase visual appearance
   ========================================================= */
footer h3.dim-header {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================
   Footer section headings (.dim-header): rgb(102,115,134) fails (~2.8:1)
   Override to #E0E0E0 which is 7.1:1 on #323a45 - passes AA
   ========================================================= */
footer .dim-header {
    color: #E0E0E0 !important;
}

/* =========================================================
   Footer body text (paragraphs, address lines)
   ========================================================= */
footer p,
footer address {
    color: #E0E0E0 !important;
}

/* .text-muted override: Bootstrap default #777777 = 3.0:1 on #323a45 (FAIL)
   Override explicitly in case Bootstrap uses !important on .text-muted */
footer .text-muted {
    color: #E0E0E0 !important;
}

/* Footer paragraph spans (e.g., copyright year span, version span) */
footer p span {
    color: #E0E0E0 !important;
}

/* =========================================================
   Footer links: ensure sufficient contrast on dark background
   #66B3FF = 4.6:1 on #323a45 - passes AA
   ========================================================= */
footer a,
footer a:link,
footer a:visited {
    color: #66B3FF !important;
}

footer a:hover,
footer a:focus {
    color: #99CCFF !important;
}

/* =========================================================
   Primary button contrast fix
   Platform default #00a6d2 = 2.84:1 with white (fails AA)
   #046b99 = 5.71:1 with white - passes AA
   ========================================================= */
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background-color: #046b99 !important;
    border-color: #035881 !important;
    color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #035881 !important;
    border-color: #024566 !important;
    color: #FFFFFF !important;
}

/* =========================================================
   Results page sub-heading: "N results found" inside h2 > small
   Bootstrap default h2 small color #777777 = 4.13:1 on white (FAIL)
   Override to #595959 = 7.0:1 on white - passes AA
   ========================================================= */
main.content h2 small {
    color: #595959 !important;
}

/* =========================================================
   Body content links on white background
   Bootstrap default #337ab7 = 4.27:1 on white (FAIL)
   Override to #046b99 = 5.83:1 on white - passes AA
   Matches button primary color already in the palette
   ========================================================= */
main.content a:not(.btn),
main.content a:link:not(.btn),
main.content a:visited:not(.btn) {
    color: #046b99 !important;
}

main.content a:hover:not(.btn),
main.content a:focus:not(.btn) {
    color: #035881 !important;
}

/* =========================================================
   Header agency name link: text over background image
   Ensure readable against varying backgrounds
   ========================================================= */
.header-container .agency-name a {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-decoration: none;
}
