/*
 * Authored accessibility overrides (post-migration issue 16).
 *
 * This file is NOT carried WP output. It exists so that accessibility fixes
 * to rendering behaviour can be made without editing the frozen, minified
 * CSS under public/ (see CLAUDE.md). It is linked from src/layouts/Frozen.astro
 * immediately after the frozen head fragment so it wins the cascade.
 *
 * Keep it small and specific: one rule per documented defect.
 */

/* --------------------------------------------------------------------------
 * WCAG 2.4.7 Focus Visible (A)
 * The carried WS Form CSS resolves to `outline-style: none` on the contact
 * form's text fields, so keyboard users get no focus indicator at all on
 * name / email / phone / message. Every other control on the site already
 * has one. Brand purple, drawn outside the field so the field's own border
 * is unchanged.
 * -------------------------------------------------------------------------- */
#ws-form-1 .wsf-field:focus,
#ws-form-1 .wsf-field:focus-visible {
  outline: 2px solid #7e306c;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
 * WCAG 1.4.1 Use of Colour (A)
 * Links inside body copy are distinguished from the surrounding text by
 * colour alone (link #7f306c against text #404040 = 1.25:1, below the 3:1
 * required when colour is the only cue). Underlining them keeps the brand
 * colour untouched. Scoped to prose inside <main> so the header, footer and
 * menu link lists are unaffected.
 * -------------------------------------------------------------------------- */
#brx-content .brxe-text a:not([class]),
#brx-content .brxe-text-basic a:not([class]),
#brx-content .brxe-post-content a:not([class]),
#brx-content .wp-block-paragraph a:not([class]) {
  text-decoration: underline;
}
