/* Shared reading layout for all public blog articles. */
.blog-article-page > .container {
    max-width: 1120px;
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
}

.blog-article-page article[itemscope] {
    color: #273342;
}

.blog-article-page article[itemscope] > h1,
.blog-article-page article[itemscope] > .d-flex,
.blog-article-page article[itemscope] > figure,
.blog-article-page article[itemscope] > .mt-4,
.blog-article-page article[itemscope] > .card {
    width: min(100%, 920px);
    margin-right: auto;
    margin-left: auto;
}

.blog-article-page article[itemscope] > h1 {
    margin-top: .3rem;
    margin-bottom: .8rem !important;
    color: #172333;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
    text-wrap: balance;
}

.blog-article-page article[itemscope] > .d-flex {
    gap: .25rem 0;
    margin-bottom: 1.5rem !important;
    color: #526173 !important;
    font-size: .9rem;
    line-height: 1.5;
}

.blog-article-page article[itemscope] > figure {
    margin-bottom: 1.75rem !important;
}

.blog-article-page article[itemscope] > figure img {
    display: block;
    width: 100%;
    max-height: 560px;
    border-radius: 10px;
    object-fit: cover;
}

.blog-article-page article[itemscope] > figure figcaption {
    color: #5b6878 !important;
    font-size: .875rem !important;
    line-height: 1.5;
}

.blog-article-content {
    width: min(100%, 760px);
    margin: 0 auto;
    color: #273342;
    font-size: 1rem;
    line-height: 1.68;
    overflow-wrap: break-word;
}

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

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

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4,
.blog-article-content h5,
.blog-article-content h6 {
    color: #172333;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
    text-wrap: balance;
}

.blog-article-content h1,
.blog-article-content h2 {
    margin: 1.65em 0 .55em;
    font-size: 1.45rem;
}

.blog-article-content h3 {
    margin: 1.35em 0 .5em;
    font-size: 1.2rem;
}

.blog-article-content h4,
.blog-article-content h5,
.blog-article-content h6 {
    margin: 1.15em 0 .45em;
    font-size: 1.05rem;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 1.1em;
    padding-left: 1.55em;
}

.blog-article-content li {
    padding-left: .15em;
}

.blog-article-content li + li {
    margin-top: .25em;
}

.blog-article-content a {
    color: #075fc7;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
}

.blog-article-content a:hover {
    color: #064b9d;
}

.blog-article-content strong,
.blog-article-content b {
    color: #1d2938;
    font-weight: 700;
}

.blog-article-content figure {
    margin: 1.4em 0;
}

.blog-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
    border-radius: 8px;
}

.blog-article-content figcaption {
    margin-top: -.9em;
    color: #5b6878;
    font-size: .875rem;
    line-height: 1.5;
    text-align: center;
}

.blog-article-content blockquote {
    margin: 1.35em 0;
    padding: .75em 1em;
    border-left: 3px solid #4c82c3;
    border-radius: 0 8px 8px 0;
    background: #f4f7fb;
    color: #3e4c5d;
}

.blog-article-content blockquote > :last-child {
    margin-bottom: 0;
}

.blog-article-table-wrap {
    max-width: 100%;
    margin: 1.25em 0 1.4em;
    overflow-x: auto;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.blog-article-content table {
    width: 100%;
    min-width: 520px;
    margin: 0;
    border-collapse: collapse;
    font-size: .94em;
    line-height: 1.55;
}

.blog-article-content th,
.blog-article-content td {
    min-width: 7rem;
    padding: .75em .85em;
    border: 0;
    border-bottom: 1px solid #e5eaf0;
    border-right: 1px solid #e5eaf0;
    text-align: left;
    vertical-align: top;
}

.blog-article-content th:last-child,
.blog-article-content td:last-child {
    border-right: 0;
}

.blog-article-content thead th,
.blog-article-content tr:first-child th,
.blog-article-content tr:first-child td {
    background: #f2f5f9;
    color: #243247;
    font-weight: 700;
}

.blog-article-content tr:last-child th,
.blog-article-content tr:last-child td {
    border-bottom: 0;
}

.blog-article-content hr {
    margin: 2.2em 0;
    border-color: #dce3ec;
    opacity: 1;
}

.blog-article-content pre {
    max-width: 100%;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid #e1e6ed;
    border-radius: 8px;
    background: #f6f8fa;
    font-size: .9em;
    line-height: 1.6;
}

.blog-article-content code {
    overflow-wrap: anywhere;
}

.blog-article-page article[itemscope] > .mt-4,
.blog-article-page article[itemscope] > .card {
    max-width: 760px;
}

@media (max-width: 767.98px) {
    .blog-article-page > .container {
        padding-top: 1.1rem !important;
        padding-bottom: 2rem !important;
    }

    .blog-article-page article[itemscope] > h1 {
        margin-top: .2rem;
        margin-bottom: .65rem !important;
        font-size: clamp(1.65rem, 6vw, 1.9rem);
        letter-spacing: -.02em;
    }

    .blog-article-page article[itemscope] > .d-flex {
        margin-bottom: 1.15rem !important;
        font-size: .85rem;
    }

    .blog-article-page article[itemscope] > figure {
        margin-bottom: 1.5rem !important;
    }

    .blog-article-content {
        font-size: 1rem;
        line-height: 1.65;
    }

    .blog-article-content h1,
    .blog-article-content h2 {
        margin-top: 1.55em;
        font-size: 1.35rem;
    }

    .blog-article-content h3 {
        margin-top: 1.25em;
        font-size: 1.15rem;
    }

    .blog-article-content h4,
    .blog-article-content h5,
    .blog-article-content h6 {
        font-size: 1rem;
    }

    .blog-article-content th,
    .blog-article-content td {
        padding: .65em .7em;
    }
}
