.socir-article {
    color: #082849;
}

.socir-article-heading {
    background: #f8f6f2;
}

.socir-article-heading-inner,
.socir-article-reading {
    max-width: 56rem;
}

.socir-article-heading-inner {
    padding-block: clamp(1.5rem, 3.5vw, 3rem);
}

.socir-article-back {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    min-height: 44px;
    color: #00648a;
    font-weight: 600;
    text-underline-offset: .2em;
}

.socir-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .4em 1em;
    margin: clamp(.75rem, 2vw, 1.5rem) 0 .625rem;
    color: #465f77;
    font-size: .875rem;
}

.socir-article-meta a {
    color: #00648a;
    text-underline-offset: .2em;
}

.socir-article-heading h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.75rem, 3.1vw, 2.875rem);
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -.033em;
    text-align: start;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.socir-article-heading h1::after {
    display: block;
    width: 4.75rem;
    height: .25rem;
    margin-top: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(to right, #009cda 0 33.33%, #ffcd00 33.33% 66.66%, #e51c38 66.66%);
    content: '';
}

.socir-article-reading {
    padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}

.socir-article-content {
    color: #243f59;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.socir-article-content :is(h2, h3, h4, h5, h6) {
    color: #082849;
    line-height: 1.25;
}

.socir-article-content h2 {
    margin-block: 1.5em .6em;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.socir-article-content p {
    margin-block: 0 1.2em;
}

.socir-article-content p:not(.wp-caption-text, .wp-element-caption):not(:has(img, video, iframe)) {
    /* Some legacy articles store paragraph alignment inline. */
    text-align: justify !important;
    text-align-last: start;
    hyphens: auto;
}

.socir-article-content a,
.socir-article-reading .news-source a {
    color: #00648a;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.socir-article-featured,
.socir-article-content figure {
    max-width: 100%;
    margin: 0 auto 1.75rem;
}

.socir-article-reading img,
.socir-article-reading video {
    max-width: 100%;
    height: auto;
}

.socir-article-featured img,
.socir-article-content > .wp-block-image img,
.socir-article-content > p img.aligncenter {
    display: block;
    width: 100%;
    height: auto;
    margin-inline: 0;
}

.socir-article-content > .wp-block-image {
    width: 100%;
}

.socir-article-content .frs-slideshow-container {
    max-width: 100%;
    margin-inline: 0;
}

.socir-article-content p:has(img.alignleft, img.alignright),
.socir-article-content li:has(img.alignleft, img.alignright) {
    display: flow-root;
}

.socir-article-content img:is(.alignleft, .alignright) {
    width: min(42%, 24rem);
    margin-block: .25rem .75rem;
}

.socir-article-content img.alignleft {
    float: left;
    margin-inline: 0 1.25rem;
}

.socir-article-content img.alignright {
    float: right;
    margin-inline: 1.25rem 0;
}

@media (max-width: 600px) {
    .socir-article-content img:is(.alignleft, .alignright) {
        display: block;
        float: none;
        width: 100%;
        margin-inline: 0;
    }
}

.socir-article-content iframe {
    max-width: 100%;
}

.socir-article-content .wp-block-table {
    overflow-x: auto;
}

.socir-article-content figcaption {
    color: #465f77;
    font-size: .875rem;
    line-height: 1.45;
}

.socir-article-reading .news-source {
    margin: 2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #d4dfed;
    color: #465f77;
    font-size: .875rem;
}

.socir-article a:focus-visible {
    outline: 2px solid #00739e;
    outline-offset: 4px;
}
