/**
 * plugins/generic/jmrcSubmission/css/inPress.css
 *
 * Distributed under the GNU GPL v3.
 *
 * Articles in Press (templates/inPress.tpl). The entries themselves are
 * styled by the theme as an issue table of contents; this adds the badges,
 * the abstract toggle and the empty state, in the theme's colours.
 */

.jmrcsInPress__intro {
	max-width: 62rem;
	color: var(--jm-muted, #5b6472);
	line-height: 1.65;
}

.jmrcsInPress__count {
	margin: 1.5rem 0 0.75rem;
	font-weight: 600;
	color: var(--jm-ink, #1a2740);
}

.jmrcsInPress__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px;
}

.jmrcsInPress__badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--jm-primary-wash, #eef1f5);
	color: var(--jm-primary-strong, #15324f);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.jmrcsInPress__badge--press {
	background: var(--jm-primary, #15324f);
	color: var(--jm-on-primary, #fff);
}

.jmrcsInPress__status {
	padding-top: 4px;
}

.jmrcsInPress__status a {
	color: var(--jm-primary-strong, #15324f);
	word-break: break-word;
}

.jmrcsInPress__abstract {
	margin-top: 10px;
}

.jmrcsInPress__abstract summary {
	width: fit-content;
	cursor: pointer;
	font-weight: 600;
	color: var(--jm-primary-strong, #15324f);
}

.jmrcsInPress__abstract summary:hover {
	text-decoration: underline;
}

.jmrcsInPress__abstract[open] summary {
	margin-bottom: 8px;
}

.jmrcsInPress__abstract div {
	line-height: 1.65;
}

.jmrcsInPress__empty {
	max-width: 62rem;
	margin: 1.5rem 0;
	padding: 2rem 1.5rem;
	border: 1px dashed var(--jm-border-strong, #c3c7ce);
	border-radius: 12px;
	background: var(--jm-primary-wash, #f5f7fa);
	text-align: center;
	color: var(--jm-muted, #5b6472);
}

.jmrcsInPress__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 1rem 0 0;
}

.jmrcsInPress__button {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid var(--jm-primary, #15324f);
	border-radius: 8px;
	color: var(--jm-primary-strong, #15324f);
	font-weight: 600;
	text-decoration: none;
}

.jmrcsInPress__button--primary {
	background: var(--jm-primary, #15324f);
	color: var(--jm-on-primary, #fff);
}

.jmrcsInPress__button:hover,
.jmrcsInPress__button:focus {
	text-decoration: underline;
}
