/**
 * Accessibility Contrast Fixes - Dark Background
 *
 * Background: footer/header rgb(22, 30, 37) = #161e25 (near-black)
 * All color overrides use !important because garfield.css platform CSS
 * has 301+ !important declarations that would otherwise override these.
 *
 * WCAG 2.2: 1.4.3 Contrast (Minimum) Level AA (4.5:1 for normal text)
 */

/* Footer links - ensure sufficient contrast on dark background.
   Excludes .branding link (Nebraska logo + "Official Nebraska Government
   Application") which has its own intended visual treatment. */
footer a:not(.branding),
footer a:not(.branding):link,
footer a:not(.branding):visited {
    color: #66B3FF !important;
}

footer a:not(.branding):hover,
footer a:not(.branding):focus {
    color: #99CCFF !important;
}

/* Info box inside accordion panels (.alert-inverse.alert-info on white body bg).
   Garfield platform: text #0484ff = 3.65:1 on white (WCAG 1.4.3 FAIL for normal text).
   Border stripe #379DFF = 2.83:1 on white (WCAG 1.4.11 FAIL for non-text contrast).
   Fix: darken both to pass AA. */
.alert-inverse.alert-info {
    color: #0057C2 !important;           /* 5.9:1 on white - WCAG AA pass */
    border-color: #0077E6 !important;    /* 3.4:1 on white - WCAG 1.4.11 pass */
}

/* Buttons to open help modals */
.btn-help {
    color: #0057C2 !important;           /* 5.9:1 on white - WCAG AA pass */
    border-color: #0077E6 !important;    /* 3.4:1 on white - WCAG 1.4.11 pass */
}


/* Ajax results "amount due" notification green header.
   Garfield platform: background #01B551 with white text = 2.72:1 (WCAG 1.4.3 FAIL).
   Fix: darken background to pass 4.5:1 AA with white text. */
.alert-card .alert-header.alert-success {
    background-color: #016E32 !important;    /* 5.3:1 with white - WCAG AA pass */
    background: #016E32 !important;
}
