
summary {
  @if ($wc-clr-collapsible-header-bg != -1) {
    background-color: $wc-clr-collapsible-header-bg;
  }

  @if ($wc-clr-collapsible-header-fg != -1) {
    color: $wc-clr-collapsible-header-fg;

    @if ($wc-clr-collapsible-header-fg != $wc-clr-heading) {
      > h1,
      > h2,
      > h3,
      > h4,
      > h5,
      > h6 {
        // override default heading colour;
        color: $wc-clr-collapsible-header-fg;
      }
    }
  }
}
