/* StaffV2 — module-specific styles. Radius, shadow, 1:1 photo, dark plate
   and the below-900px scrolling track come from tokens/utilities. */

/* ESCAPE HATCH (Contract §C) */

.stf.v2 {

	/* `safe` centers only when the cards fit; plain center clips the first card
	   off the left edge of a scrolling track where it can't be scrolled back to. */
	ul.stf-v2-lst {
		justify-content: safe center !important;
	}

	/* Below 700px a full-width card hides the next one; 80% lets it peek in. */
	@media screen and (width < 700px) {
		ul.stf-v2-lst {
			--itm-val: 80;
		}
	}

	/* 900px and up: no scroller. Cards wrap into rows, the pager is hidden and
	   init.js doesn't start the scroller. The !importants beat the scroller
	   utilities (nowrap track, bleed margin, snap) that apply whenever .s-active is set. */
	@media screen and (width >= 900px) {

		ul.stf-v2-lst {
			--itm-val: 33.333;
			flex-wrap: wrap !important;
			overflow: visible !important;
			margin-inline: 0 !important;
			scroll-snap-type: none !important;

			&::before,
			&::after {
				display: none !important;
			}
		}

		.stf-v2-nav {
			display: none !important;
		}

		.stf-v2-btn {
			align-self: center;
		}
	}

	@media screen and (width >= 1280px) {

		/* Design 13605:19071: header and button share the top row, the cards
		   span the row beneath. */
		.stf-v2-lyt {
			display: grid;
			grid-template-columns: 1fr auto;
			grid-template-areas:
				"header button"
				"list   list";
			align-items: center;
		}

		.stf-v2-hdr {
			grid-area: header;
		}

		.stf-v2-btn {
			grid-area: button;
		}

		.stf-v2-lst {
			grid-area: list;
			--itm-val: 25;
		}

	}

}
