/* Shared by single posts and their block editor. Pages use the existing styles. */
.wp-article-card {
    padding: clamp(20px, 4vw, 48px);
}

.wp-article-header {
    max-width: 46rem;
    margin: 0 auto clamp(24px, 4vw, 36px);
}

.wp-article-header .wp-entry-title {
    margin: 0;
    font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.15rem);
    line-height: 1.5;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.wp-article-header .wp-entry-meta {
    margin: 12px 0 0;
    font-size: .85rem;
}

.wp-article-thumbnail {
    margin: 0 auto clamp(24px, 4vw, 36px);
    text-align: center;
}

.wp-article-thumbnail img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 680px;
    margin: 0 auto;
    border-radius: 16px;
    object-fit: contain;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) {
    display: flow-root;
    min-width: 0;
    font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
    line-height: 1.95;
    overflow-wrap: anywhere;
    color: var(--text-color, #546e7a);
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) > * {
    max-width: 46rem;
    margin-right: auto;
    margin-left: auto;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) > * + * {
    margin-top: 1.4em;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) > :first-child {
    margin-top: 0;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) > :last-child {
    margin-bottom: 0;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) > :is(.alignwide, .alignfull) {
    clear: both;
    width: auto;
    max-width: 100%;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(h2, h3, h4, h5, h6) {
    clear: both;
    margin-top: 2em;
    margin-bottom: .65em;
    font-weight: 800;
    line-height: 1.55;
    color: var(--text-color, #546e7a);
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) h2 {
    padding-bottom: .5em;
    border-bottom: 2px solid var(--primary-color, #4fc3f7);
    font-size: clamp(1.2rem, 1.07rem + .5vw, 1.5rem);
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) h3 {
    font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem);
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(h4, h5, h6) {
    font-size: 1em;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(ul, ol) {
    padding-left: 1.5em;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) li + li {
    margin-top: .45em;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) li > :where(ul, ol) {
    margin-top: .45em;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(img, video, iframe) {
    max-width: 100%;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(img) {
    height: auto;
    border-radius: 14px;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :is(.wp-block-image.is-style-rounded img, .wp-block-image .is-style-rounded img) {
    border-radius: 9999px;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) .wp-block-image {
    text-align: center;
}

/* Keep explicit image sizes and the block library's gallery/media cropping. */
:is(.wp-article-content, .editor-styles-wrapper .is-root-container) .wp-block-image:not(.is-resized):not(.wp-block-gallery *):not(.wp-block-media-text *) img:not([style]),
.wp-article-content > img:not([style]),
.wp-article-content > p > img:not([style]) {
    width: auto;
    max-height: 680px;
    object-fit: contain;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(figcaption, .wp-caption-text) {
    margin-top: .7em;
    font-size: .82em;
    line-height: 1.7;
    color: var(--text-color, #546e7a);
    text-align: center;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(.wp-caption, .wp-block-column, .wp-block-media-text__content) {
    min-width: 0;
    max-width: 100%;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(.alignleft, .alignright) {
    max-width: min(42%, 320px);
    margin-top: .4em;
    margin-bottom: 1em;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) .alignleft {
    float: left;
    margin-right: 1.5em;
    margin-left: 0;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) .alignright {
    float: right;
    margin-right: 0;
    margin-left: 1.5em;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) blockquote {
    padding: 1em 1.25em;
    border-left: 3px solid var(--primary-color, #4fc3f7);
    border-radius: 0 12px 12px 0;
    background: var(--bg-color, #f0faff);
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(pre, .wp-block-table) {
    max-width: 100%;
    overflow-x: auto;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) pre {
    padding: 1em;
    border-radius: 12px;
    background: var(--bg-color, #f0faff);
    font-size: .88em;
    white-space: pre;
    overflow-wrap: normal;
}

.wp-article-content > table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) :where(th, td) {
    padding: .65em .85em;
    border: 1px solid var(--primary-color, #4fc3f7);
    text-align: left;
}

:is(.wp-article-content, .editor-styles-wrapper .is-root-container) a.wp-block-button__link,
:is(.wp-article-content, .editor-styles-wrapper .is-root-container) a.wp-element-button {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .wp-article-card {
        border-radius: 26px;
    }

    :is(.wp-article-content, .editor-styles-wrapper .is-root-container) :is(.alignleft, .alignright) {
        float: none;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
    }
}
