/* =====================================================================
   Accessibility fixes, 2026-09-30 (website/a11y-fixes-2026-09-30/report.md)
   Loaded after every other theme stylesheet (see header.php).
   Only the banner pause button is a visible change; everything else
   either shows on keyboard focus only or keeps the existing look.
   ===================================================================== */

/* ---------- Skip link: hidden until reached with the Tab key ---------- */
.skip-link {
  position: absolute; left: -10000px; top: 0;
  width: 1px; height: 1px; overflow: hidden; z-index: 100000;
}
.skip-link:focus {
  left: 10px; top: 10px; width: auto; height: auto; overflow: visible;
  padding: 10px 16px; background: #fff; color: #2c384b;
  font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: underline; border-radius: 4px;
  outline: 2px solid #2c384b; outline-offset: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

/* ---------- Focus outline, keyboard only (:focus-visible), theme navy #2c384b ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid #2c384b !important;
  outline-offset: 2px !important;
}
/* The theme turns outlines off on form fields with "!important"; this matches that rule's weight and loads later. */
.gform_wrapper input[type]:focus-visible,
.gform_wrapper textarea:focus-visible,
.gform_wrapper select:focus-visible {
  outline: 2px solid #2c384b !important;
  outline-offset: 2px !important;
}
/* Full-tile links (provider photos, office tours, services, footer tiles) sit inside boxes that clip
   their overflow, so the ring is drawn just inside the tile instead of outside it. */
a.block:focus-visible { outline-offset: -4px !important; }
/* The phone menu is navy, so its ring is white. */
#mobile-nav a:focus-visible { outline-color: #fff !important; outline-offset: -4px !important; }

/* ---------- Phone menu: closed menu links are not Tab stops ----------
   scripts.js sets visibility:visible when the menu opens and back to hidden after it closes. */
#mobile-nav { visibility: hidden; }

/* ---------- Menu icons (top bar and footer social menu) ----------
   The Font Awesome classes moved from the <li> to an empty <span class="menu-icon" aria-hidden="true">
   (functions.php). The <li> keeps what the ".fa" class gave it, and the span's icon is drawn exactly
   where the <li>'s own ::before icon used to be. */
li.menu-item-has-icon {
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  display: inline-block; font-style: normal; font-variant: normal; text-rendering: auto; line-height: 1;
  font-family: "Font Awesome 5 Pro"; font-weight: 900;
}
li.menu-item-has-icon.menu-item-icon-brands { font-family: "Font Awesome 5 Brands"; font-weight: 400; }
li.menu-item-has-icon > .menu-icon { display: contents; }
ul#menu-top-navigation li > .menu-icon:before {
  display: inline-block; vertical-align: middle; margin-right: 6px; color: #426836;
}
@media only screen and (max-width: 768px) {
  #main-header #nav-wrap #menu-top-navigation li > .menu-icon:before { color: #fff; }
}

/* ---------- Contact page: the office list wrapper is now a <div> (was a <ul> holding a heading) ---------- */
div.location-list { list-style: none; }

/* ---------- Homepage banner pause / play (WCAG 2.2.2) ---------- */
/* 2026-11-16: icon-only round button, 32 px, in the top right corner of the photo, 12 px in from the
   top and right edges. The name ("Pause slideshow" / "Play slideshow") is in aria-label and title. */
#banner.homepage .banner-pause {
  position: absolute; top: 12px; right: 12px; bottom: auto; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 32px; height: 32px; min-width: 32px; min-height: 32px;
  margin: 0; padding: 0; border: 1px solid #2c384b; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #2c384b;
  font-size: 12px; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
#banner.homepage .banner-pause i { font-size: 12px; width: 12px; text-align: center; line-height: 1; }
/* the play triangle looks off-centre to the left; nudge it */
#banner.homepage .banner-pause i.fa-play { margin-left: 2px; }
#banner.homepage .banner-pause:hover { background: #fff; }
/* Between 769 and 1099 px the fixed header wraps to two or three lines and hangs up to 63 px over
   the top of the photo (old theme behaviour), so there the button sits 75 px down, clear of it. */
@media only screen and (min-width: 769px) and (max-width: 1099px) {
  #banner.homepage .banner-pause { top: 75px; }
}

/* ---------- Headings: new levels, old look ----------
   Headings that were h5/h6 are now h2/h3 and carry class a11y-h5 or a11y-h6 (their old tag).
   First undo what the theme's h2/h3 rules would add, then repeat every theme h5/h6 rule for the
   class. ":not(#a11y)" adds one id of weight so these win over "h2" and "#main-content h2" while
   keeping the original rules' order among themselves. Generated by gen_heading_css.py. */
.a11y-h5:not(#a11y),
.a11y-h6:not(#a11y) {
  margin: 0; padding: 0;
  font-family: inherit; font-style: inherit; font-variant: inherit; font-stretch: inherit;
  font-weight: normal; line-height: inherit; letter-spacing: inherit;
  color: inherit; text-transform: inherit;
}
.a11y-h5:not(#a11y) { font-size: .83em; }
.a11y-h6:not(#a11y) { font-size: .67em; }
/* from style.css */
.text-form-wrap .title .a11y-h5:not(#a11y) {font-family: 'Montserrat', sans-serif; font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: #fff; display: inline-block; vertical-align: top;}
.text-form-wrap .title .a11y-h5:not(#a11y) i {display: inline-block; vertical-align: top; vertical-align: middle; font-size: 22px; margin-left: 12px; color: #a5cc58;}
.footer-content .a11y-h5:not(#a11y) {font-family: 'Merriweather', serif; font-size: 40px; color: #9bc747; font-style: italic; margin-bottom: 60px;}
.a11y-h5:not(#a11y).section-head {font-family: 'Montserrat', sans-serif; font-size: 34px; color: #9ca2b6; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 30px;}
#announcements .text-form-wrap .title .a11y-h5:not(#a11y) {color: #426836 !important;}
.provider-item .a11y-h6:not(#a11y) {font-family: 'Merriweather', serif; font-size: 14px; color: #2c384b;}
.provider-item:hover .a11y-h6:not(#a11y) {color: #9ca2b6;}
.title-bar .a11y-h5:not(#a11y) {margin: 0!important; padding: 0!important;}
.form-list-wrap .a11y-h5:not(#a11y) {font-family: 'Montserrat', sans-serif; font-size: 16px; color: #2c384b; text-transform: uppercase; padding-bottom: 10px;}
.item.blog > div .details .a11y-h5:not(#a11y) {font-family: 'Montserrat', sans-serif; font-size: 24px; text-transform: uppercase; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 2px solid #fff; line-height: 1.2;}
.a11y-h5:not(#a11y).icon-title {font-family: 'Montserrat', sans-serif !important; font-size: 20px !important; color: #9bc747 !important; text-transform: uppercase; text-align: center; padding: 80px 0 20px 0!important; font-style: normal!important; letter-spacing: .05em;}
.a11y-h5:not(#a11y).icon-title#sidebar-locations {background: url(images/icons/locations.svg) no-repeat top center; background-size: 80px auto;}
.a11y-h5:not(#a11y).icon-title#sidebar-testimonials {background: url(images/icons/testimonials.svg) no-repeat top center; background-size: 80px auto;}
.a11y-h5:not(#a11y).icon-title#sidebar-appointments {background: url(images/icons/calendar.svg) no-repeat top center; background-size: 80px auto;}
.a11y-h5:not(#a11y).icon-title#patient-forms {background: url(images/icons/forms.svg) no-repeat top center;}
.a11y-h5:not(#a11y).icon-title#patient-handouts {background: url(images/icons/handouts.svg) no-repeat top center;}
.a11y-h5:not(#a11y).icon-title#office-tours {background: url(images/icons/camera.svg) no-repeat top center;}
.a11y-h5:not(#a11y).icon-title#accepted-insurance {background: url(images/icons/insurance.svg) no-repeat top center;}
.a11y-h5:not(#a11y).icon-title.page {font-size: 26px!important; padding: 100px 0 20px 0!important; background-size: 100px auto!important;}
ul.location-list li .a11y-h6:not(#a11y) {font-family: 'Merriweather', serif; font-size: 20px; color: #9ca2b6; font-style: italic; margin-bottom: 5px;}
.tour-item .a11y-h5:not(#a11y) {font-family: 'Merriweather', serif; font-size: 18px; font-style: italic; color: #2c384b; -webkit-transition: all linear 150ms; -moz-transition: all linear 150ms; -ms-transition: all linear 150ms; -o-transition: all linear 150ms;}
.tour-item:hover .a11y-h5:not(#a11y) {color: #9ca2b6;}
#product-table td .a11y-h5:not(#a11y) {font-family: 'Montserrat', sans-serif; font-size: 18px; text-transform: uppercase;}
.product-item .a11y-h5:not(#a11y) {font-family: 'Montserrat', sans-serif; font-size: 18px; text-transform: uppercase;}
.product-item.main .a11y-h5:not(#a11y) {font-family: 'Montserrat', sans-serif; font-size: 18px; text-transform: uppercase;}
#main-content ul.awards li .fader .a11y-h6:not(#a11y) {position: relative; top: 50%; transform: translateY(-50%); font-family: 'Montserrat', sans-serif; font-size: 16px; text-transform: uppercase; color: #fff; line-height: 1.2;}
.single-location #tour .a11y-h5:not(#a11y).section-head {text-align: center;}
/* from devices.css */
@media only screen and (max-width: 768px) {
#footer .footer-content .a11y-h5:not(#a11y) {font-size: 36px; margin-bottom: 30px;}
.provider-item .a11y-h6:not(#a11y) {font-size: 16px;}
}
