/* =====================================================================
   EDS Core – Testimonials reel (written + video)
   Scope ":not(#eds)" = ID-level specificity (Hello's pink button reset can't leak in).
   ===================================================================== */

.eds-ts{
	--h:500px;
	--gap:20px;
	--ink:var(--e-global-color-secondary,#111);
	--muted:var(--e-global-color-eds_g600,#737373);
	--body:var(--e-global-color-text,#5c5c5c);
	--rule:var(--e-global-color-46313f9,#e5e5e5);
	--card:var(--e-global-color-4b5c478,#f5f5f5);
	--ease:cubic-bezier(.2,.7,.2,1);
	position:relative;
}
.eds-ts--dark{--ink:#fff;--muted:rgba(255,255,255,.62);--body:rgba(255,255,255,.78);--rule:rgba(255,255,255,.18);--card:var(--e-global-color-eds_g800,#262626)}
.eds-ts:not(#eds) :is(p,blockquote,footer){margin:0;padding:0}
.eds-ts:not(#eds) button{margin:0;padding:0;border:0;background:none;box-shadow:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}

/* ---------- track ---------- */
.eds-ts:not(#eds) .eds-ts__track{
	display:flex;gap:var(--gap);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;
	overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 2px 6px;margin:-2px -2px 0;outline:none;
	-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);
}
.eds-ts:not(#eds) .eds-ts__track::-webkit-scrollbar{display:none}
.eds-ts.is-end:not(#eds) .eds-ts__track,.eds-ts.no-scroll:not(#eds) .eds-ts__track{-webkit-mask-image:none;mask-image:none}
.eds-ts:not(#eds) .eds-ts__track:focus-visible{outline:2px solid var(--ink);outline-offset:6px;border-radius:24px}
.eds-ts.is-drag:not(#eds) .eds-ts__track{scroll-snap-type:none;scroll-behavior:auto;cursor:grabbing}
.eds-ts.is-drag:not(#eds) .eds-ts__card{pointer-events:none}

/* ---------- cards ---------- */
.eds-ts:not(#eds) .eds-ts__card{position:relative;flex:none;height:var(--h);scroll-snap-align:start;border-radius:20px;overflow:hidden}

.eds-ts:not(#eds) .eds-ts__card--text{
	display:flex;flex-direction:column;gap:28px;width:clamp(290px,30vw,400px);padding:36px 34px 30px;background:var(--card);color:var(--body);
}
.eds-ts:not(#eds) .eds-ts__top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.eds-ts:not(#eds) .eds-ts__mark{width:34px;height:26px;fill:var(--ink)}
.eds-ts:not(#eds) .eds-ts__stars{display:inline-flex;gap:3px}
.eds-ts:not(#eds) .eds-ts__stars svg{width:14px;height:14px;fill:var(--ink)}
.eds-ts:not(#eds) .eds-ts__quote{flex:1;min-height:0;overflow:auto;scrollbar-width:none;color:var(--ink);font-size:var(--e-global-typography-eds_lead-font-size,1.1875rem);line-height:1.55;letter-spacing:-.005em;text-wrap:pretty}
.eds-ts:not(#eds) .eds-ts__quote::-webkit-scrollbar{display:none}
.eds-ts:not(#eds) .eds-ts__who{display:flex;align-items:center;gap:14px;padding-top:22px;border-top:1px solid var(--rule)}
.eds-ts:not(#eds) .eds-ts__avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--card);font-size:.8125rem;font-weight:700;letter-spacing:.06em}
.eds-ts:not(#eds) .eds-ts__id{display:flex;flex-direction:column;gap:2px;min-width:0}
.eds-ts:not(#eds) .eds-ts__name{color:var(--ink);font-size:1rem;font-weight:700;line-height:1.3}
.eds-ts:not(#eds) .eds-ts__detail{color:var(--muted);font-size:.875rem;line-height:1.4}

/* Video card: portrait, photo cover, caption at the bottom, plays in place. */
.eds-ts:not(#eds) .eds-ts__card--video{width:calc(var(--h) * .64);background:#0a0a0a;color:#fff;isolation:isolate}
.eds-ts:not(#eds) .eds-ts__media{position:absolute;inset:0;z-index:0;background:#111}
.eds-ts:not(#eds) .eds-ts__media :is(img,video,iframe){position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;border:0;border-radius:0;object-fit:cover}
.eds-ts:not(#eds) .eds-ts__poster{filter:grayscale(1);transform:scale(1.001);transition:transform 1.2s var(--ease),filter .9s var(--ease)}
.eds-ts:not(#eds) .eds-ts__card--video::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.05) 35%,rgba(0,0,0,.78) 100%);transition:opacity .4s ease}
.eds-ts:not(#eds) .eds-ts__cap{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;flex-direction:column;gap:4px;padding:24px 24px 26px;transition:opacity .35s ease,transform .5s var(--ease)}
.eds-ts:not(#eds) .eds-ts__tag{align-self:flex-start;margin-bottom:10px;padding:5px 11px;border-radius:999px;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:.6875rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.eds-ts:not(#eds) .eds-ts__card--video .eds-ts__name{color:#fff;font-size:1.125rem}
.eds-ts:not(#eds) .eds-ts__card--video .eds-ts__detail{color:rgba(255,255,255,.72)}
.eds-ts:not(#eds) .eds-ts__line{margin-top:8px;color:rgba(255,255,255,.88);font-size:.9375rem;line-height:1.5}

.eds-ts:not(#eds) .eds-ts__play{
	position:absolute;left:50%;top:44%;z-index:3;display:grid;place-items:center;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;
	background:#fff;color:#000;box-shadow:0 18px 40px -12px rgba(0,0,0,.5);transition:transform .5s var(--ease),opacity .3s ease;
}
.eds-ts:not(#eds) .eds-ts__play::before{content:"";position:absolute;inset:-10px;border-radius:50%;border:1px solid rgba(255,255,255,.5);animation:eds-ts-ring 2.6s ease-out infinite}
.eds-ts:not(#eds) .eds-ts__play svg{width:24px;height:24px;margin-left:3px;fill:currentColor}
.eds-ts:not(#eds) .eds-ts__play:focus-visible{outline:2px solid #fff;outline-offset:6px}
@keyframes eds-ts-ring{0%{transform:scale(.9);opacity:.9}100%{transform:scale(1.35);opacity:0}}
@media (hover:hover){
	.eds-ts:not(#eds) .eds-ts__card--video:hover .eds-ts__poster{filter:grayscale(0);transform:scale(1.04)}
	.eds-ts:not(#eds) .eds-ts__card--video:hover .eds-ts__play{transform:scale(1.08)}
}
.eds-ts:not(#eds) .eds-ts__card--video.is-playing::after,.eds-ts:not(#eds) .eds-ts__card--video.is-playing .eds-ts__cap,.eds-ts:not(#eds) .eds-ts__card--video.is-playing .eds-ts__play{opacity:0;pointer-events:none}
.eds-ts:not(#eds) .eds-ts__card--video.is-playing .eds-ts__cap{transform:translateY(12px)}
.eds-ts:not(#eds) .eds-ts__card--video.is-playing .eds-ts__media{z-index:4}
.eds-ts:not(#eds) .eds-ts__card--video.is-empty .eds-ts__media{background:repeating-linear-gradient(135deg,#1a1a1a 0 12px,#141414 12px 24px)}
.eds-ts:not(#eds) .eds-ts__todo{position:absolute;left:20px;right:20px;top:20px;z-index:3;padding:10px 12px;border:1px dashed rgba(255,255,255,.4);border-radius:12px;font-size:.8125rem;line-height:1.4;color:rgba(255,255,255,.85)}

/* ---------- bar: progress + link + arrows ---------- */
.eds-ts:not(#eds) .eds-ts__bar{display:flex;align-items:center;gap:24px;margin-top:28px}
.eds-ts:not(#eds) .eds-ts__progress{position:relative;flex:1;height:1px;background:var(--rule);overflow:hidden}
.eds-ts:not(#eds) .eds-ts__progress span{position:absolute;left:0;top:0;bottom:0;width:var(--w,30%);background:var(--ink);transform:translateX(var(--x,0));transition:transform .25s linear,width .25s linear}
.eds-ts:not(#eds) .eds-ts__more{display:inline-flex;align-items:center;gap:10px;color:var(--ink);font-size:.9375rem;font-weight:700;text-decoration:none;white-space:nowrap}
.eds-ts:not(#eds) .eds-ts__more svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--ease)}
.eds-ts:not(#eds) .eds-ts__more:hover svg{transform:translateX(4px)}
.eds-ts:not(#eds) .eds-ts__arrows{display:flex;gap:10px}
.eds-ts:not(#eds) .eds-ts__arrow{display:grid;place-items:center;width:52px;height:52px;border:1px solid var(--rule);border-radius:50%;color:var(--ink);transition:background-color .35s var(--ease),border-color .35s var(--ease),color .35s var(--ease),opacity .3s}
.eds-ts:not(#eds) .eds-ts__arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.eds-ts:not(#eds) .eds-ts__arrow--prev svg{transform:scaleX(-1)}
.eds-ts:not(#eds) .eds-ts__arrow:is(:hover,:focus-visible):not(:disabled){background:var(--ink);border-color:var(--ink);color:var(--e-global-color-accent,#fff)}
.eds-ts--dark:not(#eds) .eds-ts__arrow:is(:hover,:focus-visible):not(:disabled){color:#000}
.eds-ts:not(#eds) .eds-ts__arrow:disabled{opacity:.35;cursor:default}
.eds-ts.no-scroll:not(#eds) :is(.eds-ts__arrows,.eds-ts__progress){visibility:hidden}

.eds-ts-empty{margin:0;padding:24px;border:1px dashed var(--e-global-color-46313f9,#e5e5e5);border-radius:12px;color:var(--e-global-color-eds_g600,#737373)}

@media (max-width:767px){
	.eds-ts{--gap:14px}
	.eds-ts:not(#eds) .eds-ts__card--text{width:min(82vw,360px);padding:28px 24px 24px;gap:22px}
	.eds-ts:not(#eds) .eds-ts__card--video{width:min(68vw,300px)}
	.eds-ts:not(#eds) .eds-ts__quote{font-size:1.0625rem}
	.eds-ts:not(#eds) .eds-ts__play{width:64px;height:64px;margin:-32px 0 0 -32px}
	.eds-ts:not(#eds) .eds-ts__bar{gap:16px;margin-top:22px}
	.eds-ts:not(#eds) .eds-ts__arrow{width:44px;height:44px}
	.eds-ts:not(#eds) .eds-ts__track{-webkit-mask-image:none;mask-image:none}
}
@media (prefers-reduced-motion:reduce){
	.eds-ts:not(#eds) *{transition-duration:.01ms !important;animation:none !important}
	.eds-ts:not(#eds) .eds-ts__track{scroll-behavior:auto}
}
