/**
 * Copyright IBM Corp. 2016, 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/config' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '../../globals/vars' as *;
@use '../../globals/imports' as *;
@use '../footer';
@use '../masthead';

@mixin dotcom-shell {
  :host(#{$c4d-prefix}-dotcom-shell),
  .#{$prefix}--dotcom-shell {
    display: flex;
    flex-direction: column;
    inline-size: 100%;
    padding-block-start: $spacing-09;

    .#{$prefix}--tableofcontents__sidebar {
      inset-block-start: $spacing-09;
    }
  }

  .#{$prefix}--dotcom-shell__content {
    flex: 1;
    margin: auto;
    inline-size: 100%;
    max-inline-size: 99rem;
  }

  :host(#{$c4d-prefix}-dotcom-shell-container),
  :host(#{$c4d-prefix}-dotcom-shell-composite) {
    display: contents;
  }
}
