/* JPTC ARTICLE LAYOUT REPAIR V3
   Scoped to article view; preserve header and navigation.
*/

body.pkp_page_article
.row.non_index_header .article-header .header-section {
    margin: 4px 0 12px !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    color: #6345f6;
    text-shadow: none !important;
}

body.pkp_page_article
.row.non_index_header .article-header .header-section > .col-md-6 {
    font-size: inherit !important;
    line-height: inherit !important;
}

body.pkp_page_article
.row.non_index_header .article-header h1.article-title {
    margin: 10px 0 12px !important;
    font-size: 24px !important;
    line-height: 1.4 !important;
    text-shadow: none !important;
    overflow-wrap: break-word;
}

body.pkp_page_article
.row.non_index_header .article-header .subtitle {
    margin-top: 0 !important;
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* Stable left-to-right author cards using the theme's flex layout. */
body.pkp_page_article
.row.non_index_header .article-header .authors.equal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    direction: ltr !important;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

body.pkp_page_article
.row.non_index_header .article-header .authors.equal > .divider,
body.pkp_page_article
.row.non_index_header .article-header .authors.equal .divider {
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.pkp_page_article
.row.non_index_header .article-header .authors.equal > .author.col {
    display: block;
    float: none !important;
    position: static !important;
    order: 0 !important;
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    min-width: 0;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #e6edf3;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

body.pkp_page_article
.row.non_index_header .article-header .authors .second_col_author {
    padding-left: 0 !important;
}

body.pkp_page_article .article-details .article-main {
    min-width: 0;
}

body.pkp_page_article .article-details .article-main .article-summary {
    width: 100%;
    margin: 0 0 24px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e7edf2;
    border-radius: 8px;
    box-sizing: border-box;
}

body.pkp_page_article .article-details .article-main .article-summary > h2 {
    margin: 0 0 14px;
    font-size: 22px !important;
    line-height: 1.4;
    font-weight: 600;
}

body.pkp_page_article .article-details .article-main .article-abstract {
    text-align: left !important;
    line-height: 1.75;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    overflow-wrap: break-word;
    word-break: normal;
}

body.pkp_page_article .article-details .article-main .article-abstract p {
    margin: 0 0 1em;
}

body.pkp_page_article .article-details .article-sidebar .cover-image {
    margin-bottom: 18px;
}

body.pkp_page_article .article-details .article-sidebar .cover-image img {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    body.pkp_page_article
    .row.non_index_header .article-header .header-section {
        font-size: 17px !important;
    }

    body.pkp_page_article
    .row.non_index_header .article-header h1.article-title {
        font-size: 22px !important;
    }

    body.pkp_page_article
    .row.non_index_header .article-header .authors.equal > .author.col {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.pkp_page_article .article-details .article-main .article-summary {
        padding: 16px;
    }
}

/* JPTC ARTICLE LAYOUT REPAIR V3 END */

/* JPTC ARTICLE LAYOUT REPAIR V4
   Bootstrap row clearfix pseudo-elements must not occupy flex slots.
*/
body.pkp_page_article
.row.non_index_header .article-header .authors.equal::before,
body.pkp_page_article
.row.non_index_header .article-header .authors.equal::after {
    content: none !important;
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
/* JPTC ARTICLE LAYOUT REPAIR V4 END */
