/* Editorial Review Carousel — base styles.
   Class-based only. Editable colours for arrows/dots go through CSS variables
   so theme button :hover styles can never leak in. */

.ecw-root {
	position: relative;
	width: 100%;
	max-width: 100%;   /* width always follows the parent container */
	min-width: 0;
	overflow: hidden;
	box-sizing: border-box;
	--ecw-speed: 500ms;
}
.ecw-root *,
.ecw-root *::before,
.ecw-root *::after {
	box-sizing: border-box;
}

.ecw-stage {
	position: relative;
	--ecw-pt: 10px;
	--ecw-pb: 30px;
	--ecw-arrow-offset: 14px;
	--ecw-arrow-bg: #ffffff;
	--ecw-arrow-color: #2b2b2b;
	--ecw-arrow-border: #d9d2c8;
	--ecw-arrow-bg-h: #c4a265;
	--ecw-arrow-color-h: #ffffff;
	--ecw-arrow-border-h: #c4a265;
}

/* ---------- Viewport & track ---------- */
.ecw-viewport {
	overflow: hidden;
	padding: 10px 0 30px;   /* room so card shadows are not clipped */
	touch-action: pan-y;
	cursor: grab;
}
.ecw-viewport.is-dragging {
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}
.ecw-track {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 28px;
	width: 100%;
	will-change: transform;
	transition: transform var(--ecw-speed) cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Card ---------- */
.ecw-slide {
	flex: 0 0 472px;
	width: 472px;
	max-width: 100%;
	height: 505px;
	display: flex;
	flex-direction: column;
	padding: 28px;
	background-color: #fffefc;
	border: 1px solid #d9d2c8;
	border-radius: 28px;
	box-shadow: 0 8px 30px rgba(80, 70, 60, 0.1);
	margin: 0;
}
.ecw-root.ecw-auto-height .ecw-slide {
	height: auto;
}

.ecw-quote {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 6px;
	margin-right: -6px;
	font-family: Georgia, 'Gelasio', 'Times New Roman', serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.55;
	color: #1c1c1c;
	scrollbar-width: thin;
	scrollbar-color: #d6cfc6 transparent;
}
.ecw-root.ecw-auto-height .ecw-quote {
	overflow: visible;
}
.ecw-quote::-webkit-scrollbar { width: 6px; }
.ecw-quote::-webkit-scrollbar-thumb { background: #d6cfc6; border-radius: 6px; }
.ecw-quote::-webkit-scrollbar-track { background: transparent; }
.ecw-quote p {
	margin: 0 0 0.9em;
	padding: 0;
	font: inherit;
	color: inherit;
}
.ecw-quote > :last-child {
	margin-bottom: 0;
}

.ecw-person {
	margin-top: auto;
	padding-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ecw-name,
.ecw-role {
	display: block;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 22px;
	margin: 0;
}
.ecw-name { color: #6b6b6b; }
.ecw-role { color: #777777; }

/* ---------- Arrows (visible on hover only) ---------- */
.ecw-root .ecw-arrow,
.ecw-root .ecw-arrow:hover,
.ecw-root .ecw-arrow:focus,
.ecw-root .ecw-arrow:active {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	box-shadow: none;
	text-transform: none;
	text-decoration: none;
	letter-spacing: normal;
	line-height: 1;
	white-space: nowrap;
	font: inherit;
}
.ecw-root .ecw-arrow {
	position: absolute;
	top: calc(50% + (var(--ecw-pt) - var(--ecw-pb)) / 2);
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border-style: solid;
	border-width: 1px;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
	background-color: var(--ecw-arrow-bg);
	color: var(--ecw-arrow-color);
	border-color: var(--ecw-arrow-border);
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}
.ecw-root .ecw-arrow:hover,
.ecw-root .ecw-arrow:focus-visible {
	background-color: var(--ecw-arrow-bg-h);
	color: var(--ecw-arrow-color-h);
	border-color: var(--ecw-arrow-border-h);
}
.ecw-root .ecw-prev { left: var(--ecw-arrow-offset); }
.ecw-root .ecw-next { right: var(--ecw-arrow-offset); }
.ecw-root .ecw-arrow svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}
.ecw-root .ecw-stage:hover .ecw-arrow,
.ecw-root .ecw-arrow:focus-visible {
	opacity: 1;
	pointer-events: auto;
}
.ecw-root .ecw-arrow:focus-visible {
	outline: 2px solid #c4a265;
	outline-offset: 2px;
}

/* Touch devices have no hover: hide arrows (swipe + dots) unless enabled */
@media (hover: none) {
	.ecw-root:not(.ecw-arrows-touch) .ecw-arrow { display: none; }
	.ecw-root.ecw-arrows-touch .ecw-arrow { opacity: 1; pointer-events: auto; }
}

/* ---------- Dots ---------- */
.ecw-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--ecw-dot-gap, 10px);
	margin-top: 18px;
	--ecw-dot-color: #cdc7bd;
	--ecw-dot-active-color: #c4a265;
	--ecw-dot-size: 8px;
	--ecw-dot-active-w: 24px;
}
.ecw-root .ecw-dot,
.ecw-root .ecw-dot:hover,
.ecw-root .ecw-dot:focus,
.ecw-root .ecw-dot:active {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	text-transform: none;
	min-width: 0;
	min-height: 0;
	background-color: var(--ecw-dot-color);
}
.ecw-root .ecw-dot {
	position: relative;
	display: block;
	width: var(--ecw-dot-size);
	height: var(--ecw-dot-size);
	border-radius: 999px;
	cursor: pointer;
	transition: width 0.3s ease, background-color 0.3s ease;
}
.ecw-root .ecw-dot::after {          /* bigger invisible hit-area */
	content: '';
	position: absolute;
	inset: -8px;
}
.ecw-root .ecw-dot.is-active,
.ecw-root .ecw-dot.is-active:hover,
.ecw-root .ecw-dot.is-active:focus {
	width: var(--ecw-dot-active-w);
	background-color: var(--ecw-dot-active-color);
}
.ecw-root .ecw-dot:focus-visible {
	outline: 2px solid var(--ecw-dot-active-color);
	outline-offset: 3px;
}

/* Single slide: no navigation */
.ecw-root.ecw-single .ecw-arrow,
.ecw-root.ecw-single .ecw-dots { display: none; }
.ecw-root.ecw-single .ecw-viewport { cursor: default; }

@media (prefers-reduced-motion: reduce) {
	.ecw-track { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.ecw-track { gap: 20px; }
	.ecw-slide { flex-basis: 60%; width: 60%; height: 480px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.ecw-track { gap: 14px; }
	.ecw-slide {
		flex-basis: 86%;
		width: 86%;
		height: 440px;
		padding: 22px;
		border-radius: 22px;
	}
	.ecw-quote { font-size: 16px; }
	.ecw-name, .ecw-role { font-size: 14px; }
}
