/* Deshays Designs Accessibility - front-end styles. */

/* Visually hidden, still announced by screen readers. */
.dda-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Skip link: only visible while focused. */
.dda-skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 100000;
	padding: 12px 18px;
	border-radius: 0 0 4px 4px;
	background: #171717;
	color: #fff;
	font: 600 16px/1.2 Arial, sans-serif;
	text-decoration: none;
}

.dda-skip-link:focus {
	top: 0;
	color: #fff;
	outline: 3px solid #dfb758;
	outline-offset: 2px;
}

/* Visible keyboard focus (Divi ships a global `:focus { outline: 0 }`). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
.mobile_menu_bar:focus-visible {
	outline: 3px solid #171717 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #fff !important;
}

#main-content:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* FAQ / toggle: real button inside the heading, styled like the old heading text. */
.dda-toggle-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	text-transform: inherit;
	cursor: pointer;
}

/* Slider pause control. */
.et_pb_slider {
	position: relative;
}

.dda-slider-toggle {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 20;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 2px solid #fff;
	border-radius: 4px;
	background: #171717;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

/* Contrast: dark text on the gold header menu bar (was white, about 2:1). */
body .et-l--header .et_pb_menu_0_tb_header.et_pb_menu ul li a,
body .et-l--header .et_pb_menu_0_tb_header.et_pb_menu .mobile_menu_bar:before {
	color: #171717 !important;
}

/* Slider dots: keep the small visible dot but give it a 24x24px hit area (WCAG 2.5.8). */
body .et-pb-controllers a {
	box-sizing: content-box;
	width: 7px;
	height: 7px;
	padding: 8.5px;
	margin-right: 0;
	background-clip: content-box;
}

/* Contrast: the brand gold (#dfb758) is only 1.9:1 on white, so darken it for gold heading text in page content. */
.entry-content .et_pb_text_inner :is(h1, h2) span[style*="dfb758"],
.entry-content .et_pb_text_inner :is(h1, h2) span[style*="DFB758"] {
	color: #8f6b1c !important;
}

/* Reflow at 200% zoom: fixed-width image modules must never exceed their column. */
@media (max-width: 980px) {
	body .et_pb_module.et_pb_image,
	body .et_pb_module.et_pb_image .et_pb_image_wrap,
	body .et_pb_module.et_pb_image .et_pb_image_wrap img {
		max-width: 100% !important;
	}

	body .et_pb_module.et_pb_image .et_pb_image_wrap img {
		height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dda-skip-link {
		transition: none;
	}
}
