/* ============================================================
   wcag-s0092-emerald.css
   WCAG 2.1 Level AA override for the S0092-Emerald Kentico template.
   Owner of TFS 2849882 (1.4.11 form control contrast).

   Selectors verified against the live base CSS pulled from
   https://affinityatkendrick.com on 2026-05-07.

   Audit findings:
   - Base CSS (~25KB / 313 rules). No outline-suppression in
     template CSS; Bootstrap still removes them.
   - Form: #contactUsEnhancedContainer .form-control
       { border-color:#000; border-width:0 0 1px 0 }
     Black border passes 3:1 trivially. The TFS 2849882 form-
     contrast failure must be on a DIFFERENT form element on
     the live page (Silktide flagged something specific).
     Refine this file at deploy time after identifying the
     actual failing form control.
   - Footer link colors look correct (#fff, #efefef on dark).

   Specificity strategy:
   Every selector is prefixed with `body #form` to lift above
   widget CSS load order.
   ============================================================ */


/* ------------------------------------------------------------
   WCAG 2.4.7 Focus Visible
   Bootstrap suppressors plus general fallback.
   ------------------------------------------------------------ */
body #form .navbar-toggle:focus-visible,
body #form .dropdown-toggle:focus-visible,
body #form .btn:focus-visible,
body #form .form-control:focus-visible,
body #form a:focus-visible,
body #form button:focus-visible,
body #form input:focus-visible,
body #form select:focus-visible,
body #form textarea:focus-visible,
body #form [tabindex]:focus-visible,
body #form [role="button"]:focus-visible,
body #form .footer-widget footer a:focus-visible {
  /* Webkit-style two-ring halo: blue inner ring + white outer ring
     gives focus visibility on both light AND dark backgrounds.
     The `outline` declaration is intentionally omitted — outline
     paints on top of box-shadow and would cover the white ring. */
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #005fcc, 0 0 0 3px #fff;
}


/* ------------------------------------------------------------
   WCAG 2.4.11 Focus Not Obscured
   Default 80px scroll-padding; verify and adjust on live site.
   ------------------------------------------------------------ */
html {
  scroll-padding-top: 80px;
}

body #form :focus-visible {
  scroll-margin-top: 80px;
}


/* ------------------------------------------------------------
   WCAG 1.4.11 Non-text Contrast (TFS 2849882 form control)
   #contactUsEnhancedContainer .form-control already has
   border-color:#000 (passes). The flagged element is likely
   ELSEWHERE — possibly the contactus-floating widget, search
   bar inputs, or a different form. PLACEHOLDER override below
   covers the generic input case; refine after identifying the
   exact failing element via Silktide on the deployed page.
   ------------------------------------------------------------ */
body #form input.form-control,
body #form select.form-control,
body #form textarea.form-control,
body #form .contactus-float-input-div input,
body #form .contactus-float-input-div textarea,
body #form input[type="text"],
body #form input[type="email"],
body #form input[type="tel"],
body #form input[type="search"],
body #form select,
body #form textarea {
  border-color: #595959;
}

body #form input::placeholder,
body #form textarea::placeholder {
  color: #595959;
  opacity: 1;
}


/* ------------------------------------------------------------
   WCAG 1.4.3 Contrast Minimum (footer disclosure)
   ------------------------------------------------------------ */
body #form .footer-widget footer .footer-disclosure {
  opacity: 0.85;
}


/* ------------------------------------------------------------
   WCAG 1.4.1 Use of Color (inline links)
   ------------------------------------------------------------ */
body #form .main-content-text a,
body #form .inner-page-main-content a,
body #form .mainContent a,
body #form main p a,
body #form article p a,
body #form .content p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body #form .btn,
body #form .button,
body #form header a,
body #form nav a,
body #form .navbar a,
body #form footer a,
body #form .footer-widget footer a,
body #form .footer-CTA-Button,
body #form .header-CTA-button,
body #form a.more-link,
body #form a.less-link {
  text-decoration: none;
}


/* ------------------------------------------------------------
   TFS 2870264 — WCAG 1.4.1 (homepage inline links)
   Emerald's homepage welcome zone is
   `<div id="welcome" class="main-row">` containing
   `.contentTable > .contentCell.welcomeCell.welcomeText` for
   the inline-text content (sibling `.welcomeImages` holds
   images). The `#connect` row beneath is utility info (office
   address, phone) — those links are wrapped CTAs, not inline
   prose, so opted out.
   ------------------------------------------------------------ */
body #form #welcome .welcomeText a,
body #form .welcomeCell.welcomeText a,
body #form .contentCell.welcomeText a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body #form #connect a,
body #form .connectInfoWrapper a,
body #form .connectOffice a,
body #form a.seo-number {
  text-decoration: none;
}


/** ------------------------------------------------------------
   WCAG 2.2 AA 2.5.8 Target Size (Pointer)
   ------------------------------------------------------------ */
.footer-widget footer .footer-nav>ul>li a,
.footer-widget footer.footer-1 a {
    line-height: 24px;
}
.footer-widget footer .footer-content #link-rp {
    margin-bottom: 15px;
}