/**
 * WCAG 2.2 AA Contrast Fixes — ne-sed-license-lists
 *
 * Body background: rgb(50, 58, 69) = #323a45 (dark)
 * Nebraska e_mau platform CSS uses 99+ !important declarations,
 * so all overrides require !important to win the cascade.
 *
 * WCAG 1.4.3 Contrast (Minimum) Level AA
 */

/* Footer section labels (dim-header class, now <p> elements) */
footer .dim-header {
    color: #E0E0E0 !important; /* 7.6:1 on #323a45 */
}

/* Footer body text and paragraphs */
footer p,
footer address {
    color: #E0E0E0 !important;
}

/* Copyright year span and other inline spans in footer paragraphs.
   Exclude glyphicon spans — their icon font color must not be overridden. */
footer p span:not([class*="glyphicon"]) {
    color: #E0E0E0 !important;
}

/* Footer links — avoid overriding glyphicon icon font spans */
footer a,
header a {
    color: #66B3FF !important; /* 5.1:1 on #323a45 */
}

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

/* Agency contact address lines — block display replaces <br> separators */
.address-line {
    display: block;
}

/* Restore focus indicators suppressed by emau.css
   emau.css sets: .btn:hover, .btn:focus { outline: none } and a:focus { outline: none }
   This overrides the browser default and platform CSS, removing all visible focus rings.
   WCAG 2.4.7 Focus Visible (Level AA) requires a visible focus indicator. */
a:focus,
.btn:focus,
button:focus {
    outline: 2px solid #046b99 !important;
    outline-offset: 2px !important;
}

/* Checkbox focus indicator — radiocheck plugin hides native input (opacity: 0, outline: none)
   and injects a .icons span as the visible checkbox. Focus must be shown on .icons via
   the adjacent sibling combinator since the native input is invisible.
   WCAG 2.4.7 Focus Visible (Level AA) */
.checkbox input[type="checkbox"]:focus + .icons {
    outline: 2px solid #046b99 !important;
    outline-offset: 2px !important;
}

/* Receipt page success band — emau.css sets bg-success to #4aa564 (medium green).
   h1 font-size is 32px (emau); small = 65% = 20.8px (normal weight, not large text).
   At 20.8px, WCAG 1.4.3 requires 4.5:1. White on #4aa564 = 3.06:1 (fails).
   Darker background #2d6a3a with white = 6.52:1 — passes both normal and large text.
   Text color corrected in style.css (.bg-success h1 small: #9cd3ac → #fff). */
.thank-you-band {
    background-color: #2d6a3a !important; /* 6.52:1 with white text */
}

/* btn-success: Bootstrap 3 default #5cb85c with white = 2.8:1 (fails 3:1 for large text)
   #3d7a3d with white = 4.6:1 — passes AA for both normal and large text */
.btn-success,
.btn-success:link,
.btn-success:visited {
    background-color: #3d7a3d !important;
    border-color: #306130 !important;
    color: #FFFFFF !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #306130 !important;
    border-color: #254d25 !important;
    color: #FFFFFF !important;
}

/* Primary button: #00a6d2 with white text = 2.84:1 (fails 4.5:1 for normal, 3:1 for large)
   #046b99 with white = 5.71:1 — passes both thresholds */
.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;
}
