/*
 * accessibility.css — WCAG 2.2 AA overrides for the CalCATS payment portals (Bootstrap 5.3).
 * Load LAST, after bootstrap.min.css and the site stylesheet (Site_41.css / Site_43.css).
 * Colors: CalCATS-Design-Standards.md §1 palette only.
 */

/* WCAG 1.4.3 - base link contrast fix */
:root {
    --bs-link-color: #0B6AD0;
    --bs-link-color-rgb: 11, 106, 208;
    --bs-link-hover-color: #0056B3;
    --bs-link-hover-color-rgb: 0, 86, 179;
}

/* WCAG 1.4.1 — in-text links need a non-color indicator (footer help email) */
a[href^="mailto:"] {
    text-decoration: underline;
}

/* Heading Structure */
h1, .h1 {
    font-size: 2rem;
}

h2, .h2 {
    font-size: 1.75rem;
}

h3, .h3 {
    font-size: 1.5rem;
}

h4, .h4 {
    font-size: 1.25rem;
}

h5, .h5 {
    font-size: 1.25rem;
}

h6, .h6 {
    font-size: 1rem;
}

/* Skip to main content */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-size: 1rem;
    text-decoration: none;
}

.skip-nav:focus {
    top: 0;
    color: #fff;
}

/* Page Item Styles */
.calcats-page-title {
    color: #297F7F;
    margin-bottom: 18px;
}

/* Portal btn-link uses brand teal */
.btn-link {
    --bs-btn-color: #297F7F;
    --bs-btn-hover-color: #215E5E;
    --bs-btn-active-color: #215E5E;
    --bs-btn-disabled-color: #767676;
    --bs-btn-disabled-opacity: 1;
    --bs-btn-focus-shadow-rgb: 41, 127, 127;
}

/* WCAG 1.4.3 - btn-primary contrast fix */
.btn-primary {
    --bs-btn-bg: #0B6AD0;
    --bs-btn-border-color: #0B6AD0;
    --bs-btn-hover-bg: #0056B3;
    --bs-btn-hover-border-color: #0056B3;
    --bs-btn-focus-shadow-rgb: 11, 111, 218;
    --bs-btn-active-bg: #0056B3;
    --bs-btn-active-border-color: #004A99;
    --bs-btn-disabled-bg: #0B6AD0;
    --bs-btn-disabled-border-color: #0B6AD0;
}

/* WCAG 1.4.3 - btn-success contrast fix, brand teal */
.btn-success {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: #297F7F;
    --bs-btn-border-color: #297F7F;
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: #215E5E;
    --bs-btn-hover-border-color: #215E5E;
    --bs-btn-focus-shadow-rgb: 41, 127, 127;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: #215E5E;
    --bs-btn-active-border-color: #215E5E;
    --bs-btn-disabled-color: #FFFFFF;
    --bs-btn-disabled-bg: #297F7F;
    --bs-btn-disabled-border-color: #297F7F;
}

/* WCAG 1.4.3 - btn-danger contrast fix */
.btn-danger {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: #DB0000;
    --bs-btn-border-color: #DB0000;
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: #B30000;
    --bs-btn-hover-border-color: #B30000;
    --bs-btn-focus-shadow-rgb: 219, 0, 0;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: #B30000;
    --bs-btn-active-border-color: #B30000;
    --bs-btn-disabled-color: #FFFFFF;
    --bs-btn-disabled-bg: #DB0000;
    --bs-btn-disabled-border-color: #DB0000;
}

/* card headers and footer */
.card {
    --bs-card-cap-bg: #F7F7F7;
    --bs-card-border-color: #F0F0F0;
}

/* Portal light background */
.bg-light {
    background-color: #F9FAFA !important;
}
