/* =====================================================================
   ACCESSIBILITY REMEDIATION (WCAG 2.1 AA) — added by EnableUser
   Loaded by functions.php alongside js/a11y-remediation.js.
   During testing it is enqueued on the HOME PAGE ONLY (see the
   ENABLEUSER_A11Y_HOME_ONLY flag in functions.php); flip that flag to
   apply site-wide once the home page checks out.
   ===================================================================== */

/* color-contrast: Quform field text & upload button were #757575 on #d7d0c0
   (2.99:1). Darken to #404040 (~6.3:1 on that background). WCAG 1.4.3 */
.quform-field-select,
select.quform-field,
.quform-field.quform-field-select option,
.quform-upload-button-text {
    color: #404040 !important;
}

/* link-in-text-block: inline email/mailto links must not rely on colour
   alone — add an underline cue. WCAG 1.4.1 */
.wpb_text_column a[href^="mailto:"],
.main-content a[href^="mailto:"],
p a[href^="mailto:"] {
    text-decoration: underline !important;
}

/* Skip-to-content link (injected by a11y-remediation.js). WCAG 2.4.1 */
.kc-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: #003A5D;
    color: #ffffff;
    padding: 12px 18px;
    font-size: 15px;
    line-height: 1.2;
    border-radius: 0 0 4px 0;
    text-decoration: none;
}
.kc-skip-link:focus {
    left: 0;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

/* Visible keyboard focus indicator (keyboard users only). WCAG 2.4.7 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #003A5D !important;
    outline-offset: 2px !important;
}

/* Keep the main content target focusable without a lingering outline ring
   after the skip link sends focus there. */
#main:focus {
    outline: none;
}
