/* =========================================================
   PRESIDENCE PROPERTY — MODULAR CSS
   File: pp-single-post.css
   Scope: editorial single Insights article and related-content layout
   Requires body class: pp-css-single-insights
========================================================= */

/* =========================================================
   03.02 Header - Insights Active State on Single Posts
========================================================= */


/* =========================================================
   03.02.01 Desktop Navigation
========================================================= */

body.single-post.pp-css-single-insights
.main-navigation
.primary-menu-container > ul > li.menu-item-41 > a,
body.single-post.pp-css-single-insights
.main-navigation
.primary-menu-container > ul > li.menu-item-41 > a:hover {
    color: var(--pp-navy);
}

body.single-post.pp-css-single-insights
.main-navigation
.primary-menu-container > ul > li.menu-item-41 > a::after {
    transform: translateX(-50%) scaleX(1);
}

/* =========================================================
   03.02.02 Mobile Navigation
========================================================= */

body.single-post.pp-css-single-insights
.mobile-navigation
ul li.menu-item-41 > a {
    color: var(--pp-gold);
}

/* =========================================================
   SINGLE ARTICLE — EDITORIAL HEADER
========================================================= */

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-header {
    width: calc(100% - 48px);
    max-width: 960px;
    min-height: 0;
    margin: 0 auto;
    padding: 48px 0 30px;
    text-align: left;
    box-sizing: border-box;
}


/* Category */

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-taxonomies {
    margin: 0 0 12px;
    padding: 0;
}


/* Main Title */

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-title {
    margin: 0 0 18px;
    padding: 0;
    color: var(--pp-navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 42px !important;
    line-height: 48px !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}


/* Excerpt / Lead */

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.title-entry-excerpt {
    width: 100%;
    max-width: 720px;
    margin: 0 0 18px;
    padding: 0;
}

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.title-entry-excerpt p {
    margin: 0;
    padding: 0;
}


/* =========================================================
   Single Article Meta
========================================================= */

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    column-gap: 0;
    row-gap: 6px;
    color: var(--pp-muted);
    box-sizing: border-box;
}

/* Editorial order */

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .posted-on {
    order: 1;
}

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .pp-reading-time {
    order: 2;
}

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .posted-by {
    order: 3;
}

/* Custom separators */

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .pp-reading-time::before,

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .posted-by::before {
    display: inline-block !important;
    content: "·" !important;
    margin: 0 8px !important;
    color: var(--pp-gold);
}

/* Reading time */

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .pp-reading-time {
    color: var(--pp-muted);
    white-space: nowrap;
}

/* Author */

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .posted-by {
    color: var(--pp-gold);
    white-space: nowrap;
}

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .posted-by .meta-label {
    display: none !important;
}

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .posted-by a {
    color: var(--pp-gold);
    text-decoration: none;
}

body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .posted-by a:hover,
body.single-post.pp-css-single-insights
.entry-hero.post-hero-section
.entry-meta .posted-by a:focus {
    color: var(--pp-gold-hover);
    text-decoration: none;
}

/* =========================================================
   09.05.04 Single Article Featured Image
========================================================= */

body.single-post.pp-css-single-insights
article.type-post
.article-post-thumbnail {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 42px !important;
    padding: 0;
    box-sizing: border-box;
} 


/* =========================================================
   09.05.05 Single Article Reading Column
========================================================= */

body.single-post.pp-css-single-insights
article.type-post
.entry-content.single-content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 60px;
    padding: 42px 60px 48px;
    background-color: var(--pp-white);
    border: 1px solid rgba(230, 224, 214, 0.72);
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}


/* =========================================================
   09.05.06 Single Article Section Headings
========================================================= */

body.single-post.pp-css-single-insights
article.type-post
.entry-content.single-content h2 {
    margin: 30px 0 12px !important;
    padding: 0 !important;
    color: var(--pp-navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 30px !important;
    line-height: 36px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}


/* =========================================================
   09.05.07 Single Article Paragraph Spacing
========================================================= */

body.single-post.pp-css-single-insights
article.type-post
.entry-content.single-content > p {
    margin: 0 0 12px !important;
    padding: 0 !important;
}


/* =========================================================
   09.05.08 Single Article List Spacing
========================================================= */

body.single-post.pp-css-single-insights
article.type-post
.entry-content.single-content > ul,
body.single-post.pp-css-single-insights
article.type-post
.entry-content.single-content > ol {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

body.single-post.pp-css-single-insights
article.type-post
.entry-content.single-content > ul li,
body.single-post.pp-css-single-insights
article.type-post
.entry-content.single-content > ol li {
    margin-bottom: 6px;
}


/* =========================================================
   09.05.09 Single Article Separator Spacing
========================================================= */

body.single-post.pp-css-single-insights
article.type-post
.entry-content.single-content > hr.wp-block-separator {
    margin-top: 30px !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
}

body.single-post.pp-css-single-insights
article.type-post
.entry-content.single-content > hr.wp-block-separator + p {
    margin-top: 0 !important;
}


/* =========================================================
   09.05.10 Single Article - Tablet
========================================================= */

@media screen and (max-width: 1024px) {

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .entry-header {
        padding-top: 42px;
        padding-bottom: 30px;
    }

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .entry-title {
        font-size: 36px !important;
        line-height: 42px !important;
    }

    body.single-post.pp-css-single-insights
    article.type-post
    .article-post-thumbnail {
        margin-bottom: 36px;
    }

    body.single-post.pp-css-single-insights
    article.type-post
    .entry-content.single-content {
        max-width: 960px;
        margin-bottom: 54px;
        padding: 36px 48px 48px;
    }

}


/* =========================================================
   09.05.11 Single Article - Mobile
========================================================= */

@media screen and (max-width: 767px) {

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .entry-header {
        padding-top: 30px;
        padding-bottom: 24px;
    }

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .entry-title {
        margin-bottom: 12px;
        font-size: 30px !important;
        line-height: 36px !important;
    }

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .title-entry-excerpt {
        margin-bottom: 12px;
    }

    /* Mobile meta: deliberate two-line layout */

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .entry-meta {
        row-gap: 6px;
    }

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .entry-meta .posted-on,

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .entry-meta .pp-reading-time {
        white-space: nowrap;
    }

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .entry-meta .posted-by {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        white-space: nowrap;
    }

    body.single-post.pp-css-single-insights
    .entry-hero.post-hero-section
    .entry-meta .posted-by::before {
        display: none !important;
        content: none !important;
        margin: 0 !important;
    }

    body.single-post.pp-css-single-insights
    article.type-post
    .article-post-thumbnail {
        margin-bottom: 30px;
    }

    body.single-post.pp-css-single-insights
    article.type-post
    .entry-content.single-content {
        max-width: none;
        margin-bottom: 48px;
        padding: 30px 18px 42px;
    }

} 

/* =========================================================
   09.05.12 Single Article Bottom Content
========================================================= */

body.single-post.pp-css-single-insights
.pp-single-insights-footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   09.05.13 Back to Insights
========================================================= */

body.single-post.pp-css-single-insights
.pp-single-insights-back {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 42px;
    padding: 0;
    box-sizing: border-box;
}

body.single-post.pp-css-single-insights
.pp-single-insights-back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: var(--pp-gold);
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--pp-transition-fast);
}

body.single-post.pp-css-single-insights
.pp-single-insights-back-link:hover,
body.single-post.pp-css-single-insights
.pp-single-insights-back-link:focus {
    color: var(--pp-gold-hover);
    text-decoration: none;
}

body.single-post.pp-css-single-insights
.pp-single-insights-back-link:focus-visible {
    outline: 2px solid rgba(176, 141, 87, 0.55);
    outline-offset: 6px;
}

body.single-post.pp-css-single-insights
.pp-single-insights-back-link::before {
    content: "";
    display: block;
    flex: 0 0 7px;
    width: 7px;
    height: 11px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11' viewBox='0 0 7 11'%3E%3Cpath d='M5.75 1L1.25 5.5L5.75 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11' viewBox='0 0 7 11'%3E%3Cpath d='M5.75 1L1.25 5.5L5.75 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 7px 11px;
    mask-size: 7px 11px;
    pointer-events: none;
}


/* =========================================================
   09.05.14 Related Insights Section
========================================================= */

body.single-post.pp-css-single-insights
.pp-single-related {
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   09.05.15 Related Insights Heading
========================================================= */

body.single-post.pp-css-single-insights
.pp-single-related-heading {
    width: 100%;
    margin: 0 0 30px;
    padding: 0;
    box-sizing: border-box;
}

body.single-post.pp-css-single-insights
.pp-single-related-title {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--pp-navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 36px !important;
    line-height: 42px !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: left;
}

body.single-post.pp-css-single-insights
.pp-single-related-divider {
    display: block;
    width: 72px;
    height: 2px;
    margin: 18px 0 0;
    padding: 0;
    background-color: var(--pp-gold);
    box-sizing: border-box;
}


/* =========================================================
   09.05.16 Related Insights Grid
========================================================= */

body.single-post.pp-css-single-insights
.pp-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 30px;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   09.05.17 Related Insight Card
========================================================= */

body.single-post.pp-css-single-insights
.pp-single-related-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--pp-white);
    border: 1px solid var(--pp-border);
    border-radius: 1px;
    box-shadow: none;
    box-sizing: border-box;
}

body.single-post.pp-css-single-insights
.pp-single-related-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--pp-border);
    text-decoration: none;
    box-sizing: border-box;
}

body.single-post.pp-css-single-insights
.pp-single-related-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    box-sizing: border-box;
    transition: transform 0.36s ease;
}

body.single-post.pp-css-single-insights
.pp-single-related-card:hover
.pp-single-related-image {
    transform: scale(1.03);
}

body.single-post.pp-css-single-insights
.pp-single-related-image-placeholder {
    background:
        linear-gradient(
            135deg,
            rgba(176, 141, 87, 0.10),
            rgba(230, 224, 214, 0.70)
        );
}


/* =========================================================
   09.05.18 Related Insight Card Content
========================================================= */

body.single-post.pp-css-single-insights
.pp-single-related-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 18px 24px 24px;
    box-sizing: border-box;
}

body.single-post.pp-css-single-insights
.pp-single-related-category {
    width: 100%;
    min-height: 18px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--pp-gold);
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    box-sizing: border-box;
}

body.single-post.pp-css-single-insights
.pp-single-related-card-title {
    display: -webkit-box;
    width: 100%;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--pp-navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 24px !important;
    line-height: 30px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    box-sizing: border-box;
}

body.single-post.pp-css-single-insights
.pp-single-related-card-title a {
    color: var(--pp-navy);
    text-decoration: none;
}

body.single-post.pp-css-single-insights
.pp-single-related-card-title a:hover,
body.single-post.pp-css-single-insights
.pp-single-related-card-title a:focus {
    color: var(--pp-gold);
    text-decoration: none;
}

body.single-post.pp-css-single-insights
.pp-single-related-excerpt {
    display: -webkit-box;
    width: 100%;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    margin: 0 0 18px !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--pp-body);
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    box-sizing: border-box;
}


/* =========================================================
   09.05.19 Related Insight Card Footer
========================================================= */

body.single-post.pp-css-single-insights
.pp-single-related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 6px;
    width: 100%;
    margin: auto 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(230, 224, 214, 0.84);
    box-sizing: border-box;
}

body.single-post.pp-css-single-insights
.pp-single-related-date {
    margin: 0;
    padding: 0;
    color: var(--pp-muted);
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    white-space: nowrap;
}

body.single-post.pp-css-single-insights
.pp-single-related-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--pp-gold);
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--pp-transition-fast);
}

body.single-post.pp-css-single-insights
.pp-single-related-read-link:hover,
body.single-post.pp-css-single-insights
.pp-single-related-read-link:focus {
    color: var(--pp-gold-hover);
    text-decoration: none;
}

body.single-post.pp-css-single-insights
.pp-single-related-read-link::after {
    content: "";
    display: block;
    flex: 0 0 7px;
    width: 7px;
    height: 11px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11' viewBox='0 0 7 11'%3E%3Cpath d='M1.25 1L5.75 5.5L1.25 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11' viewBox='0 0 7 11'%3E%3Cpath d='M1.25 1L5.75 5.5L1.25 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 7px 11px;
    mask-size: 7px 11px;
    pointer-events: none;
}


/* =========================================================
   09.05.20 Related Insights - Tablet
========================================================= */

@media screen and (min-width: 768px) and (max-width: 1024px) {


    body.single-post.pp-css-single-insights
    .pp-single-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 24px;
    }

    body.single-post.pp-css-single-insights
    .pp-single-related-content {
        padding: 18px;
    }

}


/* =========================================================
   09.05.21 Related Insights - Mobile
========================================================= */

@media screen and (max-width: 767px) {


    body.single-post.pp-css-single-insights
    .pp-single-insights-back {
        margin-bottom: 30px;
    }

    body.single-post.pp-css-single-insights
    .pp-single-related-heading {
        margin-bottom: 24px;
    }

    body.single-post.pp-css-single-insights
    .pp-single-related-title {
        font-size: 30px !important;
        line-height: 36px !important;
    }

    body.single-post.pp-css-single-insights
    .pp-single-related-grid {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 24px;
    }

    body.single-post.pp-css-single-insights
    .pp-single-related-content {
        padding: 18px;
    }

    body.single-post.pp-css-single-insights
    .pp-single-related-category {
        white-space: normal;
    }

    body.single-post.pp-css-single-insights
    .pp-single-related-card-title {
        display: block;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

    body.single-post.pp-css-single-insights
    .pp-single-related-excerpt {
        display: block;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

} 

/* =========================================================
   09.05.22 Single Article CTA Spacing
========================================================= */

/* Desktop */

body.single-post.pp-css-single-insights
.pp-single-insights-footer {
    padding-bottom: 24px;
}

body.single-post.pp-css-single-insights
.pp-single-insights-cta
.pp-single-insights-cta-inner {
    padding-top: 30px;
}


/* Tablet */

@media screen and (min-width: 768px) and (max-width: 1024px) {


    body.single-post.pp-css-single-insights
    .pp-single-insights-cta
    .pp-single-insights-cta-inner {
        padding-top: 30px;
    }

}


/* Mobile */

@media screen and (max-width: 767px) {

    body.single-post.pp-css-single-insights
    .pp-single-insights-footer {
        padding-bottom: 18px;
    }

    body.single-post.pp-css-single-insights
    .pp-single-insights-cta
    .pp-single-insights-cta-inner {
        padding-top: 24px;
    }

}


/* =========================================================
