/* tcards.css v1.0 (2026-11-13) — the two canonical testimonial cards (Black Friday board row B47).
   tq-card = text testimonial (the white homepage t-card, Aaron 2026-11-12); tv-card = video testimonial cover (mockup v3).
   Canon: Teams/Marketing/marketing-agent/testimonial-cards-skill.md v2.0. Data: testimonials_live via testimonials.py.
   Tokens are the homepage testimonial tokens (Platform/go/home --tc-*). Scoped classes: safe beside the scroller's t-card. */
.tq-grid, .tv-grid, .tm-grid {
  --tm-white: #FFFFFF; --tm-navy: #1B2A4A; --tm-ink: #0A0A0B; --tm-body: #333333; --tm-dim: #5A5C66;
  --tm-turquoise: #52CDBD; --tm-green: #00B67A; --tm-green-deep: #009663; --tm-radius: 12px;
  --tm-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.08);
  --tm-shadow-hover: 0 2px 4px rgba(15,23,42,.08), 0 16px 36px rgba(15,23,42,.14);
  --tm-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch;
  font-family: var(--tm-font); text-align: left;
}
@media (max-width: 860px) { .tq-grid, .tv-grid, .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tq-grid, .tv-grid, .tm-grid { grid-template-columns: 1fr; } }

/* ---------- text card: one size (excerpt max 240 characters) ---------- */
.tq-card { background: var(--tm-white); border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); padding: 22px;
  display: flex; flex-direction: column; min-width: 0; min-height: 300px; margin: 0; }
.tq-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tq-mark { font-family: Georgia, 'Times New Roman', serif; font-size: 44px; line-height: 1; font-weight: 700; color: var(--tm-turquoise); }
.tq-quote { font-size: 14px; line-height: 1.6; color: var(--tm-body); margin: 4px 0 18px; flex-grow: 1; }
.tq-quote strong { color: var(--tm-ink); font-weight: 700; }
.tq-person { display: flex; align-items: center; gap: 12px; }
.tq-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #f0f0f0; flex-shrink: 0; }
.tm-name { font-size: 13px; font-weight: 700; color: var(--tm-navy); line-height: 1.2; }
.tm-role { font-size: 11.5px; color: var(--tm-dim); margin-top: 2px; line-height: 1.3; }
.tm-stars { color: var(--tm-green); font-size: 14px; line-height: 1; letter-spacing: 1.5px; flex-shrink: 0; }

/* ---------- video card ---------- */
.tv-card { background: var(--tm-white); border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; cursor: pointer; outline: none; margin: 0;
  transition: transform .25s ease, box-shadow .25s ease; }
.tv-card:hover, .tv-card:focus-visible { transform: translateY(-3px); box-shadow: var(--tm-shadow-hover); }
.tv-card:focus-visible { box-shadow: 0 0 0 3px var(--tm-turquoise), var(--tm-shadow-hover); }
.tv-media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #111; overflow: hidden; }
.tv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-poster { transition: transform 6s ease-out; }
.tv-preview { opacity: 0; transition: opacity .45s ease; }
.tv-card.is-live .tv-preview { opacity: 1; }
.tv-card:hover .tv-poster { transform: scale(1.04); }
.tv-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); }
.tv-watch { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(10,10,11,.58); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: background .25s ease; }
.tv-len { font-weight: 500; opacity: .8; }
.tv-play { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--tm-green); display: grid; place-items: center;
  flex-shrink: 0; transition: transform .25s ease, background .25s ease; }
.tv-play::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: tv-ring 2.6s ease-out infinite; }
.tv-play svg { width: 13px; height: 13px; margin-left: 2px; fill: #fff; }
.tv-card:hover .tv-play, .tv-card:focus-visible .tv-play { transform: scale(1.08); background: var(--tm-green-deep); }
.tv-card:hover .tv-watch, .tv-card:focus-visible .tv-watch { background: rgba(10,10,11,.75); }
@keyframes tv-ring { 0% { transform: scale(.85); opacity: .9; } 70% { transform: scale(1.3); opacity: 0; } 100% { opacity: 0; } }
.tv-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 16px; margin-top: auto; }
.tv-who { min-width: 0; }

/* ---------- player overlay (click a video card) ---------- */
.tv-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(10,10,11,.86); display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.tv-overlay[hidden] { display: none !important; }
.tv-frame { width: min(960px, 100%); }
.tv-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; display: block; }
.tv-cap { color: #fff; font-family: var(--tm-font, 'Montserrat', Arial, sans-serif); font-size: 13px; margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; }
.tv-close { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .tv-play::before { animation: none; }
  .tv-card, .tv-poster, .tv-play { transition: none; }
  .tv-card:hover .tv-poster { transform: none; }
}
