/* Slider — scroll-snap track (anker_loop layout "slider") + arrows + dots. JS: assets/js/components/slider.js */
.loop--slider {
	--loop-gap: var(--sp-24);
	/* Room for card shadows inside the scroll box, cancelled by equal negative margins.
	   Vertically the room shows the shadows. Horizontally the clip leaves 16px of it for the
	   edge cards' side shadows; neighbouring cards start a full gap (24px) away, so they stay hidden. */
	--shadow-x: var(--sp-24);
	--shadow-top: var(--sp-16);
	--shadow-bottom: var(--sp-32);
	margin-inline: calc(var(--shadow-x) * -1);
	margin-block-end: calc(var(--shadow-bottom) * -1 + var(--sp-8));
	padding: var(--shadow-top) var(--shadow-x) var(--shadow-bottom);
	scroll-padding-inline: var(--shadow-x);
	clip-path: inset(0 max(0px, calc(var(--shadow-x) - var(--sp-16))));
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.loop--slider::-webkit-scrollbar { display: none; }
.loop--slider:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--r-16); }

.slider-arrows { display: flex; gap: var(--sp-12); }
.slider-arrows__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--r-12);
	color: var(--n-10);
	background: var(--n-100);
	box-shadow: 0 4px 16px rgb(0 0 0 / .08);
	cursor: pointer;
	transition: color .15s, background-color .15s, opacity .15s;
}
.slider-arrows__btn:hover:not(:disabled) { color: var(--n-100); background: var(--blue); }
.slider-arrows__btn:disabled { opacity: .4; cursor: default; }
.slider-arrows__btn .icon { font-size: 20px; }

/* Dots: above the track (its clip-path puts it on its own layer, which would cover them),
   spaced below the cards; each dot has a 24px tap area around an 8px mark. */
.slider-dots {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	margin-top: var(--sp-16);
}
.slider-dots[hidden] { display: none; }
.slider-dots button {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: width .25s;
}
.slider-dots button::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: var(--r-pill);
	background: var(--n-90);
	transition: width .25s, background-color .25s;
}
.slider-dots button:hover::before { background: var(--n-70); }
.slider-dots button[aria-current="true"] { width: 36px; }
.slider-dots button[aria-current="true"]::before { width: 24px; background: var(--orange); }
.slider-dots button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--r-pill); }

@media (max-width: 769px) {
	.loop--slider { --loop-gap: var(--sp-12); }
	.slider-arrows__btn { width: 36px; height: 36px; }
}
