/*
Theme Name: Divi Accessible
Theme URI: https://pfmcok.com/
Description: WCAG 2.1 AA accessible child theme for Divi
Author: PFMCOK
Author URI: https://pfmcok.com/
Template: Divi
Version: 1.0.0
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: divi-accessible
Domain Path: /languages

This theme is a child of Divi and inherits all functionality from the parent theme.
*/

/* Accessibility enhancements */

/* Skip to main content link - hidden by default, visible on focus */
.skip-to-main-content {
	position: absolute;
	left: -9999px;
	z-index: 999;
	background-color: #000;
	color: #fff;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 0 0 4px 0;
	font-weight: 600;
	font-size: 14px;
}

.skip-to-main-content:focus {
	left: 0;
	top: 0;
	outline: 2px solid #4A90E2;
	outline-offset: 2px;
}

.visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within) {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.visually-hidden:not(caption), .visually-hidden-focusable:not(:focus):not(:focus-within):not(caption), .visually-hidden:not(.skip-link) {
  position: absolute !important;
}

/* Ensure landmarks don't visually conflict with existing styles */
main[role="main"] {
	/* Inherits from parent theme */
}

footer[role="contentinfo"] {
	/* Inherits from parent theme */
}

header[role="banner"] {
	/* Inherits from parent theme */
}

nav[role="navigation"] {
	/* Inherits from parent theme */
}
