/* Vanyou guide-content
   Scoped styles for guide BlockGrid blocks (Step, RichText, FAQ, Callout, Image).
   Goal: tighten vertical rhythm inside lists and rich text content while
   preserving the Bootstrap card aesthetic of Step blocks. */

.guide-block-body p {
    margin-bottom: 0.75rem;
}

.guide-block-body p:last-child {
    margin-bottom: 0;
}

.guide-block-body ul,
.guide-block-body ol {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.guide-block-body ul li,
.guide-block-body ol li {
    margin-bottom: 0.25rem;
}

/* Remove default paragraph margin inside list items
   (RichText editor wraps each <li> content in <p>) */
.guide-block-body li > p {
    margin-bottom: 0;
}

.guide-block-body li > p + p {
    margin-top: 0.25rem;
}

/* Headings inside rich text get a tighter top spacing
   when they follow a paragraph */
.guide-block-body h3,
.guide-block-body h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Step block specifics: even tighter for the card-contained layout */
.guide-block-step .guide-block-body ul,
.guide-block-step .guide-block-body ol {
    margin-bottom: 0.5rem;
}

.guide-block-step .guide-block-body p {
    margin-bottom: 0.5rem;
}
