/*
 * Posts brought in by RSS Import (blog_rss_feeds) are wrapped in .rss-article.
 * Same rules in d.advancewebsites.com/userfiles/modules/blog_read/rss_article.css (theme5) - keep both in sync.
 * Fonts and link colours stay the site theme's own.
 */
.rss-article {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.7;
    color: #2f3640;
    text-align: left;
    overflow-wrap: break-word;
}

.rss-article p,
.rss-article li,
.rss-article td,
.rss-article th {
    font-size: inherit;
    line-height: inherit;
}

.rss-article p {
    margin: 0 0 1em;
}

.rss-article h2,
.rss-article h3,
.rss-article h4,
.rss-article h5,
.rss-article h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #1f2630;
}

.rss-article h2 {
    font-size: 1.55em;
    margin: 1.6em 0 0.6em;
}

.rss-article h3 {
    font-size: 1.25em;
    margin: 1.4em 0 0.5em;
}

.rss-article h4,
.rss-article h5,
.rss-article h6 {
    font-size: 1.05em;
    margin: 1.2em 0 0.4em;
}

.rss-article > :first-child {
    margin-top: 0;
}

.rss-article ul,
.rss-article ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.rss-article ul {
    list-style: disc;
}

.rss-article ol {
    list-style: decimal;
}

.rss-article li {
    margin: 0 0 0.5em;
}

.rss-article blockquote {
    margin: 1.2em 0;
    padding: 0.4em 1.1em;
    border-left: 4px solid #d0d6df;
    color: #555;
}

.rss-article img {
    max-width: 100%;
    height: auto;
}

.rss-article figure {
    margin: 1.2em 0;
}

.rss-article figcaption {
    font-size: 0.85em;
    color: #777;
    margin-top: 0.4em;
}

.rss-article hr {
    border: 0;
    border-top: 1px solid #e2e6ec;
    margin: 1.6em 0;
}

/* tables sit in a box that scrolls sideways when the screen is narrower than the table */
.rss-article .rss-table-wrap {
    margin: 0.6em 0 1.6em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rss-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    line-height: 1.5;
}

.rss-article th,
.rss-article td {
    padding: 10px 12px;
    border: 1px solid #e2e6ec;
    text-align: left;
    vertical-align: top;
}

.rss-article th {
    background: #f5f7fa;
    font-weight: 600;
}

.rss-article .rss-source {
    margin: 2em 0 0;
    padding-top: 0.8em;
    border-top: 1px solid #e2e6ec;
    font-size: 0.85em;
    color: #777;
}

/* phones */
@media (max-width: 767px) {
    .rss-article {
        font-size: 16px;
        line-height: 1.65;
    }

    .rss-article h2 {
        font-size: 1.35em;
        margin-top: 1.3em;
    }

    .rss-article h3 {
        font-size: 1.15em;
    }

    .rss-article ul,
    .rss-article ol {
        padding-left: 1.25em;
    }

    /* keep columns readable: scroll the box instead of crushing the table */
    .rss-article table {
        min-width: 560px;
    }

    .rss-article th,
    .rss-article td {
        padding: 8px 10px;
    }
}
