/**
 * WCAG 2.2 AA Contrast Fixes for Motor Fuels Licensee Search
 *
 * Fixes identified in NICNE-1135 (ARC scan findings)
 * Target WCAG: 1.4.3 Contrast (Minimum) Level AA
 *
 * All colors must meet 4.5:1 contrast ratio minimum for normal text
 *
 * Usage: Include after main.css to override defaults
 */

/*
 * Fix 1: Navbar links (brand, navigation, dropdown)
 * Issue: #777777 on #f8f8f8 background = 4.22:1 (FAIL)
 * Fix: Use #595959 = 4.54:1 (PASS)
 */
.navbar-brand,
.navbar-brand:link,
.navbar-brand:visited,
.navbar .navbar-nav > li > a,
.navbar .navbar-nav > li > a:link,
.navbar .navbar-nav > li > a:visited,
.dropdown-toggle,
.dropdown-toggle:link,
.dropdown-toggle:visited {
    color: #595959 !important;
}

.navbar-brand:hover,
.navbar-brand:focus,
.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > a:focus,
.dropdown-toggle:hover,
.dropdown-toggle:focus {
    color: #333333 !important;
}

/*
 * Fix 2: Small elements
 * Issue: #777777 on #ffffff background = 4.48:1 (FAIL)
 * Fix: Use #595959 = 7.44:1 (PASS)
 */
small,
.small {
    color: #595959 !important;
}

/*
 * Fix 3: Footer links on black background
 * Issue: #0066cc on #000000 background = 3.77:1 (FAIL)
 * Fix: Use #6DB3F2 = 4.68:1 (PASS)
 */
.footer a,
.footer a:link,
.footer a:visited {
    color: #6DB3F2 !important;
}

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

/*
 * Fix 4: Table row links on striped background
 * Issue: #337ab7 on #f9f9f9 background = 4.33:1 (FAIL)
 * Fix: Use #2966A3 = 4.56:1 (PASS)
 */
.table a,
.table a:link,
.table a:visited {
    color: #2966A3 !important;
}

.table a:hover,
.table a:focus {
    color: #1E4A75 !important;
    text-decoration: underline;
}

/* Button on light background */
.btn-primary {
    background-color: #2C3E50;
    border-color: #2C3E50;
    color: #FFFFFF !important;
}

/* Help text on light background */
.help-block {
    color: #555555 !important; /* Medium gray - 7:1 on #FFFFFF */
}

/* Secondary text on light background */
.text-muted,
.small-text {
    color: #666666 !important; /* 5.7:1 on #FFFFFF */
}
