/*
 * Blog post body typography.
 *
 * single.php wraps the_content() in Tailwind's `prose` classes, but the
 * typography plugin is not in the compiled build, so plain post HTML
 * (headings, paragraphs, lists, tables, figures) rendered as one unspaced
 * run of text. These rules mirror the case-page prose (case.css).
 *
 * Every selector sits under :where(.uw-blog-prose), so it has the
 * specificity of a bare element selector: older posts that carry their own
 * Tailwind utility classes on headings and paragraphs keep winning.
 */
:where(.uw-blog-prose) { color: #3f3f3f; font-size: 16.5px; line-height: 1.8; }
:where(.uw-blog-prose) > :first-child { margin-top: 0; }
:where(.uw-blog-prose) h2 { font-size: 26px; font-weight: 700; color: #1a1a1a; line-height: 1.3; margin: 44px 0 14px; }
:where(.uw-blog-prose) h3 { font-size: 20px; font-weight: 700; color: #1a1a1a; line-height: 1.35; margin: 32px 0 10px; }
:where(.uw-blog-prose) h4 { font-size: 16.5px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin: 24px 0 8px; }
:where(.uw-blog-prose) p { margin: 0 0 18px; }
:where(.uw-blog-prose) strong { font-weight: 700; color: #1a1a1a; }
:where(.uw-blog-prose) a { color: #5c8a52; text-decoration: underline; text-underline-offset: 2px; }
:where(.uw-blog-prose) a:hover { color: #4e7544; }
:where(.uw-blog-prose) ul,
:where(.uw-blog-prose) ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
:where(.uw-blog-prose) ol { counter-reset: uw-blog-ol; }
:where(.uw-blog-prose) li { position: relative; padding: 4px 0 4px 26px; line-height: 1.7; }
:where(.uw-blog-prose) ul > li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #5c8a52; }
:where(.uw-blog-prose) ol > li { counter-increment: uw-blog-ol; }
:where(.uw-blog-prose) ol > li::before { content: counter(uw-blog-ol) "."; position: absolute; left: 0; top: 4px; font-weight: 700; color: #5c8a52; }
:where(.uw-blog-prose) figure { margin: 28px 0; }
:where(.uw-blog-prose) figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
:where(.uw-blog-prose) figcaption { margin-top: 8px; font-size: 14px; color: #6b6b6b; line-height: 1.5; }
:where(.uw-blog-prose) .uw-blog-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; margin: 28px 0; }
@media (min-width: 641px) {
    :where(.uw-blog-prose) .uw-blog-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :where(.uw-blog-prose) .uw-blog-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
:where(.uw-blog-prose) .uw-blog-gallery figure { margin: 0; }
:where(.uw-blog-prose) table { width: 100%; border-collapse: collapse; margin: 24px 0 28px; font-size: 15px; line-height: 1.5; }
:where(.uw-blog-prose) th { text-align: left; font-weight: 700; color: #fff; background: #4e7544; padding: 10px 12px; }
:where(.uw-blog-prose) td { padding: 10px 12px; border-bottom: 1px solid #e6e1d8; vertical-align: top; }
:where(.uw-blog-prose) tbody tr:nth-child(even) td { background: #faf8f4; }

@media (max-width: 640px) {
    :where(.uw-blog-prose) h2 { font-size: 22px; margin-top: 36px; }
    :where(.uw-blog-prose) h3 { font-size: 18px; }
    :where(.uw-blog-prose) table { display: block; overflow-x: auto; font-size: 14px; }
}
