/**
 * BBWS: Post Distribution Receiver — frontend readability layer.
 *
 * Light-touch spacing and structure for posts distributed from the central
 * blog, so they read consistently across partner sites. Spacing/structure ONLY:
 * no fonts, no imposed colours (callout borrows the site's own text colour via
 * currentColor), no layout rebuild. Every rule is scoped under
 * .chadai-distributed-content so it can never leak into the rest of the site,
 * and the site's own theme still wins on anything not touched here.
 */

/* Comfortable reading rhythm. */
.chadai-distributed-content {
    line-height: 1.6;
}

/* Space between paragraphs and lists — the main "cramped" fix. */
.chadai-distributed-content p {
    margin: 0 0 1em;
}

.chadai-distributed-content ul,
.chadai-distributed-content ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.chadai-distributed-content li {
    margin: 0 0 0.4em;
}

.chadai-distributed-content li > ul,
.chadai-distributed-content li > ol {
    margin: 0.4em 0 0;
}

/* Breathing room above headings so sections don't run together;
   font sizes are left to the theme. */
.chadai-distributed-content h2,
.chadai-distributed-content h3,
.chadai-distributed-content h4 {
    margin: 1.8em 0 0.5em;
    line-height: 1.25;
}

.chadai-distributed-content > *:first-child,
.chadai-distributed-content h2:first-child,
.chadai-distributed-content h3:first-child {
    margin-top: 0;
}

.chadai-distributed-content img {
    height: auto;
}

/* Callout / "What this means for you" blockquotes: neutral and inherited.
   A quiet rule that borrows the site's own text colour — no imposed tint. */
.chadai-distributed-content blockquote {
    margin: 1.5em 0;
    padding: 0.2em 0 0.2em 1em;
    border-left: 2px solid rgba(127, 127, 127, 0.35);
    background: transparent;
    font-style: normal;
}

.chadai-distributed-content blockquote > *:first-child {
    margin-top: 0;
}

.chadai-distributed-content blockquote > *:last-child {
    margin-bottom: 0;
}

/* Code / preformatted blocks: tidy the default hard left line and give the
   block consistent, comfortable padding. Uses a faint neutral so it works on
   light or dark themes without imposing a colour. */
.chadai-distributed-content pre {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    border-left: 0;
    border-radius: 4px;
    background: rgba(127, 127, 127, 0.08);
    overflow-x: auto;
    line-height: 1.5;
}

.chadai-distributed-content pre code {
    padding: 0;
    background: transparent;
}
