/* List Styles - Based on Figma Design */

/* ============================================
   ARTICLE CARD (Container for lists)
   ============================================ */

.article-card {
  background: var(--background-bg-primary, #ffffff);
  border-radius: 16px;
  box-shadow: 0 0.5px 1px rgba(33, 37, 41, 0.08);
  padding: 28px;
  width: 100%;
  max-width: 740px;
}

/* ============================================
   BASE LIST STYLES
   ============================================ */

.custom-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-list__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

.custom-list__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 24px;
  flex-shrink: 0;
}

.custom-list__text {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary, #212529);
}

/* ============================================
   BULLET LIST (with blue dot)
   ============================================ */

.custom-list--bullet .custom-list__marker::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background-color: #0d6efd;
  clip-path: polygon(
    30% 0%,
    70% 0%,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0% 70%,
    0% 30%
  );
  transform: rotate(22.5deg);
}

/* ============================================
   NUMBERED LIST (with blue numbers)
   ============================================ */

.custom-list--numbered {
  counter-reset: list-counter;
}

.custom-list--numbered .custom-list__item {
  counter-increment: list-counter;
}

.custom-list--numbered .custom-list__marker::before {
  content: counter(list-counter) ".";
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #0d6efd;
}

/* ============================================
   DARK MODE STYLES
   ============================================ */

html.dark .article-card {
  background: var(--background-bg-primary, #212529);
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2);
}

html.dark .custom-list__text {
  color: var(--text-primary, #ffffff);
}

/* Bullet stays blue in dark mode */
html.dark .custom-list--bullet .custom-list__marker::before {
  background-color: #3b82f6;
}

/* Number stays blue in dark mode */
html.dark .custom-list--numbered .custom-list__marker::before {
  color: #3b82f6;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  .article-card {
    padding: 20px;
    border-radius: 12px;
  }

  .custom-list__marker {
    width: 28px;
    min-width: 28px;
  }
}

@media (max-width: 480px) {
  .article-card {
    padding: 16px;
  }

  .custom-list__marker {
    width: 24px;
    min-width: 24px;
  }
}
