/* PDF Download Stats in Summary — OJS 3.5.x */

/* Keep the native galley buttons and the counter on the same visual row. */
.obj_article_summary .galleys_links,
.article_summary .galleys_links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    vertical-align: middle;
    margin-right: 0.7rem;
}

.bl-download-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    vertical-align: middle;
    margin: 0.35rem 0 0.35rem 0;
    padding: 0.42rem 0.7rem;
    border: 1px solid #d8e2e6;
    border-radius: 4px;
    background: #f8fafb;
    color: #5d6b72;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.bl-download-stats__icon {
    color: #3f7f8a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.bl-download-stats__count {
    color: #1f4e5f;
    font-weight: 700;
}

@media (max-width: 600px) {
    .bl-download-stats {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Most downloaded homepage block — polished v3.5.0.6 */
.most_downloaded_articles {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
.bl-most-downloaded__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}
.most_downloaded_articles .bl-most-downloaded__header h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.25;
}
.bl-most-downloaded__accent {
    display: block;
    width: 72px;
    height: 4px;
    margin-top: .65rem;
    border-radius: 3px;
    background: #f2b33d;
}
.bl-most-downloaded__scope {
    margin-top: .15rem;
    padding: .38rem .68rem;
    border: 1px solid #d8e2e6;
    border-radius: 999px;
    background: #f8fafb;
    color: #5d6b72;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.most_downloaded_articles .cmp_article_list { margin: 0; padding: 0; list-style: none; }
.most_downloaded_articles .cmp_article_list > li { list-style: none; }
.bl-most-downloaded__item {
    position: relative;
    padding: 0 0 1.45rem 0;
    margin: 0 0 1.45rem 0;
    border-bottom: 1px solid #e5eaed;
}
.bl-most-downloaded__item:last-child { border-bottom: 0; margin-bottom: 0; }
.most_downloaded_summary {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}
.bl-most-downloaded__rank {
    flex: 0 0 auto;
    min-width: 2.2rem;
    margin-top: .08rem;
    color: #3f7f8a;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.6;
}
.bl-most-downloaded__item:nth-child(-n+3) .bl-most-downloaded__rank {
    color: #1f4e5f;
}
.bl-most-downloaded__body { min-width: 0; flex: 1 1 auto; }
.most_downloaded_summary .title { margin-top: 0; margin-bottom: .35rem; }
.most_downloaded_summary .meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.most_downloaded_summary .authors { flex: 1 1 auto; }
.most_downloaded_summary .pages { flex: 0 0 auto; white-space: nowrap; }
.bl-most-downloaded__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .65rem;
}
.most_downloaded_summary .galleys_links {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.most_downloaded_summary .bl-download-stats { margin: 0; }
@media (max-width: 600px) {
    .bl-most-downloaded__header { align-items: flex-start; }
    .bl-most-downloaded__scope { font-size: .68rem; }
    .most_downloaded_summary { gap: .55rem; }
    .bl-most-downloaded__rank { min-width: 1.8rem; }
    .most_downloaded_summary .meta { display: block; }
    .most_downloaded_summary .pages { margin-top: .25rem; }
}

/* Match Most Downloaded article titles to the native Current Issue title styling. */
.most_downloaded_articles .most_downloaded_summary .title {
    margin: 0 0 .35rem 0;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    font-weight: 700;
}

.most_downloaded_articles .most_downloaded_summary .title a,
.most_downloaded_articles .most_downloaded_summary .title a:link,
.most_downloaded_articles .most_downloaded_summary .title a:visited,
.most_downloaded_articles .most_downloaded_summary .title a:hover,
.most_downloaded_articles .most_downloaded_summary .title a:focus {
    color: #3f7f8a;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Citation count — Crossref cited-by metric */
.bl-article-metrics {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    vertical-align: middle;
}

.bl-article-metrics .bl-download-stats {
    margin-right: 0;
}

.bl-citation-stats {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    vertical-align: middle;
    margin: .35rem 0;
    padding: .42rem .7rem;
    border: 1px solid #d8e2e6;
    border-radius: 4px;
    background: #f8fafb;
    color: #5d6b72;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.bl-citation-stats__icon {
    color: #8a6d2f;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
}

.bl-citation-stats__count {
    color: #1f4e5f;
    font-weight: 700;
}

.bl-most-downloaded__actions .bl-citation-stats {
    margin: 0;
}

@media (max-width: 600px) {
    .bl-article-metrics {
        gap: .4rem;
    }
    .bl-citation-stats {
        margin-top: .5rem;
    }
    .bl-most-downloaded__actions .bl-citation-stats {
        margin-top: 0;
    }
}
