/* Keep the focused element for assistive technology and dialog navigation.
   Suppress the decorative rings only while the phone is used by touch. */
@layer bk-touch-focus {
  @media (hover: none) and (pointer: coarse) and (max-width: 760px),
         (hover: none) and (pointer: coarse) and (max-height: 520px) {
    html { -webkit-tap-highlight-color: transparent; }

    html:not([data-bk-keyboard-focus]) :is(:focus, :hover, :active, :focus-within),
    html:not([data-bk-keyboard-focus]) .pricing-section input:focus + span {
      outline: none !important;
    }

    html:not([data-bk-keyboard-focus]) .learning-catalog :is(.learning-category:not(.open), .topic-card):is(:focus-within, :hover, :active) {
      border-color: var(--kfz-catalog-line, var(--kk-catalog-line, var(--kk-learn-line, var(--line)))) !important;
    }
  }
}
