/*=====================================================
  Article Full Text / Abstract / References view
  Styles the CMS-authored HTML stored in:
    articles_data.* , full_text_articles_data.(abstract, content, references)
  and echoed raw in:
    application/modules/journals/views/articles_in_process/detail.php
=======================================================*/

/* ---- Title / meta bar above the article body ---- */
.art-inpress-wrapper {
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--border-info-color, rgba(0,0,0,.08));
    margin-bottom: 24px;
}

.art-inpress-title .slug_art_title {
    display: block;
    font-family: var(--heading-font, inherit);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-dark, #002245);
}

.slug_art_inpress-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.slug_art_inpress-header .art-type {
    font-size: 14px;
    font-weight: 500;
}

.full_text_file-type .full_text_pdf_right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--theme-color, #F37039);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 8px 18px;
}

.full_text_file-type .full_text_pdf_right:hover {
    background: var(--color-dark, #002245);
    color: #fff;
}

/* ---- Overall article body wrapper ---- */
.article_full_text_html_view {
    background: #fff;
    border: 1px solid var(--border-info-color, rgba(0,0,0,.08));
    border-radius: 8px;
    padding: 32px 40px;
    box-shadow: var(--box-shadow2, 0 0 15px rgba(0,0,0,.06));
    color: #26313d;
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 767px) {
    .article_full_text_html_view {
        padding: 20px;
    }
}

/* ---- Authors & correspondence block ---- */
.article_full_text_html_view .author_name {
    display: block;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 4px;
}

.article_full_text_html_view .author_name a {
    color: var(--color-dark, #002245);
    font-weight: 600;
    text-decoration: none;
}

.article_full_text_html_view .author_name a:hover {
    color: var(--theme-color, #F37039);
    text-decoration: underline;
}

.article_full_text_author_info {
    background: var(--theme-bg-light, #F8F9FE);
    border-left: 3px solid var(--theme-color, #F37039);
    border-radius: 4px;
    padding: 14px 18px;
    margin: 16px 0 24px;
    font-size: 13.5px;
    line-height: 1.9;
    color: #4b5563;
}

.article_full_text_author_info b {
    color: var(--color-dark, #002245);
}

/* ---- Section blocks: Abstract / Content / References ---- */
.article_full_text_abstract,
.article_full_text_content,
.article_full_text_references {
    margin-bottom: 32px;
}

/* Headings authored inside the HTML blob (h3 = section, h4 = sub-section) */
.article_full_text_html_view h3 {
    font-family: var(--heading-font, inherit);
    font-size: 21px;
    font-weight: 700;
    color: var(--color-dark, #002245);
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--theme-color, #F37039);
}

.article_full_text_html_view h3:first-child {
    margin-top: 0;
}

.article_full_text_html_view h4 {
    font-family: var(--heading-font, inherit);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-dark, #002245);
    margin: 20px 0 10px;
}

.article_full_text_html_view p {
    margin: 0 0 14px;
    text-align: justify;
}

.article_full_text_html_view p:empty,
.article_full_text_html_view p:has(> :only-child:is(br)) {
    display: none;
}

.article_full_text_html_view strong {
    color: var(--color-dark, #002245);
}

.article_full_text_html_view a {
    color: var(--theme-color, #F37039);
    word-break: break-word;
}

/* In-text citation markers, e.g. [1], [3-4], [9, 15]
   Numbers with a matching reference are wrapped in an <a href="#refN">
   inside the badge; numbers with no match render as plain text. */
.article_full_text_html_view .cite-ref {
    display: inline-block;
    color: #0645ad;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    margin: 0 1px;
    vertical-align: super;
    white-space: nowrap;
}

.article_full_text_html_view .cite-ref a {
    color: #0645ad;
    text-decoration: none;
    cursor: pointer;
}

.article_full_text_html_view .cite-ref a:hover {
    text-decoration: underline;
}

/* Highlight the target reference briefly when jumped to */
.article_full_text_references li:target {
    background: var(--theme-bg-light, #F8F9FE);
    outline: 2px solid var(--theme-color, #F37039);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Lists */
.article_full_text_html_view ul,
.article_full_text_html_view ol {
    margin: 0 0 16px;
    padding-left: 28px;
}

.article_full_text_html_view li {
    margin-bottom: 8px;
    line-height: 1.7;
    list-style: inherit;
}

.article_full_text_html_view ul {
    list-style: disc;
}

.article_full_text_html_view ul > li {
    list-style: disc;
}

.article_full_text_html_view ol {
    list-style: decimal;
}

.article_full_text_html_view ol > li {
    list-style: decimal;
}

/* Tables (e.g. reference/citation tables authored in the CMS) */
.article_full_text_html_view .table-scroll-wrap {
    overflow-x: auto;
}

.article_full_text_html_view table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14.5px;
}

.article_full_text_html_view table caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    color: var(--color-dark, #002245);
    padding-bottom: 8px;
}

.article_full_text_html_view table th,
.article_full_text_html_view table td {
    border: 1px solid var(--border-info-color, rgba(0,0,0,.1));
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.article_full_text_html_view table th {
    background: var(--color-dark, #002245);
    color: #fff;
    font-weight: 600;
}

.article_full_text_html_view table tbody tr:nth-child(even) {
    background: var(--color-gray, #F6F6F6);
}

/* Abstract gets a slightly distinct panel treatment */
.article_full_text_abstract {
    background: var(--theme-bg-light, #F8F9FE);
    border-radius: 6px;
    padding: 4px 24px 8px;
}

.article_full_text_abstract h3 {
    border-bottom-color: var(--color-dark, #002245);
}

/* References list is usually numbered plain text */
.article_full_text_references {
    border-top: 1px solid var(--border-info-color, rgba(0,0,0,.08));
    padding-top: 20px;
    font-size: 14.5px;
    color: #4b5563;
}

/* Citation / copyright footer */
.article_full_text_footer_note {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-info-color, rgba(0,0,0,.15));
    font-size: 13px;
    line-height: 1.8;
    color: #6b7280;
}

.article_full_text_footer_note b {
    color: var(--color-dark, #002245);
}
