/* The Quotes section's long words and window. Cards end level, the words are cut after a few
   lines (Read more shows only when they overflow, testimonials.js), the person stays at the foot. */
.cms-quotes { align-items: stretch; }
.cms-quote__body { flex: 1; }
.cms-quote .cms-tm-foot { margin-top: auto; }
.cms-tm-cut blockquote { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.cms-tm-l3 blockquote { -webkit-line-clamp: 3; line-clamp: 3; }
.cms-tm-l4 blockquote { -webkit-line-clamp: 4; line-clamp: 4; }
.cms-tm-l6 blockquote { -webkit-line-clamp: 6; line-clamp: 6; }
.cms-tm-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: none; }
.cms-tm-more[hidden] { display: none; }
.cms-tm-more::after { content: "\2192"; transition: transform .18s cubic-bezier(.22, .7, .3, 1); }
.cms-tm-more:hover::after { transform: translateX(3px); }
.cms-tm-more:focus-visible, .cms-tm-x:focus-visible, .cms-tm-nav button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[data-theme="dark"] .cms-tm-more { color: color-mix(in oklab, var(--blue) 55%, white); }
.cms-quote figcaption.cms-tm-who { flex-direction: row; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.cms-tm-av { width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; font: 700 13px var(--font-body); color: var(--gold-deep); background: color-mix(in oklab, var(--gold-deep) 14%, var(--card)); }
.cms-quote .cms-tm-av { font-size: 13px; color: var(--gold-deep); }
.cms-tm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-tm-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cms-tm-id b { font-size: 14.5px; }
.cms-tm-none { margin: 0; text-align: center; color: var(--muted); }
.cms-quotes .cms-stars svg { width: 16px; height: 16px; }

/* The window: a card over the page on a computer, a sheet from below on a phone. */
.cms-tm-lock { overflow: hidden; }
.cms-tm-ov { position: fixed; inset: 0; z-index: 2147483000; background: rgba(10, 14, 22, .52); display: grid; place-items: center; padding: 24px; animation: cms-tm-fade .16s ease-out; }
.cms-tm-win { position: relative; width: min(640px, 100%); max-height: calc(100vh - 80px); overflow: auto; background: var(--card, #fff); color: var(--ink); border-radius: 18px; padding: 36px 40px 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); animation: cms-tm-rise .2s cubic-bezier(.22, .7, .3, 1); }
.cms-tm-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--ink); font: inherit; font-size: 20px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.cms-tm-win .cms-stars { display: flex; gap: 2px; }
.cms-tm-win .cms-stars svg { width: 16px; height: 16px; fill: var(--gold-deep); }
.cms-tm-mark { display: block; margin: 8px 0 6px; font: 700 54px/.6 var(--font-display); color: var(--gold-deep); }
.cms-tm-win p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.cms-tm-win .cms-tm-who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); }
.cms-tm-win .cms-tm-id b { display: block; font-weight: 800; color: var(--ink); font-size: 14.5px; }
.cms-tm-win .cms-tm-id span { font-size: 13px; color: var(--muted); }
.cms-tm-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.cms-tm-nav button { border: 1px solid var(--border); background: transparent; color: var(--ink); border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cms-tm-nav button[disabled] { opacity: .4; cursor: default; }
.cms-tm-grab { display: none; }
@media (max-width: 600px) {
  .cms-tm-ov { place-items: end stretch; padding: 0; }
  .cms-tm-win { width: 100%; max-height: 82vh; border-radius: 20px 20px 0 0; padding: 14px 22px 26px; animation-name: cms-tm-up; }
  .cms-tm-grab { display: block; width: 40px; height: 4px; border-radius: 9px; background: var(--border); margin: 0 auto 14px; }
  .cms-tm-x { top: 12px; right: 12px; width: 32px; height: 32px; }
  .cms-tm-win p { font-size: 16px; }
}
@keyframes cms-tm-fade { from { opacity: 0; } }
@keyframes cms-tm-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes cms-tm-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .cms-tm-ov, .cms-tm-win { animation: none; } .cms-tm-more::after { transition: none; } }

/* A testimonial's own page (/testimonials/<slug>, front/testimonials.php): a narrow reading column. */
.cms-tm-pg { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.cms-tm-crumb { margin: 0 0 26px; font-size: 13px; color: var(--muted); }
.cms-tm-crumb a { color: var(--muted); text-decoration: none; }
.cms-tm-crumb a:hover { color: var(--ink); text-decoration: underline; }
.cms-tm-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cms-tm-pg .cms-stars { display: flex; gap: 2px; }
.cms-tm-pg .cms-stars svg { width: 18px; height: 18px; fill: var(--gold-deep); }
.cms-tm-pg .cms-tm-mark { margin: 10px 0 4px; font-size: 72px; }
.cms-tm-pg p { margin: 0 0 16px; font-family: var(--font-display); font-size: 20px; line-height: 1.65; color: var(--ink); }
.cms-tm-pg .cms-tm-who { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.cms-tm-pg .cms-tm-av { width: 52px; height: 52px; font-size: 16px; }
.cms-tm-pg .cms-tm-id b { display: block; font-weight: 800; color: var(--ink); font-size: 14.5px; }
.cms-tm-pg .cms-tm-id span { font-size: 13px; color: var(--muted); }
.cms-tm-pg .cms-tm-id a { font-size: 13px; color: var(--blue); }
.cms-tm-back { display: inline-flex; margin-top: 30px; font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; }
.cms-tm-back:hover { text-decoration: underline; }
[data-theme="dark"] .cms-tm-back, [data-theme="dark"] .cms-tm-pg .cms-tm-id a { color: color-mix(in oklab, var(--blue) 55%, white); }
@media (max-width: 600px) { .cms-tm-pg { padding: 34px 18px 28px; } .cms-tm-pg p { font-size: 18px; } }
