/* Rotating written testimonials (index.html #reviews, iam-essentials.html #stories).
   Markup: <div class="qc" data-carousel aria-label="..."> holding one <figure class="quote">
   per quote. Without JS the quotes stay a plain stacked list; quote-carousel.js adds .is-ready
   and the controls. Page tokens (--card, --accent, --mono...) come from each page's :root. */
.qc{margin:40px auto 0;max-width:760px}
.qc-start{margin-left:0}
.qc.qc-start.is-ready .qc-ctrl{justify-content:flex-start}
.qc-track{display:grid;gap:20px}
/* Every slide shares one grid cell, so the track is as tall as the longest quote:
   no layout shift when slides change, and no hand-tuned min-height to go stale. */
.qc.is-ready .qc-track{gap:0}
.qc.is-ready .quote{grid-area:1/1;visibility:hidden;opacity:0;transition:opacity .35s ease,visibility 0s linear .35s}
.qc.is-ready .quote.is-active{visibility:visible;opacity:1;transition:opacity .35s ease}
.qc-ctrl{display:none}
.qc.is-ready .qc-ctrl{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:20px}
.qc-btn{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:50%;border:1px solid var(--border-strong);background:var(--card);color:var(--accent-text);cursor:pointer;padding:0}
.qc-btn:hover{border-color:var(--accent)}
.qc-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.qc-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:2px}
/* 24px hit area around an 8px dot (WCAG 2.5.8 target size). */
.qc-dot{width:24px;height:24px;border:0;background:none;padding:0;cursor:pointer;display:grid;place-items:center}
.qc-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--border-strong)}
.qc-dot[aria-current="true"]::before{background:var(--accent)}
/* Phones: buttons on one row, dots on their own row under them (11 dots + 3 buttons do not fit 327px). */
@media (max-width:560px){.qc.is-ready .qc-ctrl{flex-wrap:wrap;gap:10px}.qc-dots{order:1;flex-basis:100%}.qc.qc-start.is-ready .qc-ctrl .qc-dots{justify-content:flex-start}}
