/* Single-post masthead and reading column. */
body.single-post .main-content .featured-media-under-header {
    padding-block: clamp(1.75rem, 3.75vw, 3.5rem);
}

body.single-post .featured-media-under-header .entry-title {
    margin-block: clamp(0.875rem, 2vw, 1.5rem);
    font-size: clamp(2.5rem, 4.8vw, 3.75rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

body.single-post .featured-media-under-header__excerpt {
    max-inline-size: 65ch;
    margin-block-end: 1rem;
    line-height: 1.55;
    text-wrap: pretty;
}

body.single-post .featured-media-under-header__meta-wrap .meta-author img {
    width: 42px;
    height: 42px;
    margin-inline-end: 0.75rem;
    object-fit: cover;
}

body.single-post .featured-media-under-header__featured-media[data-has-img="true"] {
    margin-block-start: clamp(1.5rem, 3.5vw, 3.25rem);
}

/* Use the photograph's own dimensions so small archival images are not stretched. */
body.single-post .featured-media-under-header__featured-media[data-has-img="true"]:is([data-format="default"], [data-format="image"]):not([data-n-parallax-bg="true"]) {
    max-inline-size: 70rem;
    padding-block-end: 0;
    margin-inline: auto;
}

body.single-post .featured-media-under-header__featured-media:not([data-n-parallax-bg="true"]) .post-featured-img {
    position: relative;
    height: auto;
}

body.single-post .featured-media-under-header__featured-media:not([data-n-parallax-bg="true"]) .post-featured-img img {
    position: static;
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

body.single-post .main-content #breadcrumbs,
body.single-post .post .post-content > .content-inner {
    max-inline-size: 47rem;
    min-inline-size: 0;
    margin-inline: auto;
}

body.single-post .main-content #breadcrumbs {
    padding-block-end: 0;
    margin-block: 0 1.4rem;
    color: #535353;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.single-post .post-content > .content-inner > p {
    margin-block: 0 1em;
    padding-block-end: 0;
}

body.single-post .post-content > .content-inner > :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6) {
    overflow-wrap: anywhere;
}

body.single-post .post-content > .content-inner > :is(h2, h3, h4, h5, h6) {
    margin-block: 1.35em 0.45em;
    line-height: 1.22;
    text-wrap: pretty;
}

body.single-post .post-content > .content-inner > h2 {
    font-size: clamp(1.5rem, 2.75vw, 2rem);
}

body.single-post .post-content > .content-inner > h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

body.single-post .post-content > .content-inner > :is(h2, h3, h4, h5, h6):first-child {
    margin-block-start: 0;
}

body.single-post .post-content > .content-inner > :is(h2, h3, h4, h5) + :is(h3, h4, h5, h6) {
    margin-block-start: 0.65em;
}

body.single-post .post-content > .content-inner > :is(ul, ol):not([class]),
body.single-post .post-content > .content-inner > ol.est-numbered-list {
    margin: 0 0 1.2em 1.55em;
    padding: 0;
}

body.single-post .post-content > .content-inner > :is(ul, ol):not([class]) > li + li,
body.single-post .post-content > .content-inner > ol.est-numbered-list > li + li {
    margin-block-start: 0.38em;
}

body.single-post .post-content > .content-inner > ol.est-numbered-list > li::marker {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

body.single-post .post-content .content-inner :where(ul:not([class]), ol:not([class]), .est-numbered-list) > li > a[href]:not(:where(nav *, .est-calc *, [class], [role="button"], :has(img, picture, svg))) {
    text-decoration-line: underline;
    text-underline-offset: 0.12em;
}

body.single-post .post-content > .content-inner > blockquote:not([class]) {
    margin: 1.15em 0 1.3em;
    padding: 0 0 0 clamp(0.9rem, 2.5vw, 1.5rem);
    border-inline-start: 2px solid #d6b69e;
    font-size: 1.06em;
    line-height: 1.55;
}

body.single-post .post-content > .content-inner > blockquote:not([class]) > p + p {
    margin-block-start: 0.85em;
}

body.single-post .post-content > .content-inner > p.est-editor-note {
    margin-block-end: 1.35rem;
    padding-inline-start: 0.9rem;
    border-inline-start: 2px solid #d8d4d1;
    color: #494949;
    font-size: 0.875em;
    line-height: 1.5;
}

/* Classic image figures do not load WordPress block styles consistently. */
body.single-post .post-content .content-inner figure.wp-block-image {
    display: flow-root;
    max-inline-size: 100%;
    margin: 1.5em 0;
    text-align: center;
}

body.single-post .post-content .content-inner figure.wp-block-image.alignright {
    margin: 0.25em 0 1em 1.2em;
}

@media (max-width: 480px) {
    body.single-post .post-content .content-inner figure.wp-block-image.alignright {
        float: none;
        margin: 1.25em auto;
    }
}

body.single-post .post-content .content-inner figure.wp-block-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
}

body.single-post .post-content .content-inner figure.wp-block-image.est-cover img {
    max-width: min(100%, clamp(13rem, 68vw, 18.75rem));
}

body.single-post .post-content .content-inner figure.wp-block-image.est-logo img {
    max-width: min(100%, 16.25rem);
}

body.single-post .post-content .content-inner figure.wp-block-image figcaption {
    max-inline-size: 65ch;
    margin: 0.55rem auto 0;
    color: #535353;
    opacity: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Keep comparison tables usable at their intrinsic width. */
body.single-post .post-content :is(figure.wp-block-table, .est-table-wrap) {
    max-inline-size: 100%;
    overflow-x: auto;
    margin-block: 1.25em 1.5em;
}

body.single-post .post-content figure.wp-block-table {
    container-type: inline-size;
}

body.single-post .post-content .content-inner figure.wp-block-table > table {
    width: 100%;
    margin: 0;
}

body.single-post .post-content .content-inner figure.wp-block-table > table :is(th, td) {
    padding: 0.7em 0.8em;
    font-family: var(--est-font, Poppins, sans-serif);
    font-size: clamp(0.875rem, 1.6vw, 0.9375rem);
    line-height: 1.45;
    vertical-align: top;
}

body.single-post .post-content figure.wp-block-table > figcaption {
    position: sticky;
    inset-inline-start: 0;
    max-inline-size: 100cqi;
    margin-block-start: 0.5rem;
    color: #535353;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.single-post .post-content .est-table-scroll-hint {
    margin-block: 1rem 0.4rem;
    color: #535353;
    font-family: var(--est-font, Poppins, sans-serif);
    font-size: 0.8125rem;
    line-height: 1.4;
}

body.single-post .post-content .est-table-scroll-hint + :is(.est-table-wrap, .wp-block-table) {
    margin-block-start: 0;
}

body.single-post .post-content :is(.est-table-wrap, .wp-block-table, .est-calc__scroll)[tabindex="0"]:focus-visible {
    outline: 2px solid #a94700;
    outline-offset: 3px;
}

body.single-post .post-content .schema-faq {
    margin-block: 0.85em 1.4em;
    border-block-end: 1px solid #dcd9d6;
}

body.single-post .post-content .schema-faq .schema-faq-section {
    padding-block: 0.75em;
    border-block-start: 1px solid #dcd9d6;
}

body.single-post .post-content .schema-faq .schema-faq-question {
    display: block;
    margin-block-end: 0.25em;
    line-height: 1.4;
}

body.single-post .post-content .schema-faq .schema-faq-answer {
    margin: 0;
    padding: 0;
}

body.single-post .post-content .est-contents__text {
    overflow-wrap: anywhere;
}

@media (max-width: 999px) {
    body.single-post .featured-media-under-header__cat-wrap > .meta-category {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
    }

    body.single-post .featured-media-under-header__cat-wrap > .meta-category > a {
        margin: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 690px) {
    body.single-post .featured-media-under-header .entry-title {
        font-size: clamp(1.875rem, 8.1vw, 2.625rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-post .featured-media-under-header[data-animate="fade_in"] :is(.featured-media-under-header__cat-wrap, .entry-title, .featured-media-under-header__excerpt, .featured-media-under-header__meta-wrap, .featured-media-under-header__featured-media),
    body.single-post .featured-media-under-header[data-animate="fade_in"] + .row .content-inner {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
