.wfi-article-page {
    padding: 14px 0 0;
    background: linear-gradient(180deg, #fffaf7 0, #fff 30%);
}

.wfi-article-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(28px, 4vw, 52px);
    padding: clamp(18px, 3vw, 34px) 0 clamp(56px, 7vw, 88px);
}

.wfi-article {
    width: calc(100% - 320px);
    max-width: 850px;
}

.wfi-article-sidebar {
    position: sticky;
    top: 100px;
    width: 280px;
}

.wfi-article-header {
    max-width: 810px;
}

.wfi-article-header h1 {
    max-width: 800px;
    margin: 14px 0 12px;
    font-size: clamp(2.25rem, 4vw, 3.55rem);
    letter-spacing: -.05em;
    line-height: 1.04;
}

.wfi-article-header > p {
    max-width: 730px;
    margin: 0 0 20px;
    color: var(--wfi-muted);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.58;
}

.wfi-article-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--wfi-muted);
    font-size: .8rem;
}

.wfi-article-byline img {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(23, 35, 58, .12);
}

.wfi-article-byline strong {
    color: var(--wfi-heading);
}

.wfi-article-byline time::before,
.wfi-article-byline time + span::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 9px 2px 0;
    border-radius: 50%;
    background: currentColor;
}

.wfi-article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}

.wfi-article-share > strong {
    margin-right: 4px;
    font-size: .78rem;
}

.wfi-article-share a,
.wfi-article-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--wfi-border);
    border-radius: 50%;
    background: #fff;
    color: var(--wfi-heading);
    font-size: .8rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--wfi-motion-fast) var(--wfi-ease), color var(--wfi-motion-fast) var(--wfi-ease), transform var(--wfi-motion-fast) var(--wfi-ease);
}

.wfi-article-share a:hover,
.wfi-article-share button:hover {
    border-color: var(--wfi-primary);
    color: var(--wfi-primary);
    transform: translateY(-2px);
}

.wfi-article-share a:focus-visible,
.wfi-article-share button:focus-visible {
    outline: 3px solid rgba(237, 28, 36, .2);
    outline-offset: 2px;
}

.wfi-article-share__status {
    color: var(--wfi-success);
    font-size: .75rem;
}

.wfi-article-hero {
    margin: clamp(20px, 3vw, 30px) 0 clamp(28px, 4vw, 42px);
}

.wfi-article-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    border-radius: clamp(14px, 2vw, 22px);
    object-fit: cover;
    box-shadow: 0 18px 46px rgba(23, 35, 58, .1);
}

.wfi-article-hero figcaption {
    padding-top: 8px;
    color: var(--wfi-muted);
    font-size: .74rem;
}

.wfi-article .wfi-prose {
    max-width: 780px;
    color: var(--wfi-text);
    font-size: clamp(1rem, 1.2vw, 1.06rem);
    line-height: 1.72;
}

.wfi-article .wfi-prose > :first-child {
    margin-top: 0;
}

.wfi-article .wfi-prose h2 {
    scroll-margin-top: 110px;
    margin: 1.75em 0 .45em;
    font-size: clamp(1.55rem, 2.5vw, 1.9rem);
    line-height: 1.18;
}

.wfi-article .wfi-prose h3 {
    scroll-margin-top: 110px;
    margin: 1.55em 0 .4em;
    font-size: clamp(1.25rem, 2vw, 1.45rem);
    line-height: 1.25;
}

.wfi-article .wfi-prose p,
.wfi-article .wfi-prose ul,
.wfi-article .wfi-prose ol {
    margin-top: .7em;
    margin-bottom: 1.15em;
}

.wfi-article .wfi-prose img {
    height: auto;
    border-radius: 12px;
}

.wfi-article .wfi-prose figure {
    max-width: 100%;
}

.wfi-article .wfi-prose blockquote {
    padding: clamp(20px, 3vw, 28px);
    border-left: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #fff0f1, #fff8f3);
    color: var(--wfi-heading);
    font-weight: 700;
}

.wfi-article .wfi-prose ul li::marker,
.wfi-article .wfi-prose ol li::marker {
    color: var(--wfi-primary);
    font-weight: 800;
}

.wfi-article-toc {
    padding: 24px;
    border: 1px solid var(--wfi-border);
    border-radius: var(--wfi-radius-sm);
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 35, 58, .05);
}

.wfi-article-toc h2 {
    margin: 0 0 15px;
    font-size: 1.15rem;
}

.wfi-article-toc ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.wfi-article-toc li {
    border-left: 2px solid var(--wfi-border);
}

.wfi-article-toc li.is-level-3 {
    padding-left: 10px;
}

.wfi-article-toc a {
    display: block;
    padding: 8px 0 8px 13px;
    color: var(--wfi-muted);
    font-size: .8rem;
    line-height: 1.35;
    text-decoration: none;
}

.wfi-article-toc a:hover,
.wfi-article-toc a.is-active {
    margin-left: -2px;
    border-left: 2px solid var(--wfi-primary);
    color: var(--wfi-primary);
}

.wfi-article-toc--mobile {
    display: none;
}

.wfi-newsletter--sidebar {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    padding: 22px;
    margin-top: 18px;
}

.wfi-newsletter--sidebar .wfi-newsletter__copy,
.wfi-newsletter--sidebar .wfi-newsletter__form {
    width: 100%;
}

.wfi-newsletter--sidebar h2 {
    font-size: 1.25rem;
}

.wfi-article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(22px, 3vw, 30px);
    margin: clamp(32px, 5vw, 48px) 0;
    border: 1px solid rgba(237, 28, 36, .1);
    border-radius: var(--wfi-radius-sm);
    background: linear-gradient(110deg, #fff0f1, #fff8f3);
}

.wfi-article-cta > div {
    width: calc(100% - 220px);
}

.wfi-article-cta h2 {
    margin: 0 0 5px;
    font-size: clamp(1.3rem, 2vw, 1.55rem);
}

.wfi-article-cta p {
    margin: 0;
    color: var(--wfi-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.wfi-article-author {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(19px, 3vw, 26px);
    margin-top: 34px;
    border: 1px solid var(--wfi-border);
    border-radius: var(--wfi-radius-sm);
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 35, 58, .05);
}

.wfi-article-author > span {
    flex-shrink: 0;
}

.wfi-article-author img {
    display: block;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(23, 35, 58, .12);
}

.wfi-article-author small {
    color: var(--wfi-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wfi-article-author h2 {
    margin: 2px 0 0;
    color: var(--wfi-primary);
    font-size: 1.08rem;
}

.wfi-article-author p {
    max-width: 620px;
    margin: 5px 0 0;
    color: var(--wfi-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.wfi-article-related {
    margin-top: clamp(38px, 5vw, 56px);
}

.wfi-article-related > h2 {
    margin-bottom: 18px;
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
}

.wfi-article-related__row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
}

.wfi-article-related .wfi-post-card {
    width: calc(33.333% - 11px);
}

.wfi-article-related .wfi-post-card__media {
    min-height: 132px;
}

.wfi-article-related .wfi-post-card__media img {
    height: 132px;
}

.wfi-article-related .wfi-post-card__body {
    padding: 15px;
}

.wfi-article-related .wfi-post-card h2 {
    margin: 7px 0 10px;
    font-size: .94rem;
    line-height: 1.3;
}

.wfi-article-related .wfi-post-card p,
.wfi-article-related .wfi-text-link {
    display: none;
}

.wfi-article-related .wfi-post-card__meta {
    font-size: .67rem;
}

.wfi-article-page .wfi-comments {
    padding-top: clamp(34px, 5vw, 54px);
    margin-top: clamp(38px, 5vw, 56px);
    border-top: 1px solid var(--wfi-border);
}

.wfi-comments > h2,
.wfi-comments .comment-reply-title {
    margin-top: 0;
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
}

.wfi-comment-list {
    padding: 0;
    list-style: none;
}

.wfi-comment-list .comment-body {
    position: relative;
    padding: 20px 20px 20px 84px;
    margin-bottom: 14px;
    border: 1px solid var(--wfi-border);
    border-radius: var(--wfi-radius-sm);
    background: #fff;
}

.wfi-comment-list .avatar {
    position: absolute;
    left: 20px;
    top: 20px;
    border-radius: 50%;
}

.wfi-comment-list .comment-meta {
    font-size: .76rem;
}

.wfi-comment-list .comment-content {
    font-size: .9rem;
    line-height: 1.55;
}

.wfi-comments .comment-respond {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--wfi-border);
    border-radius: var(--wfi-radius-sm);
    background: #fffaf8;
}

.wfi-comments .comment-notes {
    margin-top: -8px;
    color: var(--wfi-muted);
    font-size: .84rem;
}

.wfi-comments .comment-form {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
}

.wfi-comments .comment-form > p {
    margin: 0;
}

.wfi-comments .comment-form-comment,
.wfi-comments .comment-form-url,
.wfi-comments .comment-form-cookies-consent,
.wfi-comments .form-submit {
    width: 100%;
}

.wfi-comments .comment-form-author,
.wfi-comments .comment-form-email {
    width: calc(50% - 7px);
}

.wfi-comments .comment-form label:not([for=wp-comment-cookies-consent]) {
    display: block;
    margin-bottom: 6px;
    color: var(--wfi-heading);
    font-size: .8rem;
    font-weight: 800;
}

.wfi-comments .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--wfi-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.wfi-comments .comment-form-cookies-consent input {
    flex-shrink: 0;
    margin-top: 3px;
}

.wfi-comments .comment-form input:not([type=submit]):not([type=checkbox]),
.wfi-comments .comment-form textarea {
    width: 100%;
    border-radius: 9px;
    background: #fff;
}

.wfi-comments .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wfi-comments .form-submit {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 940px) {
    .wfi-article-layout {
        flex-direction: column;
    }

    .wfi-article {
        width: 100%;
        max-width: none;
    }

    .wfi-article-sidebar {
        position: static;
        display: block;
        width: 100%;
    }

    .wfi-article-sidebar > .wfi-article-toc {
        display: none;
    }

    .wfi-article-toc--mobile {
        display: block;
        padding: 0;
        margin: 22px 0 30px;
    }

    .wfi-article-toc--mobile summary {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 16px;
        color: var(--wfi-heading);
        font-weight: 900;
        list-style: none;
        cursor: pointer;
    }

    .wfi-article-toc--mobile summary::-webkit-details-marker {
        display: none;
    }

    .wfi-article-toc--mobile summary > span {
        margin-left: auto;
        transition: transform var(--wfi-motion-fast) var(--wfi-ease);
    }

    .wfi-article-toc--mobile[open] summary > span {
        transform: rotate(180deg);
    }

    .wfi-article-toc--mobile ol {
        padding: 0 16px 16px;
    }

    .wfi-newsletter--sidebar {
        margin-bottom: 0;
    }
}

@media (max-width: 680px) {
    .wfi-article-layout {
        padding-top: 12px;
    }

    .wfi-article-header h1 {
        margin-top: 12px;
        font-size: clamp(2rem, 9vw, 2.65rem);
        line-height: 1.06;
    }

    .wfi-article-header > p {
        font-size: .96rem;
    }

    .wfi-article-byline {
        gap: 6px;
    }

    .wfi-article-byline img {
        width: 36px;
        height: 36px;
    }

    .wfi-article-byline time::before,
    .wfi-article-byline time + span::before {
        margin-right: 6px;
    }

    .wfi-article-share {
        margin-top: 14px;
    }

    .wfi-article-hero {
        margin: 18px 0 26px;
    }

    .wfi-article .wfi-prose {
        font-size: .98rem;
        line-height: 1.65;
    }

    .wfi-article .wfi-prose h2 {
        font-size: 1.5rem;
    }

    .wfi-article .wfi-prose h3 {
        font-size: 1.24rem;
    }

    .wfi-article-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .wfi-article-cta > div,
    .wfi-article-cta .wfi-button {
        width: 100%;
    }

    .wfi-article-cta .wfi-button {
        justify-content: center;
    }

    .wfi-article-author {
        align-items: flex-start;
        padding: 18px;
    }

    .wfi-article-related__row {
        gap: 12px;
    }

    .wfi-article-related .wfi-post-card {
        display: flex;
        align-items: stretch;
        flex-direction: row;
        width: 100%;
        min-height: 124px;
    }

    .wfi-article-related .wfi-post-card__media {
        width: 36%;
        min-height: 124px;
        border-radius: 12px 0 0 12px;
    }

    .wfi-article-related .wfi-post-card__media img {
        height: 100%;
        min-height: 124px;
    }

    .wfi-article-related .wfi-post-card__body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 64%;
        padding: 14px;
    }

    .wfi-article-related .wfi-post-card h2 {
        font-size: .86rem;
    }

    .wfi-article-related .wfi-post-card__meta span + span {
        display: none;
    }

    .wfi-comments .comment-respond {
        padding: 20px;
    }

    .wfi-comments .comment-form-author,
    .wfi-comments .comment-form-email {
        width: 100%;
    }
}

@media (max-width: 440px) {
    .wfi-article-byline time,
    .wfi-article-byline time + span {
        width: calc(50% - 22px);
    }

    .wfi-article-byline time::before,
    .wfi-article-byline time + span::before {
        display: none;
    }

    .wfi-article-author {
        flex-direction: column;
    }

    .wfi-comment-list .comment-body {
        padding: 18px;
    }

    .wfi-comment-list .avatar {
        position: static;
        margin-bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wfi-article-share a,
    .wfi-article-share button,
    .wfi-article-toc--mobile summary > span {
        transition: none;
    }
}
