:root{
  --button-hover-background:#292929;
  --button-hover-foreground:#fff;
}

/* Apply the graphite hover only to filled primary buttons. */
@layer button-hover{
  @media (any-hover:hover){
    :is(button.primary,a.btn.primary,a.action-primary):not(:disabled,[aria-disabled="true"],[inert] *):hover{
      background-color:var(--button-hover-background)!important;
      border-color:var(--button-hover-background)!important;
      color:var(--button-hover-foreground)!important;
      -webkit-text-fill-color:currentColor!important;
    }
  }
}
