/* Single blog post — top (hero) section */

html:has(.df-single-post) {
    scroll-behavior: smooth
}

@media (prefers-reduced-motion: reduce) {
    html:has(.df-single-post) {
        scroll-behavior: auto
    }
}

.df-single-post {
    --df-single-post-toc-width: 300px;
    --df-single-post-content-width: 820px;
    --df-single-post-body-gap: 20px;
    --df-single-post-body-width: calc(var(--df-single-post-toc-width) + var(--df-single-post-body-gap) + var(--df-single-post-content-width));
    --df-single-post-content-offset: calc(var(--df-single-post-toc-width) + var(--df-single-post-body-gap));
    padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(3rem, 8vw, 5rem);
    color: var(--df-color-text);
    background: var(--df-color-bg)
}

.df-single-post__inner {
    width: calc(100% - var(--df-container-gutter) - var(--df-container-gutter));
    max-width: var(--df-container-width);
    margin-inline: auto
}

.df-single-post__hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: var(--df-container-width);
    margin-bottom: clamp(2.25rem, 5vw, 3.75rem)
}

.df-single-post__breadcrumbs {
    margin: 0 0 1.35rem
}

.df-single-post__breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .8125rem;
    line-height: 1.4;
    color: #9ca3af
}

.df-single-post__breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem
}

.df-single-post__breadcrumb-sep {
    color: #c4c4c8
}

.df-single-post__breadcrumb-link {
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease
}

.df-single-post__breadcrumb-link:hover,
.df-single-post__breadcrumb-link:focus-visible {
    color: var(--df-color-text)
}

.df-single-post__breadcrumb-current {
    color: #9ca3af;
    word-break: break-word
}

.df-single-post__category {
    margin: 0 0 .65rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--df-color-accent)
}

.df-single-post__title {
    margin: 0 0 1.15rem;
    max-width: 38ch;
    font-family: var(--df-font-heading);
    font-size: clamp(1.85rem, 4.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--df-color-text)
}

.df-single-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    margin: 0 0 1.75rem;
    font-size: .875rem;
    line-height: 1.45
}

.df-single-post__byline {
    margin: 0;
    color: var(--df-color-text);
    font-weight: 500
}

.df-single-post__dates {
    margin: 0;
    color: #9ca3af
}

.df-single-post__dates time {
    color: inherit
}

.df-single-post__media {
    margin: 0;
    overflow: hidden;
    border-radius: 20px
}

.df-single-post__image {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle
}

/* Article layout: 300px TOC + 750px content, no column gap */

.df-single-post__layout {
    display: grid;
    grid-template-columns: var(--df-single-post-toc-width) var(--df-single-post-content-width);
    column-gap: var(--df-single-post-body-gap);
    align-items: start;
    justify-content: start;
    width: min(100%, var(--df-single-post-body-width));
    max-width: var(--df-single-post-body-width);
    margin-bottom: clamp(3rem, 7vw, 4.5rem)
}

.df-single-post__layout--no-toc {
    grid-template-columns: var(--df-single-post-content-width);
    column-gap: 0;
    width: min(100%, var(--df-single-post-content-width));
    max-width: var(--df-single-post-content-width)
}

.df-single-post__aside {
    position: sticky;
    top: calc(60px + 1.5rem);
    align-self: start;
    width: var(--df-single-post-toc-width);
    max-width: 100%;
    flex-shrink: 0
}

.admin-bar .df-single-post__aside {
    top: calc(92px + 1.5rem)
}

.df-single-post__main {
    width: var(--df-single-post-content-width);
    max-width: 100%;
    min-width: 0
}

.df-single-post__toc {
    padding: 0;
    margin: 0
}

.df-single-post__toc-label {
    margin: 0 0 1rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--df-color-text)
}

.df-single-post__toc-label::after {
    content: ":"
}

.df-single-post__toc-list {
    margin: 0;
    padding: 0;
    list-style: none
}

.df-single-post__toc-item {
    margin: 0;
    padding: 0
}

.df-single-post__toc-list > .df-single-post__toc-item--h2 + .df-single-post__toc-item--h2 {
    margin-top: .55rem
}

.df-single-post__toc-row {
    display: flex;
    align-items: flex-start;
    gap: .35rem
}

.df-single-post__toc-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer
}

.df-single-post__toc-chevron {
    display: block;
    width: .45rem;
    height: .45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg)
}

.df-single-post__toc-item--h2.is-open > .df-single-post__toc-row .df-single-post__toc-chevron {
    transform: rotate(45deg)
}

.df-single-post__toc-item--h2.is-open > .df-single-post__toc-row .df-single-post__toc-toggle {
    color: var(--df-color-accent)
}

.df-single-post__toc-sublist {
    display: none;
    margin: .35rem 0 0;
    padding: 0 0 0 1.6rem;
    list-style: none
}

.df-single-post__toc-item--h2.is-open > .df-single-post__toc-sublist {
    display: block
}

.df-single-post__toc-item--h3 + .df-single-post__toc-item--h3 {
    margin-top: .35rem
}

.df-single-post__toc-link {
    display: block;
    flex: 1;
    min-width: 0;
    padding: .15rem 0;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.45;
    color: #6b7280;
    text-decoration: none
}

.df-single-post__toc-item--h2:not(.has-children) > .df-single-post__toc-link {
    padding-left: 1.6rem
}

.df-single-post__toc-item--h3 .df-single-post__toc-link {
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.4;
    color: #9ca3af
}

.df-single-post__toc-link:hover,
.df-single-post__toc-link:focus-visible {
    color: var(--df-color-accent)
}

.df-single-post__toc-link.is-active {
    color: var(--df-color-accent);
    font-weight: 600
}

.df-single-post__toc-item--h3 .df-single-post__toc-link.is-active {
    font-weight: 500
}

/* Key takeaways callout */

.df-single-post__takeaways {
    margin: 0 0 2rem;
    padding: 30px 59px;
    border-radius: 16px;
    background: #f3e8f7;
    scroll-margin-top: calc(60px + 1rem)
}

.df-single-post__takeaways-title {
    margin: 0 0 1.1rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    color: var(--df-color-text)
}

.df-single-post__takeaways-list {
    margin: 0;
    padding: 0;
    list-style: none
}

.df-single-post__takeaways-item {
    position: relative;
    padding-left: 1.35rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--df-color-text)
}

.df-single-post__takeaways-item + .df-single-post__takeaways-item {
    margin-top: .85rem
}

.df-single-post__takeaways-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: var(--df-color-accent)
}

.df-single-post__content {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #374151
}

.df-single-post__content > *:first-child {
    margin-top: 0
}

.df-single-post__content h2,
.df-single-post__content h3,
.df-single-post__content h4,
.df-single-post__content h5,
.df-single-post__content h6 {
    scroll-margin-top: calc(60px + 1rem);
    font-family: var(--df-font-heading);
    letter-spacing: -.015em;
    color: var(--df-color-text)
}

.df-single-post__content h2 {
    margin: 2.5rem 0 1rem;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2
}

.df-single-post__content h2:first-child {
    margin-top: 0
}

.df-single-post__content h3 {
    margin: 1.85rem 0 .85rem;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25
}

.df-single-post__content h4,
.df-single-post__content h5,
.df-single-post__content h6 {
    margin: 1.5rem 0 .75rem;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35
}

.df-single-post__content p {
    margin: 0 0 1.25rem
}

.df-single-post__content ul,
.df-single-post__content ol {
    margin: 0;
    padding: 0;
}

.df-single-post__content li + li {
    margin-top: .35rem
}

.df-single-post__content a {
    color: var(--df-color-accent);
    text-decoration: underline;
    text-underline-offset: .15em
}

.df-single-post__content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px
}

.df-single-post__content figure {
    width: 100%;
    max-width: 100%
}

.df-single-post__content figure figcaption {
    color: rgba(107, 105, 112, 1);
    font-size: 10px
}

.df-single-post__content .wp-block-image {
    margin-block: 1.75rem
}

.df-single-post__content .wp-block-image figcaption,
.df-single-post__content .wp-element-caption {
    margin-top: .65rem;
    font-size: 10px;
    line-height: 1.45;
    color: rgba(107, 105, 112, 1);
    text-align: left
}

/* 16:9 responsive embeds (YouTube, etc.) */
.df-single-post__content p:has(iframe),
.df-single-post__content figure:has(iframe),
.df-single-post__content .wp-block-embed__wrapper:has(iframe) {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%
}

.df-single-post__content p:has(iframe) iframe,
.df-single-post__content figure:has(iframe) iframe,
.df-single-post__content .wp-block-embed__wrapper:has(iframe) iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.df-single-post__content blockquote {
    margin: 1.75rem 0;
    padding: 0;
    border: 0;
    font-style: italic;
    color: #374151
}

/* Pull-quote / blockquote shortcode */

.df-blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 2.25rem 2rem 1.85rem;
    border-radius: 16px;
    background: #f8f0fb;
    box-shadow: 0 8px 28px rgba(161, 7, 192, .06)
}

.df-blockquote__mark {
    display: block;
    color: var(--df-color-accent);
    line-height: 0
}

.df-blockquote__mark .df-icon {
    width: 2.75rem;
    height: 2.3rem;
    fill: currentColor
}

.df-blockquote__mark--open {
    margin-bottom: 1rem
}

.df-blockquote__mark--close {
    display: flex;
    justify-content: flex-start;
    margin-top: .85rem;
    transform: scaleX(-1)
}

.df-blockquote__text {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--df-font-body);
    font-size: 1.125rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    color: var(--df-color-text)
}

.df-blockquote__text p {
    margin: 0
}

.df-blockquote__text p + p {
    margin-top: .85rem
}

.df-blockquote__author {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: 1.5rem
}

.df-blockquote__avatar {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    object-fit: cover;
    background: #fff
}

.df-blockquote__meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0
}

.df-blockquote__name {
    font-style: normal;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--df-color-accent)
}

.df-blockquote__position {
    font-size: .8125rem;
    line-height: 1.35;
    color: #6b6970
}

/* Agency Insight callout */

.df-agency-insight {
    margin: 2rem 0;
    padding: 39px 28px;
    border-radius: 12px;
    background: #f8f0fb
}

.df-agency-insight__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem
}

.df-agency-insight__icon {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--df-color-accent);
    line-height: 0
}

.df-agency-insight__title {
    margin: 0;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--df-color-accent);
    margin: 0 !important;
}

.df-agency-insight__body {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--df-color-text)
}

.df-agency-insight__body p {
    margin: 0
}

.df-agency-insight__body p + p {
    margin-top: .75rem
}

/* In-content CTA box */

.df-post-cta {
    margin: 3.25rem 0 2rem;
    padding-top: 2.75rem
}

.df-post-cta__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(12rem, .92fr) minmax(0, 1.2fr);
    align-items: stretch;
    min-height: 15.5rem;
    border-radius: 16px;
    background-color: #16161a;
    background-image: url("../images/CTA_BG.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 14px 40px rgba(17, 17, 20, .22);
    overflow: visible
}

.df-post-cta__media {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 46%;
    height: calc(100% + 2.75rem);
    display: flex;
    align-items: flex-end;
    pointer-events: none
}

.df-post-cta__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left bottom;
    user-select: none
}

.df-post-cta__body {
    position: relative;
    z-index: 2;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .85rem;
    padding: 2rem 2.25rem 2rem 1.25rem;
    color: #fff
}

.df-post-cta__body--full {
    grid-column: 1 / -1;
    padding-left: 2.25rem
}

.df-post-cta__title {
    margin: 0 !important;
    font-family: var(--df-font-heading) !important;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -.01em !important;
    color: #fff !important
}

.df-post-cta__content {
    font-size: .9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88)
}

.df-post-cta__content p {
    margin: 0
}

.df-post-cta__content p + p {
    margin-top: .55rem
}

.df-post-cta__actions {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: .35rem;
    width: fit-content;
    text-decoration: none;
    color: #fff
}

.df-post-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: .7rem 1.35rem;
    border-radius: 999px;
    background: var(--df-color-accent);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    transition: filter .2s ease, transform .2s ease
}

.df-post-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    background: var(--df-color-accent);
    color: #fff;
    transition: filter .2s ease, transform .2s ease
}

.df-post-cta__arrow {
    width: 1rem;
    height: 1rem;
    fill: currentColor
}

.df-post-cta__actions:hover .df-post-cta__btn,
.df-post-cta__actions:focus-visible .df-post-cta__btn,
.df-post-cta__actions:hover .df-post-cta__icon,
.df-post-cta__actions:focus-visible .df-post-cta__icon {
    filter: brightness(1.06)
}

.df-post-cta__actions:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px
}

@media (max-width: 899px) {
    .df-post-cta {
        margin: 2.25rem 0;
        padding-top: 0
    }

    .df-post-cta__panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        overflow: hidden;
        background-image: url("../images/CTA_BG_mobile.webp")
    }

    .df-post-cta__media {
        position: relative;
        order: 2;
        left: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        margin-top: .35rem;
        pointer-events: auto
    }

    .df-post-cta__image {
        width: 100%;
        height: auto;
        max-height: 17rem;
        object-fit: cover;
        object-position: center bottom
    }

    .df-post-cta__body {
        order: 1;
        grid-column: auto;
        align-items: center;
        gap: .75rem;
        padding: 1.75rem 1.35rem 1rem;
        text-align: center
    }

    .df-post-cta__body--full {
        padding-left: 1.35rem
    }

    .df-post-cta__title {
        font-size: 1.35rem !important
    }

    .df-post-cta__content {
        font-size: .875rem;
        max-width: 28rem
    }

    .df-post-cta__actions {
        margin-top: .5rem;
        justify-content: center
    }

    .df-post-cta__btn {
        min-height: 2.65rem;
        padding: .65rem 1.15rem;
        font-size: .8125rem
    }

    .df-post-cta__icon {
        width: 2.65rem;
        height: 2.65rem
    }
}

/* Content tables */

.df-single-post__content .df-table-wrap {
    position: relative;
    margin: 2rem 0;
    border: 1px solid #e8e8ea;
    border-radius: 14px;
    background: #fff;
    overflow: hidden
}

.df-single-post__content .df-table-scroll {
    width: 100%;
    overflow: visible
}

.df-single-post__content .wp-block-table {
    margin: 2rem 0
}

.df-single-post__content .wp-block-table .df-table-wrap {
    margin: 0
}

.df-single-post__content .wp-block-table figcaption {
    margin-top: .65rem;
    font-size: 10px;
    line-height: 1.45;
    color: rgba(107, 105, 112, 1);
    text-align: left
}

.df-single-post__content table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: .9375rem;
    line-height: 1.5
}

.df-single-post__content table thead th {
    padding: 1.1rem 1.35rem;
    border: 0;
    border-bottom: 1px solid #ececef;
    background: #f8f0fb;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
    color: var(--df-color-text);
    vertical-align: middle
}

.df-single-post__content table tbody td,
.df-single-post__content table tbody th {
    padding: 1.15rem 1.35rem;
    border: 0;
    border-bottom: 1px solid #ececef;
    background: #fff;
    font-weight: 400;
    text-align: left;
    vertical-align: top;
    color: #6b6970
}

.df-single-post__content table tbody tr:last-child td,
.df-single-post__content table tbody tr:last-child th {
    border-bottom: 0
}

.df-single-post__content table tbody td:first-child,
.df-single-post__content table tbody th:first-child {
    font-weight: 700;
    color: var(--df-color-text)
}

.df-single-post__content .df-table-wrap::after {
    content: none
}

@media (max-width: 899px) {
    .df-single-post__content .df-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin
    }

    .df-single-post__content .df-table-scroll table {
        min-width: 40rem
    }

    .df-single-post__content .df-table-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 3.25rem;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 70%);
        pointer-events: none;
        opacity: 0;
        transition: opacity .2s ease;
        z-index: 1
    }

    .df-single-post__content .df-table-wrap.is-scrollable:not(.is-at-end)::after {
        opacity: 1
    }

    .df-single-post__content table thead th,
    .df-single-post__content table tbody td,
    .df-single-post__content table tbody th {
        padding: 1rem 1.1rem
    }
}

.df-single-post__page-links {
    margin: 2rem 0 0;
    font-size: .875rem
}

/* Author box */

.df-single-post__authors {
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(2.5rem, 6vw, 3.25rem);
    padding-top: 0
}

.df-single-post__author {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.35rem;
    padding: 1.35rem 1.5rem;
    border-radius: 14px;
    background: #f5f5f5
}

.df-single-post__author-avatar {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    object-fit: cover;
    border-radius: 10px
}

.df-single-post__author-label {
    margin: 0 0 .5rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #9ca3af
}

.df-single-post__author-name {
    margin: 0 0 .25rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--df-color-text)
}

.df-single-post__author-role {
    margin: 0 0 .75rem;
    font-size: .875rem;
    line-height: 1.4;
    color: #6b7280
}

.df-single-post__author-bio {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.65;
    color: #374151
}

/* Related posts */

.df-single-post__related {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding-top: clamp(2rem, 5vw, 3rem);
    border-top: 1px solid #e5e7eb
}

.df-single-post__related-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-bottom: 1.75rem
}

.df-single-post__related-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em
}

.df-single-post__related-all {
    font-size: .875rem;
    font-weight: 600;
    color: var(--df-color-accent);
    text-decoration: none
}

.df-single-post__related-all:hover,
.df-single-post__related-all:focus-visible {
    text-decoration: underline
}

.df-single-post__related-carousel {
    padding-bottom: 0
}

.df-single-post__related-carousel .swiper-wrapper {
    align-items: stretch
}

.df-single-post__related-carousel .swiper-slide {
    height: auto
}

.df-single-post__related-nav {
    display: flex;
    align-items: center;
    gap: .75rem
}

.df-single-post__related-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: var(--df-color-text);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, opacity .2s ease
}

.df-single-post__related-btn:hover,
.df-single-post__related-btn:focus-visible {
    border-color: var(--df-color-accent);
    color: var(--df-color-accent)
}

.df-single-post__related-btn.swiper-button-disabled {
    opacity: .35;
    pointer-events: none
}

.df-single-post__related-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    height: 100%
}

.df-single-post__related-media {
    display: block;
    overflow: hidden;
    border-radius: 12px
}

.df-single-post__related-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover
}

.df-single-post__related-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35
}

.df-single-post__related-card-title a {
    color: inherit;
    text-decoration: none
}

.df-single-post__related-card-title a:hover,
.df-single-post__related-card-title a:focus-visible {
    color: var(--df-color-accent)
}

.df-single-post__related-date {
    font-size: .8125rem;
    color: #9ca3af
}

/* Comments */

.df-single-post__comments-wrap {
    margin-top: clamp(2rem, 5vw, 2.75rem);
    padding-top: clamp(2rem, 5vw, 2.75rem);
    border-top: 1px solid #e5e7eb
}

.df-single-post__comments {
    margin: 0
}

.df-single-post__comments-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: 1.35rem
}

.df-single-post__comments-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--df-color-text)
}

.df-single-post__comments-count {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.4;
    color: #9ca3af
}

.df-single-post__comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem 1rem;
    margin-bottom: clamp(2rem, 5vw, 2.75rem)
}

.df-single-post__comment-form .comment-form-author,
.df-single-post__comment-form .comment-form-email {
    margin: 0
}

.df-single-post__comment-form .comment-form-comment,
.df-single-post__comment-form .form-submit,
.df-single-post__comment-form .df-single-post__turnstile {
    grid-column: 1 / -1;
    margin: 0
}

.df-single-post__comment-form input[type="text"],
.df-single-post__comment-form input[type="email"],
.df-single-post__comment-form textarea {
    display: block;
    width: 100%;
    padding: .8rem .95rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font: inherit;
    font-size: .9375rem;
    color: var(--df-color-text);
    background: #fff
}

.df-single-post__comment-form input::placeholder,
.df-single-post__comment-form textarea::placeholder {
    color: #9ca3af
}

.df-single-post__comment-form textarea {
    min-height: 9.5rem;
    resize: vertical
}

.df-single-post__comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9.5rem;
    padding: .75rem 1.5rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: var(--df-color-accent);
    cursor: pointer;
    transition: filter 160ms ease
}

.df-single-post__comment-submit:hover,
.df-single-post__comment-submit:focus-visible {
    filter: brightness(1.08)
}

.df-single-post__turnstile {
    margin-top: .15rem
}

.df-single-post__turnstile .cf-turnstile {
    max-width: 100%
}

.df-single-post__comment-list {
    margin: 0;
    padding: 0;
    list-style: none
}

.df-single-post__comment-list .children {
    margin: .65rem 0 0;
    padding: 0 0 0 3.5rem;
    list-style: none
}

.df-single-post__comment {
    margin: 0;
    padding: 0
}

.df-single-post__comment-body {
    padding: 1rem 0 0;
    border-bottom: 0
}

.df-single-post__comment-list > li.depth-1 {
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #eef0f2
}

.df-single-post__comment-list > li.depth-1 > .df-single-post__comment-body {
    padding-top: 1.15rem
}

.df-single-post__comment-list > li.depth-1:first-child > .df-single-post__comment-body {
    padding-top: 0
}

.df-single-post__comment-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem
}

.df-single-post__comment-avatar {
    display: block;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px
}

.df-single-post__comment-main {
    flex: 1;
    min-width: 0
}

.df-single-post__comment-author-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .55rem;
    margin-bottom: .45rem
}

.df-single-post__comment-name {
    font-style: normal;
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1.35;
    color: var(--df-color-text)
}

.df-single-post__comment-badge {
    display: inline-block;
    padding: .22rem .5rem;
    border-radius: 4px;
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--df-color-accent);
    background: #f3e8f8
}

.df-single-post__comment-date {
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.35;
    color: #9ca3af
}

.df-single-post__comment-content {
    font-size: .9375rem;
    line-height: 1.65;
    color: #374151
}

.df-single-post__comment-content > *:first-child {
    margin-top: 0
}

.df-single-post__comment-content p {
    margin: 0
}

.df-single-post__comment-awaiting {
    margin: 0 0 .45rem;
    font-size: .875rem;
    color: #9ca3af
}

.df-single-post__comment-reply {
    margin: .55rem 0 0;
    font-size: .8125rem
}

.df-single-post__comment-reply a {
    color: var(--df-color-accent);
    text-decoration: none
}

.df-single-post__comments-closed {
    margin: 0 0 1.5rem;
    color: #9ca3af
}

@media (min-width: 900px) {
    .df-single-post__aside {
        width: var(--df-single-post-toc-width)
    }

    .df-single-post__main {
        width: var(--df-single-post-content-width)
    }

    .df-single-post__layout--no-toc .df-single-post__main {
        width: var(--df-single-post-content-width)
    }

}

@media (max-width: 899px) {
    .df-single-post__layout {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        justify-content: stretch;
        width: 100%;
        max-width: none
    }

    .df-single-post__layout--no-toc {
        max-width: none
    }

    .df-single-post__aside,
    .df-single-post__main {
        width: 100%
    }

    .df-single-post__aside {
        position: static
    }

    .df-single-post__toc {
        padding-bottom: 1rem;
        margin-bottom: .25rem;
        border-bottom: 1px solid #eef0f2
    }

    .df-single-post__related-nav {
        gap: .5rem
    }
}

@media (max-width: 699px) {
    .df-single-post__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem
    }

    .df-single-post__media {
        border-radius: 14px
    }

    .df-single-post__author {
        grid-template-columns: minmax(0, 1fr);
        text-align: left
    }

    .df-single-post__author-avatar {
        width: 6rem;
        height: 6rem
    }

    .df-single-post__comment-form {
        grid-template-columns: minmax(0, 1fr)
    }

    .df-single-post__comment-list .children {
        padding-left: 2.5rem
    }
}

@media (min-width: 900px) and (max-width: 1099px) {
    .df-single-post__related-carousel .swiper-slide {
        width: calc(50% - .75rem)
    }
}
