/* ===== Maayan | Team slider (prefix: ts-) =====
   Isolated: every selector is scoped under .ts-team. No globals, no .people-* classes, no data-people-* hooks
   (so the legacy staffSlider code in app-portraits / home-design never matches it).
   Uses the site fonts (Ploni / MaayanGeula) already loaded by the site.
   Only animations: the yellow heading marker paint + card/panel interactions. They run even under
   prefers-reduced-motion (site owner's request). No section entrance animation. */
.ts-team{--ts-navy:#1d3d5f;--ts-teal:#328794;--ts-accent:#daf14b;--ts-soft:#f2f7f7;--ts-line:#dce8ea;--ts-gap:18px;--ts-per:4;
  box-sizing:border-box;direction:rtl;text-align:right;max-width:1240px;margin:0 auto;padding:76px 24px 84px;
  font-family:Ploni,Arial,sans-serif;color:var(--ts-navy);background:transparent;position:relative}
.ts-team *,.ts-team *::before,.ts-team *::after{box-sizing:border-box}

/* ---- heading language: label + small line, title with yellow marker painted in ---- */
.ts-team .ts-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 30px}
.ts-team .ts-intro{min-width:0}
.ts-team .ts-label{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0 0 12px;padding:0;
  font:700 15px/1.3 Ploni,Arial,sans-serif;color:var(--ts-teal);letter-spacing:0}
.ts-team .ts-label::before{content:"";flex:0 0 26px;width:26px;height:3px;border-radius:3px;background:var(--ts-accent)}
.ts-team .ts-title{margin:0!important;font-family:MaayanGeula,Ploni,sans-serif!important;font-weight:900!important;
  font-size:clamp(34px,4.2vw,52px)!important;line-height:1.05!important;color:var(--ts-navy)!important;text-align:right!important;letter-spacing:0!important}
/* marker = same identity as brand-headings-20261116 (yellow bar 62%-90%, drawn from the right). Higher specificity so it
   works with or without brand-headings.js; painted when the heading enters the viewport, also under reduced-motion. */
.ts-team .ts-title .ts-mark{font-style:normal!important;color:var(--ts-teal)!important;position:relative;isolation:isolate;z-index:0;display:inline;background:none!important}
.ts-team .ts-title .ts-mark::before{content:"";position:absolute;z-index:-1;inset-inline:0;top:62%;height:28%;background:var(--ts-accent);
  transform:scaleX(1);transform-origin:right center;pointer-events:none}
.ts-team.ts-js .ts-title .ts-mark::before{transform:scaleX(0);transition:transform .85s cubic-bezier(.22,.8,.25,1)!important}
.ts-team.ts-js.ts-painted .ts-title .ts-mark::before{transform:scaleX(1)}
@media (max-width:700px){.ts-team .ts-title{font-size:clamp(32px,8.7vw,42px)!important}.ts-team .ts-label{font-size:14px}}

/* ---- controls ---- */
.ts-team .ts-ctrl{flex:0 0 auto;display:flex;align-items:center;gap:10px}
.ts-team .ts-arrow{all:unset;box-sizing:border-box;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;
  background:#fff;border:2px solid var(--ts-navy);color:var(--ts-navy);cursor:pointer;
  transition:background-color .25s ease,color .25s ease,opacity .25s ease,transform .25s ease;-webkit-tap-highlight-color:transparent}
.ts-team .ts-arrow svg{width:22px;height:22px;display:block}
.ts-team .ts-arrow:focus-visible{outline:3px solid var(--ts-teal);outline-offset:3px}
.ts-team .ts-arrow[aria-disabled="true"]{opacity:.35;cursor:default}
@media (hover:hover){.ts-team .ts-arrow:not([aria-disabled="true"]):hover{background:var(--ts-accent);transform:scale(1.05)}}
.ts-team .ts-count{min-width:64px;text-align:center;font:700 16px/1 Ploni,Arial,sans-serif;color:var(--ts-navy);direction:ltr;unicode-bidi:isolate}

/* ---- track (native scroll + snap = touch swipe, momentum, RTL for free) ---- */
.ts-team .ts-viewport{position:relative;margin:0 -6px}
.ts-team .ts-track{list-style:none;margin:0;padding:6px 6px 14px;display:flex;gap:var(--ts-gap);
  overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;outline:none}
.ts-team .ts-track::-webkit-scrollbar{display:none}
.ts-team .ts-track:focus-visible{outline:3px solid var(--ts-teal);outline-offset:2px;border-radius:22px}
.ts-team .ts-card{flex:0 0 calc((100% - (var(--ts-per) - 1) * var(--ts-gap)) / var(--ts-per));min-width:0;margin:0;padding:0;
  scroll-snap-align:start;position:relative;border-radius:22px;overflow:hidden;background:var(--ts-soft);
  box-shadow:0 1px 0 var(--ts-line)}
.ts-team .ts-card::before,.ts-team .ts-card::marker{content:none}
.ts-team .ts-figure{margin:0;position:relative;aspect-ratio:420/440;background:#e4eef0;overflow:hidden}
.ts-team .ts-figure img{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover;object-position:50% 22%;margin:0;border-radius:0;
  transition:transform .6s cubic-bezier(.22,.8,.25,1)}
@media (hover:hover){.ts-team .ts-card:hover .ts-figure img{transform:scale(1.04)}}
.ts-team .ts-body{display:flex;align-items:center;gap:12px;padding:16px 18px 18px}
.ts-team .ts-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.ts-team .ts-name{margin:0;font:700 21px/1.15 Ploni,Arial,sans-serif;color:var(--ts-navy);overflow-wrap:anywhere}
.ts-team .ts-role{margin:0;font:400 16px/1.2 Ploni,Arial,sans-serif;color:var(--ts-teal)}
.ts-team .ts-more{all:unset;box-sizing:border-box;flex:0 0 auto;position:relative;width:40px;height:40px;border-radius:50%;
  background:#fff;cursor:pointer;transition:background-color .3s ease,transform .35s cubic-bezier(.3,1.4,.5,1);-webkit-tap-highlight-color:transparent}
.ts-team .ts-more::before,.ts-team .ts-more::after{content:"";position:absolute;top:50%;left:50%;width:14px;height:2px;margin:-1px 0 0 -7px;border-radius:2px;background:var(--ts-navy);transition:transform .35s ease}
.ts-team .ts-more::after{transform:rotate(90deg)}
.ts-team .ts-more:focus-visible{outline:3px solid var(--ts-teal);outline-offset:2px}
@media (hover:hover){.ts-team .ts-more:hover{background:var(--ts-accent)}}

/* details panel: slides up over the portrait */
.ts-team .ts-panel{position:absolute;inset:0 0 auto 0;height:calc(100% - var(--ts-body-h,78px));z-index:1;
  display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:22px 20px 18px;overflow:auto;
  background:linear-gradient(180deg,#1d3d5fe6,#1d3d5f 38%);color:#fff;font-family:Ploni,Arial,sans-serif;opacity:0;transform:translateY(14px);transition:opacity .42s cubic-bezier(.22,.8,.25,1),transform .42s cubic-bezier(.22,.8,.25,1)}
.ts-team .ts-panel[hidden]{display:none!important}
.ts-team .ts-card.is-open .ts-panel{opacity:1;transform:translateY(0)}
.ts-team .ts-card.is-open .ts-body{background:var(--ts-navy)}
.ts-team .ts-card.is-open .ts-name{color:#fff}
.ts-team .ts-card.is-open .ts-role{color:var(--ts-accent)}
.ts-team .ts-card.is-open .ts-more{background:var(--ts-accent);transform:rotate(180deg)}
.ts-team .ts-card.is-open .ts-more::after{transform:rotate(0deg)}
@keyframes ts-up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.ts-team .ts-panel-title{margin:0;padding-bottom:8px;border-bottom:1px solid #ffffff26;font:700 14px/1.2 Ploni,Arial,sans-serif;color:var(--ts-accent)}
.ts-team .ts-quals{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.ts-team .ts-quals li{position:relative;margin:0;padding:0 16px 0 0;font:400 16px/1.35 Ploni,Arial,sans-serif;color:#e8f0f3}
.ts-team .ts-quals li::before{content:"";position:absolute;right:0;top:.52em;width:7px;height:7px;border-radius:50%;background:var(--ts-accent)}

/* ---- dots ---- */
.ts-team .ts-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;margin:14px 0 0;padding:0;list-style:none}
.ts-team .ts-dot{all:unset;box-sizing:border-box;display:grid;place-items:center;width:28px;height:28px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ts-team .ts-dot::before{content:"";width:9px;height:9px;border-radius:9px;background:#c9d9dc;transition:width .35s cubic-bezier(.3,1.3,.5,1),background-color .3s ease}
.ts-team .ts-dot[aria-current="true"]::before{width:26px;background:var(--ts-navy)}
.ts-team .ts-dot:focus-visible{outline:3px solid var(--ts-teal);outline-offset:-2px;border-radius:50%}
.ts-team .ts-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- responsive: 4 per view desktop, 3 tablet, 2.2 small tablet, 1.25 mobile (peek of the next card) ---- */
@media (max-width:1099px){.ts-team{--ts-per:3}}
@media (max-width:780px){.ts-team{--ts-per:2.2;--ts-gap:14px}}
@media (max-width:640px){
  .ts-team{--ts-per:1.28;--ts-gap:12px;padding:54px 16px 58px}
  .ts-team .ts-head{flex-direction:column;align-items:stretch;gap:18px;margin-bottom:20px}
  .ts-team .ts-ctrl{justify-content:space-between}
  .ts-team .ts-arrow{width:46px;height:46px}
  .ts-team .ts-name{font-size:19px}
  .ts-team .ts-role{font-size:15px}
  .ts-team .ts-body{padding:13px 14px 15px}
  .ts-team .ts-track{scroll-padding-inline:6px}
}
@media (max-width:640px){.ts-team .ts-dots{gap:0}.ts-team .ts-dot{width:22px}.ts-team .ts-dot::before{width:7px;height:7px}.ts-team .ts-dot[aria-current="true"]::before{width:18px}}

.ts-team .ts-body{transition:background-color .42s cubic-bezier(.22,.8,.25,1)}.ts-team .ts-name,.ts-team .ts-role{transition:color .42s cubic-bezier(.22,.8,.25,1)}
@media(prefers-reduced-motion:reduce){.ts-team .ts-panel,.ts-team .ts-body,.ts-team .ts-name,.ts-team .ts-role{transition:none}}
