.learndash-wrapper .ld-focus .ld-tab-content {
  ol,
  ul {
    &:not(.blocks-gallery-grid):not(.wp-block-gallery) {
      /* Force an override learndash's 40px left padding for ordered lists */
      padding-left: 30px !important;
    }
  }
}

.ld-focus-content ol,
.single-content ol {
  padding-left: 30px;
  display: block;

  > li {
    list-style: none;
    display: list-item;
    position: relative;
    margin-bottom: 5px;

    &::before {
      content: counter(list-item) ')\a0';
      white-space: nowrap;
      position: absolute;
      top: 0;
      left: -35px;
      display: block;
      width: 30px;
      text-align: right;
      letter-spacing: 0.075em;
    }
  }

  &[type='A'] > li::before,
  &[style*='list-style-type: upper-alpha'] li::before {
    content: counter(list-item, upper-alpha) ')\a0';
  }

  &[type='a'] > li::before,
  &[style*='list-style-type: lower-alpha'] li::before {
    content: counter(list-item, lower-alpha) ')\a0';
  }

  &[type='I'] > li::before,
  &[style*='list-style-type: upper-roman'] li::before {
    content: counter(list-item, upper-roman) ')\a0';
  }

  &[type='i'] > li::before,
  &[style*='list-style-type: lower-roman'] li::before {
    content: counter(list-item, lower-roman) ')\a0';
  }

  &[style*='list-style-type: lower-greek'] li::before {
    content: counter(list-item, lower-greek) ')\a0';
  }
}

.ol-paren {
  list-style: none !important;
  position: relative !important;

  > li {
    bottom: 0 !important;
    padding-left: 2rem !important;

    &::before {
      white-space: nowrap;
      left: 0 !important;
      width: 2rem !important;
      position: absolute;
    }
  }
}

li.list-expanded {
  line-height: 2.5em !important;
}

.demme-content li:has(ol) {
  padding-left: theme('fontSize.base');
}

/** List Item with Parenthesis */
.list-item::before {
  font-weight: normal !important;
  content: counter(list-item) ')\a0' !important;
}
.list-bold-item::before {
  font-weight: bold !important;
  content: counter(list-item) ')\a0' !important;
}

/** List Item with Parenthesis + Upper Alpha */
.list-upper-alpha-item::before {
  font-weight: normal !important;
  content: counter(list-item, upper-alpha) ')\a0' !important;
}
.list-bold-upper-alpha-item::before {
  font-weight: bold !important;
  content: counter(list-item, upper-alpha) ')\a0' !important;
}

/** List Item with Parenthesis + Lower Alpha */
.list-lower-alpha-item::before {
  font-weight: normal !important;
  content: counter(list-item, lower-alpha) ')\a0' !important;
}
.list-bold-lower-alpha-item::before {
  font-weight: bold !important;
  content: counter(list-item, lower-alpha) ')\a0' !important;
}

.nudged li::before,
.nudged li::marker {
  position: absolute;
  top: var(--offset) !important;
  left: -1.5em;
}

/* Enhanced nudging styles */
.nudged li {
  position: relative !important;
}
ul.list-arrow-item-list,
ul.list-arrow-left-item-list {
  list-style-type: initial;
  list-style: initial;
}

ul.list-arrow-item-list {
  list-style-image: url('../img/gray-arrow-bullet.svg');
}

ul.list-arrow-left-item-list {
  list-style-image: url('../img/gray-arrow-bullet-left.svg');
}
