/* 
 * Journal of Social Science Perspectives (JSSP) - Homepage Article Block & Justification
 * Version: 1.0
 * Description: Adds grey background block around each article (title, DOI, author) on homepage.
 *              Justifies all text. Excludes custom blocks.
 */

/* ---------- JUSTIFIED TEXT (EXCLUDING CUSTOM BLOCKS) ---------- */
p:not(.custom-block p, .alert p),
.article p:not(.custom-block p, .alert p),
.item p:not(.custom-block p, .alert p),
.section p:not(.custom-block p, .alert p),
main p:not(.custom-block p, .alert p),
.entry-content p:not(.custom-block p, .alert p),
.page-content p:not(.custom-block p, .alert p),
[class*="article"] p:not(.custom-block p, .alert p),
.abstract:not(.custom-block, .alert),
.article-abstract:not(.custom-block, .alert),
[class*="abstract"]:not(.custom-block, .alert),
.references:not(.custom-block, .alert),
.ref-list:not(.custom-block, .alert),
.bibliography:not(.custom-block, .alert),
.citation-list:not(.custom-block, .alert),
[class*="reference"]:not(.custom-block, .alert) {
    text-align: justify;
}

/* ---------- HOMEPAGE ARTICLE BLOCK - GREY BACKGROUND ---------- */
/* Targets each article summary block on homepage/issue page */
.obj_article_summary:not(.custom-block, .alert),
.article_summary:not(.custom-block, .alert),
.toc_article:not(.custom-block, .alert),
.item.article:not(.custom-block, .alert),
.articles .obj_article_summary:not(.custom-block, .alert) {
    background-color: #d3d3d3;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

/* ---------- ARTICLE TITLE INSIDE THE BLOCK (No extra styling, just inherits block) ---------- */
.obj_article_summary .title:not(.custom-block, .alert),
.article_summary .title:not(.custom-block, .alert),
.toc_article .title:not(.custom-block, .alert) {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* ---------- DOI INSIDE THE BLOCK (No extra styling) ---------- */
.obj_article_summary .doi:not(.custom-block, .alert),
.article_summary .doi:not(.custom-block, .alert),
.toc_article .doi:not(.custom-block, .alert) {
    margin: 0.3rem 0;
}

/* ---------- AUTHOR INSIDE THE BLOCK (No extra styling) ---------- */
.obj_article_summary .authors:not(.custom-block, .alert),
.article_summary .authors:not(.custom-block, .alert),
.toc_article .authors:not(.custom-block, .alert) {
    margin: 0.3rem 0;
    font-style: normal;
}