/* Declare & Believe — "How the Word has met people" testimonial wall.
   Injected by /declare/testimonials.js into [data-testimonials]. Container-
   responsive (one column in the narrow About frame, a grid on the wide Welcome
   page). Uses declare.css tokens. */

.tw { width: 100%; }
.tw-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.tw-h { font-family: 'Cormorant Garamond', serif; font-size: clamp(27px, 4.4vw, 40px); font-weight: 600;
  color: var(--text); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.tw-avg { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.tw-avgnum { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 600; color: var(--text); line-height: 1; }
.tw-avgof { font-size: 13px; color: var(--muted); margin-left: -6px; }
.tw-avgstars { display: inline-flex; gap: 3px; }
.tw-count { font-size: 12px; color: var(--goldd); letter-spacing: .04em; }

/* Three-dimension breakdown (Met you / The Word / Coming back) — Airbnb category
   ratings adapted to Declare's three questions. */
.tw-dims { display: flex; flex-direction: column; gap: 12px; margin: 24px auto 0; max-width: 440px; }
.tw-dim { display: flex; align-items: center; gap: 12px; }
.tw-dim-lbl { font-size: 13px; color: var(--text2, var(--text)); white-space: nowrap; min-width: 96px; text-align: right; }
.tw-dim-bar { position: relative; flex: 1; height: 5px; border-radius: 999px; min-width: 70px;
  background: color-mix(in srgb, var(--line2) 70%, transparent); overflow: hidden; }
.tw-dim-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--goldd)); }
.tw-dim-num { font-size: 13px; font-weight: 600; color: var(--goldd); min-width: 24px; }

.tw-star { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; }
.tw-star path { fill: none; stroke: var(--line2); stroke-width: 1.4; }
.tw-star.on path { fill: var(--gold); stroke: var(--gold); }

/* Marquee — continuous horizontal auto-scroll (oevra "words of affirmation"). */
.tw-marquee { position: relative; margin-top: 44px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tw-marquee::before { content: ''; position: absolute; inset: -12% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(48% 120% at 50% 50%, rgba(216, 184, 95, .12), transparent 72%); }
.tw-track { position: relative; z-index: 1; display: flex; align-items: stretch; gap: 20px; width: max-content;
  animation: tw-scroll var(--tw-dur, 60s) linear infinite; }
@keyframes tw-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tw-marquee:hover .tw-track { animation-play-state: paused; }

/* JS-enhanced (testimonials.js): auto-scrolls, but you can grab/swipe to slide it
   and it pauses while you read, then drifts again. JS owns the transform. */
.tw-marquee.tw-js { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tw-marquee.tw-js.tw-grabbing { cursor: grabbing; }
.tw-marquee.tw-js .tw-track { animation: none; will-change: transform; }

.tw-card { flex: 0 0 auto; width: clamp(282px, 82vw, 386px); border-radius: 22px; padding: 32px 30px;
  display: flex; flex-direction: column; gap: 22px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tw-mark { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); flex: 0 0 auto; }
.tw-quote { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(20px, 2.3vw, 24px); line-height: 1.36; color: var(--text); text-wrap: pretty; }
.tw-div { display: block; }
.tw-name { margin-top: auto; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--goldd); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  /* No-JS fallback only: a static, natively-swipeable row. When JS is active
     (.tw-js) it stops auto-drift but keeps drag, so these must not override it. */
  .tw-marquee:not(.tw-js) .tw-track { animation: none; transform: none; }
  .tw-marquee:not(.tw-js) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
