/*
 * Archive pagination links — see inc/archive-pagination.php.
 *
 * Selectors are written at (0,2,1)+ because the legacy theme.min.css
 * underlines every anchor (`a`, `a:not(.btn)` at 0,1,1, `a:hover`).
 * px throughout: the theme sets html { font-size: 62.5% }.
 */

/* "More Articles" was a <button>; as a link it must not pick up the underline. */
.category--articles a.wayfx_loadmore_archives,
.category--articles a.wayfx_loadmore_archives:hover,
.category--articles a.wayfx_loadmore_archives:focus {
	text-decoration: none;
}

.archive-pager {
	display: flex;
	justify-content: center;
	margin: 24px 0 0;
}

/* Infinite-scroll fallback: centred under the last card. */
#infinite-scroll-trigger {
	display: flex;
	justify-content: center;
	padding-top: 24px;
}

#infinite-scroll-trigger a.archive-pager__next,
.archive-pager a.archive-pager__prev {
	display: inline-block;
	padding: 10px 24px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: #141414;
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
}

#infinite-scroll-trigger a.archive-pager__next:hover,
.archive-pager a.archive-pager__prev:hover {
	color: #141414;
	background: #f4f6f9;
	text-decoration: none;
}

#infinite-scroll-trigger a.archive-pager__next:focus-visible,
.archive-pager a.archive-pager__prev:focus-visible {
	outline: 2px solid #0e2c47;
	outline-offset: 2px;
}
