/* testimonials.css — „במילים שלהם", the testimonials strip of the home page and of /show/ (approved design 29.11.2026)
   A compact light strip right before the contact area: one testimonial at a time, at every width.
   Desktop (>900px): the heading alone on the right, level with the top of the testimonial; the testimonial on the
   left with its author directly under it; range + arrows as one unit on the author's line, at the end of the
   testimonial column. Phones / tablets (≤900px): heading, then range + arrows on one row, the testimonial under them;
   swipe or arrows. No autoplay. The navigation is in the markup twice (one per layout, the other display:none),
   so each sits where it belongs without moving elements around. Used together with testimonials.js. */

.ts{--s-fg:#111;--s-mute:#5b5550;--s-org:#a8580d;--s-acc:#a8580d;--s-btn:#111;--s-btn-inv:#f5f1ea;
  position:relative;color:var(--s-fg);display:grid;grid-template-columns:minmax(150px,max-content) minmax(0,1fr);grid-template-areas:"h main";column-gap:clamp(32px,3.6vw,60px);align-items:start}
.ts *{box-sizing:border-box}

.ts-h{grid-area:h;margin:.14em 0 0; /* optical: the top of the letters level with the top of the testimonial's first line */ font-size:clamp(30px,2.7vw,44px);line-height:1;font-weight:700;letter-spacing:-.03em;color:var(--s-fg)}
.ts-nav{display:flex;align-items:center;gap:16px}
.ts-arrows{display:flex;gap:8px}
.ts-arrows button{width:46px;height:46px;display:grid;place-items:center;padding:0;border-radius:50%;border:1.5px solid var(--s-btn);background:none;color:var(--s-btn);cursor:pointer;transition:background .25s,color .25s,opacity .25s}
.ts-arrows button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ts-arrows button:hover:not(:disabled){background:var(--s-btn);color:var(--s-btn-inv)}
.ts-arrows button:disabled{opacity:.28;cursor:default}
.ts-arrows button:focus-visible{outline:3px solid var(--s-acc);outline-offset:3px}
.ts-count{margin:0;font-size:clamp(15px,1.1vw,17px);font-weight:500;color:var(--s-mute);font-variant-numeric:tabular-nums;white-space:nowrap}
.ts-count b{font-weight:700;color:var(--s-fg)}

/* the testimonial: one at a time, in full */
.ts-main{grid-area:main;position:relative;min-width:0;max-width:calc(38.5 * clamp(19px,1.6vw,24px))} /* = the testimonial column */
.ts-nav--m{display:none}
/* desktop: the range + arrows sit at the end of the testimonial column, on the author's line (placed by testimonials.js) */
.ts-nav--d{position:absolute;inset-inline-end:0;top:0;transition:top .3s cubic-bezier(.2,.7,.1,1)}
.ts-track{display:flex;align-items:flex-start;gap:40px;margin:0;padding:0;list-style:none;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-behavior:smooth;transition:height .35s cubic-bezier(.2,.7,.1,1)}
.ts-track::-webkit-scrollbar{display:none}
.ts-i{flex:0 0 100%;scroll-snap-align:start;margin:0}
.ts-i figure,.ts-i blockquote{margin:0}
.ts-i blockquote p{position:relative;margin:0;max-width:37em;padding-inline-start:1.5em;font-size:clamp(19px,1.6vw,24px);line-height:1.55;font-weight:400;text-wrap:pretty}
/* the amber 99, hanging at the start of the first line */
.ts-i blockquote p::before{content:'\201D';position:absolute;inset-inline-start:0;top:-.08em;font-size:2.2em;line-height:1;font-weight:700;color:var(--s-acc)}
/* who said it — name and company on one line when they fit */
.ts-by{margin:0;padding-top:14px;padding-inline-start:calc(1.5 * clamp(19px,1.6vw,24px));padding-inline-end:210px;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 0;font-size:clamp(17px,1.25vw,19px);line-height:1.4}
.ts-by b{font-weight:700}
.ts-by>span{font-weight:500;color:var(--s-org)}
.ts-by>span::before{content:'';display:inline-block;width:1px;height:.95em;margin:0 12px;vertical-align:-.1em;background:var(--s-acc);opacity:.55}

/* phones: heading and navigation on one row, the testimonial in full under them; the strip follows its height */
@media (max-width:900px){
 .ts{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"h nav" "main main";row-gap:18px;column-gap:12px;align-items:center}
 .ts-h{margin:0;font-size:clamp(25px,7.4vw,32px);white-space:nowrap}
 .ts-nav--m{grid-area:nav;display:flex;align-items:center;gap:10px}
 .ts-nav--d{display:none}
 .ts-main{max-width:none}
 .ts-arrows button{width:42px;height:42px}
 .ts-arrows{gap:6px}
 .ts-count{font-size:15px}
 .ts-i blockquote p{font-size:18px;line-height:1.6;padding-inline-start:1.35em}
 .ts-by{margin-top:0;padding-top:10px;padding-inline-start:calc(1.35 * 18px);padding-inline-end:0;font-size:17px}
}
/* phones narrower than 470px: the heading, range and arrows don't fit on one line — the range goes under the arrows, aligned left
   (430px until 29.11.2026; „אחרים משתפים" is wider than „במילים שלהם") */
@media (max-width:469px){
 .ts-nav--m{flex-direction:column-reverse;align-items:flex-end;gap:6px}
 .ts-count{font-size:14px}
}
@media (prefers-reduced-motion:reduce){.ts-track{scroll-behavior:auto;transition:none}.ts-arrows button,.ts-nav--d{transition:none}}

/* ── hosts: colours ── */
.ts-show{--s-fg:#111;--s-mute:#5b5550;--s-org:#a8580d;--s-acc:#a8580d;--s-btn:#111;--s-btn-inv:#f5f1ea}
.ts-home{--s-fg:var(--text);--s-mute:var(--muted);--s-org:var(--amber-deep);--s-acc:var(--amber-deep);--s-btn:var(--ink);--s-btn-inv:var(--paper)}

/* ── hosts: placement ── */
/* /show/: a compact light strip inside section.e2, between the clips (.vids) and the invitation (.close);
   the same warm paper as „למי זה מתאים?" (.facts) */
.e2 .ts-band{position:relative;margin:clamp(64px,5.4vw,92px) calc(-1 * var(--m)) 0;padding:clamp(48px,4.2vw,68px) var(--m);background:#f5f1ea}
/* the invitation follows a short strip: less air above it (desktop) */
@media(min-aspect-ratio:1/1){.e2 .ts-band + .close{padding-top:clamp(64px,5.6vw,92px)}}
@media(max-aspect-ratio:1/1){.e2 .ts-band{margin:48px -22px 0;padding:36px 22px 32px}}
/* home: its own section on --paper, between „מחשבות נבחרות" (--paper-2) and „בואו נדבר" */
.ts-sec{background:var(--paper);padding-block:clamp(52px,4.6vw,76px)}
@media(max-width:700px){.ts-sec{padding-block:40px 36px}}
