/* ============================================================
   JLIVE — Article Viewer Styles
   MDPI-inspired academic article layout with three-column design:
   Left sidebar (metadata) | Main body | Right sidebar (TOC)
   ============================================================ */

/* ── Breadcrumb ── */
.article-breadcrumb {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 0;
    margin-top: var(--nav-height);
}

.article-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-breadcrumb a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: var(--teal-hover);
    text-decoration: underline;
}

.article-breadcrumb span {
    color: var(--gray-700);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.article-breadcrumb svg {
    opacity: 0.4;
    flex-shrink: 0;
}

/* ── Article Header ── */
.article-header-section {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 40px 0 32px;
}

.article-header-section .container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Badges */
.article-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-oa {
    background: rgba(201, 168, 76, 0.12);
    color: #92650a;
    border: 1px solid #C9A84C;
}

.badge-type {
    background: rgba(10, 31, 68, 0.08);
    color: var(--navy, #0A1F44);
    border: 1px solid rgba(10, 31, 68, 0.25);
}

/* Title */
.article-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* Authors */
.article-authors {
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 15px;
    color: var(--gray-700);
}

.author-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.author-item:hover .author-name {
    color: var(--teal);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.author-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    width: max-content;
    max-width: 360px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    pointer-events: none;
    font-weight: 400;
    text-align: left;
}

.author-item[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
    z-index: 1000;
    pointer-events: none;
}

.author-name {
    font-weight: 500;
    color: var(--navy);
    white-space: nowrap;
}

.author-sup {
    font-size: 10px;
    vertical-align: super;
    color: var(--teal);
    margin-left: 1px;
    font-weight: 600;
}

.author-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 2px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.author-icon:hover {
    opacity: 1;
}

.author-icon svg {
    width: 14px;
    height: 14px;
}

.author-icon.orcid-icon svg {
    fill: #A6CE39;
}

.author-icon.mail-icon svg {
    stroke: var(--teal);
}

.author-separator {
    color: var(--gray-400);
    margin: 0 2px;
}

/* Affiliations & Expand Option */
.article-affiliations-wrapper {
    margin: 6px 0 14px 0;
}

.btn-toggle-affiliations {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 16px;
    padding: 3px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--navy, #0A1F44);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.5;
}

.btn-toggle-affiliations:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold, #C9A84C);
    color: var(--gold, #C9A84C);
    box-shadow: 0 2px 6px rgba(201, 168, 76, 0.15);
}

.btn-toggle-affiliations .toggle-affiliations-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: currentColor;
}

.btn-toggle-affiliations.expanded .toggle-affiliations-chevron {
    transform: rotate(180deg);
}

.article-affiliations {
    display: none;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-left: 3px solid var(--gold, #C9A84C);
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--gray-700, #334155);
}

.article-affiliations.show {
    display: block;
    animation: fadeInAffiliations 0.2s ease forwards;
}

@keyframes fadeInAffiliations {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.affiliation-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.affiliation-item.highlighted {
    background-color: rgba(201, 168, 76, 0.12);
    color: var(--navy, #0A1F44);
    font-weight: 500;
}

.affiliation-num {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold, #C9A84C);
    min-width: 18px;
}

.affiliation-bullet {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--gold, #C9A84C);
    margin-right: 4px;
}

.affiliation-text {
    flex: 1;
    word-break: break-word;
}

/* Correspondence */
.article-correspondence {
    font-size: 12.5px;
    color: var(--gray-500);
    margin-bottom: 20px;
    font-style: italic;
}

/* Citation */
.article-citation {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 14px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-left: 3px solid var(--teal);
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
}

.article-citation .journal-name {
    font-style: italic;
    font-weight: 600;
    color: var(--navy);
}

.article-citation .doi-link {
    color: var(--teal);
    text-decoration: none;
    word-break: break-all;
}

.article-citation .doi-link:hover {
    text-decoration: underline;
}

/* Dates */
.article-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--gray-600);
    padding: 10px 16px;
    background: #f0fafb;
    border-radius: 6px;
    border: 1px solid #d8f0f2;
}

.date-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.date-label {
    font-weight: 600;
    color: var(--navy);
}

.date-separator {
    color: var(--gray-300);
    margin: 0 4px;
}

/* Special Issue */
.article-special-issue {
    font-size: 13px;
    color: var(--teal);
    margin-bottom: 20px;
}

.article-special-issue a {
    color: var(--teal);
    text-decoration: underline;
}

/* Action Buttons */
.article-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn-group {
    position: relative;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-btn-primary {
    background: var(--navy);
    color: var(--white);
}

.action-btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.25);
}

.action-btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--gray-300);
}

.action-btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-1px);
}

/* Article Views Badge */
.article-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-left: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    user-select: none;
    transition: all 0.15s ease;
}

.article-views-badge:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.article-views-badge svg {
    stroke: var(--navy);
    flex-shrink: 0;
}

.article-views-badge #article-views-count {
    font-weight: 700;
    color: #0f172a;
}

.article-views-badge .views-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .article-views-badge {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/* Article Downloads Badge (on article page) */
.article-views-badge.mdpi-downloads-badge {
    background: #f0fdf4;
    border-color: #bbf7d0;
    margin-left: 0;
}

.article-views-badge.mdpi-downloads-badge:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.article-views-badge.mdpi-downloads-badge svg {
    stroke: #16a34a;
}

.article-views-badge.mdpi-downloads-badge #article-downloads-count {
    font-weight: 700;
    color: #15803d;
}

.article-views-badge.mdpi-downloads-badge .analytics-downloads-label {
    color: #4ade80;
    font-size: 12px;
    font-weight: 500;
}

.chevron-icon {
    transition: transform 0.2s;
}

.action-btn-group.open .chevron-icon {
    transform: rotate(180deg);
}

/* Download Dropdown */
.download-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overflow: hidden;
    animation: dropdownFade 0.2s ease;
}

.action-btn-group.open .download-dropdown {
    display: block;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.15s;
}

.download-option:hover {
    background: var(--gray-50);
    color: var(--teal);
}

.download-option + .download-option {
    border-top: 1px solid var(--gray-100);
}


/* ============================================================
   THREE-COLUMN ARTICLE LAYOUT (MDPI-style)
   ============================================================ */
.article-content-section {
    padding: 0 0 80px;
    background: var(--white);
}

.article-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    gap: 0;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0;
    align-items: start;
}


/* ── LEFT SIDEBAR (Article Citation, Publishing History) ── */
.article-sidebar-left {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    padding: 28px 18px 28px 20px;
    max-height: calc(100vh - var(--nav-height) - 40px);
    overflow-y: auto;
    border-right: 1px solid var(--gray-200);
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.article-sidebar-left::-webkit-scrollbar {
    width: 4px;
}
.article-sidebar-left::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}


/* ── RIGHT FLOATING SIDEBAR (License, Share & Cite, Download PDF) ── */
.article-sidebar-right {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    padding: 28px 20px 28px 18px;
    max-height: calc(100vh - var(--nav-height) - 40px);
    overflow-y: auto;
    border-left: 1px solid var(--gray-200);
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    z-index: 10;
}

.article-sidebar-right::-webkit-scrollbar {
    width: 4px;
}
.article-sidebar-right::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

/* Sidebar section blocks */
.sidebar-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

/* Sidebar citation */
.sidebar-citation {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--gray-600);
}

.sidebar-citation .journal-name-sidebar {
    font-weight: 600;
    color: var(--navy);
    font-style: italic;
}

.sidebar-citation .sidebar-doi {
    display: block;
    margin-top: 6px;
    color: var(--teal);
    text-decoration: none;
    word-break: break-all;
    font-size: 12px;
}

.sidebar-citation .sidebar-doi:hover {
    text-decoration: underline;
}

/* Sidebar dates */
.sidebar-date-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-date-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    padding: 5px 0;
    color: var(--gray-600);
    border-bottom: 1px dashed var(--gray-100);
}

.sidebar-date-list li:last-child {
    border-bottom: none;
}

.sidebar-date-list .date-label-sm {
    font-weight: 600;
    color: var(--gray-700);
}

.sidebar-date-list .date-value-sm {
    color: var(--gray-500);
    font-size: 11.5px;
}

/* Sidebar keywords */
.sidebar-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.sidebar-keywords-list .keyword-pill {
    padding: 3px 9px;
    font-size: 11.5px;
    line-height: 1.4;
    border-radius: 14px;
}

/* Sidebar license */
.sidebar-license {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #f0fafb;
    border-radius: 6px;
    border: 1px solid #d8f0f2;
}

.sidebar-license-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--teal);
    opacity: 0.7;
}

.sidebar-license-text {
    font-size: 11px;
    line-height: 1.5;
    color: var(--gray-600);
}

.sidebar-license-text a {
    color: var(--teal);
    text-decoration: none;
}

.sidebar-license-text a:hover {
    text-decoration: underline;
}

/* Sidebar share buttons */
.sidebar-share-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.sidebar-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-share-btn:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(201, 168, 76, 0.25);
}

.sidebar-share-btn svg {
    width: 15px;
    height: 15px;
}

.sidebar-share-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.15));
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    color: var(--navy);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.sidebar-share-modal-btn:hover {
    background: linear-gradient(135deg, var(--gold), #b3923c);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.25);
    transform: translateY(-1px);
}

/* Sidebar download shortcut */
.sidebar-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    justify-content: center;
}

.sidebar-download-btn:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.25);
}

.sidebar-download-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}


/* ── MAIN ARTICLE BODY ── */
.article-body {
    min-width: 0;
    padding: 30px 36px;
    border-right: none;
}

.article-section {
    margin-bottom: 36px;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.section-heading {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

.abstract-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--gray-700);
    text-align: justify;
}

/* Keywords */
.article-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.keywords-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 4px;
}

.keyword-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    color: var(--navy);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    transition: all 0.2s;
}

.keyword-pill:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.4);
}

/* Section Content */
.section-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
}

.section-content p {
    margin-bottom: 14px;
    text-align: justify;
}

.section-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 4px;
}

.section-content h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 20px;
    margin-bottom: 10px;
}

.section-content ul,
.section-content ol {
    margin: 12px 0 16px 24px;
}

.section-content li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.section-content strong {
    color: var(--navy);
}

.section-content em {
    font-style: italic;
}

.section-content sup {
    font-size: 0.75em;
    vertical-align: super;
}

/* Inline citation links [1], [2,3] */
.section-content .ref-link {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

.section-content .ref-link:hover {
    color: var(--teal-hover);
    text-decoration: underline;
}

/* Blockquotes */
.section-content blockquote {
    margin: 16px 0;
    padding: 14px 20px;
    border-left: 3px solid var(--teal);
    background: var(--gray-50);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--gray-600);
}


/* ── Figures (inline) ── */
.article-figure {
    margin: 28px 0;
    padding: 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    text-align: center;
    scroll-margin-top: calc(var(--nav-height) + 24px);
    transition: box-shadow 0.25s ease;
}

.article-figure:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 14px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.article-figure img:hover {
    transform: scale(1.01);
}

.figure-placeholder {
    width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #e8f4f8, #d4eef4, #e0f0ea);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 40px;
    color: var(--gray-500);
    position: relative;
    overflow: hidden;
}

.figure-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(201, 168, 76, 0.03) 20px,
        rgba(201, 168, 76, 0.03) 40px
    );
}

.figure-placeholder:hover {
    transform: scale(1.01);
}

.figure-placeholder svg {
    opacity: 0.3;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.figure-placeholder span {
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.figure-caption {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--gray-600);
    text-align: left;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.figure-caption strong {
    color: var(--navy);
}


/* ── Tables ── */
.article-table-wrapper {
    margin: 28px 0;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.table-caption {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.table-caption strong {
    color: var(--navy);
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.table-scroll table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    line-height: 1.5;
}

.table-scroll thead {
    background: var(--navy);
    color: var(--white);
}

.table-scroll th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 12.5px;
    letter-spacing: 0.2px;
}

.table-scroll td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.table-scroll tbody tr:hover {
    background: var(--gray-50);
}

.table-scroll tbody tr:last-child td {
    border-bottom: none;
}

.table-scroll em {
    font-style: italic;
}


/* ── References ── */
.references-list {
    padding-left: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--gray-600);
    list-style: none;
    counter-reset: ref-counter;
}

.references-list li {
    margin-bottom: 12px;
    padding: 8px 12px 8px 40px;
    position: relative;
    border-radius: 4px;
    transition: background 0.2s;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.references-list li::before {
    counter-increment: ref-counter;
    content: counter(ref-counter) ".";
    position: absolute;
    left: 12px;
    top: 8px;
    font-weight: 700;
    color: var(--teal);
    font-size: 12.5px;
    min-width: 22px;
}

.references-list li:hover {
    background: var(--gray-50);
}

.references-list li:target,
.references-list li.highlight {
    background: rgba(201, 168, 76, 0.08);
    border-left: 3px solid var(--gold);
}

/* Reference back-link */
.ref-backlink {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: var(--teal);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    vertical-align: super;
}

.references-list li:hover .ref-backlink {
    opacity: 1;
}

.ref-backlink:hover {
    text-decoration: underline;
}

.references-list em {
    font-style: italic;
}

.references-list strong {
    font-weight: 600;
    color: var(--gray-700);
}

/* ── Manuscript DOCX References (MDPI-style numbered hanging indent) ── */
.manuscript-references-list {
    padding-left: 0;
    margin: 16px 0 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--gray-700);
    list-style: none;
    counter-reset: ms-ref-counter;
}

.manuscript-references-list li {
    counter-increment: ms-ref-counter;
    position: relative;
    padding: 4px 0 4px 36px;
    margin-bottom: 8px;
    text-align: justify;
}

.manuscript-references-list li::before {
    content: counter(ms-ref-counter) ".";
    position: absolute;
    left: 0;
    top: 4px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
    min-width: 28px;
    text-align: right;
    padding-right: 8px;
}

.manuscript-references-list li em,
.manuscript-references-list li i {
    font-style: italic;
}

.manuscript-references-list li strong,
.manuscript-references-list li b {
    font-weight: 700;
}

.manuscript-references-list li a {
    color: var(--teal);
    text-decoration: none;
}

.manuscript-references-list li a:hover {
    text-decoration: underline;
}

/* ── RIGHT SIDEBAR (Table of Contents) ── */
.article-sidebar-right {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    padding: 32px 24px 32px 20px;
    max-height: calc(100vh - var(--nav-height) - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.article-sidebar-right::-webkit-scrollbar {
    width: 4px;
}
.article-sidebar-right::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.toc-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 2px;
}

.toc-link {
    display: block;
    padding: 6px 10px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
}

.toc-link:hover {
    background: var(--gray-50);
    color: var(--navy);
}

.toc-link.active {
    background: rgba(201, 168, 76, 0.08);
    color: var(--navy);
    border-left-color: var(--gold);
    font-weight: 600;
}

/* Sub-section TOC items (indented) */
.toc-link.toc-sub {
    padding-left: 22px;
    font-size: 11.5px;
    color: var(--gray-500);
}

.toc-link.toc-sub.active {
    color: var(--teal);
}


/* ── No Sections Fallback (DB articles) ── */
.no-sections-card {
    text-align: center;
    padding: 60px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7f7 100%);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-top: 16px;
}

.no-sections-card svg {
    margin-bottom: 20px;
    opacity: 0.35;
    color: var(--navy);
}

.no-sections-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.no-sections-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.no-sections-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--teal);
    color: var(--white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.no-sections-download-btn:hover {
    background: var(--teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}


/* ── 404 State ── */
.article-not-found {
    text-align: center;
    padding: 120px 24px;
    margin-top: var(--nav-height);
}

.article-not-found svg {
    margin: 0 auto 20px;
    display: block;
    color: var(--gray-400);
}

.article-not-found h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.article-not-found p {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 24px;
}

.btn-back-archives {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--teal);
    color: var(--white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-back-archives:hover {
    background: var(--teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}


/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(10, 31, 68, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--teal);
    transform: translateY(-2px);
}


/* ── Cite Toast ── */
.cite-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 28px rgba(10, 31, 68, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.cite-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* ── Figure Lightbox ── */
.figure-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.figure-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
    color: #ccc;
    font-size: 14px;
    margin-top: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}


/* ── Mobile TOC Toggle ── */
.toc-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(10, 31, 68, 0.35);
    z-index: 998;
    transition: all 0.3s ease;
}

.toc-mobile-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 31, 68, 0.4);
}

.toc-mobile-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile TOC drawer */
.toc-mobile-drawer {
    display: none;
    position: fixed;
    bottom: 86px;
    left: 24px;
    width: 260px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 997;
    padding: 16px;
    animation: tocDrawerIn 0.25s ease;
}

.toc-mobile-drawer.open {
    display: block;
}

@keyframes tocDrawerIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   DOCX MANUSCRIPT CONTENT STYLES
   Styles for mammoth.js-converted HTML rendering.
   Makes the full submitted manuscript readable inline.
   ============================================================ */

/* Loading state while DOCX is being converted */
.docx-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    gap: 16px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
}

.docx-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spinDocx 0.8s linear infinite;
}

@keyframes spinDocx {
    to { transform: rotate(360deg); }
}

/* ── Manuscript content container ── */
.manuscript-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
}

/* Manuscript Abstract Card */
.manuscript-abstract-card {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.manuscript-abstract-card .abstract-heading {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

.manuscript-abstract-card .abstract-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
    text-align: justify;
    margin-bottom: 14px;
}

/* Manuscript headings */
.manuscript-content h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

.manuscript-content h1:first-child {
    margin-top: 0;
}

.manuscript-content h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

.manuscript-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 28px 0 12px;
    padding-bottom: 4px;
}

.manuscript-content h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin: 22px 0 10px;
}

/* Manuscript paragraphs */
.manuscript-content p {
    margin-bottom: 14px;
    text-align: justify;
    word-break: break-word;
}

.manuscript-content p:empty {
    margin-bottom: 4px;
}

/* Manuscript lists */
.manuscript-content ul,
.manuscript-content ol {
    margin: 12px 0 16px 24px;
}

.manuscript-content li {
    margin-bottom: 6px;
    line-height: 1.7;
}

/* Manuscript inline styles */
.manuscript-content strong,
.manuscript-content b {
    font-weight: 600;
    color: var(--navy);
}

.manuscript-content em,
.manuscript-content i {
    font-style: italic;
}

.manuscript-content sup {
    font-size: 0.75em;
    vertical-align: super;
}

.manuscript-content sub {
    font-size: 0.75em;
    vertical-align: sub;
}

.manuscript-content a {
    color: var(--teal);
    text-decoration: none;
}

.manuscript-content a:hover {
    text-decoration: underline;
}

/* Manuscript blockquotes */
.manuscript-content blockquote {
    margin: 16px 0;
    padding: 14px 20px;
    border-left: 3px solid var(--teal);
    background: var(--gray-50);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--gray-600);
}

/* ── Manuscript images (from DOCX) ── */
.manuscript-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manuscript-content img:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Figure wrap (post-processed by JS) */
.manuscript-figure-wrap {
    margin: 28px 0;
    padding: 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.25s ease;
}

.manuscript-figure-wrap:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.manuscript-figure-wrap img {
    margin: 0 auto 14px;
}

.manuscript-figure-wrap p {
    text-align: center;
    margin-bottom: 0;
}

.manuscript-fig-caption {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--gray-600);
    text-align: left;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.manuscript-fig-caption strong {
    color: var(--navy);
}

/* Manuscript caption paragraphs */
.manuscript-content .manuscript-caption {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--gray-600);
    text-align: center;
    font-style: italic;
    margin-bottom: 20px;
}

/* ── Manuscript tables (from DOCX) ── */
.manuscript-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 24px 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
}

.manuscript-content table th,
.manuscript-content table thead td {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    background: var(--navy);
    color: var(--white);
    white-space: nowrap;
    font-size: 12.5px;
    letter-spacing: 0.2px;
}

.manuscript-content table td {
    padding: 9px 14px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    background: transparent;
    vertical-align: top;
    word-break: normal;
}

.manuscript-content table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.manuscript-content table tbody tr:hover {
    background: #eaf3f5;
}

/* Horizontal rules from DOCX */
.manuscript-content hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 28px 0;
}

/* Code blocks from DOCX */
.manuscript-content pre,
.manuscript-content code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 2px 6px;
}

.manuscript-content pre {
    padding: 14px 18px;
    overflow-x: auto;
    margin: 14px 0;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Below 1300px: Compact sidebars ── */
@media (max-width: 1300px) {
    .article-layout {
        grid-template-columns: 230px 1fr 240px;
    }

    .article-body {
        padding: 32px 24px;
    }
}

/* ── Below 1080px: Collapse left sidebar into header/footer flow ── */
@media (max-width: 1080px) {
    .article-layout {
        grid-template-columns: 1fr 240px;
    }

    .article-sidebar-left {
        display: none;
    }

    .article-body {
        padding: 32px 24px;
    }
}

/* ── Below 860px: Stack sidebar on mobile ── */
@media (max-width: 860px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar-left,
    .article-sidebar-right {
        display: block;
        position: static;
        max-height: none;
        overflow-y: visible;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--gray-200);
        padding: 28px 20px;
    }

    .article-body {
        padding: 28px 16px;
    }

    .article-title {
        font-size: 1.35rem;
    }

    .article-dates {
        flex-direction: column;
        gap: 4px;
    }

    .date-separator {
        display: none;
    }

    .article-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn {
        justify-content: center;
    }

    /* Show mobile TOC toggle */
    .toc-mobile-toggle {
        display: flex;
    }
}

/* ── Below 640px: Compact mobile ── */
@media (max-width: 640px) {
    .article-header-section {
        padding: 24px 0 20px;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .section-heading {
        font-size: 1.15rem;
    }

    .article-content-section {
        padding: 0 0 60px;
    }

    .article-body {
        padding: 24px 16px;
    }

    .article-breadcrumb .container {
        padding: 0 16px;
    }

    .article-header-section .container {
        padding: 0 16px;
    }

    .table-scroll {
        font-size: 12px;
    }

    .table-scroll th,
    .table-scroll td {
        padding: 7px 10px;
    }

    .article-figure {
        padding: 14px;
        margin: 20px 0;
    }
}


/* ── Print Styles ── */
@media print {
    .navbar,
    .mobile-menu,
    .article-actions,
    .back-to-top,
    .footer,
    .article-sidebar-left,
    .article-sidebar-right,
    .toc-mobile-toggle,
    .toc-mobile-drawer {
        display: none !important;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-breadcrumb {
        border-bottom: 1px solid #ccc;
    }

    .article-body {
        font-size: 12pt;
        padding: 24px 0;
        border-right: none;
    }

    .section-content {
        font-size: 11pt;
    }
}


/* ============================================================
   SHARE MANUSCRIPT MODAL & LIVE SOCIAL PREVIEW CARD
   ============================================================ */
.share-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
    visibility: hidden;
}

.share-modal-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.share-modal {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.share-modal-backdrop.visible .share-modal {
    transform: translateY(0) scale(1);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--gray-200);
}

.share-modal-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--teal);
    margin-bottom: 3px;
}

.share-modal-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    font-family: 'IBM Plex Serif', Georgia, serif;
}

.share-modal-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.share-modal-close:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.share-modal-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.share-preview-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    margin-bottom: 8px;
    display: block;
}

/* ── Live Branded Social Preview Card ── */
.share-preview-wrapper {
    width: 100%;
}

.share-social-card {
    background: linear-gradient(145deg, #0a192f 0%, #0e2747 50%, #061120 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 16px 18px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 25, 47, 0.2);
    position: relative;
    overflow: hidden;
}

.share-social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #0A1F44, #d4af37);
}

.share-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.share-card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-card-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.share-card-journal-info {
    display: flex;
    flex-direction: column;
}

.share-card-journal-name {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.share-card-journal-tagline {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.2;
}

.share-card-oa-badge {
    background: var(--gold, #C9A84C);
    color: var(--navy, #0A1F44);
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.4px;
}

.share-card-body {
    margin-bottom: 12px;
}

.share-card-type {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.share-card-article-title {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.share-card-authors {
    font-size: 11.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.3;
}

.share-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10.5px;
}

.share-card-meta-left {
    display: flex;
    gap: 10px;
    color: #94a3b8;
    font-family: 'DM Mono', monospace;
}

.share-card-citation-text {
    color: #d4af37;
    font-weight: 600;
}

.share-card-doi {
    color: #94a3b8;
}

.share-card-peer-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gold, #C9A84C);
    font-weight: 600;
    font-size: 10.5px;
}

/* ── Download Card Image Actions ── */
.share-image-actions {
    display: flex;
    gap: 10px;
}

.share-card-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--navy);
    color: #ffffff;
    border: 1px solid var(--navy);
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-card-action-btn:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.share-card-action-btn.btn-secondary {
    background: var(--gray-50);
    color: var(--navy);
    border-color: var(--gray-300);
}

.share-card-action-btn.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* ── Social Platforms Grid ── */
.share-platforms-section {
    width: 100%;
}

.share-platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-platform-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.share-platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.share-platform-btn:hover svg {
    transform: scale(1.1);
}

.share-platform-btn.btn-x:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.share-platform-btn.btn-linkedin:hover {
    background: #0077b5;
    color: #ffffff;
    border-color: #0077b5;
}

.share-platform-btn.btn-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.share-platform-btn.btn-facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.share-platform-btn.btn-telegram:hover {
    background: #229ed9;
    color: #ffffff;
    border-color: #229ed9;
}

.share-platform-btn.btn-reddit:hover {
    background: #ff4500;
    color: #ffffff;
    border-color: #ff4500;
}

.share-platform-btn.btn-email:hover {
    background: var(--teal);
    color: #ffffff;
    border-color: var(--teal);
}

.share-platform-btn.btn-native:hover {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}

/* ── Copy Link Box ── */
.share-link-group {
    width: 100%;
}

.share-link-box {
    display: flex;
    gap: 8px;
}

.share-link-box input {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-family: 'DM Mono', monospace;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    outline: none;
}

.share-link-box input:focus {
    border-color: var(--teal);
    background: #ffffff;
}

.btn-share-copy-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--teal);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-share-copy-act:hover {
    background: var(--gold-hover, #D4AF37);
}

@media (max-width: 600px) {
    .share-platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .share-image-actions {
        flex-direction: column;
    }
}

/* ==================== MANUSCRIPT LAYOUT GRID & WORD FIDELITY ==================== */
.manuscript-banner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gray-200, #e2e8f0);
    padding-bottom: 14px;
    margin-bottom: 24px;
    width: 100%;
}
.manuscript-banner-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}
.manuscript-banner-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.manuscript-category-pill {
    background: rgba(0, 128, 128, 0.12);
    color: var(--teal, #008080);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: var(--font-mono, monospace);
}
.manuscript-pub-date {
    font-size: 12px;
    color: var(--gray-600, #475569);
    font-family: var(--font-mono, monospace);
}
.manuscript-subheading {
    font-style: italic;
    color: var(--teal, #008080);
    font-size: 14.5px;
    margin: 8px 0 4px 0 !important;
    font-weight: 600;
}
.manuscript-content h1.manuscript-title,
.manuscript-title {
    font-family: var(--font-serif, 'IBM Plex Serif', Georgia, serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    line-height: 1.35;
    margin: 10px 0 16px 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.manuscript-author-line {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    margin: 0 0 4px 0 !important;
}
.manuscript-author-role {
    font-style: italic;
    font-size: 13px;
    color: var(--gray-600, #475569);
    margin: 0 0 12px 0 !important;
}
.manuscript-affiliations-block {
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--gray-600, #64748b);
    line-height: 1.5;
}
.manuscript-divider {
    border: none;
    border-top: 1px solid var(--gray-200, #e2e8f0);
    margin: 20px 0;
}
.manuscript-layout-grid {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    align-items: flex-start;
    width: 100%;
}
.manuscript-sidebar-col {
    flex: 0 0 220px;
    max-width: 240px;
    border-right: 1px solid var(--gray-200, #e2e8f0);
    padding-right: 20px;
    font-size: 12px;
    color: var(--gray-700, #334155);
    line-height: 1.6;
}
.manuscript-sidebar-block {
    margin-bottom: 18px;
}
.manuscript-sidebar-block p {
    margin: 0 0 6px 0 !important;
    font-size: 12px !important;
}
.manuscript-sidebar-col a {
    color: var(--teal, #008080);
    text-decoration: none;
    word-break: break-all;
}
.manuscript-sidebar-col a:hover {
    text-decoration: underline;
}
.manuscript-body-col {
    flex: 1;
    min-width: 0;
}
.manuscript-body-col p {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--gray-800, #1e293b);
    margin-bottom: 16px;
    text-align: justify;
}
.manuscript-summary-card {
    background: rgba(0, 128, 128, 0.04);
    border-left: 3px solid var(--teal, #008080);
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 24px;
}
.manuscript-summary-card .summary-heading {
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--teal, #008080);
    margin: 0 0 8px 0 !important;
}
.manuscript-summary-card .summary-text,
.manuscript-summary-card p.summary-text {
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    color: var(--gray-800, #1e293b) !important;
    margin: 0 0 10px 0 !important;
    text-align: justify;
}
.manuscript-summary-card .summary-keywords,
.manuscript-summary-card p.summary-keywords {
    font-size: 12.5px !important;
    color: var(--gray-700, #334155) !important;
    margin: 0 !important;
}
@media (max-width: 768px) {
    .manuscript-layout-grid {
        flex-direction: column;
        gap: 16px;
    }
    .manuscript-sidebar-col {
        flex: none;
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200, #e2e8f0);
        padding-right: 0;
        padding-bottom: 16px;
    }
}

