/*!
 * Citemetric 1.2.0 — styles
 * Copyright (c) 2026 Zeus Publishing. Distributed under the GNU GPL v3 or later.
 */

/* ---- Tokens ------------------------------------------------------------ */
.ctm {
  --ctm-ink: #0f1b33;
  --ctm-muted: #5b6b82;
  --ctm-line: #e3e8f0;
  --ctm-surface: #ffffff;
  --ctm-soft: #f4f6fb;
  --ctm-accent: #2f6bff;
  --ctm-tab-on: #101f3c;
  --ctm-tab-on-ink: #ffffff;
  --ctm-core: #101f3c;
  --ctm-bolt: #ffc53d;
  --ctm-hero-bg: #101f3c;
  --ctm-hero-ink: #ffffff;
  --ctm-shadow: 0 14px 40px rgba(16, 31, 60, .16);
  box-sizing: border-box;
  color: var(--ctm-ink);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.ctm--dark {
  --ctm-ink: #eef2f9;
  --ctm-muted: #9fb0c8;
  --ctm-line: #2a3a57;
  --ctm-surface: #0f1a2e;
  --ctm-soft: #18263f;
  --ctm-accent: #8fb2ff;
  --ctm-tab-on: #ffc53d;
  --ctm-tab-on-ink: #101f3c;
  --ctm-core: #ffc53d;
  --ctm-bolt: #101f3c;
  --ctm-hero-bg: #ffc53d;
  --ctm-hero-ink: #101f3c;
  --ctm-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}
.ctm *, .ctm *::before, .ctm *::after { box-sizing: inherit; }
.ctm button, .ctm select, .ctm textarea { font: inherit; color: inherit; }
.ctm a { color: var(--ctm-accent); }

/* ---- The mark ----------------------------------------------------------- */
.ctm-mark { display: block; width: 52px; height: 52px; flex: none; overflow: visible; }
.ctm-ring { transform-origin: 36px 36px; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.ctm-ring path { fill: none; stroke-width: 5.6; }
.ctm-ray { stroke-width: 3; stroke-linecap: round; transform-origin: 36px 36px; }
.ctm-mark-core { fill: var(--ctm-core); transition: fill .25s ease; }
.ctm-mark-glyph { fill: var(--ctm-bolt); transition: fill .25s ease; }
.ctm-mark-num { fill: var(--ctm-bolt); font-weight: 800; font-family: inherit; transition: fill .25s ease; }

@keyframes ctm-pulse { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes ctm-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ctm-loading .ctm-ray { animation: ctm-breathe 1.3s ease-in-out infinite; }

/* ---- Badge -------------------------------------------------------------- */
.ctm-badge-slot { display: inline-block; max-width: 100%; }
.ctm-badge-wrap { position: relative; display: inline-block; }
.ctm-badge { position: relative; display: inline-block; text-decoration: none !important; color: var(--ctm-ink) !important; outline: none; }
.ctm-badge-face { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 7px; border: 1px solid var(--ctm-line); border-radius: 999px; background: var(--ctm-surface); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ctm-badge-text { display: flex; flex-direction: column; line-height: 1; }
.ctm-badge-num { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ctm-badge-cap { margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ctm-muted); }

.ctm-badge--medallion .ctm-badge-face { padding: 0; border: 0; border-radius: 50%; background: none; }
.ctm-badge--medallion .ctm-mark { width: 132px; height: 132px; }
.ctm-badge--medallion .ctm-badge-face { flex-direction: column; gap: 6px; }
.ctm-badge-brand { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; line-height: 1; color: var(--ctm-core); }
.ctm--dark .ctm-badge-brand { color: var(--ctm-ink); }

.ctm-badge:hover .ctm-badge-face, .ctm-badge:focus-visible .ctm-badge-face, .ctm-badge-wrap.ctm-open .ctm-badge .ctm-badge-face { border-color: #ffc53d; box-shadow: 0 8px 24px rgba(16, 31, 60, .14); transform: translateY(-1px); }
.ctm-badge:hover .ctm-ring, .ctm-badge:focus-visible .ctm-ring, .ctm-badge-wrap.ctm-open .ctm-badge .ctm-ring { transform: rotate(360deg); }
.ctm-badge:hover .ctm-ray, .ctm-badge:focus-visible .ctm-ray, .ctm-badge-wrap.ctm-open .ctm-badge .ctm-ray { animation: ctm-pulse .75s ease both; }
.ctm-badge:hover .ctm-mark-core, .ctm-badge:focus-visible .ctm-mark-core, .ctm-badge-wrap.ctm-open .ctm-badge .ctm-mark-core { fill: #ffc53d; }
.ctm-badge:hover .ctm-mark-glyph, .ctm-badge:focus-visible .ctm-mark-glyph, .ctm-badge-wrap.ctm-open .ctm-badge .ctm-mark-glyph,
.ctm-badge:hover .ctm-mark-num, .ctm-badge:focus-visible .ctm-mark-num, .ctm-badge-wrap.ctm-open .ctm-badge .ctm-mark-num { fill: #101f3c; }

/* Medallion: the logo stands alone; on hover the ring turns and the rays burst outward */
.ctm-badge--medallion:hover .ctm-badge-face, .ctm-badge--medallion:focus-visible .ctm-badge-face, .ctm-badge-wrap.ctm-open .ctm-badge--medallion .ctm-badge-face { box-shadow: none; transform: none; }
.ctm-badge--medallion:hover .ctm-mark-core, .ctm-badge--medallion:focus-visible .ctm-mark-core, .ctm-badge-wrap.ctm-open .ctm-badge--medallion .ctm-mark-core { fill: var(--ctm-core); }
.ctm-badge--medallion:hover .ctm-mark-num, .ctm-badge--medallion:focus-visible .ctm-mark-num, .ctm-badge-wrap.ctm-open .ctm-badge--medallion .ctm-mark-num { fill: var(--ctm-bolt); }

/* Hover card */
.ctm-card { position: absolute; z-index: 1000; top: calc(100% + 10px); left: 0; display: block; width: 280px; padding: 14px 16px 12px; border: 1px solid var(--ctm-line); border-radius: 14px; background: var(--ctm-surface); box-shadow: var(--ctm-shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; font-size: 13px; color: var(--ctm-ink); text-align: left; }
/* invisible bridge over the 10px gap so the pointer can travel from badge to card */
.ctm-card::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.ctm-card-right .ctm-card { left: auto; right: 0; }
.ctm-badge-wrap:hover .ctm-card, .ctm-badge-wrap:focus-within .ctm-card, .ctm-badge-wrap.ctm-open .ctm-card { opacity: 1; visibility: visible; transform: translateY(0); }
.ctm-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ctm-line); }
.ctm-card-brand { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ctm-muted); }
.ctm-card-total { font-weight: 700; }
.ctm-card-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.ctm-card-label { color: var(--ctm-muted); }
.ctm-card-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.ctm-card .ctm-chip { margin-top: 8px; }
.ctm-card-spark { display: block; margin-top: 10px; }
.ctm-card-spark .ctm-card-label { display: block; font-size: 11.5px; }
.ctm-spark { display: block; width: 100%; height: 40px; margin-top: 6px; }
.ctm-card-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ctm-line); }
.ctm-card-link { display: block; font-weight: 700; color: var(--ctm-accent) !important; text-decoration: none !important; }
.ctm-card-link:hover, .ctm-card-link:focus-visible { text-decoration: underline !important; }

/* Small badge for tables of contents */
.ctm-mini-slot:empty { display: none; }
.ctm-mini { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; padding: 2px 10px 2px 3px; border: 1px solid var(--ctm-line); border-radius: 999px; background: var(--ctm-surface); font-size: 12px; font-weight: 700; line-height: 1.2; }
.ctm-mini .ctm-mark { width: 20px; height: 20px; }

/* ---- Panel -------------------------------------------------------------- */
.ctm-panel { margin: 28px 0; padding: 22px; border: 1px solid var(--ctm-line); border-radius: 16px; background: var(--ctm-surface); }
.ctm-panel:empty { display: none; }
.ctm-head { display: flex; align-items: center; gap: 14px; }
.ctm-head-mark .ctm-mark { width: 62px; height: 62px; }
.ctm-head-text { flex: 1; min-width: 0; }
.ctm .ctm-title { margin: 0; padding: 0; border: 0; font-size: 19px; font-weight: 800; line-height: 1.2; color: var(--ctm-ink); text-transform: none; letter-spacing: 0; }
.ctm .ctm-tagline { margin: 2px 0 0; font-size: 13px; color: var(--ctm-muted); }
.ctm-head-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.ctm-head-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ctm-head-cap { margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ctm-muted); }

.ctm-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 18px; padding: 5px; border: 1px solid var(--ctm-line); border-radius: 14px; background: var(--ctm-soft); }
.ctm .ctm-tab { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 9px 16px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--ctm-muted); cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.ctm .ctm-tab:hover { color: var(--ctm-ink); background: var(--ctm-surface); }
.ctm .ctm-tab[aria-selected="true"] { color: var(--ctm-tab-on-ink); background: var(--ctm-tab-on); box-shadow: 0 4px 12px rgba(16, 31, 60, .18); }
.ctm .ctm-tab:focus-visible { outline: 2px solid var(--ctm-accent); outline-offset: 2px; }
.ctm-tab-count { padding: 1px 7px; border-radius: 999px; background: var(--ctm-surface); color: var(--ctm-ink); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ctm .ctm-tab[aria-selected="true"] .ctm-tab-count { background: rgba(255, 255, 255, .22); color: inherit; }
.ctm-tab-count:empty { display: none; }
.ctm-pane[hidden] { display: none; }

.ctm .ctm-note { margin: 6px 0; color: var(--ctm-muted); }
.ctm .ctm-fine { margin: 14px 0 0; font-size: 12px; color: var(--ctm-muted); }
.ctm .ctm-h { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; padding: 0; border: 0; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ctm-muted); }
.ctm-count { padding: 1px 8px; border-radius: 999px; background: var(--ctm-soft); color: var(--ctm-ink); letter-spacing: 0; }

/* Stat tiles */
.ctm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 12px; }
.ctm-stat { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 14px; background: var(--ctm-soft); }
.ctm-stat-value { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ctm-stat-label { margin-top: 6px; font-size: 13px; font-weight: 700; }
.ctm-stat-sub { margin-top: 2px; font-size: 12px; color: var(--ctm-muted); }
.ctm-stat .ctm-chip { margin-top: 8px; align-self: flex-start; }
.ctm-stat:first-child { background: var(--ctm-hero-bg); color: var(--ctm-hero-ink); }
.ctm-stat:first-child .ctm-stat-sub { color: inherit; opacity: .72; }

.ctm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 32px; }
.ctm-col { min-width: 0; }

/* Bar lists */
.ctm .ctm-bars { list-style: none; margin: 0; padding: 0; }
.ctm .ctm-bar-row { display: grid; grid-template-columns: minmax(96px, 40%) 1fr auto; align-items: center; gap: 10px; margin: 0; padding: 5px 0; font-size: 13px; list-style: none; }
.ctm .ctm-bar-row::before { content: none; }
.ctm-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctm a.ctm-bar-name { color: var(--ctm-ink); text-decoration: none; border-bottom: 1px dotted var(--ctm-muted); justify-self: start; max-width: 100%; }
.ctm a.ctm-bar-name:hover { color: var(--ctm-accent); border-bottom-color: var(--ctm-accent); }
.ctm-grid .ctm-bar-row { grid-template-columns: minmax(120px, 58%) 1fr auto; }
.ctm-bar-track { display: block; height: 8px; border-radius: 999px; background: var(--ctm-soft); overflow: hidden; }
.ctm-bar-fill { display: block; height: 100%; border-radius: 999px; }
.ctm-bar-count { min-width: 2.2em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Citations per year */
.ctm-rd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 4px; }
.ctm-rd-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ctm-rd-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--ctm-line); border-top: 3px solid var(--ctm-core); border-radius: 10px; background: var(--ctm-soft); }
.ctm-rd-num { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ctm-core); font-variant-numeric: tabular-nums; }
.ctm--dark .ctm-rd-num { color: var(--ctm-ink); }
.ctm-rd-label { font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--ctm-muted); }
.ctm-rd-card { padding: 14px 12px 8px; border: 1px solid var(--ctm-line); border-radius: 10px; background: var(--ctm-surface); }
.ctm-rd-sub { display: block; margin: 0 0 8px 4px; font-size: 12px; color: var(--ctm-muted); }
.ctm-rd-chart { position: relative; }
.ctm-rd-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ctm-rd-grid-line { stroke: var(--ctm-line); stroke-width: 1; }
.ctm-rd-base { stroke: #9aa7b8; stroke-width: 1; }
.ctm-rd-axis { font-size: 11px; fill: var(--ctm-muted); font-family: inherit; }
.ctm-rd-bar { cursor: default; outline: none; }
.ctm-rd-bar .ctm-rd-fill { transition: opacity .15s ease; }
.ctm-rd-chart:hover .ctm-rd-bar .ctm-rd-fill { opacity: .55; }
.ctm-rd-chart .ctm-rd-bar.ctm-rd-on .ctm-rd-fill { opacity: 1; }
.ctm-rd-tip { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 8px)); padding: 6px 10px; border-radius: 8px; background: #101f3c; color: #fff; font-size: 12px; line-height: 1.3; text-align: center; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(16, 31, 60, .25); }
.ctm-rd-tip strong { display: block; font-size: 15px; }
.ctm-rd-tip[hidden] { display: none; }
/* The panel's Readership tab replaces the theme's own Article Metrics boxes (hsmModern) */
.hsm_metrics:has(.ctm-has-readership) > h2.label, .hsm_metrics:has(.ctm-has-readership) > .hsm_mx_tiles, .hsm_metrics:has(.ctm-has-readership) > .hsm_mx_grid, .hsm_metrics:has(.ctm-has-readership) > .downloads_chart { display: none !important; }
.ctm-years { display: flex; align-items: flex-end; gap: 6px; min-height: 120px; }
.ctm-year { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.ctm-year-n { font-size: 11px; font-weight: 700; color: var(--ctm-muted); font-variant-numeric: tabular-nums; }
.ctm-year-bar { display: block; width: 100%; max-width: 30px; margin-top: 3px; border-radius: 6px 6px 2px 2px; }
.ctm-year-y { margin-top: 5px; padding-top: 4px; width: 100%; border-top: 1px solid var(--ctm-line); font-size: 10.5px; text-align: center; color: var(--ctm-muted); }

/* Chips and links */
.ctm-chips, .ctm-links, .ctm-item-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ctm-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--ctm-soft); color: var(--ctm-ink); font-size: 12px; font-weight: 700; line-height: 1.4; }
.ctm-chip--gold { background: #fff1c9; color: #6b4700; }
.ctm-chip--green { background: #dff5e8; color: #0c5c33; }
.ctm-chip--blue { background: #e4ecff; color: #1b46b8; }
.ctm--dark .ctm-chip--gold { background: #4a3a0c; color: #ffdf8a; }
.ctm--dark .ctm-chip--green { background: #12392a; color: #8fe3b6; }
.ctm--dark .ctm-chip--blue { background: #1c2f5e; color: #b9ccff; }
.ctm .ctm-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--ctm-line); border-radius: 999px; background: var(--ctm-surface); color: var(--ctm-ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.ctm .ctm-link::after { content: "\2197"; font-size: 11px; color: var(--ctm-muted); }
.ctm .ctm-link:hover { border-color: var(--ctm-accent); color: var(--ctm-accent); }

/* Citing works */
.ctm-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ctm .ctm-select { height: 36px; padding: 0 10px; border: 1px solid var(--ctm-line); border-radius: 9px; background: var(--ctm-surface); font-size: 13px; }
.ctm .ctm-btn { display: inline-flex; align-items: center; height: 36px; margin: 0; padding: 0 14px; border: 1px solid var(--ctm-accent); border-radius: 9px; background: var(--ctm-surface); box-shadow: none; color: var(--ctm-accent); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ctm .ctm-btn:hover { background: var(--ctm-accent); color: var(--ctm-surface); }
.ctm .ctm-btn:disabled { opacity: .5; cursor: wait; }
.ctm .ctm-btn--ghost { border-color: var(--ctm-line); color: var(--ctm-ink); }
.ctm .ctm-btn--ghost:hover { background: var(--ctm-soft); color: var(--ctm-ink); }
.ctm .ctm-list { margin: 0 0 14px; padding: 0 0 0 22px; }
.ctm .ctm-item { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--ctm-line); }
.ctm .ctm-item-title { font-weight: 700; color: var(--ctm-ink); text-decoration: none; }
.ctm .ctm-item-title:hover { color: var(--ctm-accent); text-decoration: underline; }
.ctm-item-meta { margin-top: 2px; font-size: 13px; color: var(--ctm-muted); }
.ctm-item-tags { margin-top: 6px; }

/* Insights and attention */
.ctm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 32px; }
.ctm-block { min-width: 0; }
.ctm-block--wide { grid-column: 1 / -1; }
.ctm-block .ctm-h:first-child { margin-top: 8px; }
.ctm .ctm-block-sub { margin: -4px 0 8px; font-size: 12.5px; color: var(--ctm-muted); }
.ctm-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; }
.ctm-meter { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 14px; background: var(--ctm-soft); }
.ctm-meter-value { font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ctm-meter-label { margin-top: 4px; font-size: 13px; font-weight: 700; }
.ctm-meter-sub { margin: 2px 0 10px; font-size: 12px; color: var(--ctm-muted); }
.ctm-meter .ctm-bar-track { background: var(--ctm-surface); }
.ctm .ctm-mentions { list-style: none; margin: 0; padding: 0; }
.ctm .ctm-mention { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--ctm-line); list-style: none; }
.ctm .ctm-mention::before { content: none; }

/* Footer */
.ctm-foot { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--ctm-line); }
.ctm-details { margin-top: 8px; font-size: 13px; }
.ctm-details > summary { cursor: pointer; font-weight: 700; color: var(--ctm-ink); }
.ctm-about { margin-top: 8px; color: var(--ctm-muted); }
.ctm .ctm-about p { margin: 0 0 8px; font-size: 13px; }
.ctm .ctm-about strong { color: var(--ctm-ink); }
.ctm .ctm-code { display: block; width: 100%; margin: 0 0 8px; padding: 10px; border: 1px solid var(--ctm-line); border-radius: 9px; background: var(--ctm-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; resize: vertical; }
.ctm .ctm-brand { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--ctm-muted); }
.ctm-brand .ctm-mark { width: 20px; height: 20px; }
.ctm-partner { font-weight: 400; letter-spacing: 0; }
.ctm-partner::before { content: "\00B7\00A0"; }

/* Sidebar wrapper used by the OJS hook */
.ctm-host--badge { overflow: visible; }
.ctm-host--moved { margin: 0; padding: 0; border: 0; }
.ctm-host--moved .ctm-panel { margin-top: 18px; }

@media (max-width: 520px) {
  .ctm-panel { padding: 16px; }
  .ctm-head-num { font-size: 24px; }
  .ctm-card { width: 250px; }
  .ctm .ctm-tab { padding: 8px 11px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ctm-ring, .ctm-badge-face, .ctm-card { transition: none; }
  .ctm-badge:hover .ctm-ring, .ctm-badge:focus-visible .ctm-ring, .ctm-badge-wrap.ctm-open .ctm-badge .ctm-ring { transform: none; }
  .ctm-ray { animation: none !important; }
}
@media print {
  .ctm-card, .ctm-tabs, .ctm-foot .ctm-details { display: none !important; }
}

/* ---- Demographics (1.1.0) --------------------------------------------- */
.ctm-geo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.ctm-geo-head .ctm-h { margin: 0; }
.ctm-geo-meta { font-size: 12.5px; color: var(--ctm-muted); }
.ctm-muted { color: var(--ctm-muted); font-size: 13px; }
.ctm-map-box { position: relative; border: 1px solid var(--ctm-line); border-radius: 12px; background: var(--ctm-soft); overflow: hidden; }
.ctm-map-box .ctm-muted { margin: 0; padding: 60px 0; text-align: center; }
.ctm-map { display: block; width: 100%; height: auto; }
.ctm-map-c { fill: #d9dfe8; stroke: var(--ctm-soft); stroke-width: .6; }
.ctm--dark .ctm-map-c { fill: #2a3a57; }
.ctm-map-c--on { fill: #1d3b72; }
.ctm--dark .ctm-map-c--on { fill: #8fb2ff; }
.ctm-map-halo { fill: rgba(29, 59, 114, .14); }
.ctm-map-bub { fill: #1d3b72; stroke: #fff; stroke-width: 1.2; transition: fill .15s ease; }
.ctm--dark .ctm-map-bub { fill: #4f86f7; stroke: #0f1a2e; }
.ctm-map-dot { cursor: default; outline: none; }
.ctm-map-dot:hover .ctm-map-bub, .ctm-map-dot:focus .ctm-map-bub { fill: #2f6bff; }
.ctm-map-num { fill: #fff; font-weight: 700; font-family: inherit; pointer-events: none; }
.ctm-geo-top { margin-top: 18px; max-width: 460px; }
.ctm-geo-top .ctm-h { margin: 0 0 8px; }
.ctm-top { list-style: none; margin: 0 0 8px; padding: 0; }
.ctm-top-row { margin: 0 0 10px; padding: 0; }
.ctm-top-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 4px; }
.ctm-top-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.ctm-top-track { height: 10px; border-radius: 3px; background: var(--ctm-soft); overflow: hidden; }
.ctm-top-bar { height: 100%; border-radius: 3px; background: #1d3b72; }
.ctm--dark .ctm-top-bar { background: #8fb2ff; }

/* ---- Share cards (1.2.0) ------------------------------------------------ */
.ctm .ctm-btn--primary { background: var(--ctm-accent); color: #fff; }
.ctm .ctm-btn--primary:hover { background: #1f55d6; color: #fff; }
.ctm-head-total .ctm-share-btn { margin-top: 8px; height: 30px; padding: 0 10px; gap: 6px; font-size: 12px; }
.ctm-share { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 18, 34, .55); }
.ctm-share-box { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px; border-radius: 16px; background: var(--ctm-surface); box-shadow: var(--ctm-shadow); }
.ctm-share-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ctm-share-top .ctm-h { margin: 0; }
.ctm-share-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ctm-share-sizes .ctm-btn[aria-pressed="true"] { border-color: var(--ctm-accent); background: var(--ctm-soft); color: var(--ctm-accent); }
.ctm-share-opt { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ctm-ink); cursor: pointer; }
.ctm-share-preview { display: flex; justify-content: center; align-items: center; min-height: 220px; padding: 12px; border-radius: 12px; background: var(--ctm-soft); color: var(--ctm-muted); font-size: 13px; }
.ctm-share-preview img { display: block; max-width: 100%; max-height: 52vh; border-radius: 8px; box-shadow: 0 4px 18px rgba(16, 31, 60, .15); }
.ctm-share-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ctm-share-social { margin: 12px 0 4px; font-size: 13px; color: var(--ctm-muted); }

/* ---- Authors line on the article page (1.2.0) --------------------------- */
.ctm-author-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 2px; font-size: 13px; color: var(--ctm-muted); }
.ctm-author-line .ctm-mark { width: 18px; height: 18px; }
.ctm-author-line .ctm-author-link { font-weight: 700; text-decoration: none; }
.ctm-author-line .ctm-author-link:hover { text-decoration: underline; }

/* ---- Author page and dashboard (1.2.0) ---------------------------------- */
.ctm-page { margin: 8px 0 32px; }
.ctm-page .ctm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 18px 0; }
.ctm-ap-head, .ctm-db-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--ctm-line); border-radius: 16px; background: var(--ctm-surface); }
.ctm-ap-avatar { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ctm-core); color: var(--ctm-bolt); font-size: 22px; font-weight: 800; flex: none; }
.ctm-ap-who { flex: 1; min-width: 220px; }
.ctm-db-head > div:first-child, .ctm-db-head .ctm-ap-name { flex: none; }
.ctm-db-head .ctm-ap-aff { flex: 1; min-width: 200px; }
.ctm .ctm-ap-name { margin: 0 0 2px; font-size: 22px; line-height: 1.25; }
.ctm .ctm-ap-aff, .ctm .ctm-ap-orcid, .ctm .ctm-ap-journal { margin: 2px 0 0; font-size: 13.5px; color: var(--ctm-muted); }
.ctm .ctm-ap-journal { font-weight: 700; color: var(--ctm-ink); }
.ctm-ap-share .ctm-share-btn { height: 36px; gap: 6px; }
.ctm-ap-chart { margin: 4px 0 18px; }
.ctm-ap-listhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ctm-ap-listhead .ctm-h { margin: 0; }
.ctm-ap-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.ctm-ap-sort .ctm-btn { height: 30px; padding: 0 10px; font-size: 12px; }
.ctm-ap-sort .ctm-btn[aria-pressed="true"] { border-color: var(--ctm-accent); color: var(--ctm-accent); }
.ctm-ap-list { list-style: none; margin: 10px 0 18px; padding: 0; }
.ctm-ap-item { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--ctm-line); }
.ctm-ap-badge .ctm-mark { width: 38px; height: 38px; }
.ctm-ap-body { min-width: 0; flex: 1; }
.ctm .ctm-ap-title { font-weight: 700; text-decoration: none; line-height: 1.35; }
.ctm .ctm-ap-title:hover { text-decoration: underline; }
.ctm .ctm-ap-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--ctm-muted); }
.ctm-ap-meta .ctm-chip { margin-left: 8px; }
.ctm-db-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; }
.ctm-db-box { min-width: 0; padding: 14px 16px; border: 1px solid var(--ctm-line); border-radius: 14px; background: var(--ctm-surface); }
.ctm-page > .ctm-db-box { margin: 14px 0; }
.ctm-db-box:empty { display: none; }
.ctm-db-tablewrap { overflow-x: auto; }
.ctm-db-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctm-db-table th, .ctm-db-table td { padding: 7px 8px; border-bottom: 1px solid var(--ctm-line); text-align: left; vertical-align: top; }
.ctm-db-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ctm-muted); }
.ctm-db-table .ctm-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctm-db-monthly { display: block; width: 100%; height: auto; }
.ctm-db-legend { display: flex; gap: 16px; margin: 6px 0 0; font-size: 12.5px; color: var(--ctm-muted); }
.ctm-db-key::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.ctm-db-key--views::before { background: #1d3b72; }
.ctm-db-key--dl::before { background: #1f9d8b; }
.ctm .ctm-db-warn { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: #fff4dc; color: #7a4a00; font-size: 13.5px; }
.ctm-more-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.ctm-more-links a { text-decoration: none; }

/* moved into a theme tab that already pads its content: don't pad it a second time */
.item .ctm-host--moved { padding-left: 0 !important; padding-right: 0 !important; }
