/* Accessibility fixes (round 3) - loaded after global-styles. Keep rules small and scoped. */

/* Visually hidden but read by screen readers (e.g. form legends) */
.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;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link (WCAG 2.4.1): hidden until it receives keyboard focus */
.a11y-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
}
.a11y-skip-link:focus {
  left: 8px;
  top: 8px;
  padding: 10px 16px;
  background: #ffffff;
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: underline;
  outline: 3px solid #0056b3;
  border-radius: 4px;
}

/* In-text links must not rely on colour alone (WCAG 1.4.1): underline plain links inside body paragraphs */
#content p a:not([class]),
#content .entry-content li a:not([class]) {
  text-decoration: underline;
}
