/* FNPH Calabar Research Repository - builds on assets/css/main.css (Medilab) */

.repo {
  --r-green: #2e7d32;
  --r-green-dark: #1b5e20;
  --r-blue: #1977cc;
  --r-navy: #2c4964;
  --r-text: #333;
  --r-muted: #6b7280;
  --r-line: #e3e8ee;
  --r-soft: #f1f7fc;
  color: var(--r-text);
  background: #fff;
}
.repo a { color: var(--r-blue); }
.repo a:hover { color: var(--r-green); }
.repo h1, .repo h2, .repo h3, .repo h4 { color: var(--r-navy); }
.muted { color: var(--r-muted); }
.repo-main { min-height: 45vh; }
.repo-main > .container > .alert:first-child { margin-top: 18px; }
.section { padding: 40px 0; }

/* Header */
.repo-top-account a { color: #fff !important; font-size: 14px; }
.repo-brand img { height: 46px; width: auto; margin-right: 10px; }
.repo-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.repo-brand .sitename { font-size: 26px; margin: 0; color: var(--r-green); font-family: var(--heading-font); font-weight: 700; }
.repo-brand small { color: var(--r-navy); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.navmenu .repo-nav-hospital { font-size: 14px; color: var(--r-muted) !important; }
@media (max-width: 1199px) {
  .mobile-nav-active .navmenu > ul { display: block; }
}

/* Buttons */
.btn-repo { background: var(--r-green); color: #fff !important; border: 0; border-radius: 6px; font-weight: 500; }
.btn-repo:hover, .btn-repo:focus { background: var(--r-green-dark); color: #fff; }
.btn-repo-outline { border: 1px solid var(--r-green); color: var(--r-green) !important; background: #fff; border-radius: 6px; }
.btn-repo-outline:hover { background: var(--r-green); color: #fff !important; }

/* Hero + search bar */
.repo-hero { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 45%, #1d6fa5 100%); color: #fff; padding: 56px 0 46px; }
.repo-hero h1 { color: #fff !important; font-size: 34px; font-weight: 700; max-width: 820px; }
.repo-hero p { color: #e8f5e9; font-size: 17px; max-width: 760px; }
.repo-searchbar { display: flex; max-width: 860px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); margin-top: 22px; }
.repo-searchbar select { border: 0; border-right: 1px solid var(--r-line); padding: 0 12px; background: #f6f8fa; color: var(--r-navy); max-width: 150px; }
.repo-searchbar input { flex: 1; min-width: 0; border: 0; padding: 15px 16px; font-size: 17px; outline: none; }
.repo-searchbar button { border: 0; background: var(--r-blue); color: #fff; padding: 0 22px; font-weight: 600; }
.repo-searchbar button:hover { background: #135ea3; }
.repo-searchbar.small-bar { max-width: none; box-shadow: none; border: 1px solid var(--r-line); margin-top: 0; }
.repo-searchbar.small-bar input { padding: 11px 14px; font-size: 16px; }
.repo-hero-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.repo-hero-links a { color: #fff !important; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 576px) {
  .repo-hero { padding: 34px 0 30px; }
  .repo-hero h1 { font-size: 25px; }
  .repo-searchbar select { max-width: 96px; font-size: 13px; }
}

.repo-stats { margin-top: -22px; }
.repo-stat { background: #fff; border: 1px solid var(--r-line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(44, 73, 100, .07); }
.repo-stat i { color: var(--r-green); font-size: 20px; }
.repo-stat strong { font-size: 26px; font-family: var(--heading-font); color: var(--r-navy); line-height: 1.2; }
.repo-stat span { color: var(--r-muted); font-size: 14px; }

/* Panels */
.repo-panel { background: #fff; border: 1px solid var(--r-line); border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; }
.repo-panel h2 { font-size: 19px; margin-bottom: 12px; }
.repo-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; border-bottom: 2px solid #e8f5e9; margin-bottom: 6px; }
.repo-panel-head h2 { margin-bottom: 8px; }
.repo-h2 { font-size: 26px; }
.repo-note { background: #eef6fd; border-left: 4px solid var(--r-blue); padding: 10px 14px; border-radius: 0 6px 6px 0; margin-bottom: 14px; font-size: 15px; }

/* Results (PubMed style) */
.repo-result { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--r-line); }
.repo-result:last-child { border-bottom: 0; }
.repo-result-num { color: var(--r-muted); font-size: 14px; min-width: 22px; padding-top: 22px; text-align: right; }
.repo-result-body { flex: 1; min-width: 0; }
.repo-result-type { font-size: 13px; color: var(--r-green); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.repo-result h3 { font-size: 18px; line-height: 1.35; margin: 3px 0 4px; font-family: var(--default-font); font-weight: 600; }
.repo-result h3 a { color: #1a4f8b; }
.repo-result h3 a:hover { color: var(--r-green); text-decoration: underline; }
.repo-result mark { background: #fff3c4; padding: 0 1px; }
.repo-result-authors { font-size: 15px; color: #3d3d3d; }
.repo-result-source { font-size: 14px; color: var(--r-muted); }
.repo-ident { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: #f1f5f9; padding: 1px 6px; border-radius: 4px; color: var(--r-navy); }
.repo-result-snippet { font-size: 14.5px; color: #4b4b4b; margin: 6px 0 4px; }
.repo-result-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--r-muted); }
.repo-badge { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; padding: 2px 8px; border-radius: 50px; font-weight: 500; }
.repo-badge.open { background: #e8f5e9; color: var(--r-green-dark); }
.repo-badge.reg { background: #e3f2fd; color: #0d4f8b; }
.repo-badge.restr { background: #fff4e5; color: #8a4b00; }
.repo-badge.ext { background: #f1f5f9; color: var(--r-navy); }

.repo-mini { display: block; padding: 9px 0; border-bottom: 1px dashed var(--r-line); }
.repo-mini:last-of-type { border-bottom: 0; }
.repo-mini strong { display: block; font-size: 15px; font-weight: 500; color: #1a4f8b; line-height: 1.35; }
.repo-mini span { display: block; font-size: 13px; color: var(--r-muted); margin-bottom: 3px; }
.repo-popular { padding-left: 18px; margin: 0; }
.repo-popular li { margin-bottom: 6px; font-size: 14.5px; }
.repo-journal-box { background: #f4faf4; border-color: #c8e6c9; }

/* Disciplines */
.repo-disc-section { background: var(--r-soft); }
.repo-disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.repo-disc { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--r-line); border-radius: 8px; padding: 12px 14px; color: var(--r-navy) !important; transition: border-color .2s, box-shadow .2s; }
.repo-disc:hover { border-color: var(--r-green); box-shadow: 0 4px 12px rgba(46, 125, 50, .12); }
.repo-disc small { color: var(--r-muted); white-space: nowrap; }

.repo-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.repo-steps > div { border: 1px solid var(--r-line); border-radius: 10px; padding: 18px; background: #fff; }
.repo-steps i { font-size: 26px; color: var(--r-green); display: block; margin-bottom: 6px; }
.repo-steps strong { display: block; color: var(--r-navy); margin-bottom: 4px; }
.repo-steps span { color: #555; font-size: 14.5px; }

/* Search page */
.repo-results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 2px solid #e8f5e9; margin-bottom: 4px; }
.repo-results-head select { width: auto; }
.repo-filters { background: #fff; border: 1px solid var(--r-line); border-radius: 10px; padding: 14px 16px; position: sticky; top: 120px; }
.repo-filters h3 { font-size: 17px; margin-bottom: 8px; }
.repo-filter { border-top: 1px solid var(--r-line); padding: 10px 0; }
.repo-filter h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .4px; color: var(--r-muted); margin-bottom: 6px; }
.repo-filter a { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; padding: 3px 6px; border-radius: 4px; color: #2b3b4b !important; }
.repo-filter a span { color: var(--r-muted); font-size: 13px; }
.repo-filter a.on { background: #e8f5e9; color: var(--r-green-dark) !important; font-weight: 600; }
.repo-filter a:hover { background: #f4f7fa; }
@media (max-width: 991px) { .repo-filters { position: static; } }
.repo-empty { text-align: center; padding: 50px 16px; color: var(--r-muted); }
.repo-empty i { font-size: 44px; color: var(--r-green); }
.repo-empty h3 { margin-top: 10px; }
.repo-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 24px; }
.repo-pager a, .repo-pager span.current { border: 1px solid var(--r-line); border-radius: 6px; padding: 5px 12px; background: #fff; }
.repo-pager span.current { background: var(--r-navy); color: #fff; border-color: var(--r-navy); }
.repo-pager .muted { margin-left: 8px; font-size: 14px; }

/* Item page */
.repo-crumbs { font-size: 14px; color: var(--r-muted); margin-bottom: 14px; }
.repo-crumbs i { font-size: 11px; margin: 0 4px; }
.repo-item-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--r-green); font-weight: 600; }
.repo-item-title { font-size: 30px; line-height: 1.3; margin: 8px 0 12px; font-family: var(--heading-font); }
.repo-authors { font-size: 16.5px; line-height: 1.7; }
.repo-author a { color: #1a4f8b; }
.repo-author sup { color: var(--r-muted); margin-left: 1px; }
.repo-orcid { display: inline-block; background: #a6ce39; color: #fff !important; border-radius: 50%; width: 17px; height: 17px; font-size: 9px; line-height: 17px; text-align: center; font-weight: 700; vertical-align: 2px; }
.repo-affs { font-size: 14px; color: #555; padding-left: 20px; margin: 6px 0 10px; }
.repo-source { font-size: 15px; color: #444; }
.repo-ids { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: #555; margin: 6px 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--r-line); }
.repo-section { margin-top: 26px; padding: 0; scroll-margin-top: 90px; }
.repo-section h2 { font-size: 21px; border-bottom: 2px solid #e8f5e9; padding-bottom: 6px; margin-bottom: 12px; }
.repo-section h3 { font-size: 17px; margin-top: 16px; }
.repo-abstract { font-size: 16.5px; line-height: 1.75; }
.repo-keywords { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14.5px; }
.repo-keywords a { background: #f1f5f9; border-radius: 50px; padding: 2px 10px; color: var(--r-navy) !important; }
.repo-keywords a:hover { background: #e8f5e9; }
.repo-facts th { width: 34%; font-weight: 500; color: var(--r-navy); background: #fafcfd; }
.repo-dict { background: #f8fafc; border: 1px solid var(--r-line); border-radius: 6px; padding: 12px; font-size: 13.5px; max-height: 360px; overflow: auto; white-space: pre-wrap; }
.repo-decl { display: grid; grid-template-columns: 190px 1fr; gap: 6px 14px; margin: 0; }
.repo-decl dt { font-weight: 500; color: var(--r-navy); }
.repo-decl dd { margin: 0; }
@media (max-width: 576px) { .repo-decl { grid-template-columns: 1fr; } .repo-decl dd { margin-bottom: 8px; } .repo-item-title { font-size: 24px; } }

.repo-cite { border: 1px solid var(--r-line); border-radius: 10px; overflow: hidden; }
.repo-cite-tabs { display: flex; flex-wrap: wrap; background: #f6f8fa; border-bottom: 1px solid var(--r-line); }
.repo-cite-tabs button { border: 0; background: none; padding: 9px 14px; font-size: 14px; color: var(--r-navy); border-bottom: 2px solid transparent; }
.repo-cite-tabs button.on { color: var(--r-green-dark); border-bottom-color: var(--r-green); font-weight: 600; background: #fff; }
.repo-cite-text { display: none; padding: 16px 18px; font-size: 15.5px; line-height: 1.7; padding-left: 2.2em; text-indent: -1.2em; overflow-wrap: anywhere; }
.repo-cite-text.on { display: block; }
.repo-cite-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 18px 4px; }
.repo-cite > p { padding: 0 18px 14px; }

.repo-side { top: 130px; }
.repo-file { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--r-line); }
.repo-file > i { font-size: 26px; color: var(--r-navy); }
.repo-file > div { flex: 1; min-width: 0; }
.repo-file strong { display: block; font-size: 14.5px; font-weight: 500; }
.repo-file span { display: block; font-size: 12.5px; color: var(--r-muted); }
.repo-lock { color: #8a4b00; font-size: 18px; padding: 0 8px; }
.repo-access-box { margin-top: 12px; background: #fffaf0; border: 1px solid #f3dfb5; border-radius: 8px; padding: 12px; font-size: 14px; }
.repo-access-box p { margin-bottom: 8px; }
.repo-metrics { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.repo-metrics strong { display: block; font-size: 24px; font-family: var(--heading-font); color: var(--r-navy); }
.repo-metrics span { color: var(--r-muted); font-size: 13px; }
.repo-share { display: flex; gap: 8px; }
.repo-share a, .repo-share button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--r-soft); color: var(--r-navy) !important; display: inline-flex; align-items: center; justify-content: center; }
.repo-share a:hover, .repo-share button:hover { background: var(--r-green); color: #fff !important; }
.repo-side code { font-size: 12px; word-break: break-all; }

/* Browse / journal */
.repo-browse-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--r-line); color: var(--r-navy) !important; }
.repo-browse-row:hover { background: #f8fbf8; }
.repo-browse-row small { display: block; color: var(--r-muted); font-size: 13px; }
.repo-browse-row.compact { padding: 7px 6px; }
.repo-browse-row.on { background: #e8f5e9; font-weight: 600; }
.repo-counts { display: flex; gap: 14px; color: var(--r-muted); font-size: 14px; white-space: nowrap; }
.repo-years { display: flex; flex-wrap: wrap; gap: 6px; }
.repo-years a { border: 1px solid var(--r-line); border-radius: 6px; padding: 4px 10px; color: var(--r-navy) !important; font-size: 14px; }
.repo-years a span { color: var(--r-muted); font-size: 12px; }
.repo-journal-hero { background: linear-gradient(135deg, #2c4964, #1d6fa5); color: #e3eef8; padding: 38px 0; }
.repo-journal-hero h1 { color: #fff !important; font-size: 30px; }
.repo-kicker-light { text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; color: #b7d6ef; }
.repo-vol { font-size: 15px; margin: 12px 0 2px; color: var(--r-muted); }

/* Prose pages */
.repo-prose { font-size: 16px; line-height: 1.75; }
.repo-prose h2 { font-size: 23px; margin-top: 34px; padding-top: 8px; border-top: 1px solid var(--r-line); }
.repo-prose h3 { font-size: 18px; margin-top: 18px; }
.repo-toc { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--r-line); border-radius: 10px; padding: 14px; top: 130px; }
.repo-toc a { font-size: 15px; }
.repo-terms { background: #f8fafc; border: 1px solid var(--r-line); border-radius: 8px; padding: 14px 16px; font-size: 15px; }
.repo-terms ul { margin: 6px 0 10px; }
.repo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Workspace */
.repo-wsbar { background: var(--r-navy); color: #fff; padding: 9px 0; font-size: 14px; }
.repo-wsbar a { color: #dbe7f3 !important; margin-right: 10px; }
.repo-wsbar a:hover { color: #fff !important; }
.repo-workspace .repo-main { background: #f6f9fb; padding-bottom: 46px; }
.ws-wrap { padding-top: 24px; }
.ws-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.ws-head h1 { font-size: 25px; margin: 0; }
.ws-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.ws-card { background: #fff; border: 1px solid var(--r-line); border-radius: 10px; padding: 14px 16px; display: block; color: var(--r-text) !important; }
.ws-card strong { display: block; font-size: 26px; font-family: var(--heading-font); color: var(--r-navy); }
.ws-card span { color: var(--r-muted); font-size: 14px; }
.ws-card.attention { border-color: #f0ad4e; background: #fffaf0; }
.ws-table { margin: 0; }
.ws-table th { font-size: 12.5px; text-transform: uppercase; color: var(--r-muted); font-weight: 600; white-space: nowrap; }
.ws-table td { vertical-align: middle; font-size: 14.5px; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ws-tabs a { padding: 5px 13px; border-radius: 50px; border: 1px solid var(--r-line); background: #fff; font-size: 14px; color: var(--r-navy) !important; }
.ws-tabs a.on { background: var(--r-navy); color: #fff !important; border-color: var(--r-navy); }
.ws-steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 16px; padding: 0; list-style: none; counter-reset: s; }
.ws-steps li { flex: 1 1 120px; text-align: center; font-size: 13px; padding: 8px 4px; background: #eef2f6; color: var(--r-muted); border-radius: 4px; position: relative; }
.ws-steps li.done { background: #e8f5e9; color: var(--r-green-dark); }
.ws-steps li.now { background: var(--r-green); color: #fff; font-weight: 600; }
.ws-steps li.bad { background: #fdecea; color: #b71c1c; font-weight: 600; }
.ws-timeline { list-style: none; padding: 0; margin: 0; }
.ws-timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--r-line); margin-left: 6px; }
.ws-timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--r-green); }
.ws-timeline li.private::before { background: #f0ad4e; }
.ws-timeline .when { font-size: 12.5px; color: var(--r-muted); }
.ws-timeline .note { white-space: pre-wrap; background: #fff; border: 1px solid var(--r-line); border-radius: 6px; padding: 8px 10px; margin-top: 4px; font-size: 14px; }
.ws-review { border: 1px solid var(--r-line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.ws-review pre { white-space: pre-wrap; font-family: inherit; font-size: 14.5px; margin: 6px 0 0; background: #f8fafc; padding: 8px 10px; border-radius: 6px; }
.author-row { background: #fafcfd; border: 1px solid var(--r-line); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.author-row .handle { color: var(--r-muted); font-weight: 600; }
[data-show-for] { display: none; }
[data-show-for].shown { display: revert; }
.row > [data-show-for].shown { display: block; }
.ws-section-title { font-size: 17px; margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #e8f5e9; }
.ws-auth-card { max-width: 470px; margin: 0 auto; background: #fff; border: 1px solid var(--r-line); border-radius: 12px; padding: 30px; box-shadow: 0 6px 24px rgba(44, 73, 100, .08); }
