//
// Copyright IBM Corp. 2020, 2023
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@use '@carbon/styles/scss/breakpoint' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/ibmdotcom-styles/scss/globals/vars' as *;

:host(#{$c4d-prefix}-content-block-card-static) {
  display: block;
  margin-block-end: $spacing-10;

  @include breakpoint(md) {
    margin-block-end: $spacing-12;
  }

  @include breakpoint(max) {
    margin-block-end: $spacing-13;
  }

  ::slotted(#{$c4d-prefix}-content-block-heading) {
    margin-block-start: $spacing-07;

    @include breakpoint(max) {
      margin-block-start: $spacing-10;
    }
  }

  ::slotted(#{$c4d-prefix}-content-item) {
    margin-block: $spacing-10 $spacing-07;
    margin-inline-start: $spacing-05;

    @include breakpoint(md) {
      margin-block-end: $spacing-09;
    }
  }

  ::slotted([slot='footer']) {
    inline-size: auto;
    margin-block-start: -$spacing-05;
  }
}
