/*
 * Accessibility fixes (WCAG 2.1 AA). Loaded by inc/accessibility.php.
 * Selectors are deliberately more specific than the Simple Custom CSS rules
 * (stored in the database) that they override.
 */

/* Skip link: hidden until focused (2.4.1). */
.cypr-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 20px;
	background: #fff;
	color: #14666e;
	font-weight: 700;
	text-decoration: underline;
}
.cypr-skip-link:focus {
	left: 8px;
	top: 8px;
	outline: 3px solid #14666e;
	outline-offset: 2px;
}

/* <main> is only a programmatic focus target for the skip link. */
.cypr-main:focus {
	outline: none;
}

/* New <nav>/<p> wrappers keep the old block layout and spacing. */
nav.menu-section,
nav.menu-section-footer {
	display: block;
}
.elementor-widget-heading p.elementor-heading-title {
	margin: 0;
}

/* --- Gravity Forms (form panels use a #a7b4bc background) --------------- */

/* "* indicates required fields" legend is hidden in Simple Custom CSS; restore it (3.3.2). */
.gform_wrapper.gravity-theme .gform_required_legend {
	display: block;
	color: #000;
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
	margin: 0 0 12px;
}

/* Required asterisk: #c02b0a on #a7b4bc is ~2.9:1. #7a0000 is ~5.5:1 (1.4.11). */
.gform_wrapper.gravity-theme .gfield_required,
.gform_wrapper.gravity-theme .gfield_required .gfield_required_asterisk {
	color: #7a0000;
}

/* File input: black text on #14676f was 3.19:1. White is ~6.6:1 (1.4.3). */
.gform_wrapper.gravity-theme .gfield input[type="file"] {
	color: #fff;
}

/* Read-only price/total: #990000 was 4.2:1, #006600 was 3.4:1 (1.4.3). */
.gform_wrapper.gravity-theme .ginput_product_price,
.gform_wrapper.gravity-theme .ginput_product_price_wrapper input {
	color: #7a0000;
}
.gform_wrapper.gravity-theme .ginput_total {
	color: #004d00;
}

/* Read-only inputs use .gform-text-input-reset, which removes the focus ring (2.4.7). */
.gform_wrapper.gravity-theme input.gform-text-input-reset:focus,
.gform_wrapper.gravity-theme input.gform-text-input-reset:focus-visible {
	outline: 3px solid #14666e;
	outline-offset: 2px;
}
