/* ===========================================================================
   AOM Accessibility Fixes — stylesheet (divi-child)
   WCAG 2.2 AA remediations for stephencoatesdds.com, drafted from the full
   781-page axe-core audit of 2026-09-23/24. Loaded after style.css by
   inc/aom-a11y-fixes.php. Delete this file (or switch it off with the
   'aom_a11y_fix_enabled' filter, key 'stylesheet') to revert every rule here.
   ======================================================================== */

/* ---------------------------------------------------------------------------
   1. Comment form labels  (label 1,700 · label-title-only 425)
   Divi's script hides the comment form labels with display:none and shows
   placeholders instead. Screen readers can't read a display:none label, and
   placeholders disappear as soon as someone types. Keep the labels in the
   page but visually hidden, so the form looks exactly the same.
   ------------------------------------------------------------------------- */
#commentform label[for="comment"],
#commentform label[for="author"],
#commentform label[for="email"],
#commentform label[for="url"] {
	display: block !important;
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}


/* ---------------------------------------------------------------------------
   2. Colour contrast  (color-contrast 12,322)
   Brand colour change approved by Rachel (AOM) 2026-09-23.

   The site's accent teal #1cb7d8 is only 2.4:1 against white, so every white
   button label on it (Schedule, Submit Comment, tag cloud, load more…) and
   every teal link or label on white fails the 4.5:1 minimum. Approved
   replacement: #137a90 — the same hue, darkened just enough to pass
   (5.0:1 both ways). The two light greys used for post dates (#a0a0a0,
   #959595) become #6b6b6b (5.3:1).

   The rules below are every rule in divi-child/style.css that uses those
   colours, repeated with only the colour swapped (same selectors, same
   !important flags), so layout and everything else stays exactly as is.
   Hover colours that already pass (#2e5cba, 6.3:1) are left alone.
   ------------------------------------------------------------------------- */

.family_dentistry_menu .widget_nav_menu ul li a {
	color: #137a90;
}

.family_dentistry_menu .widget_nav_menu ul li a::before {
	color: #137a90;
}

.cosmetic_dentistry_menu .widget_nav_menu ul li a {
	color: #137a90;
}

.cosmetic_dentistry_menu .widget_nav_menu ul li a::before {
	color: #137a90;
}

#gform_submit_button_1 {
	background-color: #137a90;
}

.home_three .et_pb_button:hover {
	background-color: #137a90 !important;
}

.home_four .tcls-wrap .owl-controls .owl-nav [class*="owl-"] {
	color: #137a90 !important;
}

.et_pb_module.et_pb_testimonial .et_pb_testimonial_author {
	color: #137a90;
}

#nav_menu-3 #menu-sitemap-menu li a {
	color: #137a90;
}

.light_blue_btn {
	background-color: #137a90;
}

.dark_blue_btn:hover {
	background-color: #137a90 !important;
}

.home_seven .home_blog .post-content .more-link {
	color: #137a90 !important;
}

.home_blog .post-content .more-link {
	background-color: #137a90;
}

.form-submit .et_pb_button {
	background-color: #137a90;
}

.wp-pagenavi a:hover,
.wp-pagenavi span.current {
	background-color: #137a90;
	border-top-color: #137a90 !important;
	border-right-color: #137a90 !important;
	border-bottom-color: #137a90 !important;
	border-left-color: #137a90 !important;
}

.rpth_list_date {
	color: #6b6b6b;
}

.home_blog .post-meta {
	color: #6b6b6b !important;
}

.home_blog .post-meta a {
	color: #6b6b6b !important;
}

.nav li ul {
	border-top-color: #137a90;
	border-image-source: linear-gradient(to left, rgb(46, 92, 186), #137a90);
}

#et-top-navigation ul li a:hover {
	color: #137a90;
}

.txt_base_btn {
	color: #137a90;
}

.home_one .et_pb_button {
	background-color: #137a90;
}

#top-menu-nav > ul > li > a:hover {
	color: #137a90;
}

#et_search_icon::before {
	background-color: #137a90;
}

.two_btns .green_btn:hover {
	background-color: #137a90 !important;
}

.two_btns .blue_btn {
	background-color: #137a90;
}

.top_head_btn .schedule_btn {
	background-color: #137a90;
}

.phone_btn:hover {
	background-color: #137a90;
}

.schedule_btn {
	background-color: #137a90;
}

.footer-widget li::before {
	border-top-color: #137a90;
	border-right-color: #137a90;
	border-bottom-color: #137a90;
	border-left-color: #137a90;
}

.faq .phone_btn:hover {
	background-color: #137a90;
}

.link_btn {
	color: #137a90;
}

#btnloadmore {
	background-color: #137a90;
}

.st-tag-cloud a {
	background-color: #137a90;
}

#categories-2 ul li a:hover {
	color: #137a90;
}

#categories-2 ul li a::before {
	color: #137a90;
}

#categories-2 ul li:hover::before {
	border-top-color: #137a90;
	border-right-color: #137a90;
	border-bottom-color: #137a90;
	border-left-color: #137a90;
}

.rpwe-block li .rpwe-time {
	color: #6b6b6b !important;
}

@media screen and (max-width: 767px) {
	#et-top-navigation .et_mobile_menu li.current-menu-item > a {
		color: #137a90;
	}
	#et-top-navigation .et_mobile_menu li.current-menu-ancestor > a {
		color: #137a90;
	}
	.et_mobile_menu {
		border-top-color: #137a90;
	}
	.et_mobile_menu li a {
		border-bottom-color: #137a90;
	}
	#et-top-navigation .et_mobile_menu li a:hover {
		background-color: #137a90 !important;
	}
}


/* ---------------------------------------------------------------------------
   3. Links inside page and post text
   Divi's theme link colour (#2ea3f2, set in the Theme Customizer) is 2.7:1
   on white. Use the same accessible teal. :where() keeps specificity at the
   level of a plain "a" rule, so buttons and any link with its own styling
   are untouched.

   Because the darker teal sits close to the body text colour, links inside
   a sentence also get an underline, so they can be told apart without
   relying on colour alone (WCAG 1.4.1, axe rule link-in-text-block).

   Long-term tidy-up: set Divi > Theme Customizer > General Settings > Link
   Color to #137a90 as well, then this block becomes a safety net.
   ------------------------------------------------------------------------- */
:where(#main-content) a {
	color: #137a90;
}

:where(#main-content p, #main-content .entry-content li, #main-content .et_pb_text_inner li) a {
	text-decoration: underline;
	text-underline-offset: 2px;
}


/* ---------------------------------------------------------------------------
   4. Screen-reader-only text
   Used for the archive page heading (by default) and anywhere else text is
   meant for screen readers but not shown on screen.
   ------------------------------------------------------------------------- */
.aom-a11y-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Visible archive heading, only used if the site opts in with
   add_filter( 'aom_a11y_archive_heading_visible', '__return_true' ). */
.aom-archive-title {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	color: #2e5cba;
	text-transform: uppercase;
	padding-bottom: 20px;
	margin: 0 0 20px;
	border-bottom: 1px solid #e2e2e2;
}


/* ---------------------------------------------------------------------------
   5. Widget titles now printed as <h2> instead of <h4>  (heading-order)
   inc/aom-a11y-fixes.php changes the tag so no heading level is skipped.
   These rules keep exactly the look the old <h4> titles had (values taken
   from the live site's computed styles, 2026-09-24).
   ------------------------------------------------------------------------- */
#sidebar h2.aom-widget-title,
.et_pb_widget_area h2.aom-widget-title {
	font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
	font-size: 18px;
	font-weight: 500;
	font-style: normal;
	line-height: 18px;
	color: #333333;
	text-transform: none;
	letter-spacing: normal;
	margin: 0;
	padding: 0 0 10px;
}

#footer-widgets h2.aom-widget-title {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
	font-size: 22px;
	font-weight: 400;
	font-style: normal;
	line-height: 22px;
	color: #2e5cba;
	text-transform: uppercase;
	letter-spacing: normal;
	margin: 0;
	padding: 0 0 15px;
}

/* The comment form title "Submit a Comment" is now an <h2> (was <h3>). */
h2#reply-title.comment-reply-title {
	font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
	font-size: 22px;
	font-weight: 400;
	font-style: normal;
	line-height: 22px;
	color: #333333;
	text-transform: none;
	letter-spacing: normal;
	margin: 0;
	padding: 0 0 10px;
}

/* ---------------------------------------------------------------------------
   5. "Skip to content" link (fix 11, added 2026-09-25)
   Off screen until a keyboard user tabs to it; then it appears top left.
   ------------------------------------------------------------------------- */
a.aom-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
}
a.aom-skip-link:focus {
	left: 8px;
	top: 8px;
	padding: 10px 16px;
	background: #ffffff;
	color: #137a90;
	border: 2px solid #137a90;
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-decoration: underline;
	outline: 2px solid #137a90;
	outline-offset: 2px;
}
/* The skip link moves focus to the content area; no box around the whole area. */
#main-content:focus {
	outline: none;
}
