:global .overview-index.doom-overview-index {
  h2 {
    letter-spacing: -0.02em;
    color: var(--rp-c-text-1);
    border-top: 1px solid var(--rp-c-divider-light);
    margin: 36px 0;
    padding-top: 36px;
    font-size: 24px;
    transition: color 0.5s;

    &:first-child:before {
      display: none;
    }
  }

  h3 > a {
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--rp-c-link);
    font-size: 18px;
    font-weight: 600;
    transition: color 0.5s;
  }

  h2,
  h3 {
    line-height: 1;
  }

  .rp-link:hover {
    border-bottom: 0;
  }
}

.overview-list {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.overview-groups a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--rp-c-text-code);
  transition: color 0.5s;
  overflow-wrap: break-word;
}

.overview-group-li {
  position: relative;

  &.level-2 {
    padding-left: 1px;

    &:before {
      left: -0.25rem;
    }
  }

  &.level-3 {
    padding-left: 8px;

    &:before {
      left: -0.25rem;
    }
  }

  &.level-4 {
    padding-left: 16px;

    &:before {
      left: -0.25rem;
    }
  }
}

.overview-group {
  break-inside: avoid;
  margin-bottom: 16px;
  background-color: var(--rp-c-bg-soft);
  border-radius: var(--rp-radius);
  padding: 24px;
  transition: background-color 0.5s;

  h3 {
    margin-top: 0;
    margin-bottom: 8px;

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

.overview-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rp-c-text-2);
}

@media (max-width: 768px) {
  .overview-groups a {
    font-size: 14px;
  }
}

.overview-group {
  width: 100%;
}

@media (min-width: 768px) {
  .overview-group {
    width: calc((100% - 16px) / 2);
  }
}

@media (min-width: 1024px) {
  .overview-group {
    width: calc((100% - 32px) / 3);
  }
}
