/**
 * Single post layout: pink Design mockups 17 Nov 2026.
 * Scoped to body.single-post only. Pages, /articles/, CPTs untouched.
 */

/* START SINGLE POST SHELL */

body.single-post {
    background: #fff;
}

body.single-post .site-content > .ast-container {
    max-width: 1240px;
    padding: 0 20px;
}

body.single-post #primary {
    margin: 56px 0;
    padding: 0;
}

body.single-post article.ast-article-single {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: 0;
}

body.single-post .entry-content > * {
    max-width: 640px;
}

/* Grid children manage their own width */
body.single-post .entry-content > .ccc-head,
body.single-post .entry-content > .ccc-grid {
    max-width: none;
}

body.single-post .entry-content p,
body.single-post .entry-content li {
    font-size: 19px;
    line-height: 1.65;
}

body.single-post .post-navigation {
    max-width: 640px;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 921px) {
    body.single-post .site-content > .ast-container {
        padding: 0 24px;
    }

    body.single-post #primary {
        margin-top: 32px;
    }

    body.single-post .entry-content p,
    body.single-post .entry-content li {
        font-size: 18px;
    }
}

/* END SINGLE POST SHELL */

/* START CCC HEAD (theme title missing until #742) */

body.single-post .ccc-head {
    max-width: 640px;
    margin: 0 0 28px;
}

body.single-post .ccc-head__kicker {
    margin: 0 0 8px;
    font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4F342A;
}

body.single-post .ccc-head__title {
    margin: 0;
    font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.05;
    color: #41261A;
}

@media (max-width: 921px) {
    body.single-post .ccc-head__title {
        font-size: 34px;
    }
}

/* END CCC HEAD */

/* START GRID + RAIL */

body.single-post .ccc-grid {
    display: grid;
    grid-template-columns: minmax(0, 640px) 380px;
    justify-content: space-between;
    align-items: start;
    gap: 24px;
}

body.single-post .ccc-main {
    min-width: 0;
    max-width: 640px;
}

body.single-post .ccc-rail {
    position: sticky;
    top: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

body.single-post .ccc-toc {
    background: #FBFAF9;
    border: 1px solid #EDE5DC;
    border-radius: 15px;
    padding: 22px 24px;
}

body.single-post .ccc-toc__label {
    margin: 0 0 12px;
    font-weight: 600;
    font-size: 15px;
    color: #41261A;
}

body.single-post .ccc-toc__list {
    margin: 0;
    padding-left: 1.25em;
}

body.single-post .ccc-toc__list a,
body.single-post .ccc-toc-m a {
    color: #4F342A;
    text-decoration: none;
}

body.single-post .ccc-toc__list a:hover,
body.single-post .ccc-toc-m a:hover {
    color: #E8206C;
}

body.single-post .ccc-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    background: #FBFAF9;
    border: 1px solid #EDE5DC;
    border-radius: 15px;
}

body.single-post .ccc-mini__photo img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
    display: block;
}

body.single-post .ccc-mini__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #4F342A;
}

body.single-post .ccc-mini__cta {
    color: #E8206C;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

body.single-post .ccc-mini__cta:hover {
    color: #DA1C4B;
}

/* Mobile: one column, hide rail, show fold-out TOC */
body.single-post .ccc-toc-m {
    display: none;
    margin: 20px 0 28px;
    background: #FBFAF9;
    border: 1px solid #EDE5DC;
    border-radius: 15px;
    padding: 14px 18px;
}

body.single-post .ccc-toc-m summary {
    cursor: pointer;
    font-weight: 600;
    color: #41261A;
    list-style: none;
}

body.single-post .ccc-toc-m summary::-webkit-details-marker {
    display: none;
}

body.single-post .ccc-toc-m[open] summary {
    margin-bottom: 10px;
}

@media (max-width: 921px) {
    body.single-post .ccc-grid {
        grid-template-columns: 1fr;
    }

    body.single-post .ccc-rail {
        display: none;
    }

    body.single-post .ccc-toc-m {
        display: block;
    }
}

/* END GRID + RAIL */

/* START FACES BLOCK (.ccc-next) */

body.single-post .ccc-next {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 32px;
    align-items: center;
    background: #FFFBFC;
    border: 1px solid #F3DCE5;
    border-radius: 15px;
    padding: 32px 36px;
    margin: 40px 0 8px;
    max-width: 640px;
}

body.single-post .ccc-next:before {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(232, 32, 108, 0.12) 0%, rgba(232, 32, 108, 0) 70%);
    pointer-events: none;
}

body.single-post .ccc-next .ph {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #F3DCE5;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

body.single-post .ccc-next .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    display: block;
}

body.single-post .ccc-next .tx {
    position: relative;
    z-index: 1;
    min-width: 0;
}

body.single-post .ccc-next h3 {
    margin: 0 0 10px;
    font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.1;
    color: #41261A;
}

body.single-post .ccc-next p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.6;
    color: #4F342A;
}

body.single-post .ccc-next .row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
    align-items: center;
}

body.single-post .ccc-next .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E8206C;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none !important;
    line-height: 1.2;
}

body.single-post .ccc-next .btn:hover {
    background: #DA1C4B;
    color: #fff !important;
}

body.single-post .ccc-next .lnk {
    color: #4F342A;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #E35C5C;
    text-underline-offset: 4px;
}

body.single-post .ccc-next .lnk:hover {
    color: #E8206C;
}

@media (max-width: 700px) {
    body.single-post .ccc-next {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
        gap: 18px;
    }

    body.single-post .ccc-next .ph {
        flex-basis: 112px;
        width: 112px;
        height: 112px;
    }

    body.single-post .ccc-next h3 {
        font-size: 28px;
    }
}

/* END FACES BLOCK */

/* START OPTIONAL PULL QUOTE + FIGURE (Design #2; class-gated) */

body.single-post blockquote.ccc-pull {
    margin: 32px 0;
    padding: 8px 0 8px 20px;
    border-left: 4px solid #E8206C;
    background: transparent;
    max-width: 640px;
}

body.single-post blockquote.ccc-pull p {
    margin: 0;
    font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: #41261A;
}

@media (max-width: 921px) {
    body.single-post blockquote.ccc-pull p {
        font-size: 26px;
    }
}

body.single-post figure.ccc-fig {
    margin: 28px 0;
    max-width: 640px;
}

body.single-post figure.ccc-fig img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

body.single-post figure.ccc-fig figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #4F342A;
}

/* END OPTIONAL PULL QUOTE + FIGURE */
