//
// Copyright IBM Corp. 2023, 2025
//
// 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/spacing' as *;
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/type';
@use '@carbon/styles/scss/config' as carbon-config;

@use '../../global/styles/project-settings' as *;

$block-class: #{$pkg-prefix}--simple-header;

.#{$block-class} {
  padding: $spacing-04 $spacing-07;
  background-color: $layer-01;
  border-block-end: 1px solid $border-subtle-01;
  inline-size: 100%;
}

.#{$block-class}__title {
  @include type.type-style('heading-04');
}

.#{$block-class}__breadcrumbs + .#{$block-class}__title {
  // add margin top to the title if breadcrumbs exist
  margin-block-start: $spacing-02;
}

.#{$block-class}__breadcrumbs .#{carbon-config.$prefix}--breadcrumb-item,
.#{$block-class}__breadcrumbs
  .#{carbon-config.$prefix}--breadcrumb-item
  .#{carbon-config.$prefix}--link {
  @include type.type-style('label-01');
}
