/* SNS article headings: preserve semantic H1 and use restrained typography. */
.jinsom-posts-list > h1.single {
    font-size: 19px !important;
    font-weight: 600;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
    overflow-wrap: break-word;
    word-break: normal;
}
/* Mobile single-post views use a separate template and stylesheet. */
.jinsom-single > h1 {
    font-size: clamp(18px, 4.8vw, 20px);
    font-weight: 500;
    line-height: 1.45;
    margin: 0 0 10px;
    overflow-wrap: break-word;
    word-break: normal;
}


/* SNS mobile rich-text heading hierarchy.
   Scope to mobile words feed; leave article H1 and other post types unchanged. */
.jinsom-post-words .content h2 {
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.5 !important;
    margin: 14px 0 8px !important;
    padding: 0 !important;
    overflow-wrap: break-word;
    word-break: normal;
}
.jinsom-post-words .content h3 {
    font-size: 17px !important;
    font-weight: 600;
    line-height: 1.5 !important;
    margin: 12px 0 6px !important;
    padding: 0 !important;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Lower-level headings remain close to body text in mobile Chinese articles. */
.jinsom-post-words .content h4 {
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.5 !important;
    margin: 10px 0 5px !important;
    padding: 0 !important;
    overflow-wrap: break-word;
    word-break: normal;
}


/* SNS mobile long-form reading typography 2026-11-08.
   Only the expanded words-feed content; other posts and desktop remain untouched. */
@media (max-width: 768px) {
    .jinsom-post-words .content > a.link {
        font-size: clamp(15.5px, 4vw, 16px);
        line-height: 1.7;
    }
    .jinsom-post-words .content > a.link p,
    .jinsom-post-words .content > a.link li {
        font-size: inherit;
        line-height: 1.7;
    }
}


/* SNS mobile expanded detail heading scale 2026-11-08.
   The AJAX detail view uses .jinsom-post-single-content, not words-feed .content. */
@media (max-width: 768px) {
    .page.post-words .jinsom-single .jinsom-post-single-content {
        font-size: clamp(15.5px, 4vw, 16px);
        line-height: 1.7;
    }
    .page.post-words .jinsom-single .jinsom-post-single-content p,
    .page.post-words .jinsom-single .jinsom-post-single-content li {
        font-size: inherit;
        line-height: 1.7;
    }
    .page.post-words .jinsom-single .jinsom-post-single-content p {
        min-height: 0;
        margin-bottom: 12px;
    }
    .page.post-words .jinsom-single .jinsom-post-single-content h2 {
        font-size: 18px !important;
        font-weight: 600;
        line-height: 1.5 !important;
        margin: 16px 0 8px !important;
        padding: 0 !important;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .page.post-words .jinsom-single .jinsom-post-single-content h3 {
        font-size: 17px !important;
        font-weight: 600;
        line-height: 1.5 !important;
        margin: 12px 0 6px !important;
        padding: 0 !important;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .page.post-words .jinsom-single .jinsom-post-single-content h4 {
        font-size: 16px !important;
        font-weight: 600;
        line-height: 1.5 !important;
        margin: 10px 0 5px !important;
        padding: 0 !important;
        overflow-wrap: break-word;
        word-break: normal;
    }
}
