/**
 * 12D – OceanWP Compatibility
 *
 * File: assets/css/oceanwp-compat.css
 *
 * Purpose
 * -------
 * Provides narrowly scoped compatibility corrections for frontend
 * behavior introduced by the OceanWP theme.
 *
 * These rules apply only when OceanWP is the active parent theme.
 */

/*
 * Pointer-induced focus
 *
 * OceanWP may display a transient outline or box-shadow on links,
 * buttons, or their descendants after pointer interaction.
 *
 * Suppress that presentation only when :focus-visible is not active,
 * preserving intentional keyboard Focus indicators.
 */
body.wp-theme-oceanwp a:focus:not(:focus-visible),
body.wp-theme-oceanwp a:focus:not(:focus-visible) *,
body.wp-theme-oceanwp button:focus:not(:focus-visible),
body.wp-theme-oceanwp button:focus:not(:focus-visible) * {
  outline: none !important;
  box-shadow: none !important;
}

/*
 * Active pointer interaction
 *
 * Suppress OceanWP's transient active-state outline / box-shadow on
 * conventional fine-pointer devices. Keyboard :focus-visible styling
 * remains unaffected.
 */
@media (hover: hover) and (pointer: fine) {
  body.wp-theme-oceanwp a:active,
  body.wp-theme-oceanwp a:active *,
  body.wp-theme-oceanwp button:active,
  body.wp-theme-oceanwp button:active * {
    outline: none !important;
    box-shadow: none !important;
  }
}

/* End of file oceanwp-compat.css */
