
/* =========================================================
   HOUSENDRA — SINGLE POST FORMAT FIX
   ========================================================= */

body.single-post{
    overflow-x:hidden !important;
}

/* Keep article/content contained */
body.single-post article,
body.single-post .entry-content,
body.single-post .post-content,
body.single-post .article-content,
body.single-post .single-content{
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

body.single-post .entry-content > *,
body.single-post .post-content > *,
body.single-post .article-content > *{
    max-width:100% !important;
    box-sizing:border-box !important;
    overflow-wrap:anywhere !important;
}

/* Main / featured image — clean editorial format */
body.single-post .post-thumbnail,
body.single-post .featured-image,
body.single-post .entry-content figure.wp-block-image{
    width:100% !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

body.single-post .wp-post-image,
body.single-post .post-thumbnail img,
body.single-post .featured-image img,
body.single-post .entry-content figure.wp-block-image img,
body.single-post .entry-content img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    box-sizing:border-box !important;
    border:2px solid #313131 !important;
    border-radius:8px !important;
    box-shadow:
        0 14px 30px rgba(0,0,0,.12),
        0 3px 8px rgba(0,0,0,.08) !important;
    background:#fff !important;
}

/* Keep article images visually consistent */
body.single-post .entry-content img{
    margin-top:18px !important;
    margin-bottom:26px !important;
}

body.single-post .wp-post-image,
body.single-post .post-thumbnail img,
body.single-post .featured-image img{
    margin-bottom:28px !important;
}

/* Prevent inline widths from making images tiny */
body.single-post .entry-content figure[style],
body.single-post .entry-content img[style],
body.single-post .entry-content .wp-block-image[style]{
    max-width:100% !important;
}

/* Long links / lists / tables */
body.single-post .entry-content a{
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
}

body.single-post .entry-content table{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
}

body.single-post .entry-content iframe,
body.single-post .entry-content video,
body.single-post .entry-content embed,
body.single-post .entry-content object{
    max-width:100% !important;
}

/* =========================================================
   CONTEXTUAL RELATED LINKS INSIDE ARTICLE
   ========================================================= */

.housendra-context-link{
    width:100% !important;
    max-width:100% !important;
    margin:28px 0 30px !important;
    padding:14px 16px !important;
    box-sizing:border-box !important;
    background:#f6f4ed !important;
    border:1px solid #cfc9b9 !important;
    border-left:5px solid #8ea400 !important;
    border-radius:6px !important;
    box-shadow:0 7px 16px rgba(0,0,0,.05) !important;
}

.housendra-context-label{
    display:block !important;
    margin-bottom:7px !important;
    color:#788b00 !important;
    font-size:9px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:.14em !important;
    text-transform:uppercase !important;
}

.housendra-context-link a{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    color:#1d1d1d !important;
    text-decoration:none !important;
    font-weight:800 !important;
    line-height:1.4 !important;
}

.housendra-context-link a:hover{
    color:#738600 !important;
}

.housendra-context-link a span{
    min-width:0 !important;
    overflow-wrap:anywhere !important;
}

.housendra-context-link b{
    flex:0 0 auto !important;
    color:#8ea400 !important;
    font-size:18px !important;
    font-weight:700 !important;
}

/* Related Guides images at article end */
body.single-post [class*="related"] img{
    display:block !important;
    width:100% !important;
    height:220px !important;
    min-height:220px !important;
    max-height:220px !important;
    object-fit:cover !important;
    border:2px solid #2d2d2d !important;
    border-radius:6px !important;
    box-shadow:0 10px 22px rgba(0,0,0,.11) !important;
}

@media(max-width:700px){
    .housendra-context-link{
        margin:22px 0 24px !important;
        padding:12px 13px !important;
    }

    body.single-post [class*="related"] img{
        height:190px !important;
        min-height:190px !important;
        max-height:190px !important;
    }
}
