/* =========================================================
   SINGLE BLOG POST
   File: /wp-content/themes/philo/css/single-post.css
   ========================================================= */

/* ---------------------------------------------------------
   VARIABLES + BASE
   --------------------------------------------------------- */

.single-post-page {
    --post-burgundy: #4a060d;
    --post-coral: #c86358;
    --post-rose: #8d6267;
    --post-peach: #f5eae6;
    --post-white: #ffffff;
    --post-black: #000000;

    width: 100%;
    overflow: visible;
    background: var(--post-white);
    color: var(--post-burgundy);
    font-family: "Manrope", sans-serif;
}

.single-post-page *,
.single-post-page *::before,
.single-post-page *::after {
    box-sizing: border-box;
}

.single-post-page img {
    max-width: 100%;
    height: auto;
}

.single-post-page p,
.single-post-page li,
.single-post-page a,
.single-post-page span,
.single-post-page div {
    font-family: "Manrope", sans-serif;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.single-post-hero {
    width: 100%;
    background: var(--post-peach);
}

.single-post-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-height: 610px;
}

.single-post-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px clamp(40px, 7vw, 120px) 80px;
}

.single-post-hero__title {
    max-width: 700px;
    margin: 0 0 28px;
    color: var(--post-burgundy);
    font-family: "Manrope", sans-serif;
    font-size: 54px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.single-post-hero__excerpt {
    max-width: 620px;
    margin: 0;
    color: var(--post-coral);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
}

.single-post-hero__image {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: var(--post-peach);
}

.single-post-hero__image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-hero__image:empty {
    display: none;
}

.single-post-hero__content:has(.single-post-hero__image:empty) {
    grid-template-columns: 1fr;
}

.single-post-hero__content:has(.single-post-hero__image:empty)
.single-post-hero__copy {
    min-height: 520px;
}

/* ---------------------------------------------------------
   MAIN ARTICLE + SIDEBAR
   --------------------------------------------------------- */

.single-post-layout {
    width: 100%;
    background: var(--post-white);
}

.single-post-layout__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.75fr);
    align-items: start;
    width: min(1440px, calc(100% - 80px));
    margin: 0 auto;
    padding: 80px 0;
    gap: 48px;
}

.single-post-article {
    min-width: 0;
}

.single-post-article__content {
    width: 100%;
    max-width: 900px;
    color: var(--post-burgundy);
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0;
}

.single-post-article__content > *:first-child {
    margin-top: 0;
}

.single-post-article__content > *:last-child {
    margin-bottom: 0;
}

.single-post-article__content p {
    margin: 0 0 24px;
}

.single-post-article__content h2 {
    margin: 48px 0 18px;
    color: var(--post-coral);
    font-size: 35px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    scroll-margin-top: 100px;
}

.single-post-article__content h3 {
    margin: 36px 0 16px;
    color: var(--post-burgundy);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    scroll-margin-top: 120px;
}

.single-post-article__content h4,
.single-post-article__content h5,
.single-post-article__content h6 {
    margin: 30px 0 14px;
    color: var(--post-burgundy);
    font-weight: 700;
    line-height: 1.35;
    scroll-margin-top: 120px;
}

.single-post-article__content ul,
.single-post-article__content ol {
    margin: 0 0 26px;
    padding-left: 28px;
}

.single-post-article__content li {
    margin-bottom: 8px;
}

.single-post-article__content li:last-child {
    margin-bottom: 0;
}

.single-post-article__content a {
    color: var(--post-coral);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.single-post-article__content a:hover {
    color: var(--post-burgundy);
}

.single-post-article__content blockquote {
    margin: 38px 0;
    padding: 28px 34px;
    border-left: 5px solid var(--post-coral);
    background: var(--post-peach);
    color: var(--post-burgundy);
    font-size: 18px;
    line-height: 1.65;
}

.single-post-article__content figure {
    margin: 38px 0;
}

.single-post-article__content figcaption {
    margin-top: 10px;
    color: var(--post-rose);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.single-post-article__content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.single-post-article__content table {
    width: 100%;
    margin: 35px 0;
    border-collapse: collapse;
}

.single-post-article__content th,
.single-post-article__content td {
    padding: 14px 16px;
    border: 1px solid rgba(74, 6, 13, 0.14);
    text-align: left;
    vertical-align: top;
}

.single-post-article__content th {
    background: var(--post-peach);
    color: var(--post-burgundy);
    font-weight: 700;
}

/* ---------------------------------------------------------
   STICKY DESKTOP SIDEBAR
   --------------------------------------------------------- */

.single-post-sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
    width: 100%;
    overflow: hidden;
    background: var(--post-burgundy);
    color: var(--post-white);
}

.single-post-sidebar__cta,
.single-post-sidebar__toc,
.single-post-sidebar__author {
    padding: 42px 36px;
}

.single-post-sidebar__cta {
    padding-bottom: 32px;
}

.single-post-sidebar__cta h2,
.single-post-sidebar__author-heading,
.single-post-faq__heading {
    font-family: "Manrope", sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.single-post-sidebar__cta h2 {
    margin: 0 0 32px;
    color: var(--post-white);
}

.single-post-sidebar__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-bottom: 16px;
    padding: 13px 20px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.single-post-sidebar__button:last-child {
    margin-bottom: 0;
}

.single-post-sidebar__button:hover {
    transform: translateY(-2px);
}

.single-post-sidebar__button--light {
    background: var(--post-peach);
    color: var(--post-burgundy);
}

.single-post-sidebar__button--light:hover {
    border-color: var(--post-peach);
    background: transparent;
    color: var(--post-white);
}

.single-post-sidebar__button--coral {
    background: var(--post-coral);
    color: var(--post-white);
}

.single-post-sidebar__button--coral:hover {
    border-color: var(--post-coral);
    background: transparent;
    color: var(--post-white);
}

/* ---------------------------------------------------------
   TABLE OF CONTENTS
   Easy Table of Contents
   --------------------------------------------------------- */

.single-post-sidebar__toc {
    padding-top: 30px;
    padding-bottom: 38px;
}

.single-post-sidebar__toc > h3 {
    margin: 0 0 28px;
    color: var(--post-white);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-align: center;
}

.single-post-sidebar__toc .ez-toc-container,
.single-post-sidebar__toc #ez-toc-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.single-post-sidebar__toc .ez-toc-title-container,
.single-post-sidebar__toc .ez-toc-title,
.single-post-sidebar__toc .ez-toc-toggle {
    display: none !important;
}

.single-post-sidebar__toc nav,
.single-post-sidebar__toc nav > ul,
.single-post-sidebar__toc nav > ol,
.single-post-sidebar__toc ul,
.single-post-sidebar__toc ol,
.single-post-sidebar__toc .ez-toc-list,
.single-post-sidebar__toc .ez-toc-list-level-1,
.single-post-sidebar__toc .ez-toc-list-level-2 {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    counter-reset: none !important;
}

.single-post-sidebar__toc li,
.single-post-sidebar__toc .ez-toc-page-1,
.single-post-sidebar__toc .ez-toc-heading-level-2,
.single-post-sidebar__toc .ez-toc-heading-level-3 {
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
    counter-increment: none !important;
    text-align: center;
}

.single-post-sidebar__toc li:last-child {
    margin-bottom: 0 !important;
}

.single-post-sidebar__toc li::marker {
    content: "" !important;
    font-size: 0 !important;
}

.single-post-sidebar__toc li::before,
.single-post-sidebar__toc a::before,
.single-post-sidebar__toc .ez-toc-list-level-1 > li::before,
.single-post-sidebar__toc .ez-toc-list-level-2 > li::before {
    display: none !important;
    content: none !important;
}

.single-post-sidebar__toc a {
    display: inline-block;
    color: var(--post-white) !important;
    font-size: 15px !important;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-decoration: none !important;
}

.single-post-sidebar__toc a:hover,
.single-post-sidebar__toc a:focus,
.single-post-sidebar__toc .active > a {
    color: var(--post-coral) !important;
}

/* ---------------------------------------------------------
   A WORD FROM PHIA â€” DESKTOP
   --------------------------------------------------------- */

.single-post-sidebar__author {
    padding-top: 28px;
    padding-bottom: 48px;
}

.single-post-sidebar__author-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 24px;
    object-fit: cover;
}

.single-post-sidebar__author-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin: 0 0 24px;
    color: var(--post-white);
}

.single-post-sidebar__signature {
    display: inline-block;
    color: var(--post-white);
    font-family: "Mrs Saint Delafield", cursive !important;
    font-size: 58px;
    font-weight: 400;
    line-height: 0.8;
    letter-spacing: 0;
    transform: rotate(-4deg);
}

.single-post-sidebar__author-copy {
    color: var(--post-white);
    text-align: center;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0;
}

.single-post-sidebar__author-copy p {
    margin: 0 0 18px;
}

.single-post-sidebar__author-copy p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   FAQ SECTION
   --------------------------------------------------------- */

.single-post-faq {
    width: 100%;
    padding: 80px 0;
    background: var(--post-white);
}

.single-post-faq__inner {
    width: min(1440px, calc(100% - 80px));
    margin: 0 auto;
}

.single-post-faq__heading {
    margin: 0 0 38px;
    color: var(--post-coral);
}

.single-post-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-post-faq__item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 112px;
}

.single-post-faq__number {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: var(--post-coral);
    color: var(--post-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.single-post-faq__content {
    padding: 26px 30px;
    border: 1px solid rgba(74, 6, 13, 0.12);
    background: var(--post-white);
}

.single-post-faq__question {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    color: var(--post-black);
    font-family: "Manrope", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
    text-transform: none !important;
    white-space: normal !important;
}

.single-post-faq__answer {
    color: var(--post-black);
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0;
    word-spacing: normal;
}

.single-post-faq__answer p {
    margin: 0 0 12px;
}

.single-post-faq__answer p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   MOBILE-ONLY AUTHOR + CTA
   --------------------------------------------------------- */

.single-post-mobile-author,
.single-post-mobile-cta {
    display: none;
}

/* ---------------------------------------------------------
   PAGE LINKS
   --------------------------------------------------------- */

.single-post-page .page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 42px;
}

.single-post-page .page-links a,
.single-post-page .page-links > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--post-coral);
    color: var(--post-burgundy);
    text-decoration: none;
}

.single-post-page .page-links > span,
.single-post-page .page-links a:hover {
    background: var(--post-coral);
    color: var(--post-white);
}

/* =========================================================
   LARGE TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .single-post-layout__inner {
        grid-template-columns: minmax(0, 1fr) 320px;
        width: min(100% - 56px, 1200px);
        gap: 42px;
    }

    .single-post-sidebar__cta,
    .single-post-sidebar__toc,
    .single-post-sidebar__author {
        padding-right: 28px;
        padding-left: 28px;
    }

    .single-post-faq__inner {
        width: min(100% - 56px, 1200px);
    }
}

/* =========================================================
   TABLET AND MOBILE
   ========================================================= */

@media (max-width: 991px) {

    .single-post-hero__content {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .single-post-hero__copy {
        min-height: 480px;
        padding: 120px 50px 70px;
    }

    .single-post-hero__image {
        min-height: 480px;
    }

    .single-post-layout__inner {
        display: block;
        width: min(100% - 48px, 840px);
        padding: 65px 0;
    }

    .single-post-article__content {
        max-width: none;
    }

    .single-post-sidebar {
        display: none;
    }

    .single-post-mobile-author {
        display: block;
        width: 100%;
        padding: 64px 0;
        background: var(--post-burgundy);
        color: var(--post-white);
    }

    .single-post-mobile-author__inner {
        width: min(100% - 48px, 760px);
        margin: 0 auto;
        text-align: center;
    }

    .single-post-mobile-author__image {
        display: block;
        width: 180px;
        height: 180px;
        margin: 0 auto 28px;
        border-radius: 50%;
        object-fit: cover;
    }

    .single-post-mobile-author__heading {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: center;
        gap: 6px 12px;
        margin: 0 0 26px;
        color: var(--post-white);
        font-size: 35px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .single-post-mobile-author__signature {
        color: var(--post-white);
        font-family: "Mrs Saint Delafield", cursive !important;
        font-size: 58px;
        font-weight: 400;
        line-height: 0.8;
        letter-spacing: 0;
        transform: rotate(-4deg);
    }

    .single-post-mobile-author__copy {
        color: var(--post-white);
        font-size: 15px;
        line-height: 1.7;
    }

    .single-post-mobile-author__copy p {
        margin: 0 0 18px;
    }

    .single-post-mobile-author__copy p:last-child {
        margin-bottom: 0;
    }

    .single-post-faq {
        padding: 65px 0;
    }

    .single-post-faq__inner {
        width: min(100% - 48px, 840px);
    }

    .single-post-mobile-cta {
        display: block;
        width: 100%;
        padding: 50px 0;
        background: var(--post-coral);
    }

    .single-post-mobile-cta__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: min(100% - 48px, 840px);
        margin: 0 auto;
        gap: 30px;
    }

    .single-post-mobile-cta h2 {
        margin: 0;
        color: var(--post-white);
        font-size: 35px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .single-post-mobile-cta__buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px;
    }

    .single-post-mobile-cta__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        padding: 12px 24px;
        border: 1px solid var(--post-white);
        background: var(--post-white);
        color: var(--post-burgundy);
        font-size: 12px;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        transition:
            background-color 0.25s ease,
            color 0.25s ease;
    }

    .single-post-mobile-cta__button:hover {
        background: transparent;
        color: var(--post-white);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .single-post-hero__copy {
        min-height: 420px;
        padding: 110px 28px 60px;
    }

    .single-post-hero__title {
        margin-bottom: 22px;
        font-size: 42px;
    }

    .single-post-hero__image {
        min-height: 400px;
    }

    .single-post-layout__inner {
        width: calc(100% - 40px);
        padding: 55px 0;
    }

    .single-post-article__content h2,
    .single-post-faq__heading,
    .single-post-mobile-author__heading,
    .single-post-mobile-cta h2 {
        font-size: 32px;
    }

    .single-post-article__content h3 {
        font-size: 24px;
    }

    .single-post-mobile-author {
        padding: 55px 0;
    }

    .single-post-mobile-author__inner {
        width: calc(100% - 40px);
    }

    .single-post-mobile-author__image {
        width: 150px;
        height: 150px!important;
    }

    .single-post-mobile-author__signature {
        font-size: 54px;
    }

    .single-post-faq {
        padding: 55px 0;
    }

    .single-post-faq__inner {
        width: calc(100% - 32px);
    }

    .single-post-faq__heading {
        margin-bottom: 28px;
    }

    .single-post-faq__item {
        grid-template-columns: 78px minmax(0, 1fr);
        min-height: 100px;
    }

    .single-post-faq__number {
        padding: 16px 10px;
        font-size: 17px;
    }

    .single-post-faq__content {
        padding: 18px;
    }

    .single-post-mobile-cta {
        padding: 42px 0;
    }

    .single-post-mobile-cta__inner {
        display: block;
        width: calc(100% - 40px);
        text-align: center;
    }

    .single-post-mobile-cta h2 {
        margin-bottom: 26px;
    }

    .single-post-mobile-cta__buttons {
        justify-content: center;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .single-post-hero__copy {
        min-height: 390px;
        padding: 100px 22px 54px;
    }

    .single-post-hero__title {
        font-size: 38px;
    }

    .single-post-hero__image {
        min-height: 330px;
    }

    .single-post-layout__inner {
        width: calc(100% - 32px);
    }

    .single-post-faq__item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .single-post-faq__content {
        padding: 16px 14px;
    }

    .single-post-mobile-cta__buttons {
        flex-direction: column;
    }

    .single-post-mobile-cta__button {
        width: 100%;
    }
}
/* Center the sidebar CTA section */
.single-post-sidebar__cta {
    text-align: center;
}

.single-post-sidebar__cta h2 {
    width: 100%;
    text-align: center;
}

.single-post-sidebar__button {
    margin-right: auto;
    margin-left: auto;
}
/* Center the A Word from Phia heading */
.single-post-sidebar__author-heading {
    justify-content: center;
    width: 100%;
    text-align: center;
}