/*
 * Long-form article styles for blog posts whose body is wrapped in <div class="oxcel-article">
 * (e.g. the Oxcel Insights series). Scoped to that wrapper so older posts are unaffected.
 *
 * Hooks used by the article HTML:
 *   p.standfirst            intro paragraph under the title
 *   figure.chart            chart wrapper (<picture> SVG + PNG fallback) with figcaption
 *   h3#key-facts + ul       "Key facts" callout
 *   p.disclaimer            compliance disclaimer - must stay visible
 *   h3#sources-further-reading + ul   sources list
 */
.oxcel-article {
    --oa-ink: #16202A;
    --oa-text: #2C3A47;
    --oa-muted: #56636F;
    --oa-rule: #DCE1E6;
    --oa-teal: #0E7C7B;
    --oa-tint: #EEF5F5;
    --oa-heading-font: inherit;
    --oa-body-font: inherit;

    max-width: 760px;
    margin: 0 auto;
    color: var(--oa-ink);
    font-family: var(--oa-body-font);
}

.blog-details .user-blog-details .oxcel-article p,
.blog-details .user-blog-details .oxcel-article li {
    font-size: 18px;
    line-height: 1.7;
    color: var(--oa-ink);
    margin: 0 0 1em;
    padding: 0;
    text-align: left;
}

.blog-details .user-blog-details .oxcel-article p.standfirst {
    font-size: 21px;
    line-height: 1.55;
    color: var(--oa-text);
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--oa-rule);
}

.blog-details .user-blog-details .oxcel-article h2,
.blog-details .user-blog-details .oxcel-article h3 {
    font-family: var(--oa-heading-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--oa-ink);
    margin: 2em 0 .5em;
    padding: 0;
}

.blog-details .user-blog-details .oxcel-article a {
    color: var(--oa-teal);
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-details .user-blog-details .oxcel-article a:hover {
    color: var(--oa-ink);
}

.blog-details .user-blog-details .oxcel-article ul,
.blog-details .user-blog-details .oxcel-article ol {
    padding: 0 0 0 1.3em;
    margin: 0 0 1em;
}

.blog-details .user-blog-details .oxcel-article ul li {
    list-style: disc;
}

.blog-details .user-blog-details .oxcel-article ol li {
    list-style: decimal;
}

/* Charts */
.blog-details .user-blog-details .oxcel-article figure.chart {
    margin: 2em 0;
    padding: 0;
}

.blog-details .user-blog-details .oxcel-article figure.chart img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    background: #fff;
    border: 1px solid var(--oa-rule);
}

.blog-details .user-blog-details .oxcel-article figure.chart figcaption {
    font-size: 14px;
    line-height: 1.4;
    color: var(--oa-muted);
    padding-top: 8px;
}

/* Key facts callout */
.blog-details .user-blog-details .oxcel-article h3#key-facts + ul {
    background: var(--oa-tint);
    border-left: 4px solid var(--oa-teal);
    padding: 18px 22px 6px 40px;
}

.blog-details .user-blog-details .oxcel-article h3#key-facts + ul li {
    list-style: square;
}

/* Disclaimer: keep visible on every breakpoint */
.blog-details .user-blog-details .oxcel-article p.disclaimer {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
    color: var(--oa-muted);
    border-top: 1px solid var(--oa-rule);
    padding-top: 16px;
    margin-top: 2.5em;
}

.blog-details .user-blog-details .oxcel-article h3#sources-further-reading + ul li {
    font-size: 16px;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .blog-details .user-blog-details .oxcel-article figure.chart {
        margin-left: -40px;
        margin-right: -40px;
    }
}

@media (max-width: 575px) {
    .blog-details .user-blog-details .oxcel-article p,
    .blog-details .user-blog-details .oxcel-article li {
        font-size: 17px;
    }

    .blog-details .user-blog-details .oxcel-article p.standfirst {
        font-size: 19px;
    }

    .blog-details .user-blog-details .oxcel-article h2,
    .blog-details .user-blog-details .oxcel-article h3 {
        font-size: 21px;
    }
}
