/* =========================================================================
   Tyler's Hope Accessibility Plugin - stylesheet
   Loaded at priority 999 so it runs after the parent theme.
   Most aggressive overrides happen via inline styles in accessibility.js,
   because the parent theme uses #Top_bar #menu selectors with !important
   that beat any stylesheet rule by specificity.
   ========================================================================= */


/* -------------------------------------------------------------------------
   Skip-to-main-content link  (WCAG 2.4.1)
   ------------------------------------------------------------------------- */
.tha11y-skip-link {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    z-index: 100000 !important;
    padding: 12px 18px !important;
    background: #FFFFFF !important;
    color: #0B5394 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    border: 2px solid #0B5394 !important;
    border-radius: 4px !important;
}
.tha11y-skip-link:focus,
.tha11y-skip-link:focus-visible {
    left: 12px !important;
    top: 12px !important;
    outline: 3px solid #0B5394 !important;
    outline-offset: 2px !important;
}


/* -------------------------------------------------------------------------
   Touch target sizes  (WCAG 2.5.5)
   ------------------------------------------------------------------------- */
.page-numbers,
.pagination a,
.pagination span,
.nav-links a,
.nav-links .page-numbers {
    display: inline-block !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    line-height: 1.4 !important;
    text-align: center;
}

.back-to-top,
.scroll-to-top,
#back_to_top {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

.menu-close,
.mobile-menu-close,
.menu-toggle-close,
#Top_bar .menu-trigger {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}


/* -------------------------------------------------------------------------
   Reduced motion  (WCAG 2.3.3)
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* -------------------------------------------------------------------------
   Visible link underlines inside body content  (WCAG 1.4.1)
   ------------------------------------------------------------------------- */
.entry-content a,
.page-content a,
article p a,
main p a,
#Content p a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}


/* -------------------------------------------------------------------------
   Placeholder text contrast
   ------------------------------------------------------------------------- */
::placeholder {
    color: #595959 !important;
    opacity: 1;
}


/* -------------------------------------------------------------------------
   Footer link contrast
   ------------------------------------------------------------------------- */
#Footer a,
#Footer .menu a,
.site-footer a,
footer a,
footer .menu a {
    color: #1F1F1F !important;
}
#Footer a:hover,
.site-footer a:hover,
footer a:hover {
    color: #0B5394 !important;
    text-decoration: underline !important;
}


/* -------------------------------------------------------------------------
   Top menu text shadow (so white menu text stays readable over hero images)
   ------------------------------------------------------------------------- */
#Top_bar .menu > li > a,
.menu-main .menu-item > a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
}


/* -------------------------------------------------------------------------
   Screen-reader-only utility class
   ------------------------------------------------------------------------- */
.tha11y-sr-only,
.sr-only,
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* -------------------------------------------------------------------------
   Required-field marker (add class="required" to a label to enable)
   ------------------------------------------------------------------------- */
label.required::after {
    content: " *";
    color: #C00000;
    font-weight: 700;
}


/* End of accessibility.css --------------------------------------------- */
