/* Testimonials pages. Page-level rules only, loaded after the shared sheets.
   The pattern is /community and /press: a flat charcoal hero, cream bands, plain cards, one closing
   call to action. Nothing moves on its own. The shared sheets set very specific, !important rules
   on heroes and cards, so these selectors mirror the ones /community uses.
   No font-family in this file: Cormorant elements carry .tm-display, which /type.css maps. */

/* ───────────── hero: the same flat hero as /community ───────────── */
body.tm section.hero.hero--ira{
  min-height:0 !important;
  height:auto !important;
  background:#0e171f !important;
  background-image:none !important;
}
body.tm section.hero.hero--ira::before,
body.tm section.hero.hero--ira::after{content:none !important;display:none !important;background:none !important;}
html body.tm section.hero.hero--ira > .hero__inner{
  position:relative !important;
  width:100% !important;
  max-width:var(--site-col) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:var(--site-gutter) !important;
  padding-right:var(--site-gutter) !important;
  box-sizing:border-box !important;
  text-align:left !important;
}
body.tm section.hero.hero--ira > .hero__inner > :not(.hero__shot){
  width:auto !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  text-align:left !important;
}
html body.tm section.hero .hero__title em{font-style:italic !important;color:#d8aa6e !important;}
body.tm .hero__sub,
body.tm .sec-lede,
body.tm .about-note{text-wrap:pretty;}
body.tm .hero__actions > a.btn-gold,
body.tm .hero__actions > a.btn-outline--dark{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  min-height:48px !important;
  height:48px !important;
  padding:0 16px !important;
  font-weight:500 !important;
  font-style:normal !important;
  font-size:15px !important;
  line-height:1 !important;
  letter-spacing:.01em !important;
  font-synthesis:none !important;
  text-transform:none !important;
  border-radius:2px !important;
  white-space:nowrap !important;
}
body.tm .hero__actions > a.btn-gold{
  background-color:#d8aa6e !important;
  border:1px solid #d8aa6e !important;
  color:#0e171f !important;
  box-shadow:none !important;
  transform:none !important;
}
body.tm .hero__actions > a.btn-gold:is(:hover,:focus-visible,:active){
  background-color:#8a5a2b !important;
  border-color:#8a5a2b !important;
  color:#eee7d7 !important;
  transform:translateY(-2px) !important;
  box-shadow:0 10px 22px rgba(14,23,31,.28) !important;
}
body.tm .hero__actions > a.btn-outline--dark{
  background:transparent !important;
  border:1px solid rgba(238,231,215,.55) !important;
  color:#eee7d7 !important;
}
body.tm .hero__actions > a.btn-outline--dark:is(:hover,:focus-visible,:active){
  background-color:#b98a4f !important;
  border-color:#b98a4f !important;
  color:#0e171f !important;
}

/* ───────────── content bands: cream, titles and notes left-aligned, like /community ───────────── */
body.tm main > section.lux-split{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  margin:0 !important;
  float:none !important;
  grid-template-columns:none !important;
  gap:0 !important;
  box-sizing:border-box !important;
  padding:72px var(--site-inset) !important;
  background:#f4efe3 !important;
  overflow:hidden !important;
}
/* two cream bands in a row read as one: the second starts one padding below the first card */
body.tm main > section.lux-split + section.lux-split{padding-top:0 !important;}
body.tm section.lux-split .lux-split__copy{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}
body.tm section.lux-split .sec-title{margin:0 0 28px !important;}
body.tm section.lux-split .sec-title em{color:#7a5528 !important;}
body.tm .lux-split__copy > p{max-width:none !important;width:100% !important;}
html body.tm section.lux-split > .lux-split__copy > h2,
html body.tm section.lux-split > .lux-split__copy > p.sec-lede,
html body.tm section.lux-split > .lux-split__copy > p.about-note{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  text-align:left !important;
}
body.tm .about-note{margin-top:18px;padding:16px 18px 16px 20px;border-left:2px solid #d8aa6e;}
body.tm .about-note a.inline{color:#7a5528 !important;}
body.tm main > section.site-close{padding-top:72px !important;padding-bottom:72px !important;}

/* ───────────── cards: two across for four, three across otherwise, a short last row centred ───────────── */
body.tm .tm-voices{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
  gap:22px;
  margin:40px 0 0;
}
body.tm .tm-voices > .tm-voice{
  flex:0 0 calc((100% - 44px) / 3);
  max-width:calc((100% - 44px) / 3);
}
body.tm .tm-voices:is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) > .tm-voice{
  flex-basis:calc((100% - 22px) / 2);
  max-width:calc((100% - 22px) / 2);
}
body.tm .tm-voices:has(> :only-child) > .tm-voice{
  flex-basis:100%;
  max-width:640px;
}
body.tm .tm-voice{
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box;
  min-width:0;
  align-self:stretch !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  background:#fff !important;
  color:#1a222b !important;
  border:0 !important;
  border-top:1px solid #7c5a2c !important;
  border-radius:0 !important;
  box-shadow:0 22px 48px -32px rgba(14,23,31,.55) !important;
}
body.tm .tm-voice__body{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  padding:26px 24px 28px;
}
body.tm .tm-voice__label{
  margin:0 0 12px !important;
  font-size:12px !important;
  font-weight:600 !important;
  letter-spacing:.06em !important;
  line-height:1.4 !important;
  text-transform:uppercase !important;
  color:#7a5528 !important;
}
body.tm .tm-voice__name{
  margin:0 !important;
  font-size:21.6px !important;
  font-weight:500 !important;
  line-height:1.25 !important;
  letter-spacing:.01em !important;
  text-transform:none !important;
  color:#7a5528 !important;
}
body.tm .tm-voice__role{
  margin:6px 0 0 !important;
  font-size:14px !important;
  line-height:1.5 !important;
  color:rgba(26,34,43,.74) !important;
}
body.tm .tm-voice__role::after{
  content:"";
  display:block;
  width:36px;
  height:1px;
  margin-top:14px;
  background:#d8aa6e;
}
body.tm .tm-voice__quote{
  margin:14px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  quotes:"\201C" "\201D";
  font-size:16.5px !important;
  line-height:1.65 !important;
  color:#1a222b !important;
}
body.tm .tm-voice__quote::before{content:open-quote;}
body.tm .tm-voice__quote::after{content:close-quote;}

/* a screenshot sits where the quote would */
body.tm .tm-voice__shot{
  display:block;
  width:100%;
  margin:18px 0 0;
  padding:0;
  border:0;
  background:transparent;
  cursor:zoom-in;
}
body.tm .tm-voice__shot + .tm-voice__shot{margin-top:12px;}
body.tm .tm-voice__shot img{display:block;width:100%;height:auto;border:1px solid rgba(26,34,43,.14);}
body.tm .tm-voice__shot:focus-visible{outline:2px solid #7a5528;outline-offset:3px;}

/* a video still, with a play button */
body.tm .tm-voice__media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16/9;
  padding:0;
  border:0;
  background:#0e171f;
  overflow:hidden;
  cursor:pointer;
}
body.tm .tm-voice__media > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
body.tm .tm-voice__media:focus-visible{outline:2px solid #d8aa6e;outline-offset:-4px;}
body.tm .tm-play{
  position:absolute;
  left:50%;
  top:50%;
  width:62px;
  height:62px;
  margin:-31px 0 0 -31px;
  border-radius:50%;
  background:#d8aa6e;
  box-shadow:0 12px 36px rgba(0,0,0,.35);
  transition:background .2s,transform .25s;
}
body.tm .tm-play::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-36%,-50%);
  border-style:solid;
  border-width:9px 0 9px 15px;
  border-color:transparent transparent transparent #0e171f;
}
body.tm .tm-play::after{content:"";position:absolute;inset:-9px;border-radius:50%;border:1px solid rgba(216,170,110,.55);}
body.tm .tm-voice__media:is(:hover,:focus-visible) .tm-play{background:#b98a4f;transform:scale(1.06);}

/* ───────────── the viewer: a video or a screenshot full size ───────────── */
.tm-lb{width:min(1100px,94vw);max-width:none;max-height:none;margin:auto;padding:0;border:0;background:transparent;overflow:visible;color:#eee7d7;}
.tm-lb::backdrop{background:rgba(8,13,18,.9);}
.tm-lb__frame{position:relative;display:flex;flex-direction:column;align-items:center;gap:20px;}
.tm-lb__stage{display:grid;place-items:center;width:100%;}
.tm-lb__stage iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000;box-shadow:0 60px 120px -40px rgba(0,0,0,.8);}
.tm-lb__stage img{display:block;width:auto;height:auto;max-width:100%;max-height:76vh;object-fit:contain;border-radius:3px;box-shadow:0 60px 120px -40px rgba(0,0,0,.8);}
.tm-lb__cap{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;}
.tm-lb__who{font-size:1.7rem;line-height:1.1;font-style:italic;font-weight:500;}
.tm-lb__role{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:rgba(238,231,215,.74);}
.tm-lb__close,.tm-lb__nav{display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid rgba(238,231,215,.42);background:rgba(14,23,31,.7);color:#eee7d7;transition:background .2s,color .2s,border-color .2s;}
.tm-lb__close:hover,.tm-lb__nav:hover{background:#b98a4f;color:#0e171f;border-color:#b98a4f;}
.tm-lb__close{position:absolute;right:0;top:-58px;width:46px;height:46px;font-size:28px;line-height:1;}
.tm-lb__nav{position:absolute;top:calc(50% - 56px);width:50px;height:50px;}
.tm-lb__prev{left:-70px;}
.tm-lb__next{right:-70px;}
.tm-lb__nav[hidden]{display:none;}
.tm-lb :focus-visible{outline:2px solid #d8aa6e;outline-offset:3px;}

/* ───────────── narrower screens ───────────── */
@media (max-width:1180px){
  .tm-lb__prev{left:8px;}
  .tm-lb__next{right:8px;}
  .tm-lb__nav{top:auto;bottom:70px;background:rgba(14,23,31,.82);}
}
@media (max-width:1024px){
  body.tm .tm-voices > .tm-voice,
  body.tm .tm-voices:is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) > .tm-voice{
    flex-basis:calc((100% - 22px) / 2);
    max-width:calc((100% - 22px) / 2);
  }
}
@media (max-width:768px){
  body.tm main > section.lux-split{padding:56px 20px !important;}
  body.tm main > section.lux-split + section.lux-split{padding-top:0 !important;}
  body.tm main > section.site-close{padding-top:56px !important;padding-bottom:56px !important;}
  body.tm .tm-lb__close{top:-54px;}
}
@media (max-width:680px){
  body.tm .tm-voices{margin-top:32px;}
  body.tm .tm-voices > .tm-voice,
  body.tm .tm-voices:is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) > .tm-voice,
  body.tm .tm-voices:has(> :only-child) > .tm-voice{
    flex-basis:100%;
    max-width:none;
  }
  body.tm .tm-voice__body{padding:24px 20px 26px;}
  body.tm .hero__actions > a.btn-gold,
  body.tm .hero__actions > a.btn-outline--dark{width:auto !important;max-width:100% !important;}
}
@media (prefers-reduced-motion:no-preference){
  .tm-lb[open]::backdrop{animation:tm-fade .3s ease both;}
  .tm-lb[open] .tm-lb__frame{animation:tm-lb-in .35s ease both;}
}
@keyframes tm-fade{from{opacity:0;}to{opacity:1;}}
@keyframes tm-lb-in{from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:none;}}
