@charset "UTF-8";

/**
 * pagination.css 2.3.0
 * Author: hybrid.
 * Type: core
 * Load: optional
 *
 * Pagination navigation — extracted from navigations.css.
 * Accessible markup — nav > ul.pagination-list > li — see RGAA/WCAG notes below.
 * Rendered by inc/helpers/core/helper-pagination.php — get_theme_pagination().
 * Looks follow buttons.css: colors, border, font-size and focus are read from the
 * --button-* tokens, so a project override of the buttons (outline, .colored...) applies
 * to the pagination too. Only padding and radius are reassigned locally — see CONFIG.
 *
 * Sections
 * CONFIG   — --button-* size overrides (padding, radius), current page, dots and focus tokens
 * CORE     — list layout, item sizing, active/hover/hover(touch)/focus states
 * ANIMATED — pointer to project CSS (no code)
 *
 * Tokens
 * --pagination-current-weight                  weight of the current page number
 * --pagination-dots-color                      "…" separator
 * --pagination-focus-color / -offset          keyboard focus, outside the item like buttons.css
 *
 * Visuals
 * Background and border live on the element itself (same contract as buttons.css): no
 * pseudo-element, no transform, ::before and ::after are free for projects.
 * Border is an inset box-shadow (--button-border-*): it never adds to the item size.
 * Item height = --button-font-size + 2 × --button-padding-y, square via aspect-ratio.
 * Keep --button-font-size in absolute units (no em): it is read by both font-size
 * and height, and an em would resolve differently in each.
 * The list wraps (flex-wrap): no horizontal scroll at 320px / 200% zoom (RGAA 10.11).
 *
 * Accessibility
 * Markup is a semantic list (RGAA 9.3) — <li> wrappers here are purely structural,
 * no list-style/decoration to reset beyond spacing (handled in CORE, not CONFIG).
 * Current page is rendered as a <span> (not a link) by paginate_links() — WCAG best
 * practice avoids linking a page to itself. .active therefore targets a span, not an
 * anchor — do not assume .active implies <a> when editing selectors below.
 * Current page is not carried by color alone (RGAA 3.1): weight on top of the inverted
 * colors (filled item vs outlined items in the outline look). Keep a fill or border
 * difference between .active and the other items when overriding the buttons tokens.
 * Focus (RGAA 10.7): the outline is transparent at rest (reset.css, forced-colors fallback),
 * color and offset are set on :focus-visible — same pattern as buttons.css.
 * The "…" separator (.dots) is aria-hidden and non-interactive — excluded from the
 * button background and border so it doesn't read as a clickable circle.
 * The accessible-name prefix ("Page ") is a .hidden span inside the item (utilities).
 * Do not reintroduce inline (non-list) markup here without updating the helper.
 * STATES selectors are written as the full nav.pagination .pagination-list > li > …
 * path — shorter selectors are lower specificity than the LIST background rule and
 * silently lose the cascade regardless of source order. Keep the full path if this
 * section is edited.
 *
 * Dependencies
 * --nav-gap                         defined in navigations.css
 * --button-font-size                defined in buttons.css
 * --button-text-color               defined in buttons.css
 * --button-background-color         defined in buttons.css
 * --button-border-width             defined in buttons.css
 * --button-border-color             defined in buttons.css
 * --button-hover-text-color         defined in buttons.css
 * --button-hover-background-color   defined in buttons.css
 * --button-hover-border-color       defined in buttons.css
 * --button-focus-color              defined in buttons.css
 * --stroke-width                    defined in reset.css (fallback provided)
 * --font-weight-bold                defined in fonts.css (fallback provided)
 */



/* ================================================================================================== */
/* ============================================= CONFIG ============================================= */
/* ================================================================================================== */


/* ============================== DEFAULT ============================== */

nav.pagination {
	--button-padding-x: 1em;
	--button-padding-y: 1em;
	--button-radius: 50%;

	--pagination-current-weight: var(--font-weight-bold, bold);

	--pagination-dots-color: currentColor;

	--pagination-focus-color: var(--button-focus-color);
	--pagination-focus-offset: var(--stroke-width, .125rem);
}



/* ================================================================================================ */
/* ============================================= CORE ============================================= */
/* ================================================================================================ */


/* ============================== LIST ============================== */

nav.pagination .pagination-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--nav-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
nav.pagination .pagination-list > li { display: inline-flex; }
nav.pagination .pagination-list > li > * {
	display: inline-flex;
	align-items: center;
	text-align: center;
	justify-content: center;
	font-family: inherit;
	font-size: var(--button-font-size);
	color: var(--button-text-color);
	height: calc(var(--button-font-size) + var(--button-padding-y) * 2);
	aspect-ratio: 1/1;
	border-radius: var(--button-radius);
}
nav.pagination .pagination-list > li > :not(.dots) {
	background: var(--button-background-color);
	box-shadow: inset 0 0 0 var(--button-border-width) var(--button-border-color);
}
nav.pagination .pagination-list > li > .dots { color: var(--pagination-dots-color); }


/* ============================== STATES ============================== */

/* Current page: inverted colors + weight (not color alone, RGAA 3.1) */
nav.pagination .pagination-list > li > .active {
	color: var(--button-hover-text-color);
	background: var(--button-hover-background-color);
	box-shadow: inset 0 0 0 var(--button-border-width) var(--button-hover-border-color);
	font-weight: var(--pagination-current-weight);
}


/* ============================== FOCUS ============================== */

nav.pagination .pagination-list > li > a:focus-visible {
	outline-color: var(--pagination-focus-color);
	outline-offset: var(--pagination-focus-offset);
}


/* ============================== HOVER ============================== */

@media (hover: hover) {
	nav.pagination .pagination-list > li > a:hover {
		color: var(--button-hover-text-color);
		background: var(--button-hover-background-color);
		box-shadow: inset 0 0 0 var(--button-border-width) var(--button-hover-border-color);
	}
}
@media (hover: none) {
	nav.pagination .pagination-list > li > a.hover {
		color: var(--button-hover-text-color);
		background: var(--button-hover-background-color);
		box-shadow: inset 0 0 0 var(--button-border-width) var(--button-hover-border-color);
	}
}



/* ==================================================================================================== */
/* ============================================= ANIMATED ============================================= */
/* ==================================================================================================== */

/**
 * Not in the core, no optional file for the pagination.
 * To animate the fill (scale, slide, wipe), write it in project CSS: move the
 * background of the items to ::after (reset it on the element, in every state),
 * see buttons-animated.css for the pattern.
 * Without it, ::before and ::after are free for projects.
 */