.post-header,
.post-layout {
    width: calc(100% - 80px);
    max-width: 90rem;
    margin-right: auto;
    margin-left: auto;
}

.post-header {
    position: relative;
    top: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    margin-top: 3.75rem;
    margin-bottom: 4rem;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #f2f2f2;
}

.post-header:not(.post-header--has-image) {
    grid-template-columns: 1fr;
}

.post-header__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 30rem;
    padding: clamp(2.5rem, 5vw, 5rem);
}

.post-header__title {
    margin: 0;
    color: #1c495a;
    font-size: clamp(2.5rem, 2.6vw, 3rem);
    line-height: 1.08;
}

.post-header__image {
    min-height: 30rem;
}

.post-header__image-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .post-header {
        height: clamp(400px, 36vw, 480px);
    }

    .post-header__content,
    .post-header__image {
        min-height: 0;
    }
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 7rem);
    margin-bottom: 6.25rem;
}

.post-layout__content,
.post-layout__sidebar {
    min-width: 0;
}

.post-layout__sidebar {
    position: sticky;
    top: 12rem;
}

.post-layout__content > .flexible-text-image,
.post-layout__content > .flexible-header,
.post-layout__content > .flexible-content > section,
.post-layout__content > .post-author,
.post-layout__content > .post-navigation {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.post-layout__content > .flexible-header {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.post-layout__content > .flexible-header .flexible-header__container {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

/* Legacy flexible blocks were designed for a full-width page. Stack them in
 * the narrower article column so neither the image nor copy is compressed. */
body.single-post .post-layout__content .flexible-content--text_image_block .flexible-text-image__wrapper {
    flex-direction: column !important;
    align-items: stretch;
    gap: 2.5rem;
}

body.single-post .post-layout__content .flexible-content--text_image_block .flexible-text-image__content,
body.single-post .post-layout__content .flexible-content--text_image_block .flexible-text-image__slider {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
}

.post-layout__content .flexible-content--text_image_block .flexible-text-image__content {
    order: 1;
}

.post-layout__content .flexible-content--text_image_block .flexible-text-image__slider {
    order: 2;
}

.post-layout__content .flexible-content--text_image_block .flexible-text-image__content__inner {
    padding: 0;
}

.post-layout__content .flexible-content--text_image_block .flexible-text-image__slider__single {
    aspect-ratio: 16 / 10;
}

.post-layout__content .flexible-content--text_image_block .swiper,
.post-layout__content .flexible-content--text_image_block .swiper-wrapper,
.post-layout__content .flexible-content--text_image_block .swiper-slide {
    width: 100% !important;
}

.post-layout__content .flexible-content--text_image_block .flexible-text-image__slider__single img {
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    margin-top: 2rem;
    color: #17253f;
    font-size: 1.1rem;
    font-weight: 600;
}

.post-meta__item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
}

.post-meta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: #4eaff3;
}

.post-meta__icon svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-toc {
    margin-bottom: 2rem;
    border: 1px solid #dededf;
    border-radius: .75rem;
    background: #fff;
}

.post-toc__heading {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 1.25rem;
    color: #1c495a;
    font-size: 1.125rem;
    font-weight: bold;
}

.post-toc__heading-icon {
    width: 1.35rem;
    height: 1.35rem;
    color: #4eaff3;
}

.post-toc__list {
    margin: 0;
    padding: 0 1.25rem 1rem;
    list-style: none;
}

.post-toc__item {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: .35rem 0;
}

.post-toc__item a {
    color: #1c495a;
}

.post-toc__item a:hover,
.post-toc__item a:focus {
    color: #4eaff3;
}

.post-advert {
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: .75rem;
    background: #1c495a;
    color: #fff;
}

.post-advert__eyebrow {
    display: block;
    margin-bottom: .75rem;
    color: #4eaff3;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-advert__title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 2rem;
}

.post-advert__link {
    margin-top: .5rem;
}

body.single-post .flexible-faqs__item {
    overflow: hidden;
    border-radius: .75rem;
    background: #fff;
}

body.single-post .flexible-faqs__item__question {
    margin: 0;
    background-color: #1c495a;
    color: #fff;
}

body.single-post .flexible-faqs__item--active .flexible-faqs__item__answer {
    padding: 1.75rem 2rem;
    background-color: #fff;
    color: #1c1c1c;
}

body.single-post .flexible-faqs__item__answer > :last-child {
    margin-bottom: 0;
}

.post-toc__item--h3 {
    margin-left: 1.25rem;
}

.post-toc__number {
    min-width: 2.25rem;
    color: #5d7588;
    font-weight: bold;
}

.post-author__linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    border-radius: 50%;
    background: #4eaff3;
    color: #fff;
    transition: transform .2s ease, background-color .2s ease;
}

.post-author__linkedin:hover,
.post-author__linkedin:focus {
    background: #1e99f0;
    color: #fff;
    transform: scale(.95);
}

.post-author__linkedin svg {
    width: .82rem;
    height: .82rem;
}

body.single-post .wp-block-table {
    overflow-x: auto;
}

body.single-post .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

body.single-post .wp-block-table th,
body.single-post .wp-block-table td {
    padding: .875rem 1.125rem;
    border: 1px solid #d6dce2;
    text-align: left;
    vertical-align: top;
}

body.single-post .wp-block-table th {
    background: #1c495a;
    color: #fff;
    font-weight: bold;
}

body.single-post .wp-block-table tbody tr:nth-child(even) td {
    background: #f6f8fa;
}

body.single-post .flexible-text-image__wrapper {
    align-items: center;
}

body.single-post .flexible-text-image__content__copy .aligncenter,
body.single-post .flexible-text-image__content__copy .wp-block-image.aligncenter {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

body.single-post .flexible-text-image__content__copy .aligncenter img,
body.single-post .flexible-text-image__content__copy img.aligncenter,
body.single-post .flexible-text-image__content__copy .wp-block-image.aligncenter img {
    margin-right: auto;
    margin-left: auto;
}

body.single-post .flexible-text-image__content__copy .alignleft {
    float: left;
    margin-right: 1.5rem;
}

body.single-post .flexible-text-image__content__copy .alignright {
    float: right;
    margin-left: 1.5rem;
}

body.single-post .flexible-text-image__content__copy::after {
    display: table;
    clear: both;
    content: '';
}

body.single-post .flexible-content > section,
body.single-post .flexible-content .flexible-text-image {
    margin-top: 3.75rem;
    margin-bottom: 3.75rem;
}

body.single-post .flexible-content--full_width_image + .flexible-content > section,
body.single-post .flexible-content--full_width_image + .flexible-content .flexible-text-image {
    margin-top: 3.75rem;
}

@media (max-width: 1200px) {
    .post-header,
    .post-layout {
        width: calc(100% - 60px);
    }
}

@media (max-width: 991px) {
    .post-header,
    .post-layout {
        width: calc(100% - 40px);
    }

    .post-header {
        grid-template-columns: 1fr;
        margin-top: 2rem;
        margin-bottom: 3rem;
    }

    .post-header__content {
        min-height: 0;
        padding: 3rem 2rem;
    }

    .post-header__title {
        font-size: 2.5rem;
        line-height: 1.12;
    }

    .post-header__image {
        height: clamp(220px, 45vw, 320px);
        min-height: 0;
        grid-row: 1;
    }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .post-layout__sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 600px) {
    .post-meta {
        gap: .75rem;
        padding: 1rem;
        font-size: .9rem;
    }

    .post-meta__item {
        width: 100%;
    }
}
