/* ==============================================================================
   ARTICLE PAGE STYLES — SCHOLARLY (SPRINGER / CAMBRIDGE CORE)
   Uses design tokens from design-system.css — no :root redeclaration
   ============================================================================== */

/* ==============================================================================
   ARTICLE HEADER
   ============================================================================== */
.article-header-section {
    background-color: var(--bg-subtle);
    border-bottom: 1px solid var(--rule);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.article-type-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background-color: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--rule);
}

.open-access-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    background-color: var(--paper);
    color: var(--oa-green);
    border: 1.5px solid var(--oa-green);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
}

.open-access-badge i {
    margin-right: 0.4rem;
}

.article-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.author-list {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.affiliation-list {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.publication-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.publication-info-item {
    display: flex;
    align-items: center;
}

.publication-info-item strong {
    margin-right: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==============================================================================
   SIDEBAR
   ============================================================================== */
.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-section {
    background-color: var(--bg-surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rule);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.18s ease;
}

.metric-item:hover {
    background-color: var(--bg-subtle);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: var(--radius-sm);
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.metric-label i {
    width: 16px;
    text-align: center;
}

.metric-value {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

.metric-value.altmetric-low { color: var(--text-muted); }
.metric-value.altmetric-medium { color: #B45309; }
.metric-value.altmetric-high { color: var(--oa-green); }

.metric-info {
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

/* ==============================================================================
   DOWNLOAD BUTTON
   ============================================================================== */
.btn-download {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--oa-green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.18s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-download:hover {
    background-color: #156B3F;
    color: white;
}

.btn-download i {
    margin-right: 0.5rem;
}

/* ==============================================================================
   MAIN CONTENT AREA
   ============================================================================== */
.article-content-area {
    background-color: var(--bg-surface);
}

/* Accordion */
.accordion-button {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--bg-subtle);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-elevated);
    color: var(--text-main);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--rule);
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1.02rem;
    line-height: 1.8;
}

.accordion-item {
    border: 1px solid var(--rule);
    margin-bottom: 0.5rem;
}

/* Keywords */
.keyword-tag {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    background-color: var(--bg-subtle);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--rule);
}

/* ==============================================================================
   CITATION BOX
   ============================================================================== */
.citation-box {
    background-color: var(--bg-subtle);
    border-left: 3px solid var(--accent);
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 1rem 0;
    position: relative;
    color: var(--text-main);
}

.citation-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    background-color: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.18s ease;
    color: var(--text-main);
}

.citation-copy-btn:hover {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ==============================================================================
   VIEW TOGGLE (Text / PDF)
   ============================================================================== */
.view-toggle-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1rem;
}

.view-toggle-btn {
    padding: 0.65rem 1.25rem;
    background-color: var(--paper);
    color: var(--text-muted);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle-btn:hover {
    background-color: var(--bg-subtle);
}

.view-toggle-btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.view-toggle-btn i {
    font-size: 1rem;
}

/* ==============================================================================
   PDF VIEWER
   ============================================================================== */
.pdf-viewer-container {
    display: none;
    margin: 1.5rem 0;
}

.pdf-viewer-container.active {
    display: block;
}

.enhanced-pdf-reader {
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin: 20px 0;
}

/* PDF Reader Header — solid accent, no gradient */
.pdf-reader-header {
    background: var(--accent);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-reader-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.pdf-reader-title i {
    font-size: 1.4rem;
}

.pdf-title-text {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pdf-reader-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdf-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.18s ease;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdf-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.pdf-zoom-level {
    color: white;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    font-size: 0.88rem;
}

/* PDF Navigation */
.pdf-navigation-controls {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--rule);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.pdf-nav-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.18s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.pdf-nav-btn:hover:not(:disabled) {
    background: var(--accent-ink);
}

.pdf-nav-btn:disabled {
    background: var(--muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.pdf-page-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--rule);
}

.page-label,
.page-separator {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.pdf-page-input {
    width: 60px;
    text-align: center;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 5px 8px;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.92rem;
    background: var(--paper);
}

.pdf-page-input:focus {
    outline: none;
    border-color: var(--accent-ink);
    box-shadow: 0 0 0 2px rgba(122, 46, 39, 0.1);
}

.pdf-total-pages {
    font-weight: 600;
    color: var(--accent);
    min-width: 30px;
    text-align: center;
}

/* PDF Canvas */
.pdf-canvas-container {
    position: relative;
    background: #525659;
    overflow: auto;
    min-height: 600px;
    max-height: 800px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.pdf-render-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: white;
    display: block;
}

/* PDF Loading */
.pdf-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(82, 86, 89, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
}

.pdf-loading-overlay p {
    margin: 0;
    font-weight: 500;
}

.pdf-fallback {
    padding: 40px 20px;
    text-align: center;
}

/* Mobile PDF Prompt */
.pdf-mobile-prompt {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.mobile-prompt-content {
    background: var(--paper);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
}

.mobile-prompt-content i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.mobile-prompt-content h5 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.mobile-prompt-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.mobile-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Fullscreen */
.enhanced-pdf-reader.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
}

.enhanced-pdf-reader.fullscreen .pdf-canvas-container {
    max-height: none;
    height: calc(100vh - 140px);
}

/* ==============================================================================
   TEXT VIEW — CAPPED PROSE COLUMN
   ============================================================================== */
.text-view-container {
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 3rem;
    margin: 1.5rem auto;
    background-color: var(--paper);
    display: none;
    max-width: 680px;
}

.text-view-container.active {
    display: block;
}

.text-view-content {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.text-view-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.text-view-content h2 {
    font-size: 1.45rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.5rem;
}

.text-view-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-main);
}

.text-view-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.text-view-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.text-view-content ul, .text-view-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.text-view-content li {
    margin-bottom: 0.5rem;
}

.text-view-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.text-view-content table th,
.text-view-content table td {
    border: 1px solid var(--rule);
    padding: 0.75rem;
    text-align: left;
}

.text-view-content table th {
    background-color: var(--bg-subtle);
    font-weight: 600;
}

.text-view-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
}

.text-view-content code {
    background-color: var(--bg-subtle);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.92rem;
}

.text-view-content pre {
    background-color: var(--bg-subtle);
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

/* ==============================================================================
   RELATED ARTICLES
   ============================================================================== */
.related-article-card {
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.18s ease;
    background-color: var(--paper);
}

.related-article-card:hover {
    box-shadow: var(--shadow-sm);
}

.related-article-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-article-title a {
    color: var(--text-main);
    text-decoration: none;
}

.related-article-title a:hover {
    color: var(--accent);
}

.related-article-authors {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ==============================================================================
   SOCIAL SHARING
   ============================================================================== */
.social-share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.88rem;
    transition: background 0.18s ease;
}

.social-btn:hover {
    background-color: var(--bg-subtle);
    color: var(--text-main);
}

.social-btn i {
    margin-right: 0.5rem;
}

/* ==============================================================================
   SECTION HEADERS (article page context)
   ============================================================================== */
.article-content-area .section-header {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rule);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==============================================================================
   INFO TABLE
   ============================================================================== */
.info-table {
    width: 100%;
    margin: 1rem 0;
}

.info-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--text-muted);
    width: 40%;
}

/* ==============================================================================
   DOI BADGE
   ============================================================================== */
.doi-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    background-color: var(--bg-subtle);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.88rem;
    transition: background 0.18s ease;
    border: 1px solid var(--rule);
}

.doi-link:hover {
    background-color: var(--bg-elevated);
    color: var(--text-main);
}

.doi-link i {
    margin-right: 0.5rem;
}

/* ==============================================================================
   ALTMETRIC
   ============================================================================== */
#altmetric-badge-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formula-box {
    background: var(--accent);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: white;
    margin: 1rem 0;
}

.formula-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.formula-content {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.formula-content code {
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    background: none;
    padding: 0;
}

/* Weight Explanation */
.weight-explanation {
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 1rem;
    background-color: var(--bg-subtle);
}

.weight-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}

.weight-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.weight-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
}

.weight-label i {
    width: 20px;
}

.weight-label .badge {
    margin-left: auto;
    font-size: 0.72rem;
}

.weight-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 28px;
}

/* Calculation Details */
.calculation-details {
    background: var(--bg-subtle);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: 0.85rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.calc-row.total {
    border-top: 2px solid var(--accent);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1rem;
}

.total-score {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

/* Score Guide */
.guide-content {
    background: var(--bg-subtle);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.score-range {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    font-size: 0.72rem;
}

.score-range.low { background-color: var(--bg-subtle); color: var(--text-muted); }
.score-range.medium { background-color: #FFF8E1; color: #8D6E0F; }
.score-range.high { background-color: #E8F5E9; color: var(--oa-green); }
.score-range.exceptional { background-color: var(--primary-50); color: var(--accent); }

.score-meaning {
    flex: 1;
    color: var(--text-muted);
}

/* ==============================================================================
   MOBILE SIDEBAR
   ============================================================================== */
.mobile-menu-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: background 0.18s ease;
    cursor: pointer;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle i {
    font-size: 1.4rem;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: var(--paper);
    z-index: 1003;
    overflow-y: auto;
    transition: right 0.25s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-header {
    position: sticky;
    top: 0;
    background: var(--accent);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.mobile-sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.mobile-sidebar-content {
    padding: 1rem;
}

/* ==============================================================================
   ANIMATIONS — RESTRAINED
   ============================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.text-view-container.active,
.pdf-viewer-container.active {
    animation: fadeIn 0.2s ease-in-out;
}

/* Reader Toolbar Controls */
.reader-toolbar {
    border-left: 3px solid var(--accent);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.text-view-content {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.rich-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 1.5rem 0;
}

.orcid-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    color: #a6ce39;
    font-size: 1.1rem;
    line-height: 1;
}

.orcid-badge:hover {
    opacity: 0.85;
}

/* ==============================================================================
   RESPONSIVE — 768px
   ============================================================================== */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.6rem;
    }

    .article-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .text-view-container {
        padding: 1.5rem;
    }

    .view-toggle-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.82rem;
    }

    .col-lg-3 {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .weight-label {
        flex-wrap: wrap;
    }

    .weight-label .badge {
        margin-left: 0;
    }

    .pdf-reader-header {
        padding: 12px 15px;
    }

    .pdf-title-text {
        font-size: 0.82rem;
        -webkit-line-clamp: 1;
    }

    .pdf-reader-controls {
        width: 100%;
        justify-content: center;
    }

    .pdf-control-btn {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .pdf-navigation-controls {
        padding: 10px 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pdf-nav-btn .btn-text {
        display: none;
    }

    .pdf-nav-btn {
        padding: 8px 15px;
    }

    .pdf-page-info {
        padding: 6px 12px;
    }

    .pdf-page-input {
        width: 50px;
        padding: 4px 6px;
        font-size: 0.88rem;
    }

    .pdf-canvas-container {
        min-height: 400px;
        max-height: 600px;
        padding: 10px;
    }

    .formula-content code {
        font-size: 0.72rem;
    }
}

/* ==============================================================================
   RESPONSIVE — 480px
   ============================================================================== */
@media (max-width: 480px) {
    .pdf-reader-title i {
        font-size: 1.2rem;
    }

    .pdf-zoom-level {
        font-size: 0.78rem;
        min-width: 45px;
    }

    .page-label,
    .page-separator {
        font-size: 0.78rem;
    }

    .pdf-canvas-container {
        min-height: 300px;
        padding: 5px;
    }

    .text-view-container {
        padding: 15px 10px;
    }

    .text-view-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .text-view-content h2 {
        font-size: 1.15rem;
    }

    .view-toggle-btn {
        padding: 8px 15px;
        font-size: 0.82rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-sidebar-overlay,
    .mobile-sidebar {
        display: none !important;
    }
}

/* ==============================================================================
   PRINT STYLESHEET
   ============================================================================== */
@media print {
    .view-toggle-container,
    .pdf-reader-header,
    .pdf-navigation-controls,
    .mobile-menu-toggle,
    .mobile-sidebar,
    .mobile-sidebar-overlay,
    .sidebar-section,
    .social-share-buttons,
    .article-sidebar {
        display: none !important;
    }

    .text-view-container {
        display: block !important;
        max-width: 100%;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .col-lg-9 {
        width: 100%;
    }

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

    .text-view-content {
        font-size: 10pt;
        line-height: 1.5;
    }

    .pdf-canvas-container {
        max-height: none;
        overflow: visible;
    }
}
