/*
 * Partner - Voices.
 *
 * Read from cp-all-designer join-business/store-partner/index.html:126-230,
 * css/app.css:1626-1721 (.oppc), 3098-3278 (.oppc--tm, .tmc) and
 * css/join-business.css:44-104.
 *
 * Colour, type, padding, the card's height and corner and the spaces between
 * the parts arrive from the Style tab and are not repeated here.
 */

.custom-partner-voices {
	--custom-voices-dot: #728DC4;
	--custom-voices-dot-on: #16418C;
}

/* ------------------------------------------------------------------ */
/* The rail                                                            */
/* ------------------------------------------------------------------ */

/* Full width, not inside the cap: the rail reaches the window edge, which is
   what lets a neighbour fill either shoulder — store-partner/index.html:146. */
.custom-partner-voices .custom-partner-voices__rail {
	--custom-voices-height: 406px;
	position: relative;
	/* a box of its own, so the frame's pull-back stays inside it */
	display: flow-root;
	box-sizing: border-box;
}

/* app.css:1638-1656 — a real horizontal scroller, snapping on centres.
   join-business.css:71-75 — the frame is padded by what a card's shadow needs
   and pulled back by the same, so the card stays where it stood and the
   shadow is whole. */
.custom-partner-voices .custom-partner-voices__view {
	position: relative;
	box-sizing: content-box;
	height: var(--custom-voices-height);
	margin: -20px 0 -52px;
	padding: 20px 0 52px;
	overflow-x: auto;
	overflow-y: hidden;
	cursor: grab;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	touch-action: pan-x pan-y;
	overscroll-behavior-x: contain;
}

.custom-partner-voices .custom-partner-voices__view::-webkit-scrollbar {
	display: none;
}

.custom-partner-voices .custom-partner-voices__view.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
}

.custom-partner-voices .custom-partner-voices__view.is-teleport {
	scroll-snap-type: none;
	scroll-behavior: auto;
}

.custom-partner-voices .custom-partner-voices__view.is-teleport .custom-partner-voices__card {
	transition: none;
}

/* app.css:1669-1672 */
.custom-partner-voices .custom-partner-voices__track {
	display: flex;
	align-items: center;
	width: max-content;
	height: 100%;
}

/* ------------------------------------------------------------------ */
/* One card — app.css:1674-1692, 3120-3132                             */
/* ------------------------------------------------------------------ */

.custom-partner-voices .custom-partner-voices__card {
	position: relative;
	display: grid;
	flex: 0 0 auto;
	/* the portrait's share of the card, and never wider than the files are */
	grid-template-columns: min(30%, 300px) minmax(0, 1fr);
	align-items: center;
	box-sizing: border-box;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	box-shadow: 0 12px 30px -16px rgba(22, 65, 140, 0.18);   /* join-business.css:83 */
	transition: opacity 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            box-shadow 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* app.css:1685-1686 — the queued cards are faded and a touch smaller */
.custom-partner-voices .custom-partner-voices__card:not(.is-mid) {
	opacity: 0.4;
	transform: scale(0.9);
}

.custom-partner-voices .custom-partner-voices__card:not(.is-mid):hover {
	opacity: 0.62;
}

.custom-partner-voices .custom-partner-voices__card.is-mid {
	opacity: 1;
	transform: scale(1);
	cursor: default;
	box-shadow: 0 18px 40px -18px rgba(22, 65, 140, 0.28);   /* join-business.css:82 */
}

/* app.css:1693 — one card at a time has nothing to fade back */
.custom-partner-voices .custom-partner-voices__rail.is-narrow .custom-partner-voices__card {
	opacity: 1;
	transform: none;
}

/* fewer than three cards: no neighbour to fade, and the row is centred */
.custom-partner-voices .custom-partner-voices__rail.is-short .custom-partner-voices__card {
	opacity: 1;
	transform: none;
}

.custom-partner-voices .custom-partner-voices__rail.is-short .custom-partner-voices__track {
	margin: 0 auto;
}

/* app.css:3140-3151 — the brand leaf, ground on the card's open side */
.custom-partner-voices .custom-partner-voices__leaf {
	position: absolute;
	right: -3%;
	bottom: -6%;
	z-index: 0;
	width: 420px;                          /* app.css:3143 */
	height: auto;
	opacity: 0.09;
	transform: rotate(168deg);
	pointer-events: none;
	-webkit-mask-image: linear-gradient(115deg, #000 26%, rgba(0, 0, 0, 0.55) 74%, transparent 100%);
	        mask-image: linear-gradient(115deg, #000 26%, rgba(0, 0, 0, 0.55) 74%, transparent 100%);
}

/* app.css:3154-3165 — the portrait runs the card's height between its paddings */
.custom-partner-voices .custom-partner-voices__portrait {
	z-index: 1;
	align-self: stretch;
	width: 100%;
	height: 100%;
	background: linear-gradient(150deg, #CCDAF2, #F0F9FD);
}

/* the plate is behind a portrait; a slot with nothing in it is white, as every empty slot is */
.custom-partner-voices .custom-partner-voices__portrait:empty {
	background: #FFFFFF;
}

/* app.css:3178-3182 — the quote at the top, who said it on the floor */
.custom-partner-voices .custom-partner-voices__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	height: 100%;
	min-width: 0;
	margin: 0;
	padding: 14px 0;                       /* app.css:3181 */
	border: 0;
	background: none;
	font-style: normal;
	quotes: none;
}

.custom-partner-voices .custom-partner-voices__body::before,
.custom-partner-voices .custom-partner-voices__body::after {
	content: none;
}

/* app.css:3183-3187 */
.custom-partner-voices .custom-partner-voices__quote {
	max-width: 448px;                      /* app.css:3184 — 16em of 28px */
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}

/* app.css:3192-3195 — a passage, not a pull quote */
.custom-partner-voices .custom-partner-voices__quote--passage {
	max-width: 756px;                      /* 42em of 18px */
	line-height: 1.7;
}

/* app.css:3205-3209 — name, then who they are, on one line */
.custom-partner-voices .custom-partner-voices__by {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;                         /* app.css:3207 */
	margin: 0;
}

.custom-partner-voices .custom-partner-voices__name {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	text-transform: none;
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0;
}

.custom-partner-voices .custom-partner-voices__role {
	position: relative;
	flex: 1 1 240px;
	min-width: 0;
	margin: 0;
	padding-left: 16px;                    /* app.css:3213 */
	font-family: inherit;
	font-style: normal;
	font-weight: 300;
	line-height: 1.6;
	letter-spacing: 0;
}

/* app.css:3218-3221 — a drawn rule, one line tall */
.custom-partner-voices .custom-partner-voices__role::before {
	content: "";
	position: absolute;
	top: 2px;                              /* app.css:3219 measures 2.24px */
	left: 0;
	width: 2px;                            /* app.css:3220 measures 1px */
	height: 14px;                          /* measures 14.7px */
}

/* ------------------------------------------------------------------ */
/* The dots — app.css:1709-1721                                        */
/* ------------------------------------------------------------------ */

.custom-partner-voices .custom-partner-voices__dots {
	position: relative;
	z-index: 1;                            /* join-business.css:86 */
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.custom-partner-voices .custom-partner-voices__dot {
	width: 10px;                           /* app.css:1714 measures 9px */
	height: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--custom-voices-dot);
	opacity: 0.5;
	cursor: pointer;
	appearance: none;
	transition: width 350ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            opacity 250ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            background-color 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-partner-voices .custom-partner-voices__dot:hover {
	background-color: var(--custom-voices-dot);
	opacity: 0.85;
}

.custom-partner-voices .custom-partner-voices__dot.is-active,
.custom-partner-voices .custom-partner-voices__dot.is-active:hover {
	width: 28px;
	border-radius: 1000px;
	background-color: var(--custom-voices-dot-on);
	opacity: 1;
}

.custom-partner-voices .custom-partner-voices__dot:focus-visible {
	outline: 2px solid var(--custom-voices-dot-on);
	outline-offset: 4px;                   /* app.css:1721 measures 3px */
}

/* ------------------------------------------------------------------ */
/* Tablet — 768px to 1024px (app.css:3236-3278, drawn at 1000)         */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	/* one card, as wide as the frame, and as tall as what it says; the frame
	   is padded at its sides too so the shadow is whole there — join-business.css:93-104 */
	.custom-partner-voices .custom-partner-voices__view {
		height: auto;
		margin: -20px -24px -52px;
		padding: 20px 24px 52px;
	}
	.custom-partner-voices .custom-partner-voices__track {
		align-items: stretch;
		height: auto;
	}
	/* stacked: the portrait over the words, and who said it still on the floor */
	.custom-partner-voices .custom-partner-voices__card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		align-items: stretch;
	}
	.custom-partner-voices .custom-partner-voices__portrait {
		align-self: start;
		max-width: 220px;                  /* app.css:3270 */
		height: 220px;
		margin: 0 auto;
	}
	.custom-partner-voices .custom-partner-voices__leaf {
		width: 276px;                      /* app.css:3143 — 30 units of 9.2px */
	}
	.custom-partner-voices .custom-partner-voices__body {
		padding: 10px 0;                   /* app.css:3181 measures 9.2px */
	}
	.custom-partner-voices .custom-partner-voices__quote {
		max-width: 288px;                  /* 16em of 18px */
	}
	.custom-partner-voices .custom-partner-voices__quote--passage {
		max-width: 672px;                  /* 42em of 16px */
	}
	.custom-partner-voices .custom-partner-voices__by {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.custom-partner-voices .custom-partner-voices__role {
		flex: 0 0 auto;
		padding-left: 0;
	}
	.custom-partner-voices .custom-partner-voices__role::before {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile — up to 767px                                                */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.custom-partner-voices .custom-partner-voices__leaf {
		width: 200px;                      /* app.css:3143 */
	}
	.custom-partner-voices .custom-partner-voices__body {
		padding: 4px 0;                    /* app.css:3181 measures 4.2px */
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-partner-voices .custom-partner-voices__card,
	.custom-partner-voices .custom-partner-voices__dot {
		transition: none;
	}
	.custom-partner-voices .custom-partner-voices__view {
		scroll-behavior: auto;
	}
}
