/* web fonts are linked from <head> by NsmAcademicThemePlugin */

/* ========================================================
   PREMIUM ACADEMIC JOURNAL ARTICLE STYLING
   Part of the NSM Academic theme -- institution-neutral, safe
   to reuse across journals. Renders live article data supplied
   by templates/frontend/objects/article_details.tpl.
   ======================================================== */

:root {
    --mj-primary: #007788;
    --mj-primary-dark: #005a66;
    --mj-primary-light: #e6f6f8;
    --mj-navy: #0f2238;
    --mj-accent-cyan: #0284c7;
    --mj-accent-blue: #2563eb;
    --mj-accent-teal: #0d9488;
    --mj-text-main: #1e293b;
    --mj-text-muted: #64748b;
    --mj-text-light: #94a3b8;
    --mj-bg-page: #f8fafc;
    --mj-bg-card: #ffffff;
    --mj-border: #e2e8f0;
    --mj-border-subtle: #f1f5f9;
    --mj-radius-sm: 6px;
    --mj-radius-md: 10px;
    --mj-radius-lg: 16px;
    --mj-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mj-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --mj-shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

/* Base Body & Container Adjustments */
body {
    background-color: var(--mj-bg-page) !important;
    color: var(--mj-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
}

.pkp_structure_main {
    padding: 24px 20px !important;
}

.page_article {
    max-width: 1240px;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ========================================================
   ARTICLE CONTAINER & HERO
   ======================================================== */

/* Breadcrumbs Bar with Published Date (Aligned Right) */
.mj_breadcrumb_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.mj_breadcrumb_left {
    flex: 1;
    min-width: 280px;
}

.mj_breadcrumb_left .cmp_breadcrumbs {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.mj_breadcrumb_left .cmp_breadcrumbs ol {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
}

.mj_breadcrumb_left .cmp_breadcrumbs li {
    display: inline-flex !important;
    align-items: center !important;
}

.mj_breadcrumb_left .cmp_breadcrumbs a {
    color: #0a2540 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.18s ease !important;
}

.mj_breadcrumb_left .cmp_breadcrumbs a:hover {
    color: #10b981 !important;
    text-decoration: underline !important;
}

.mj_breadcrumb_left .cmp_breadcrumbs .separator {
    color: #94a3b8 !important;
    font-size: 13px !important;
    margin: 0 4px !important;
    font-weight: 400 !important;
}

.mj_breadcrumb_left .cmp_breadcrumbs .current,
.mj_breadcrumb_left .cmp_breadcrumbs .current span {
    color: #475569 !important;
    font-weight: 500 !important;
}

.mj_pub_date_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f4f7fb 0%, #e8eff7 100%);
    border: 1px solid #c9d8e8;
    color: #0a2540;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.06);
    white-space: nowrap;
}

.mj_pub_date_badge i {
    color: #0a2540;
    font-size: 14px;
}

.mj_pub_date_badge .mj_pub_lbl {
    color: #475569;
    font-weight: 600;
}

.mj_pub_date_badge .mj_pub_val {
    color: #0a2540;
    font-weight: 800;
}

.mj_article_wrapper {
    background: #ffffff;
    border-radius: var(--mj-radius-lg);
    box-shadow: var(--mj-shadow-lg);
    border: 1px solid var(--mj-border);
    overflow: hidden;
    margin-bottom: 40px;
}

.mj_hero_grid.mj_hero_grid_full {
    grid-template-columns: 1fr !important;
}

/* ========================================================
   UNIFIED SINGLE-BAR ACADEMIC MASTHEAD
   ======================================================== */

.mj_top_masthead {
    background: #fafbfc;
    border-bottom: 1px solid #eef2f6;
    position: relative;
}

.mj_top_masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0a2540 0%, #10b981 50%, #d4af37 100%);
    z-index: 2;
}

.mj_masthead_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    flex-wrap: wrap;
    gap: 14px;
}

.mj_masthead_left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
    color: #334155;
}

.mj_journal_badge {
    background: #0a2540;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.mj_journal_title_txt {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0a2540;
}

.mj_masthead_divider {
    color: #cbd5e1;
    font-size: 14px;
    user-select: none;
}

.mj_meta_item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.mj_meta_item i {
    color: #64748b;
    font-size: 12px;
}

.mj_issue_txt {
    font-weight: 600;
    color: #1e293b;
}

.mj_pages_txt {
    font-weight: 600;
    color: #0f766e;
}

.mj_pages_txt i {
    color: #0d9488;
}

.mj_masthead_right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mj_date_txt {
    font-size: 12.5px;
    color: #475569;
}

.mj_date_txt strong {
    color: #0a2540;
}

.mj_oa_tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.mj_oa_tag i {
    color: #059669;
}

.mj_badge_article_type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #061526 0%, #0a2540 100%);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Main Article Hero Grid */
.mj_hero_section {
    padding: 36px 36px 28px 36px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--mj-border);
}

.mj_hero_grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 960px) {
    .mj_hero_grid {
        grid-template-columns: 1fr;
    }
}

/* Article Title */
.mj_article_title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 30px;
    line-height: 1.32;
    font-weight: 800;
    color: var(--mj-navy);
    margin: 0 0 18px 0;
    letter-spacing: -0.6px;
}

/* Authors List */
.mj_authors_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    margin-bottom: 20px;
    font-size: 16px;
}

.mj_author_item {
    font-weight: 700;
    color: #1e3a8a;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.mj_author_item sup {
    color: #0284c7;
    font-size: 12px;
    font-weight: 800;
}

/* Unified Author & Designation (Podobi) Card */
.mj_authors_unified_card,
.mj_affiliations_card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(10, 37, 64, 0.04);
}

.mj_author_unified_row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mj_author_unified_row:first-child {
    padding-top: 2px;
}

.mj_author_unified_row:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.mj_author_num {
    font-weight: 800;
    color: #047857;
    font-size: 15px;
    min-width: 22px;
    line-height: 1.4;
    flex-shrink: 0;
}

.mj_author_info_wrap {
    flex: 1;
}

.mj_author_name_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.mj_author_name {
    font-size: 15.5px;
    font-weight: 700;
    color: #0a2540;
    letter-spacing: -0.2px;
}

.mj_corresp_badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mj_orcid_badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f7fee7;
    border: 1px solid #bef264;
    color: #4d7c0f;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
}

.mj_author_podobi {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
}

.mj_affiliation_row {
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}

.mj_aff_num {
    font-weight: 800;
    color: #0284c7;
    min-width: 14px;
}

.mj_corresp_box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
    color: #475569;
    font-size: 12.5px;
}

.mj_corresp_box strong {
    color: var(--mj-navy);
}

.mj_corresp_box a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.mj_corresp_box a:hover {
    text-decoration: underline;
}

/* Citation box -- wraps whatever the Citation Style Language plugin renders
   (a "how to cite" block with format picker), so it stays a plain, neutral
   container rather than assuming specific inner markup. */
.mj_citation_highlight {
    background: #f8fafc;
    border-left: 4px solid #0284c7;
    border-radius: 0 var(--mj-radius-md) var(--mj-radius-md) 0;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 18px;
}

.mj_citation_highlight:empty {
    display: none;
}

.mj_citation_highlight .mj_cite_text {
    flex: 1;
    min-width: 260px;
}

.mj_citation_highlight .mj_cite_text strong {
    color: #14532d;
}

.mj_copy_btn {
    background: #ffffff;
    border: 1px solid #86efac;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mj_copy_btn:hover {
    background: #15803d;
    color: #ffffff;
    border-color: #15803d;
    transform: translateY(-1px);
}

/* Hero Right Meta Card (Seal, QR, Dates) */
.mj_hero_meta_card {
    background: #ffffff;
    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-md);
    padding: 20px;
    box-shadow: var(--mj-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mj_seal_qr_row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mj-border-subtle);
    gap: 12px;
}

.mj_seal_wrap, .mj_qr_wrap {
    text-align: center;
}

.mj_seal_wrap img, .mj_seal_wrap svg {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.mj_qr_wrap img {
    width: 82px;
    height: 82px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mj_meta_caption {
    font-size: 11px;
    font-weight: 600;
    color: var(--mj-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Dates List */
.mj_dates_list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mj_dates_list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--mj-text-muted);
}

.mj_dates_list li strong {
    color: var(--mj-navy);
    font-weight: 600;
}

.mj_doi_badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11.5px;
    word-break: break-all;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mj_doi_badge span {
    font-weight: 700;
    color: #475569;
    font-size: 10.5px;
    text-transform: uppercase;
}

.mj_doi_badge a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.mj_doi_badge a:hover {
    text-decoration: underline;
}

/* ========================================================
   ACTION TOOLBAR & QUICK STATS
   ======================================================== */

.mj_action_toolbar {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    padding: 18px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.mj_action_left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.mj_action_label {
    font-size: 13.5px;
    font-weight: 700;
    color: #0a2540;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mj_action_label i {
    color: #0284c7;
    font-size: 15px;
}

.mj_action_buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Real galley download/view links (rendered by galley_link.tpl) styled to match the toolbar */
.mj_action_buttons .obj_galley_link {
    background: linear-gradient(135deg, #0a2540 0%, #0f3460 100%);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(10, 37, 64, 0.25);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mj_action_buttons .obj_galley_link::before {
    content: "\f1c1"; /* FontAwesome PDF icon */
    font-family: FontAwesome;
    font-size: 15px;
    color: #ef4444; /* PDF Red Accent */
}

.mj_action_buttons .obj_galley_link:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
    color: #ffffff !important;
}

.mj_action_buttons .obj_galley_link:hover::before {
    color: #ffffff;
}

.mj_action_buttons .obj_galley_link_supplementary {
    background: #ffffff;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.mj_action_buttons .obj_galley_link_supplementary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0a2540 !important;
}

.mj_action_right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mj_access_status_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 5px 12px;
    border-radius: 6px;
}

.mj_license_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 6px;
}

.mj_btn_primary_pdf {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}

.mj_btn_primary_pdf:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.5);
}

.mj_btn_secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mj_btn_secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Quick Stats Row */
.mj_stats_row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px 36px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--mj-border);
}

@media (max-width: 768px) {
    .mj_stats_row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mj_stat_box {
    background: #ffffff;
    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-md);
    padding: 16px 18px;
    text-align: center;
    box-shadow: var(--mj-shadow-sm);
    transition: transform 0.2s ease;
}

.mj_stat_box:hover {
    transform: translateY(-2px);
}

.mj_stat_val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0369a1;
    line-height: 1.2;
    margin-bottom: 4px;
}

.mj_stat_label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mj-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sticky Navigation Anchor Bar */
.mj_nav_anchors {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mj-border);
    padding: 0 36px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.mj_nav_anchors a {
    color: #475569;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 14px 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.mj_nav_anchors a:hover {
    color: #0284c7;
    border-bottom-color: #0284c7;
}

/* ========================================================
   MAIN ARTICLE CONTENT
   ======================================================== */

.mj_content_body {
    padding: 36px;
}

/* Structured Abstract Section */
.mj_abstract_box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #0284c7;
    border-radius: var(--mj-radius-md);
    padding: 28px;
    margin-bottom: 40px;
}

.mj_abstract_title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--mj-navy);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mj_abstract_para {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #334155;
}

.mj_abstract_para strong {
    color: #0f172a;
    font-weight: 700;
    min-width: 100px;
    display: inline-block;
}

/* Structured abstract rows: each heading (Background, Objective, Methods,
   Results, Conclusion ...) starts on its own line, label on the left, text
   beside it and wrapping underneath itself. */
.mj_abstract_structured {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mj_abstract_row {
    display: grid;
    grid-template-columns: 132px 1fr;
    column-gap: 18px;
    align-items: start;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.mj_abstract_label {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #0369a1;
    line-height: 1.6;
    padding-top: 4px;
    word-break: break-word;
}

.mj_abstract_text {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 17px;
    line-height: 1.85;
    color: #1e293b;
    text-align: justify;
}

.mj_abstract_text p {
    margin: 0 0 10px 0;
}

.mj_abstract_text p:last-child {
    margin-bottom: 0;
}

/* Accent colour per section label so the abstract is easy to scan */
.mj_abstract_row_objective .mj_abstract_label,
.mj_abstract_row_objectives .mj_abstract_label,
.mj_abstract_row_aim .mj_abstract_label,
.mj_abstract_row_aims .mj_abstract_label        { color: #6d28d9; }
.mj_abstract_row_methods .mj_abstract_label,
.mj_abstract_row_method .mj_abstract_label,
.mj_abstract_row_materials-and-methods .mj_abstract_label,
.mj_abstract_row_materials-methods .mj_abstract_label { color: #0f766e; }
.mj_abstract_row_results .mj_abstract_label,
.mj_abstract_row_result .mj_abstract_label      { color: #b45309; }
.mj_abstract_row_conclusion .mj_abstract_label,
.mj_abstract_row_conclusions .mj_abstract_label { color: #15803d; }

/* Citation line / text without a label (e.g. "J Rang Med Col. 2026 ...") */
.mj_abstract_flow .mj_abstract_plain {
    margin: 4px 0 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    text-align: left;
}

@media (max-width: 640px) {
    .mj_abstract_row {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
    .mj_abstract_label {
        padding-top: 0;
    }
    .mj_abstract_text {
        text-align: left;
        font-size: 16px;
    }
}

/* Keywords Section */
.mj_keywords_section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mj_keywords_label {
    font-size: 13.5px;
    font-weight: 700;
    color: #0a2540;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}

.mj_keywords_label i {
    color: #64748b;
    font-size: 13px;
}

.mj_keyword_pill {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.mj_keyword_pill:hover {
    background: #0a2540;
    color: #ffffff;
    border-color: #0a2540;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(10, 37, 64, 0.15);
}

/* Main Scholarly Body Sections */
.mj_section_block {
    margin-bottom: 44px;
}

.mj_section_heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--mj-navy);
    margin: 0 0 18px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.mj_section_heading::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #0284c7;
}

.mj_text_flow {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 15.5px;
    line-height: 1.85;
    color: #1e293b;
}

.mj_text_flow p {
    margin-bottom: 18px;
    text-align: justify;
}

.mj_ref_cite {
    color: #0284c7;
    font-weight: 700;
    font-size: 11px;
    vertical-align: super;
    text-decoration: none;
    padding: 0 2px;
}

.mj_ref_cite:hover {
    text-decoration: underline;
}

/* ========================================================
   MEDICAL DATA TABLES
   ======================================================== */

.mj_table_card {
    background: #ffffff;
    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-md);
    box-shadow: var(--mj-shadow-md);
    margin: 28px 0 36px 0;
    overflow: hidden;
}

.mj_table_header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 14px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mj_table_badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
}

.mj_table_scroll {
    overflow-x: auto;
    width: 100%;
}

.mj_clinical_table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    text-align: left;
}

.mj_clinical_table th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid #cbd5e1;
    font-size: 13px;
    white-space: nowrap;
}

.mj_clinical_table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.mj_clinical_table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.mj_clinical_table tbody tr:hover {
    background-color: #eff6ff;
}

.mj_clinical_table .mj_category_hdr {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    padding: 8px 16px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mj_sig_p {
    color: #15803d;
    font-weight: 700;
    background: #f0fdf4;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.mj_table_footer {
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

/* ========================================================
   REFERENCES SECTION
   ======================================================== */

.mj_references_list {
    list-style: none;
    counter-reset: ref-counter;
    margin: 0;
    padding: 0;
}

.mj_ref_item {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 12px;
}

.mj_ref_num {
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.mj_ref_item a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.mj_ref_item a:hover {
    text-decoration: underline;
}

/* Toast Notification for Copy */
#mj_toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #22c55e;
}

#mj_toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .mj_hero_section {
        padding: 20px 16px;
    }
    .mj_article_title {
        font-size: 22px;
    }
    .mj_content_body {
        padding: 20px 16px;
    }
    .mj_action_toolbar {
        padding: 12px 16px;
    }
}
