// Copyright 2018-Present Okta, Inc.

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

ol,
ul {
  &:not([class]) {
    max-width: $max-line-length;
    margin: 0 0 $spacing-s 0;
    padding: 0 0 0 $spacing-m;
    list-style-position: outside;
    font-size: $size-body-sentence;

    li {
      &:last-child {
        margin-bottom: 0;
      }
    }

    &:last-child {
      margin-bottom: 0;
    }
  }
}

/* stylelint-disable-next-line no-descending-specificity */
ul:not([class]) {
  list-style-type: disc;
}

/* stylelint-disable-next-line no-descending-specificity */
ol:not([class]) {
  list-style-type: decimal;
}

dl:not([class]) {
  display: grid;
  grid-gap: $spacing-xs $spacing-m;
  grid-template-columns: repeat(2, minmax(min-content, max-content));
  max-width: $max-line-length;
  margin: 0 0 $spacing-s 0;
  padding: 0;
  font-size: $size-body-sentence;

  &:last-child {
    margin-bottom: 0;
  }

  dt {
    grid-column: 1/1;
    font-weight: 600;
  }

  dd {
    grid-column: 2/2;
    font-weight: 400;
  }
}
