/* Circles Co pagination (PAG-01 Classic), ported from the Circles Framework theme.
   Colors are this site's brand: active = main orange, inactive = light gray. */
:root {
	--pg-active-bg:   #e17f25;
	--pg-active-text: #ffffff;
	--pg-bg:          #f0f0f0;
	--pg-text:        #444444;
	--pg-size:        40px;
	--pg-font:        16px;
}
/* ── Pagination (cc-pagination) ──────────────────────────────── */
.cc-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	list-style: none;
	margin: 40px 0;
	padding: 0;
}
.cc-pagination li { margin: 0; padding: 0; }
:where(body:not(.cc-look-hold-3-6-9)) .cc-pagination a, :where(body:not(.cc-look-hold-3-6-9)) .cc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--pg-size);
	width: var(--pg-size);
	height: var(--pg-size);
	padding: 0;
	box-sizing: border-box;
	border: 2px solid transparent;
	border-radius: 4px;
	font-size: var(--fs-small, 16px);
	line-height: 1;
	text-decoration: none;
	background: var(--pg-bg);
	color: var(--pg-text);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
:where(body.cc-look-hold-3-6-9) .cc-pagination a, :where(body.cc-look-hold-3-6-9) .cc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--pg-size);
	width: var(--pg-size);
	height: var(--pg-size);
	padding: 0;
	box-sizing: border-box;
	border: 2px solid transparent;
	border-radius: 4px;
	font-size: var(--pg-font);
	line-height: 1;
	text-decoration: none;
	background: var(--pg-bg);
	color: var(--pg-text);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cc-pagination a:hover {
	background: var(--pg-active-bg);
	color: var(--pg-active-text);
}
.cc-pagination .cc-pagination-current span,
.cc-pagination span[aria-current="page"],
.cc-pagination .current {
	background: var(--pg-active-bg) !important;
	color: var(--pg-active-text) !important;
}
.cc-pagination .cc-pagination-dots span {
	background: transparent;
	color: var(--pg-text);
	min-width: auto;
	padding: 0 4px;
}
/* Prev / Next — chevron arrows (circlesco.com style) */
.cc-pagination .cc-pagination-prev a,
.cc-pagination .cc-pagination-next a {
	font-size: 0;
	font-weight: 600;
	padding: 0;
}
.cc-pagination .cc-pagination-prev a::before,
.cc-pagination .cc-pagination-next a::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
}
.cc-pagination .cc-pagination-prev a::before { transform: rotate(-135deg); margin-left: 2px; }
.cc-pagination .cc-pagination-next a::before { transform: rotate(45deg);   margin-right: 2px; }

/* Alignment */
.cc-pagination-align-left   { justify-content: flex-start; }
.cc-pagination-align-center { justify-content: center; }
.cc-pagination-align-right  { justify-content: flex-end; }

/* ════════════════════════════════════════════════════════════════
   Pagination STYLE = corner shape only (independent of color)
   Pagination COLOR STYLE = fill treatment only (solid / outline)
   They never both touch background — see ordering below.
═══════════════════════════════════════════════════════════════════ */

/* ── Pagination Style: corner shape ───────────────────────────── */
/* Square corners */
.cc-pagination--squares a,        .cc-pagination--squares span,
.cc-pagination--numbers_rounded a, .cc-pagination--numbers_rounded span { border-radius: 0; }
/* Rounded corners (4px) */
.cc-pagination--rounded a,         .cc-pagination--rounded span,
.cc-pagination--numbers_squares a, .cc-pagination--numbers_squares span { border-radius: 4px; }
/* Pill / circle */
.cc-pagination--circles a,         .cc-pagination--circles span,
.cc-pagination--numbers_circles a, .cc-pagination--numbers_circles span { border-radius: 999px; }

/* ── Pagination Color Style: fill treatment ───────────────────── */
/* solid = base default (filled bg both states) — no rules needed */

/* Outline — border only, transparent fill, both states */
.cc-pagination-color-outline a {
	background: transparent !important;
	border-color: var(--pg-bg) !important;
	color: var(--pg-text);
}
.cc-pagination-color-outline a:hover,
.cc-pagination-color-outline .cc-pagination-current span,
.cc-pagination-color-outline .current {
	background: transparent !important;
	border-color: var(--pg-active-bg) !important;
	color: var(--pg-active-bg) !important;
}

/* Outline inactive, Solid active (active stays the base solid default) */
.cc-pagination-color-outline_active_solid a {
	background: transparent !important;
	border-color: var(--pg-bg) !important;
	color: var(--pg-text);
}
.cc-pagination-color-outline_active_solid a:hover {
	background: var(--pg-active-bg) !important;
	border-color: var(--pg-active-bg) !important;
	color: var(--pg-active-text);
}

/* Solid inactive, Outline active (inactive stays the base solid default) */
.cc-pagination-color-solid_active_outline .cc-pagination-current span,
.cc-pagination-color-solid_active_outline .current {
	background: transparent !important;
	border-color: var(--pg-active-bg) !important;
	color: var(--pg-active-bg) !important;
}

/* ── Numbers scope (must come LAST to win) ────────────────────────
   numbers_* = inactive items are bare numbers (no fill, no border).
   The ACTIVE item keeps whatever the Color Style above applied. ── */
.cc-pagination--numbers_only a,
.cc-pagination--numbers_squares a,
.cc-pagination--numbers_rounded a,
.cc-pagination--numbers_circles a {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--pg-text) !important;
}
/* Filled-active numbers — hovering an inactive number previews the active fill */
.cc-pagination--numbers_squares a:hover,
.cc-pagination--numbers_rounded a:hover,
.cc-pagination--numbers_circles a:hover {
	background: var(--pg-active-bg) !important;
	color: var(--pg-active-text) !important;
}
/* Numbers Only — hover just recolors the text (no fill) */
.cc-pagination--numbers_only a:hover { color: var(--pg-active-bg) !important; }

/* Numbers Only — active is colored text only (no fill/border at all) */
.cc-pagination--numbers_only .cc-pagination-current span,
.cc-pagination--numbers_only .current {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--pg-active-bg) !important;
	font-weight: 700;
}

/* Phones: keep page numbers big enough to tap (most of this site's traffic is mobile) */
@media (max-width: 767px) {
	.cc-pagination { --pg-size: 36px; gap: 4px; }
}
