/*
Theme Name: Medicross Child
Theme URI: https://www.forkshospital.org/
Description: Child theme for Medicross. Holds all ADA/WCAG 2.1 AA remediation for Forks Community Hospital so that fixes survive parent theme updates. Do not edit the parent theme.
Author: Forks Community Hospital web team
Template: medicross
Version: 1.0.0
Text Domain: medicross-child
*/

/* ==========================================================================
   WCAG 2.1 AA remediation — Forks Community Hospital
   Each block cites the success criterion it addresses.
   ========================================================================== */

/* --- 2.4.1 Bypass Blocks: skip link -------------------------------------
   Visually hidden until focused, then pinned top-left above all chrome. */
.fch-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 20px;
	background: #ffffff;
	color: #0d3d44;
	font-weight: 700;
	text-decoration: underline;
	border: 2px solid #0d3d44;
	border-radius: 0 0 4px 0;
}
.fch-skip-link:focus {
	left: 0;
	outline: 3px solid #0d3d44;
	outline-offset: 2px;
}

/* --- 1.3.1 / 4.1.2: visually-hidden label text --------------------------
   Available to assistive tech, removed from the visual layout. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	white-space: normal;
}

/* --- 2.4.7 Focus Visible ------------------------------------------------
   Medicross suppresses outlines in several places. Restore a consistent,
   high-contrast focus ring for every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #0d3d44 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9) !important;
}

/* --- 2.1.1 Keyboard: search popup trigger --------------------------------
   The parent theme rendered this control as a <div>, so it was neither
   focusable nor announced. The child template emits a real <button>; this
   strips the default button chrome so the visual result is unchanged. */
button.pxl-search-popup-button {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	line-height: inherit;
	cursor: pointer;
}

/* --- 1.4.3 Contrast (Minimum): provider / testimonial job titles ---------
   Medicross hardcodes #848b94 for this one carousel variant, which is
   3.44:1 on white and fails the 4.5:1 requirement for body text. Every other
   .pxl-item--position variant uses #68747a (4.81:1) and already passes.
   #5f6672 is 5.78:1 - still a muted secondary grey, but with real margin.

   Note the failing colour is theme CSS, not an Elementor Global Color, so
   unlike the --e-global-color-secondary change this fix lives in code and
   travels with the child theme. */
.pxl-testimonial-carousel2 .pxl-swiper-slide .pxl-item--inner .pxl-item--position {
	color: #5f6672;
}
