/* ------------------------------------------
   ARTICLE LAYOUT (Mobile-first)
------------------------------------------- */
.wd-article {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  font-family: var(--font-base);

  /* Fix long words breaking weirdly */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* ------------------------------------------
   HERO IMAGE
------------------------------------------- */
.wd-article__hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

/* ------------------------------------------
   TITLE
------------------------------------------- */
.wd-article__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-md);
}

/* ------------------------------------------
   META
------------------------------------------- */
.wd-article__meta {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ------------------------------------------
   ARTICLE BODY
------------------------------------------- */
.wd-article__content {
  line-height: var(--line-height-base);
  font-size: var(--font-size-base);
}

.wd-article__content p {
  margin-bottom: var(--space-md);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  line-height: var(--line-height-base);
}

/* ------------------------------------------
   DESKTOP ENHANCEMENTS
------------------------------------------- */
@media (min-width: 768px) {

  .wd-article {
    padding: var(--space-xl) var(--space-md);
  }

  .wd-article__title {
    font-size: var(--font-size-xxl);
  }

  .wd-article__meta {
    font-size: 0.9rem;
    gap: var(--space-md);
  }
}

/* Headings inside article content only */
.wd-article__content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.wd-article__content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.wd-article__content h4 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.wd-article__content ul,
.wd-article__content ol {
  margin-bottom: var(--space-md);
}

.wd-article__content li {
  margin-bottom: 0.4rem;
}

.wd-article__content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

.wd-article__content br {
  line-height: 1.8;
}
