/* Coalfield Equipment Library — frontend refinements */

.cr-grid.cr-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cr-pagination {
	margin-top: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cr-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--cr-border-muted, #1E293B);
	border-radius: 4px;
	background: var(--cr-coal-black, #111827);
	color: var(--cr-text, #d9e3f7);
	font-family: inherit;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.cr-pagination a.page-numbers:hover,
.cr-pagination a.page-numbers:focus {
	border-color: var(--cr-safety-amber, #D97706);
	color: var(--cr-safety-amber, #D97706);
	transform: translateY(-1px);
}

.cr-pagination .page-numbers.current {
	border-color: var(--cr-safety-amber, #D97706);
	background: var(--cr-safety-amber, #D97706);
	color: var(--cr-coal-black, #111827);
}

.cr-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	min-width: auto;
	padding: 0 4px;
}

.cr-checklist a,
.cr-prose .cr-checklist a {
	color: var(--cr-safety-amber, #D97706);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(217, 119, 6, .45);
}

.cr-checklist a:hover,
.cr-prose .cr-checklist a:hover {
	border-bottom-color: currentColor;
}

@media (max-width: 980px) {
	.cr-grid.cr-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cr-grid.cr-grid--3 {
		grid-template-columns: 1fr;
	}
	.cr-pagination .page-numbers {
		min-width: 38px;
		height: 38px;
		padding: 0 12px;
	}
}
