@mixin sky-modern-overrides(
  $selector: '',
  $encapsulate: true,
  $affectsAll: false
) {
  @if $encapsulate {
    @if $affectsAll {
      :host-context(.sky-theme-modern) #{$selector} {
        @content;
      }
    } @else {
      :host-context(.sky-theme-modern:not(.sky-theme-brand-blackbaud))
        #{$selector} {
        @content;
      }
    }
  } @else {
    @if $affectsAll {
      .sky-theme-modern #{$selector} {
        @content;
      }
    } @else {
      .sky-theme-modern:not(.sky-theme-brand-blackbaud) #{$selector} {
        @content;
      }
    }
  }
}

@mixin sky-modern-v2($selector: '', $encapsulate: true) {
  @if $encapsulate {
    :host-context(.sky-theme-modern.sky-theme-brand-blackbaud) #{$selector} {
      @content;
    }
  } @else {
    .sky-theme-modern.sky-theme-brand-blackbaud #{$selector} {
      @content;
    }
  }
}

@mixin sky-modern-v2-html() {
  html:has(.sky-theme-brand-blackbaud) {
    @content;
  }
}
