.single-post {
    --article-line: rgba(255, 255, 255, 0.11);
    --article-card: rgba(16, 18, 36, 0.88);
}

.article-shell {
    width: min(100% - var(--page-gutter), 1120px);
    margin-inline: auto;
}

.article-shell--wide {
    width: min(100% - var(--page-gutter), var(--container));
}

.article-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--article-line);
    background:
        radial-gradient(circle at 18% 16%, rgba(112, 87, 255, 0.22), transparent 27rem),
        radial-gradient(circle at 86% 78%, rgba(100, 216, 255, 0.08), transparent 26rem);
}

.article-hero::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    pointer-events: none;
}

.article-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(3rem, 7vw, 6rem);
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: clamp(2rem, 5vw, 4.5rem);
    color: var(--color-muted);
    font-size: 0.86rem;
}

.article-breadcrumbs a {
    text-decoration: none;
}

.article-hero__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.35rem;
}

.article-hero__categories a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border: 1px solid rgba(145, 119, 255, 0.45);
    border-radius: 999px;
    background: rgba(112, 87, 255, 0.1);
    color: #dcd5ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
}

.article-hero__title {
    max-width: 1030px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.65rem, 6.4vw, 5.65rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.article-hero__excerpt {
    max-width: 800px;
    margin: 1.5rem 0 0;
    color: #c7c9d7;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: clamp(2rem, 4vw, 3.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--article-line);
}

.article-meta__author {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.article-meta__avatar,
.article-author__avatar {
    border: 2px solid rgba(145, 119, 255, 0.6);
    border-radius: 50%;
}

.article-meta__author div {
    display: grid;
}

.article-meta__author span,
.article-meta__facts {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.article-meta__author strong {
    color: #fff;
}

.article-meta__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
}

.article-meta__facts span {
    position: relative;
}

.article-meta__facts span + span::before {
    position: absolute;
    left: -0.83rem;
    color: #655f81;
    content: "·";
}

.article-featured {
    margin-top: clamp(2rem, 5vw, 4rem);
}

.article-featured img {
    width: 100%;
    max-height: 680px;
    border: 1px solid var(--article-line);
    border-radius: 18px;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.28);
    object-fit: cover;
}

.article-featured figcaption {
    max-width: 850px;
    margin: 0.75rem auto 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    text-align: center;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(250px, 300px);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.article-content.entry-content {
    max-width: none;
    margin: 0;
    color: #c9cbd7;
    font-size: clamp(1.05rem, 1.4vw, 1.16rem);
    line-height: 1.85;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content figure,
.article-content blockquote,
.article-content table,
.article-content pre {
    margin-block: 1.45em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    max-width: 720px;
    color: #fff;
    letter-spacing: -0.035em;
    scroll-margin-top: 110px;
    text-wrap: balance;
}

.article-content h2 {
    margin: 2.2em 0 0.7em;
    font-size: clamp(1.85rem, 3.3vw, 2.8rem);
    line-height: 1.08;
}

.article-content h3 {
    margin: 1.8em 0 0.65em;
    font-size: clamp(1.4rem, 2.3vw, 1.85rem);
}

.article-content a {
    color: #9edfff;
    text-decoration-thickness: 1px;
}

.article-content strong {
    color: #f5f5fa;
}

.article-content ul,
.article-content ol {
    display: grid;
    gap: 0.6rem;
    padding-left: 1.35rem;
}

.article-content li::marker {
    color: #8d78ff;
    font-weight: 700;
}

.article-content blockquote {
    position: relative;
    margin-inline: 0;
    border: 1px solid rgba(145, 119, 255, 0.34);
    border-left: 4px solid #8d78ff;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, rgba(112, 87, 255, 0.13), rgba(16, 18, 36, 0.72));
    color: #f2f0ff;
    font-size: 1.15em;
    padding: 1.25rem 1.5rem;
}

.article-content blockquote > *:first-child {
    margin-top: 0;
}

.article-content blockquote > *:last-child {
    margin-bottom: 0;
}

.article-content figure img {
    border: 1px solid var(--article-line);
    border-radius: 12px;
}

.article-content figcaption {
    color: var(--color-muted);
    font-size: 0.82rem;
    text-align: center;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--article-line);
    border-radius: 10px;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    border-bottom: 1px solid var(--article-line);
    padding: 0.8rem 1rem;
    text-align: left;
}

.article-content th {
    background: rgba(112, 87, 255, 0.13);
    color: #fff;
}

.article-content code,
.article-content pre {
    border-radius: 6px;
    background: #111426;
    color: #d9dcff;
}

.article-content code {
    padding: 0.15em 0.35em;
}

.article-content pre {
    overflow-x: auto;
    padding: 1.1rem;
}

.article-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 1rem;
}

.article-toc,
.article-sidebar-cta {
    border: 1px solid var(--article-line);
    border-radius: 12px;
    background: var(--article-card);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.article-toc {
    padding: 1.15rem;
}

.article-toc summary {
    color: #fff;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
}

.article-toc ol {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.article-toc li {
    line-height: 1.35;
}

.article-toc__level-3 {
    padding-left: 0.85rem;
}

.article-toc a {
    color: var(--color-muted);
    font-size: 0.84rem;
    text-decoration: none;
}

.article-toc a:hover {
    color: #fff;
}

.article-sidebar-cta {
    display: grid;
    gap: 0.55rem;
    background: linear-gradient(145deg, rgba(112, 87, 255, 0.2), rgba(16, 18, 36, 0.94));
    padding: 1.25rem;
}

.article-sidebar-cta span {
    color: #a99bff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-sidebar-cta strong {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.2;
}

.article-sidebar-cta p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.article-sidebar-cta a,
.article-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    color: #fff;
    font-weight: 700;
    padding: 0.7rem 1rem;
    text-align: center;
    text-decoration: none;
}

.article-sidebar-cta a {
    margin-top: 0.35rem;
    background: linear-gradient(135deg, #8f42ef, #356cf5);
}

.article-footer {
    padding-bottom: clamp(3.5rem, 8vw, 7rem);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 2rem;
}

.article-tags span {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-tags a {
    border: 1px solid var(--article-line);
    border-radius: 999px;
    color: #d8d9e2;
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
    text-decoration: none;
}

.article-author {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    border: 1px solid var(--article-line);
    border-radius: 14px;
    background: var(--article-card);
    padding: clamp(1.3rem, 3vw, 2rem);
}

.article-author__eyebrow,
.article-section-heading > p,
.article-conversion > div > p {
    margin: 0 0 0.35rem;
    color: #9f90ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.article-author h2,
.article-section-heading h2,
.article-conversion h2 {
    margin: 0;
    color: #fff;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.article-author h2 {
    font-size: 1.55rem;
}

.article-author p:not(.article-author__eyebrow) {
    max-width: 750px;
    margin: 0.65rem 0;
    color: var(--color-muted);
}

.article-author a {
    color: #a99bff;
    font-weight: 700;
    text-decoration: none;
}

.article-conversion {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-top: clamp(2.5rem, 6vw, 5rem);
    border: 1px solid rgba(145, 119, 255, 0.35);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(100, 216, 255, 0.12), transparent 19rem),
        linear-gradient(135deg, rgba(66, 37, 139, 0.75), rgba(17, 20, 48, 0.95));
    padding: clamp(1.5rem, 4vw, 3rem);
}

.article-conversion h2 {
    max-width: 650px;
    font-size: clamp(1.7rem, 3.3vw, 2.7rem);
}

.article-conversion__actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.65rem;
}

.article-button--primary {
    border-color: transparent;
    background: #fff;
    color: #111326;
}

.article-button:hover {
    color: #fff;
}

.article-button--primary:hover {
    color: #111326;
}

.article-related {
    margin-top: clamp(3.5rem, 7vw, 6rem);
}

.article-section-heading h2 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.article-related-card {
    overflow: hidden;
    border: 1px solid var(--article-line);
    border-radius: 12px;
    background: var(--article-card);
}

.article-related-card__media {
    display: grid;
    min-height: 180px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #262053, #11152b);
    color: #a99bff;
    font-weight: 700;
    text-decoration: none;
}

.article-related-card__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 220ms ease;
}

.article-related-card:hover .article-related-card__media img {
    transform: scale(1.025);
}

.article-related-card__body {
    display: grid;
    gap: 0.65rem;
    padding: 1.15rem;
}

.article-related-card time {
    color: var(--color-muted);
    font-size: 0.78rem;
}

.article-related-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.25;
}

.article-related-card h3 a,
.article-related-card__link {
    text-decoration: none;
}

.article-related-card__link {
    color: #a99bff;
    font-size: 0.86rem;
    font-weight: 700;
}

.article-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.article-post-nav > div:last-child {
    text-align: right;
}

.article-post-nav a {
    display: grid;
    gap: 0.25rem;
    min-height: 100%;
    border-top: 1px solid var(--article-line);
    color: #fff;
    padding-top: 1.1rem;
    text-decoration: none;
}

.article-post-nav span {
    color: var(--color-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.article-post-nav strong {
    line-height: 1.3;
}

.article-comments {
    padding-block: 0 clamp(4rem, 8vw, 7rem);
}

.comment-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 3rem;
    padding: 0;
    list-style: none;
}

.comment-list .comment-body {
    border: 1px solid var(--article-line);
    border-radius: 10px;
    background: var(--article-card);
    padding: 1.2rem;
}

.comment-list .children {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style: none;
}

.comment-author {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata,
.comment-notes,
.logged-in-as {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.comment-reply-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    border: 1px solid var(--article-line);
    border-radius: 14px;
    background: var(--article-card);
    padding: clamp(1.25rem, 3vw, 2rem);
}

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

.comment-form .comment-notes,
.comment-form .logged-in-as,
.comment-form-comment,
.comment-form-cookies-consent,
.comment-form .form-submit {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--article-line);
    border-radius: 7px;
    outline: none;
    background: #0a0c19;
    color: #fff;
    font: inherit;
    padding: 0.8rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #8d78ff;
    box-shadow: 0 0 0 3px rgba(112, 87, 255, 0.13);
}

.comment-form .submit {
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, #8f42ef, #356cf5);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 0.75rem 1.1rem;
}

@media (max-width: 980px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        grid-row: 1;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
    }

    .article-conversion {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-related-card:last-child {
        display: none;
    }
}

@media (max-width: 680px) {
    .article-hero__inner {
        padding-top: 3rem;
    }

    .article-breadcrumbs {
        margin-bottom: 2.5rem;
    }

    .article-hero__title {
        font-size: clamp(2.45rem, 13vw, 3.7rem);
    }

    .article-meta,
    .article-meta__facts {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-meta__facts span + span::before {
        display: none;
    }

    .article-featured img {
        min-height: 230px;
        border-radius: 10px;
    }

    .article-layout {
        padding-top: 2.5rem;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-toc:not([open]) {
        padding-bottom: 1.15rem;
    }

    .article-author {
        grid-template-columns: 1fr;
    }

    .article-author__avatar {
        width: 76px;
        height: 76px;
    }

    .article-conversion__actions,
    .article-button {
        width: 100%;
    }

    .article-conversion__actions {
        flex-direction: column;
    }

    .article-related__grid,
    .article-post-nav,
    .comment-form {
        grid-template-columns: 1fr;
    }

    .article-related-card:last-child {
        display: block;
    }

    .article-post-nav > div:last-child {
        text-align: left;
    }

    .comment-form > p {
        grid-column: 1;
    }
}
