/* About page facts (core Group of Paragraphs, class sgr-facts): a scroll-snap
   row that works without JavaScript, plus the carousel controls facts.js adds.
   Theme-independent: uses the active theme's colour tokens when it has them. */
.wp-block-group.sgr-facts {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(85%, 26rem);
	gap: 1rem;
	margin: 0;
	padding: 0.25rem 0.25rem 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}
@media (prefers-reduced-motion: no-preference) {
	.wp-block-group.sgr-facts { scroll-behavior: smooth; }
}
/* Classic themes without theme.json wrap a Group's blocks in an inner
   container; let the facts sit directly in the track either way. */
.wp-block-group.sgr-facts > .wp-block-group__inner-container { display: contents; }
.wp-block-group.sgr-facts > :not(.wp-block-group__inner-container),
.wp-block-group.sgr-facts > .wp-block-group__inner-container > * {
	display: grid;
	place-items: center;
	min-height: 11rem;
	margin: 0;
	padding: 1.75rem 1.5rem;
	scroll-snap-align: center;
	background: var(--paper, #F7F9FD);
	border: 1px solid var(--line, #E3EAF5);
	border-radius: var(--radius-lg, 1.5rem);
	font-family: var(--font-heading, Lora, Georgia, serif);
	font-size: var(--step-1);
	font-style: italic;
	line-height: 1.5;
	text-align: center;
}

.sgr-carousel { position: relative; margin-block: 0 1.5rem; }
.sgr-carousel__controls {
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	height: calc(100% - 3rem);
	align-items: center;
	pointer-events: none;
}
.sgr-carousel__button {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-inline: -0.75rem;
	border: 1px solid var(--line-strong, #C6D3E8);
	border-radius: var(--radius-pill, 999px);
	background: var(--white, #FFFFFF);
	color: var(--blueberry, #2E5597);
	box-shadow: var(--shadow, 0 0.75rem 2rem rgb(28 43 74 / 0.08));
	cursor: pointer;
	pointer-events: auto;
	touch-action: manipulation;
}
.sgr-carousel__button:hover { color: var(--ink, #1C2B4A); background: var(--mist, #EEF3FA); }
.sgr-carousel__markers { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin-top: 0.5rem; }
.sgr-carousel__marker {
	width: 1.5rem;
	height: 1.5rem;
	padding: 0.5rem;
	border: 0;
	border-radius: var(--radius-pill, 999px);
	background: var(--line-strong, #C6D3E8);
	background-clip: content-box;
	cursor: pointer;
	touch-action: manipulation;
}
.sgr-carousel__marker[aria-current="true"] {
	padding: 0.35rem;
	background-color: var(--blueberry, #2E5597);
	outline: 2px solid var(--blueberry, #2E5597);
	outline-offset: -4px;
}
.sgr-carousel__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
