/**
 * Query pagination — site-wide.
 *
 * Core's wp:query-pagination-numbers renders bare digits with no padding, so
 * the page-number links measured 8x16px and 10x16px on a phone: roughly a
 * quarter of the 44x44 WCAG 2.1 AA target size in each dimension, sitting
 * adjacent to each other so a mis-tap lands on the wrong page. The neighbouring
 * previous/next links were always comfortable because they carry more text.
 *
 * Every archive using wp:query-pagination inherits this — no per-template rule.
 */

.wp-block-query-pagination {
	gap: 0.25rem;
	align-items: center;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* 44px floor in both dimensions — the tap target, not the glyph. */
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.5rem;
	box-sizing: border-box;
	border-radius: 2px;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wp-block-query-pagination a.page-numbers:hover,
.wp-block-query-pagination a.page-numbers:focus-visible,
.wp-block-query-pagination .wp-block-query-pagination-previous:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover {
	background-color: rgba(26, 22, 19, 0.08);
}

/* The current page is not a link; mark it without relying on colour alone. */
.wp-block-query-pagination .page-numbers.current {
	font-weight: 600;
	background-color: rgba(26, 22, 19, 0.1);
}

.wp-block-query-pagination a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Dots between number ranges are decorative, not tappable — no target floor. */
.wp-block-query-pagination .page-numbers.dots {
	min-width: 0;
	min-height: 0;
	padding: 0 0.25rem;
}
