/* CWS accessibility styles (BHW Cares). Each rule replaces a measured failure. Brand hues are kept. */

/* Skip link: first thing a keyboard user reaches; hidden until focused. */
.cws-skip-link { position: fixed; left: -9999px; top: 0; z-index: 2147483647; background: #fff; color: #0b3b52; padding: 12px 18px; font: 700 16px/1.2 'Open Sans', Arial, sans-serif; border: 3px solid #0b3b52; text-decoration: underline; }
.cws-skip-link:focus { left: 8px; top: 8px; }
#main-content:focus { outline: none; }

/* Body text was #888 on white (3.5:1). */
body { color: #666666; }
.slider_alert_text, .slider_alert_info, .slider_alert_info div, .gray_text, .contact_info_item,
.gfield_description, .gform_drop_instructions, .post_time, .testimonial_name span, .tagcloud a,
.author_box p, blockquote p, .promo_gridlist_item, .filters > ul > li > a, .breadcrumb > .active { color: #666666; }
.ginput_container input, .ginput_container select, .ginput_container textarea,
input[type="text"], input[type="email"], input[type="password"], textarea, select { color: #4d4d4d; }
::placeholder { color: #666666; opacity: 1; }

/* Footer: gray on charcoal was 2.5:1. Lighten the gray, keep the brand blue for links on the dark ground. */
.site_footer, .site_footer p, .site_footer .textwidget, .site_footer .textwidget p, .site_footer li, .site_footer address { color: #b3b3b3; }
.site_footer a, .site_footer .widget_title { color: #3cb3e7; }
.site_footer .contact_info_item, .second_footer, .second_footer p, .second_footer li { color: #b3b3b3; }

/* Links that sit inside running text must not rely on color alone. */
.wpb_text_column p a, .wpb_wrapper p a, .wpb_wrapper li a, .su-list a, .gform_wrapper .gfield_description a,
.gform_wrapper .gfield_label a, .panel-body a, .gfield_html a { text-decoration: underline; text-underline-offset: 2px; }

/* Buttons and nav use the accessible brand shades from the PHP pass; these cover theme-stylesheet rules. */
.btn-default, .sarraty_button, .gform_next_button, .gform_previous_button, .gform_button, input[type="submit"].gform_button,
.wpcf7-submit, .su-button-style-flat, #searchsubmit, .search_form input[type="submit"] { background-color: #157dab; color: #ffffff; }
.btn-default:hover, .btn-default:focus, .gform_button:hover, .gform_next_button:hover { background-color: #0f5f84 !important; color: #ffffff; }
/* Orange buttons keep their orange; text goes dark for contrast. */
.vc_btn3.vc_btn3-color-orange, .vc_btn3.vc_btn3-color-warning, .vc_btn3[style*="f7be68"] { color: #1f2a30 !important; }

/* Keyboard focus must be visible everywhere (WCAG 2.4.7). */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible, summary:focus-visible { outline: 3px solid #0b3b52 !important; outline-offset: 2px !important; box-shadow: 0 0 0 5px #ffffff !important; }
.site_footer a:focus-visible, .site_footer button:focus-visible, .dark_site_footer a:focus-visible { outline-color: #ffffff !important; box-shadow: 0 0 0 5px #000000 !important; }

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

/* Home hero: white text on a 80% light-blue box over a photo measured about 2.2:1. Same blue hue, deeper tint. */
.rs-layer.bg-orange { background-color: rgba(14, 98, 138, 0.9) !important; }

/* WPBakery "info" buttons: white on #58b9da was 2.2:1. Same hue, deeper. Hover goes deeper still. */
.vc_btn3.vc_btn3-color-info, .vc_btn3.vc_btn3-color-info.vc_btn3-style-flat, .vc_btn3.vc_btn3-color-info.vc_btn3-style-modern,
.vc_btn3.vc_btn3-color-info.vc_btn3-style-3d, .wpb_btn-info { background-color: #237f9f !important; color: #ffffff !important; }
.vc_btn3.vc_btn3-color-info:hover, .vc_btn3.vc_btn3-color-info:focus { background-color: #1a6580 !important; color: #ffffff !important; }
.vc_btn3.vc_btn3-color-info.vc_btn3-style-outline { color: #237f9f !important; border-color: #237f9f !important; background: transparent !important; }

/* Links inside form labels and descriptions must not rely on color alone. */
.gform-field-label a, .gfield_label a, .ginput_container a, label a { text-decoration: underline; text-underline-offset: 2px; }

/* Home hero "Get Started": white on bright orange measured 2.2:1. Keep the orange, use dark text. */
#slider-52-slide-142-layer-0, rs-layer.rs-layer[id$="layer-0"] a, #slider-52-slide-142-layer-0 * { color: #1f2a30 !important; }
/* Language selector: gray text on a gray ground */
.gt_switcher .gt_selected a, .gt_switcher .gt_option a, .gt_switcher a { color: #1f2a30 !important; }

/* Reflow at 320px: Gravity Forms choice rows pushed the enrollment page sideways. */
.gform_wrapper .gchoice, .gform_wrapper .gfield_checkbox, .gform_wrapper .gfield_radio, .gform_wrapper .ginput_container { max-width: 100%; box-sizing: border-box; }
.gform_wrapper .gchoice label, .gform_wrapper .gfield_label { overflow-wrap: anywhere; white-space: normal; }
.gform_wrapper .gfield_checkbox, .gform_wrapper .gfield_radio { flex-wrap: wrap !important; }
@media (max-width: 480px) { .gform_wrapper .gfield_checkbox, .gform_wrapper .gfield_radio { display: block !important; } .gform_wrapper .gchoice { display: block !important; width: 100% !important; } }

/* Text over photographs: add a dark scrim in the same photo so white text reaches its threshold. Measured on the rendered pixels. */
.cws-scrim { position: relative; }
.cws-scrim::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); pointer-events: none; z-index: 0; }
.cws-scrim > * { position: relative; z-index: 1; }
.banner-overlay { background-image: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.82) 100%) !important; }

/* Pink accent bands (state pages): white text on the 80% pink overlay measured 3.6 to 4.4:1. Same pink hue, deeper. */
.bg-overlay::after { background-color: rgba(190, 20, 70, 0.88) !important; }

/* Data tables stack into labeled blocks on narrow screens (reflow at 320px, WCAG 1.4.10). */
@media (max-width: 640px) {
  table.cws-stack, table.cws-stack tbody, table.cws-stack tr, table.cws-stack td { display: block; width: 100%; box-sizing: border-box; }
  table.cws-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  table.cws-stack caption { display: block; }
  table.cws-stack tr { margin-bottom: 14px; border: 1px solid #c7d0d6; }
  table.cws-stack td { border: 0; border-bottom: 1px solid #e3e8eb; overflow-wrap: anywhere; }
  table.cws-stack td::before { content: attr(data-label) ": "; font-weight: 700; color: #1f2a30; }
}
