/**
 * css/journalMetricsBlock.css
 *
 * Journal Metrics — sidebar block styles ONLY. This small file is
 * registered for the frontend by JournalMetricsBlockPlugin exactly when
 * the block will render, so the block looks the same on every page of
 * the site without shipping the full dashboard stylesheet site-wide.
 * These rules live here alone (removed from journalMetrics.css); the
 * public metrics page loads both files, which is harmless — there is
 * no overlapping selector between the two.
 *
 * Accessibility floor: text at least 12px with 4.5:1 contrast, the
 * "all metrics" link at least 24px tall. The block keeps the theme's
 * own sidebar background and heading; label and value colours are set
 * here so they do not depend on the theme's text colour.
 */

.jmx-block { font-size: 13px; }
.jmx-block-list { list-style: none; margin: 0; padding: 0; }
.jmx-block-item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	padding: 5px 0;
	border-bottom: 1px dashed #e2e8f0;
}
.jmx-block-item:last-child { border-bottom: none; }
.jmx-block-label { color: #475569; }
.jmx-block-value { font-weight: 700; white-space: nowrap; color: #1e293b; }
/* own link colour: theme link colours vary (one measured 4.0:1 on white);
   the selector outranks the usual theme rule `.pkp_block .content a` */
.jmx-block .content a.jmx-block-more,
.jmx-block a.jmx-block-more {
	display: inline-block;
	margin-top: 6px;
	padding: 4px 0;
	line-height: 16px;
	font-size: 12.5px;
	color: #0f766e;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.jmx-block .content a.jmx-block-more:hover,
.jmx-block a.jmx-block-more:hover { color: #115e59; }
.jmx-block a.jmx-block-more:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.jmx-block * { transition: none !important; }
}
