/*
 * Shared manual left/right arrow scroll controls (added 2026-08-12).
 * Currently used by Flash News and Happenings in PU. See
 * wp-content/PATCHES/2026-08-12-scroll-arrows.md
 *
 * Buttons refined 2026-08-13 (see
 * wp-content/PATCHES/2026-08-13-mega-menu-columns-and-more.md) — the
 * original text-glyph arrows (‹ ›) read as thin/unpolished; swapped for
 * inline SVG chevrons (in pu-scroll-nav.php) with a slightly more
 * deliberate button treatment (soft shadow, subtle press/hover motion)
 * so they read as an intentional control, not an afterthought.
 */

.pu-scroll-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pu-scroll-nav-track {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	/* Hide the native scrollbar — arrows are the intended control, a
	   visible scrollbar would be redundant clutter here. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pu-scroll-nav-track::-webkit-scrollbar {
	display: none;
}

.pu-scroll-nav-track > * {
	scroll-snap-align: start;
}

.pu-scroll-nav-btn {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #d6d9f2;
	background: #ffffff;
	color: #4C5594;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(76, 85, 148, 0.15);
	transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out,
		border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
		transform 0.1s ease-in-out, opacity 0.2s ease-in-out;
}

.pu-scroll-nav-btn svg {
	/* nudge the visual center — chevrons aren't perfectly optically
	   centered in their own viewBox */
	position: relative;
}

.pu-scroll-nav-prev svg {
	left: -1px;
}

.pu-scroll-nav-next svg {
	left: 1px;
}

.pu-scroll-nav-btn:hover:not(:disabled),
.pu-scroll-nav-btn:focus-visible:not(:disabled) {
	background: #4C5594;
	border-color: #4C5594;
	color: #FABC2A;
	box-shadow: 0 2px 6px rgba(76, 85, 148, 0.3);
}

.pu-scroll-nav-btn:active:not(:disabled) {
	transform: scale(0.92);
}

.pu-scroll-nav-btn:disabled {
	opacity: 0.3;
	box-shadow: none;
	cursor: default;
}

@media (max-width: 480px) {
	.pu-scroll-nav-btn {
		width: 26px;
		height: 26px;
	}
	.pu-scroll-nav-btn svg {
		width: 12px;
		height: 12px;
	}
}
