/* Testimonial slider fixes shared by every page that has one (Home, Fractional
   COO, Build Ops, Training). Loaded after each page's own styles.

   1. The arrow and pause/play buttons are locked to 40x40 circles, and the dots
      to their own size, so no browser (Safari on iPhone in particular) can
      stretch or squash them inside the control row.
   2. Each testimonial keeps its own height instead of every slide stretching to
      the tallest one; slider.js then sizes the box to the testimonial showing,
      so short quotes no longer sit above a block of empty space. */

#quotes .sctl{flex-wrap:nowrap}
#quotes .sbtn{-webkit-appearance:none;appearance:none;box-sizing:border-box;flex:0 0 40px;
  width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px;max-height:40px;aspect-ratio:1;
  display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;line-height:0;border-radius:50%}
#quotes .sbtn svg{flex:none;display:block}
#quotes .dots{flex:none}
#quotes .dots button{-webkit-appearance:none;appearance:none;flex:0 0 22px;width:22px;height:40px;padding:0;margin:0}

#quotes .track{align-items:flex-start;overflow-y:hidden;transition:height .35s ease;
  /* keep every quote inside its box: Safari on iPhone does not always clip a
     sideways-scrolling strip, which let text run down under the controls */
  contain:paint;clip-path:inset(0)}
/* the controls sit in their own row below the quote, on the box's white */
#quotes .sctl{position:relative;z-index:1;background:#fff}
/* A slide is never wider than the box. Without this, a line that will not wrap
   (Safari on iPhone kept "Founder • Mawu Greetings" on one line) made the whole
   slide wider than the box, so every line of the quote ran off the right edge. */
#quotes .track figure{min-width:0;max-width:100%;box-sizing:border-box}
#quotes .track blockquote,#quotes .track figcaption,#quotes .track figcaption span{min-width:0;max-width:100%;overflow-wrap:break-word}
/* phones: "Role • Company" stays on one line when it fits; when it does not,
   slider.js adds .stacked and the company drops to its own line. The dot always
   follows the role ("Founder •" then the company underneath). */
@media(max-width:700px){
  #quotes .track .sep{display:inline}
  #quotes .track .role{display:inline}
  #quotes .track .co{display:inline}
  #quotes .track .stacked .co{display:block}
  /* shorter boxes on phones, so the arrows stay clear of Safari's floating
     address bar even on the longest quotes */
  #quotes .track blockquote{font-size:16px;line-height:1.55}
  #quotes .track figcaption img{width:72px;height:72px}
  #quotes .track figcaption{gap:12px;padding-bottom:16px;margin-bottom:18px}
  /* the headshot sits above the name, role and company instead of beside them */
  #quotes .track figcaption{flex-direction:column;align-items:flex-start;gap:14px}
}

/* small phones: tighter dots and gaps so the whole control row (three buttons
   and up to seven dots on Home) always fits inside the box */
@media(max-width:420px){
  #quotes .sctl{gap:6px}
  #quotes .dots button{flex-basis:16px;width:16px}
  #quotes .dots button::before{width:8px;height:8px}
}
@media(prefers-reduced-motion:reduce){#quotes .track{transition:none}}
