/*
 * hay-a11y.css — WCAG 2.2 AA adjustments, layered on top of hay-brand.css (Phase 2c).
 * Deliberate, minimal, defensible changes toward conformance. Loaded AFTER hay-brand.css.
 * Remove this one <link> to see the pixel-identical pre-accessibility look.
 *
 * Non-CSS conformance items handled elsewhere: alt-text remediation (1.1.1), CF7 form
 * label/required/error semantics (3.3.x/4.1.2), heading order/landmarks/skip-link (1.3.1/
 * 2.4.1), and target-size 2.5.8 (verified per-component; most targets meet 24px via padding).
 */

/* --- Legibility: drop the forced thin Orkney 300 -> Regular 400 for text & sub-headings.
       (Large display h1 [48pt] and the bold h2 keep their existing weights.) --- */
body, p, q, li, td, a, .tablepress, .entry-content, .entry-summary, .widget { font-weight:400 !important; }
h3, h4, h5, h6 { font-weight:400 !important; }

/* --- 1.4.3 Contrast (AA): accent grey #72797e = ~4.43:1 on white (fails 4.5:1 for normal
       text, and white-on-#72797e buttons fail too). Darken to #677074 (~5:1) wherever it
       carries text. Visually near-identical grey. Decorative borders/icons keep #72797e
       (they only need 3:1, which #72797e already meets). --- */
a { color:#677074; }
#header a, .has-accent-1-color, .has-accent-1-color:hover, span.entry-format, .lp-box-readmore { color:#677074; }
button, input[type="button"], input[type="submit"], input[type="reset"],
.btn-primary, .label-primary, input#submit,
.fluida-normalizedtags #content .tagcloud a { background-color:#677074; }

/* --- 1.4.1 Use of Color (A): underline in-content prose links so they aren't colour-only.
       Scoped to content; excludes WPBakery/theme buttons. Nav & footer keep their styling. --- */
.entry-content a:not([class*="btn"]):not([class*="vc_"]):not(.continue-reading-link):not(.maxbutton),
.entry-summary a:not([class*="btn"]):not([class*="vc_"]) { text-decoration:underline; }

/* --- 2.4.7 Focus Visible + 2.4.11 Focus Not Obscured (AA): clear keyboard-focus indicator.
       Uses :focus-visible so mouse users see no change. Brand red #b11616 (~5.9:1 on white). --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
#access-mmm a:focus-visible, .max-mega-menu a:focus-visible, .menu-item a:focus-visible {
  outline:3px solid #b11616 !important;
  outline-offset:2px;
}
