/* =============================================================
 * PLD BLOG POST — Enterprise Layout (Final, Clean)
 * Scope: ALL single posts (works on all 98 posts + future)
 * Date:  2026-10-11
 * ============================================================= */

/* ---------- 1. HEADER: compact on post pages ---------- */
html body.single-post .pak-header {
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    padding: 0 20px !important;
}
html body.single-post { padding-top: 62px !important; }

/* ---------- 2. KILL GAPS: header → article ---------- */
html body.single-post .site-content-wrapper,
html body.single-post .site-content,
html body.single-post #content,
html body.single-post main,
html body.single-post main#main {
    padding: 0 !important;
    margin: 0 !important;
    background: #f8fafc !important;
}

/* ---------- 3. CONTAINER ---------- */
html body.single-post .container,
html body.single-post #content > .container,
html body.single-post .site-content > .container {
    max-width: 800px !important;
    width: 100% !important;
    padding: 0 16px !important;
    margin: 0 auto 40px !important;
    box-sizing: border-box !important;
}

/* ---------- 4. ARTICLE CARD ---------- */
html body.single-post article,
html body.single-post article.single-post,
html body.single-post .single-post {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04) !important;
}

/* ---------- 5. FEATURED IMAGE: hard cap at 400px ---------- */
html body.single-post .single-post > div:first-child {
    max-height: 400px !important;
    height: 400px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    border-radius: 0 !important;
}
html body.single-post .single-post img.wp-post-image,
html body.single-post .single-post img.attachment-large,
html body.single-post .single-post .wp-post-image {
    width: 100% !important;
    height: 400px !important;
    max-height: 400px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    border-radius: 0 !important;
}

/* ---------- 6. INNER PADDING (content area) ---------- */
html body.single-post .single-post > div:nth-child(2) {
    padding: 40px 44px 56px !important;
}

/* ---------- 7. TYPOGRAPHY ---------- */
html body.single-post .entry-title {
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    color: #0f172a !important;
    letter-spacing: -0.015em !important;
    margin: 0 0 12px !important;
}
html body.single-post .entry-content {
    font-size: 17px !important;
    line-height: 1.75 !important;
    color: #334155 !important;
}
html body.single-post .entry-content p { margin: 0 0 20px !important; }
html body.single-post .entry-content h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 48px 0 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    line-height: 1.3 !important;
}
html body.single-post .entry-content h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 32px 0 12px !important;
}
html body.single-post .entry-content a {
    color: #1dbf73 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}
html body.single-post .entry-content blockquote {
    margin: 28px 0 !important;
    padding: 4px 0 4px 20px !important;
    border-left: 4px solid #1dbf73 !important;
    font-style: italic !important;
    color: #475569 !important;
}
html body.single-post .entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 24px 0 !important;
    font-size: 15px !important;
}
html body.single-post .entry-content th {
    background: #f8fafc !important;
    padding: 12px 14px !important;
    border-bottom: 2px solid #e5e7eb !important;
    text-align: left !important;
}
html body.single-post .entry-content td {
    padding: 11px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
html body.single-post .entry-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
}

/* ---------- 8. MOBILE ---------- */
@media (max-width: 768px) {
    html body.single-post .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    html body.single-post article,
    html body.single-post .single-post {
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
    }
    html body.single-post .single-post > div:first-child {
        height: 240px !important;
        max-height: 240px !important;
    }
    html body.single-post .single-post img.wp-post-image,
    html body.single-post .single-post img.attachment-large {
        height: 240px !important;
        max-height: 240px !important;
    }
    html body.single-post .single-post > div:nth-child(2) {
        padding: 24px 20px 40px !important;
    }
    html body.single-post .entry-title { font-size: 26px !important; }
    html body.single-post .entry-content { font-size: 16px !important; }
    html body.single-post .entry-content h2 {
        font-size: 22px !important;
        margin: 32px 0 12px !important;
    }
}

/* ---------- 9. FOOTER: no extra bottom space ---------- */
html body.single-post footer.pak-footer { margin-bottom: 0 !important; }
html body.single-post .pld-social-bar,
html body.single-post .pld-disclaimer { margin-bottom: 0 !important; }
