/**
 * accessibility-overrides.css
 * WCAG 2.1 AA remediation overrides — loaded last to ensure highest priority.
 * Do NOT edit bootstrap.css or components.css to fix new accessibility issues — use this file.
 */

/* =========================================================
   SC 1.4.1 — Use of Color / link-in-text-block
   Links within text blocks must be distinguishable by
   something other than color alone (underline + bold weight).
   ========================================================= */

/* Tooltip (?) links inside certtotal cells */
td.certtotal-text a {
    text-decoration: underline;
    font-weight: bold;
}

/* "Add Another Request" / nav links inside cart section headings */
th.cart-info a,
th.bord-t a {
    text-decoration: underline;
    font-weight: bold;
}

/* Inline links inside paragraph/text containers on the home page */
.cnt-p a {
    text-decoration: underline;
}

/* =========================================================
   SC 1.4.3 — Contrast (Minimum)
   certtotal-text cells on .bg-color (#e5e5e5) rows.
   #8e9c98 on #e5e5e5 ≈ 2.3:1 (fails 4.5:1 for 18px bold text).
   Fix: #4d6260 → ~4.7:1 on #e5e5e5, ~5.9:1 on #ffffff.
   ========================================================= */
td.certtotal-text {
    color: #4d6260;
}

/* Home hero title text over image background */
h1.title,
h2.title {
    background-color: rgba(8, 34, 53, 0.62);
    border-radius: 6px;
    display: inline-block;
    padding: 2px 10px;
    text-shadow: none;
}

/* Strengthen right-panel heading contrast on light backgrounds */
h1.info-right {
    color: #0e3d7a;
    text-shadow: none;
}

/* Additional needs-review hardening for text containers/fields */
h1.formtitle,
#county-scroll > h1,
label,
#additional_comments,
textarea.disc,
.cnt-p {
    color: #1f2f3a;
}

#additional_comments,
textarea.disc {
    background-color: #ffffff;
}
