/*
Theme Name: Migration
Description: Migration theme — includes news archive pagination styles below.
Version: 1.0.1
*/

/*
 * Пагинация записей (nav.navigation.pagination + the_posts_pagination)
 * В контексте секции новостей
 */
.news-sec-page .navigation.pagination {
	width: 100%;
	box-sizing: border-box;
	margin-top: 48px;
	padding-top: 8px;
	clear: both;
}

.news-sec-page .navigation.pagination .nav-links {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.news-sec-page .navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: 12px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.01em;
	color: #374151;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.news-sec-page .navigation.pagination a.page-numbers:hover,
.news-sec-page .navigation.pagination a.page-numbers:focus-visible {
	outline: none;
	border-color: rgba(12, 84, 160, 0.25);
	background: rgba(12, 84, 160, 0.04);
	color: #1b3a6b;
}

.news-sec-page .navigation.pagination .page-numbers.current {
	background: #1b3a6b;
	border-color: #1b3a6b;
	color: #ffffff;
	cursor: default;
}

.news-sec-page .navigation.pagination a.page-numbers.prev,
.news-sec-page .navigation.pagination a.page-numbers.next {
	min-width: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* Заголовок «Пагинация записей» скрыт визуально, доступен скринридерам */
.news-sec-page .navigation.pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
