/* ==========================================================================
   Article body typography — news / blog / wiki article bodies
   --------------------------------------------------------------------------
   WHY THIS FILE EXISTS
   Tailwind's preflight (bundled in /css/tailwind.min.css) resets:
       blockquote, dd, dl, figure, h1..h6, hr, p, pre { margin: 0 }
       ol, ul { list-style: none; margin: 0; padding: 0 }
       h1..h6 { font-size: inherit; font-weight: inherit; line-height: inherit }

   The article containers (.blog-content / .prose-content / .prose) had NO
   rules anywhere on the site, so inside an article body:
       · every <p> rendered with zero spacing   -> paragraphs fused into a wall
       · every <h2>/<h3> looked identical to body copy -> headings invisible
       · every <ul>/<ol> lost its bullets and indentation
       · <figure> lost its vertical margin, so inline photos touched the text

   The rules below restore a readable article rhythm. They are scoped to the
   article container classes only, so navigation, cards, CTAs and footers are
   untouched.

   Layout reference — thefabricator.com article page:
       article.single .entry-article       { font-size:1.05rem; line-height:1.65 }
       article.single .entry-article h2    { font-size:1.35rem; font-weight:700;
                                            margin:2rem 0 .5rem }
       article.single .entry-article h3    { font-size:1.3rem }

   Added here on top of that reference: a real h3/h4 hierarchy (h3 is smaller
   than h2, unlike the reference), list bullets, figure margins and orphan
   control — the three things the reference gets from its base framework and
   we had to restore by hand.

   Added: 2026-11-05   (fixes the "text is crammed together" complaint on
   /news/ pages — the layout bug affected every language at once because it
   lived in the shared template, not in the translation.)
   ========================================================================== */

.blog-content,
.prose-content,
.prose {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #374151;
}

/* --- paragraphs -------------------------------------------------------- */
.blog-content > p,
.prose-content > p,
.prose > p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.blog-content > p:last-child,
.prose-content > p:last-child,
.prose > p:last-child {
  margin-bottom: 0;
}

/* --- headings ---------------------------------------------------------- */
.blog-content > h2,
.prose-content > h2,
.prose > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin: 2.25rem 0 0.85rem;
  text-wrap: balance;
}

.blog-content > h3,
.prose-content > h3,
.prose > h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
  margin: 1.75rem 0 0.6rem;
  text-wrap: balance;
}

.blog-content > h4,
.prose-content > h4,
.prose > h4 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
  margin: 1.25rem 0 0.5rem;
}

/* first heading in the body sits closer to the top */
.blog-content > h2:first-child,
.prose-content > h2:first-child,
.prose > h2:first-child {
  margin-top: 0;
}

/* --- lists ------------------------------------------------------------- */
/* padding-inline-start (not padding-left) so the indent follows the reading
   direction — the Arabic pages are RTL and a physical left indent would
   leave the bullets on the wrong side. */
.blog-content > ul,
.prose-content > ul,
.prose > ul {
  list-style: disc;
  margin: 0 0 1rem;
  padding-inline-start: 1.5rem;
}

.blog-content > ol,
.prose-content > ol,
.prose > ol {
  list-style: decimal;
  margin: 0 0 1rem;
  padding-inline-start: 1.5rem;
}

.blog-content li,
.prose-content li,
.prose li {
  margin-bottom: 0.4rem;
}

.blog-content li:last-child,
.prose-content li:last-child,
.prose li:last-child {
  margin-bottom: 0;
}

.blog-content li > p,
.prose-content li > p,
.prose li > p {
  margin: 0 0 0.4rem;
}

.blog-content li > ul,
.blog-content li > ol,
.prose-content li > ul,
.prose-content li > ol,
.prose li > ul,
.prose li > ol {
  margin: 0.4rem 0 0;
  padding-inline-start: 1.25rem;
}

/* --- quotes ------------------------------------------------------------ */
.blog-content > blockquote,
.prose-content > blockquote,
.prose > blockquote {
  margin: 1.5rem 0;
  padding-block: 0.15rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid #d1d5db;
  color: #4b5563;
  font-style: italic;
}

/* --- media ------------------------------------------------------------- */
.blog-content > figure,
.prose-content > figure,
.prose > figure {
  margin: 1.75rem 0;
}

.blog-content figure figcaption,
.prose-content figure figcaption,
.prose figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

/* --- tables ------------------------------------------------------------ */
.blog-content > table,
.prose-content > table,
.prose > table {
  margin: 1.5rem 0;
}

/* --- long tokens ------------------------------------------------------- */
.blog-content p,
.blog-content li,
.prose-content p,
.prose-content li,
.prose p,
.prose li {
  overflow-wrap: break-word;
}
