/*
 * WCAG 2.2 AA fixes (scan QUAL-04, 2026-10-31). Loaded after style.css by inc/a11y.php.
 *   target-size            2.5.8  -> small icon / chip targets are at least 24x24 CSS px
 *   link-in-text-block     1.4.1  -> inline links are underlined, not distinguished by colour alone
 *   scrollable-region-focusable 2.1.1 -> keyboard-focusable scroll regions get a visible focus ring
 */

/* target-size: header search submit (14x16 icon button) */
.header-search button,
.hero-search__form button,
.widget-search button {
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-search button { padding: 4px; }

/* target-size: chips, pagination and footer / social links keep a 24px minimum box */
.tag,
.category-badge,
.pagination a,
.pagination .page-numbers,
.author-social-link,
.share-links__item {
  min-height: 24px;
  min-width: 24px;
  box-sizing: border-box;
}

/* link-in-text-block: underline links that sit inside running text */
:is(.entry-content, .article-content) a:not(.btn):not(.button):not(.td-button),
:is(.author-bio-body, .callout, .ai-disclosure, .page-content) a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
:is(.entry-content, .article-content) a:hover,
:is(.author-bio-body, .callout) a:hover {
  text-decoration-thickness: 2px;
}

/* scrollable-region-focusable: visible focus for the keyboard-reachable table scroller */
.table-scroll:focus-visible {
  outline: 2px solid var(--color-accent, currentColor);
  outline-offset: 2px;
}
