/* Citation Tracker: article box, homepage widget and the /citations page.
 * Follows the jocwModern look; falls back to plain colours with other themes. */
.ct_box, .ct_home, .ct_page {
	--ct-ink: var(--jm-navy, #14213D);
	--ct-muted: var(--jm-muted, #4F5868);
	--ct-line: var(--jm-border, #E1E5EC);
	--ct-accent: var(--jm-accent, #0F766E);
	--ct-serif: var(--jm-serif, Georgia, "Times New Roman", serif);
	color: var(--ct-ink);
}
.ct_box *, .ct_home *, .ct_page * { box-sizing: border-box; }
.ct_box [hidden], .ct_home [hidden], .ct_page [hidden] { display: none !important; }

/* ---- Article box ---- */
.obj_article_details .item.ct_box,
.ct_box { border-top: 1px solid var(--ct-line); padding-top: 24px; margin-top: 0; }
.ct_counts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 8px; }
.ct_box .ct_count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; }
.ct_box p.ct_note, .ct_box p.ct_more, .ct_box p.ct_foot { line-height: 1.5; }
.ct_n { font-family: var(--ct-serif); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ct_src { font-size: 14px; color: var(--ct-muted); }
.ct_tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--ct-line); border-radius: 999px; font-size: 12px; color: var(--ct-muted); background: #fff; }
.ct_box .ct_note { margin: 4px 0 8px; font-size: 13px; color: var(--ct-muted); }
.ct_details { margin: 8px 0 0; }
.ct_details > summary { cursor: pointer; font-weight: 600; color: var(--ct-accent); padding: 6px 0; min-height: 32px; list-style-position: outside; }
.ct_details > summary:focus-visible { outline: 2px solid var(--ct-accent); outline-offset: 2px; }
.ct_box .ct_list { margin: 8px 0 0; padding: 0 0 0 2.2em; }
.ct_list li { margin: 0 0 12px; padding-left: 4px; overflow-wrap: anywhere; }
.ct_wtitle { display: block; font-weight: 600; line-height: 1.4; }
.ct_wmeta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--ct-muted); margin-top: 2px; }
.ct_venue { font-style: italic; }
.ct_doi { word-break: break-all; }
.ct_box .ct_more { margin: 4px 0 0; font-size: 14px; }
.ct_box .ct_foot { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; font-size: 13px; color: var(--ct-muted); }

/* ---- Ranked lists (widget and page) ---- */
.ct_rank { list-style: none; margin: 0; padding: 0; counter-reset: ctrank; background: #fff; border: 1px solid var(--ct-line); border-radius: 8px; }
.ct_rank li { counter-increment: ctrank; position: relative; padding: 14px 16px 14px 52px; border-bottom: 1px solid var(--ct-line); }
.ct_rank li:last-child { border-bottom: 0; }
.ct_rank li::before { content: counter(ctrank); position: absolute; left: 18px; top: 12px; font-family: var(--ct-serif); font-size: 22px; font-weight: 600; color: var(--ct-accent); }
.ct_rank_title { display: block; font-family: var(--ct-serif); font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ct-ink); overflow-wrap: anywhere; }
.ct_rank_n { display: block; margin-top: 4px; font-size: 13px; color: var(--ct-muted); }

/* ---- Homepage widget ---- */
.ct_home { max-width: 1120px; margin-left: auto; margin-right: auto; }
.ct_home_head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.ct_home .ct_home_head h2 { margin: 0; }
.ct_home_all { font-weight: 600; color: var(--ct-accent); }

/* ---- /citations ---- */
.ct_page { max-width: 1120px; margin: 0 auto; }
.ct_lede { margin: 0 0 20px; color: var(--ct-muted); max-width: 70ch; }
.ct_tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 20px; }
.ct_tile { background: #fff; border: 1px solid var(--ct-line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; }
.ct_tile_n { font-family: var(--ct-serif); font-size: 30px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ct_tile_date { font-size: 22px; }
.ct_tile_k { font-size: 13px; color: var(--ct-muted); }
.ct_card { background: #fff; border: 1px solid var(--ct-line); border-radius: 10px; padding: 20px; margin: 0 0 20px; min-width: 0; }
.ct_page .ct_card h2 { margin: 0 0 16px; font-size: 20px; }
.ct_page .ct_two .ct_card { padding: 0; border: 0; background: none; }
.ct_two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ct_empty { color: var(--ct-muted); }
.ct_source { font-size: 13px; color: var(--ct-muted); }

.ct_chart { display: flex; align-items: flex-end; gap: 8px; height: 210px; padding-top: 22px; }
.ct_col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; }
.ct_col_bar { flex: 1 1 auto; width: 100%; display: flex; justify-content: center; align-items: flex-end; border-bottom: 1px solid var(--ct-line); }
.ct_col_fill { position: relative; display: block; width: 100%; max-width: 56px; background: var(--ct-accent); border-radius: 4px 4px 0 0; }
.ct_col_n { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 3px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct_col_y { font-size: 12px; color: var(--ct-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.ct_sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (max-width: 800px) {
	.ct_two { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.ct_chart { gap: 4px; height: 170px; }
	.ct_col_n, .ct_col_y { font-size: 10.5px; }
	.ct_rank li { padding-left: 44px; }
	.ct_rank li::before { left: 14px; }
	.ct_n { font-size: 26px; }
}
.ct_page .ct_note { font-size: 13px; color: var(--ct-muted); margin: 12px 0 0; }
.ct_tiles_small { grid-template-columns: repeat(auto-fit, minmax(140px, 220px)); margin: 0 0 8px; }
.ct_button { display: inline-block; padding: 10px 18px; border: 0; border-radius: 8px; background: #0f766e; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ct_button:hover, .ct_button:focus-visible { background: #0b5d57; }
.ct_unsub { max-width: 640px; }
.ct_page .ct_note_top { margin: 0 0 4px; }
