/* DNine Testimonials block (1.0.64): scroller, grid, single large quote and compact list.
   Colours are the store's own brand hex values (the same ones css/app.css uses), so the Light / Dark / Neutral brand palettes
   (App\Support\BrandTheme, served as /brand-theme?f=css/testimonials.css) re-colour this file too. Do not add other hex values.
   The default card is the homepage's original testimonial card, so a block with default options looks like the homepage always did. */
.tm{box-sizing:border-box;font-family:Nunito,'Helvetica Neue',Helvetica,Arial,sans-serif}
.tm *,.tm *::before,.tm *::after{box-sizing:border-box}
.tm-in{max-width:1440px;margin:0 auto;padding:clamp(32px,5vw,64px) clamp(16px,4vw,32px) 0}
.tm--home .tm-in{padding-top:clamp(64px,9vw,128px)}
.tm--bg{padding-bottom:clamp(32px,5vw,64px)}

/* heading */
.tm-head{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;margin-bottom:clamp(28px,4vw,48px)}
.tm-eyebrow{font-size:12px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:#9A6C06}
.tm-title{margin:0;font-family:Fredoka,'Mazzard Soft H',sans-serif;font-weight:600;letter-spacing:-.02em;font-size:clamp(34px,4.2vw,64px);line-height:.95}
.tm--home .tm-title{font-size:clamp(44px,5.4vw,80px)}
.tm-title em{font-style:normal;color:#9A6C06}
.tm-sub{margin:0;max-width:640px;font-size:16px;line-height:1.7;color:#4A2B31;text-wrap:pretty}

/* lists */
.tm-track,.tm-grid,.tm-listing{list-style:none;margin:0;padding:0}
.tm-slide{display:flex;min-width:0}

/* card (the homepage card) */
.tm-card{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:20px;background:#FFFCF6;border:1px solid #E4D8C5;border-radius:32px;padding:clamp(24px,3vw,36px);color:#5A1629}
.tm-cs-shadow .tm-card{border-color:transparent;box-shadow:0 10px 30px rgba(42,12,20,.12)}
.tm-cs-flat .tm-card{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;color:inherit}
.tm-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;height:30px}
.tm-mark{font-family:Fredoka,'Mazzard Soft H',sans-serif;font-weight:600;letter-spacing:-.015em;font-size:72px;line-height:.5;color:#D49F0B;height:30px}
.tm-stars{display:inline-flex;gap:2px;font-size:18px;line-height:1;color:#D49F0B;letter-spacing:0}
.tm-stars .off{opacity:.28}
.tm-quote{margin:0;font-family:Fredoka,'Mazzard Soft H',sans-serif;font-weight:600;letter-spacing:-.015em;font-size:24px;line-height:1.3;text-wrap:pretty;flex:1;overflow-wrap:anywhere}
.tm-by{display:flex;align-items:center;gap:12px;border-top:1px solid #E4D8C5;padding-top:16px}
.tm-ph,.tm-ini{flex:0 0 auto;width:48px;height:48px;border-radius:50%}
.tm-ph{object-fit:cover;background:#EFE6D6}
.tm-ini{background:#6A1B32;color:#F7F1E7;display:grid;place-items:center;font-weight:800}
.tm-who{display:flex;flex-direction:column;min-width:0}
.tm-name{font-weight:800;font-size:14px;overflow-wrap:anywhere}
.tm-role,.tm-meta{font-size:12px;color:#7A6653;overflow-wrap:anywhere}
.tm-meta{display:flex;flex-wrap:wrap;gap:2px 10px;margin-top:2px}
.tm-badge{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;margin-top:3px;padding:2px 8px;border-radius:999px;background:#EFE6D6;color:#5A1629;font-size:11px;font-weight:800;letter-spacing:.02em}
.tm-badge svg{width:11px;height:11px}
.tm-src{display:inline-flex;align-items:center;gap:4px}
.tm-src svg{width:12px;height:12px;flex:0 0 auto}
.tm a.tm-src,.tm a.tm-prod{color:#7A6653;text-decoration:underline;text-underline-offset:2px}
.tm a.tm-src:hover,.tm a.tm-prod:hover{color:#9A6C06}
.tm-prod{font-weight:800;font-size:12px;margin-top:3px;align-self:flex-start;color:#7A6653}

/* grid */
.tm{--g:16px}
.tm-cs-flat{--g:32px}
.tm-grid{display:grid;gap:var(--g);grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.tm-cs-flat .tm-grid{row-gap:44px}
.tm-grid[data-cols="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.tm-grid[data-cols="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.tm-grid[data-cols="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1099px){.tm-grid[data-cols="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:899px){.tm-grid[data-cols="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:639px){.tm-grid[data-cols="2"],.tm-grid[data-cols="3"],.tm-grid[data-cols="4"]{grid-template-columns:minmax(0,1fr)}}

/* scroller + single: a plain CSS scroll-snap strip that works without JavaScript; js/testimonials.js adds the buttons and autoplay */
.tm-car{position:relative;--n:var(--tm-d,3)}
.tm-track{position:relative;display:flex;gap:var(--g);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding:4px 0 20px;margin-bottom:-12px;-webkit-overflow-scrolling:touch}
.tm-track::-webkit-scrollbar{display:none}
.tm-track:focus-visible{outline:3px solid #6A1B32;outline-offset:2px;border-radius:12px}
.tm-noswipe .tm-track{touch-action:pan-y}
.tm-car .tm-slide{flex:0 0 calc((100% - (var(--n) - 1) * var(--g)) / var(--n));scroll-snap-align:start}
@media (max-width:1023px){.tm-car{--n:var(--tm-t,2)}}
@media (max-width:639px){.tm-car{--n:var(--tm-m,1)}}
.tm--single .tm-car{--n:1;max-width:980px;margin:0 auto}
.tm--single .tm-card{align-items:center;text-align:center}
.tm--single .tm-top{justify-content:center}
.tm--single .tm-quote{font-size:clamp(24px,3vw,40px);line-height:1.25}
.tm--single .tm-by{border-top:0;justify-content:center;text-align:left}

/* scroller buttons and dots */
.tm-ctl{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:8px;min-height:44px}
.tm-btn{flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:1px solid #D9CBB6;background:#FFFCF6;color:#5A1629;display:inline-grid;place-items:center;padding:0;cursor:pointer}
.tm-btn:hover{background:#6A1B32;border-color:#6A1B32;color:#F7F1E7}
.tm-btn[aria-disabled="true"]{opacity:.45;cursor:default}
.tm-btn[aria-disabled="true"]:hover{background:#FFFCF6;border-color:#D9CBB6;color:#5A1629}
.tm-btn svg{width:18px;height:18px}
.tm-btn:focus-visible,.tm-dot:focus-visible,.tm-more:focus-visible,.tm a.tm-src:focus-visible,.tm a.tm-prod:focus-visible,.tm-pg:focus-visible{outline:3px solid #6A1B32;outline-offset:2px}
.tm-play .i-play{display:none}
.tm-play[data-state="paused"] .i-play{display:block}
.tm-play[data-state="paused"] .i-pause{display:none}
.tm-dots{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:0}
.tm-dot{position:relative;width:24px;height:24px;border:0;background:transparent;padding:0;cursor:pointer}
.tm-dot::before{content:"";position:absolute;inset:7px;border-radius:999px;background:#D9CBB6;transition:inset .15s ease,background-color .15s ease}
.tm-dot[aria-current="true"]::before{inset:7px 3px;background:#6A1B32}
@media (max-width:639px){.tm-ctl{flex-wrap:wrap;row-gap:2px}.tm-dots{order:2;flex:1 0 100%}}

/* compact list: avatar, stars, quote and name in one calm column */
.tm-listing{max-width:860px;margin:0 auto;display:flex;flex-direction:column}
.tm--list .tm-slide{border-bottom:1px solid #E4D8C5;padding:22px 0}
.tm--list .tm-slide:last-child{border-bottom:0}
.tm--list .tm-card{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;color:inherit;display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-areas:"ph top" "ph quote" "ph who";column-gap:16px;row-gap:6px;align-items:start}
.tm--list .tm-nophoto .tm-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "quote" "who"}
.tm--list .tm-by{display:contents}
.tm--list .tm-ph,.tm--list .tm-ini{grid-area:ph}
.tm--list .tm-top{grid-area:top;height:auto}
.tm--list .tm-mark{display:none}
.tm--list .tm-top:empty{display:none}
.tm--list .tm-quote{grid-area:quote;font-size:18px;line-height:1.5;flex:none}
.tm--list .tm-who{grid-area:who;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
@media (max-width:639px){.tm--list .tm-card{grid-template-columns:40px minmax(0,1fr);column-gap:12px}.tm--list .tm-ph,.tm--list .tm-ini{width:40px;height:40px}.tm--list .tm-quote{font-size:16px}}

/* link below, pager, empty note */
.tm-morewrap{display:flex;justify-content:center;margin-top:40px}
.tm-more{background:transparent;border:1px solid #6A1B32;border-radius:999px;height:52px;padding:0 30px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;display:inline-flex;align-items:center;color:#5A1629}
.tm-more:hover{background:#6A1B32;color:#F7F1E7}
.tm-pager{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:36px}
.tm-pg{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border-radius:999px;border:1px solid #D9CBB6;background:#FFFCF6;color:#5A1629;font-size:13px;font-weight:800}
.tm-pg:hover{background:#6A1B32;border-color:#6A1B32;color:#F7F1E7}
.tm-pg[aria-current="page"]{background:#6A1B32;border-color:#6A1B32;color:#F7F1E7}
.tm-empty{margin:0;text-align:center;font-size:16px;color:#7A6653}

/* section background chosen in the editor ([data-hx] is only printed when the owner chose a colour; readable text follows it) */
.tm--bg[data-hx="light"] .tm-eyebrow{color:#D49F0B}
.tm--bg[data-hx="light"] .tm-title em{color:#D49F0B}
.tm--bg[data-hx="dark"] .tm-eyebrow{color:#9A6C06}
.tm--bg[data-hx="dark"] .tm-title em{color:#9A6C06}
.tm--bg[data-hx="light"] .tm-dot::before{background:#8A3A52}
.tm--bg[data-hx="light"] .tm-dot[aria-current="true"]::before{background:#F7F1E7}
.tm--bg[data-hx="light"] .tm-more{border-color:#F7F1E7;color:#F7F1E7}
.tm--bg[data-hx="light"] .tm-pg{border-color:#8A3A52}
.tm--bg[data-hx="light"].tm-cs-flat .tm-role,.tm--bg[data-hx="light"].tm-cs-flat .tm-meta,.tm--bg[data-hx="light"].tm--list .tm-role,.tm--bg[data-hx="light"].tm--list .tm-meta,.tm--bg[data-hx="light"].tm-cs-flat a.tm-src,.tm--bg[data-hx="light"].tm--list a.tm-src{color:#EAD9DD}
.tm--bg[data-hx="light"].tm-cs-flat .tm-by,.tm--bg[data-hx="light"].tm--list .tm-slide{border-color:#8A3A52}
.tm--bg[data-hx="light"].tm-cs-flat .tm-badge,.tm--bg[data-hx="light"].tm--list .tm-badge{background:#8A3A52;color:#F7F1E7}

@media (prefers-reduced-motion:reduce){.tm-track{scroll-behavior:auto}.tm-dot::before{transition:none}}
