.cm-page-link-nav {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 12px;
	margin: 0 0 28px;
	padding: 16px 14px;
	border: 1px solid #f0d5d5;
	border-radius: 12px;
	background: #fffafa;
}

.cm-page-link-nav__link {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 16px;
	border: 1px solid #d02d2d;
	border-radius: 999px;
	background: #fff;
	color: #b52626;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(80, 0, 0, 0.06);
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.cm-page-link-nav__link:hover,
.cm-page-link-nav__link:focus {
	background: #d02d2d;
	border-color: #d02d2d;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(208, 45, 45, 0.18);
	transform: translateY(-1px);
}

.cm-page-link-nav__link:focus-visible {
	outline: 3px solid rgba(208, 45, 45, 0.28);
	outline-offset: 2px;
}

.cm-page-link-nav__empty {
	width: 100%;
	margin: 0;
	color: #777;
	text-align: center;
}

@media (max-width: 640px) {
	.cm-page-link-nav {
		justify-content: stretch;
		gap: 8px;
		padding: 12px 10px;
		margin-bottom: 24px;
		border-radius: 10px;
	}

	.cm-page-link-nav__link {
		flex: 1 1 calc(50% - 4px);
		min-width: 0;
		min-height: 40px;
		padding: 8px 10px;
		font-size: 14px;
		word-break: keep-all;
		overflow-wrap: anywhere;
	}

	.cm-page-link-nav__link:nth-last-child(-n+2) {
		flex-basis: 100%;
	}
}

@media (max-width: 360px) {
	.cm-page-link-nav__link {
		flex-basis: 100%;
	}
}
