/* Al Basira v5m: student stories (testimonials.html, and the home band). Loads after v3.css, pub3.css and v3-vis.css
   (colours .c-lv1 green, .c-lv2 blue, .c-lv3 red, .c-ws gold, .c-sp violet; .ic-tile). Everything here is prefixed tm-. */
.tm{gap:56px}
.tm section{min-width:0}
#tmRoot{display:flex;flex-direction:column;gap:56px;min-width:0}
.tm .sr-only,.tm-band .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ------------------------------------------------ hero: words on the left, two speech bubbles on the right */
.tm-hero{padding:40px 40px 36px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:28px;align-items:center;border-radius:16px;
  background:radial-gradient(120% 90% at 100% 0%,color-mix(in srgb,var(--band2) 70%,transparent),transparent 60%),var(--band)}
.tm-hero-txt{display:flex;flex-direction:column;gap:12px;min-width:0;position:relative;z-index:1}
.tm-hero .arh{text-align:left;margin-top:-4px}
.tm-hero p{font-size:17.5px;max-width:52ch}
.tm-hfacts{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tm-hfacts li{display:inline-flex;align-items:center;gap:9px;font-size:14px;line-height:1.3;padding:4px 14px 4px 4px;border-radius:99px;background:color-mix(in srgb,#F7F4EE 8%,transparent);color:var(--on-band)}
.tm-lt{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:99px;flex:none;background:color-mix(in srgb,#F7F4EE 14%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,#F7F4EE 18%,transparent);color:#F7F4EE}
.tm-lt.y{color:#E9C77F}.tm-lt.g{color:#86D3AE}.tm-lt.p{color:#F5A3C7}
.tm-art{width:100%;max-width:400px;justify-self:end;height:auto;overflow:visible}
.tm-art .k-spark{fill:#E2C27F;opacity:.9}
.tm-art .k-cream{fill:#F7F4EE}
.tm-art .k-violet{fill:#B7A9F0}
.tm-art .k-qm{fill:#B8322A}
.tm-art .k-txl{fill:none;stroke:#0C2B4B;stroke-opacity:.22;stroke-width:5;stroke-linecap:round}
.tm-art .k-onl{fill:none;stroke:#0C2B4B;stroke-opacity:.35;stroke-width:5;stroke-linecap:round}
.tm-art .k-dash{fill:none;stroke:#F7F4EE;stroke-opacity:.5;stroke-width:3;stroke-dasharray:2 9;stroke-linecap:round}
.tm-art .k-g{fill:#7FCBA6}.tm-art .k-b{fill:#8DB6EA}.tm-art .k-r{fill:#F08A80}.tm-art .k-y{fill:#E2C27F}
.tm-art .k-in{font-family:var(--mono);font-size:14px;font-weight:600;fill:#0C2B4B}

/* ------------------------------------------------ section head */
.tm-sh{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin-bottom:16px}
.tm-sh h2{margin:0;font-family:var(--sans);font-weight:700;font-size:clamp(23px,2.8vw,30px);line-height:1.2;letter-spacing:-.01em}
.tm-sh .arh{margin-left:auto;font-family:var(--deco);color:var(--red);font-size:24px;direction:rtl;line-height:1.2}

/* ------------------------------------------------ featured quote band */
.tm-feat{position:relative;overflow:hidden;border-radius:18px;padding:34px 36px 28px 96px;background:var(--c-soft);border:1.5px solid color-mix(in srgb,var(--c) 30%,transparent);display:flex;flex-direction:column;gap:18px}
.tm-feat::before{content:"";position:absolute;inset:0 auto 0 0;width:8px;background:var(--c)}
.tm-feat-mark{position:absolute;left:30px;top:28px;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--c);color:var(--bg)}
.tm-feat blockquote{margin:0}
.tm-feat blockquote p{margin:0;font-family:var(--serif);font-size:clamp(21px,2.4vw,27px);line-height:1.45;color:var(--ink)}
.tm-feat blockquote .tm-ar{font-family:var(--naskh);font-size:19px;line-height:1.8;color:var(--t1);margin-top:10px}
.tm-feat-who{display:flex;gap:14px;align-items:center}
.tm-feat-who>span:not(.tm-av){display:flex;flex-direction:column;gap:4px;min-width:0}
.tm-feat-who b{font-size:16.5px;color:var(--ink)}
.tm-feat-next{display:inline-flex;gap:6px;align-items:center;font-size:14.5px;color:var(--t1)}
.tm-feat-next .ic{color:var(--c)}

/* ------------------------------------------------ filter chips, in the level colours */
.tm-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.tm-chip{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:6px 12px 6px 6px;border-radius:99px;border:1.5px solid color-mix(in srgb,var(--c) 35%,var(--rule));background:var(--card);color:var(--ink);font:600 14.5px var(--sans);cursor:pointer}
.tm-chip-ic{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:99px;background:var(--c-bg);color:var(--c)}
.tm-chip .tm-n{font-family:var(--mono);font-size:12px;font-weight:500;color:var(--muted);background:var(--panel);border-radius:99px;padding:1px 7px}
.tm-chip:hover{border-color:var(--c)}
.tm-chip[aria-pressed="true"]{background:var(--c);border-color:var(--c);color:var(--bg)}
.tm-chip[aria-pressed="true"] .tm-chip-ic{background:color-mix(in srgb,var(--bg) 22%,transparent);color:var(--bg)}
.tm-chip[aria-pressed="true"] .tm-n{background:color-mix(in srgb,var(--bg) 22%,transparent);color:var(--bg)}
.tm-chip:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ------------------------------------------------ the cards */
.tm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px;align-items:start}
.tm-grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tm-card{margin:0;position:relative;display:flex;flex-direction:column;gap:14px;padding:20px;border-radius:16px;background:var(--c-soft);border:1px solid color-mix(in srgb,var(--c) 22%,var(--rule));border-top:5px solid var(--c);min-width:0}
.tm-card[hidden]{display:none}
.tm-card .tm-q{background:var(--card)}
.tm-card blockquote{margin:0}
.tm-card blockquote p{margin:0;font-family:var(--serif);font-size:18px;line-height:1.55;color:var(--ink);overflow-wrap:anywhere}
.tm-card .tm-ar{font-family:var(--naskh)!important;font-size:16.5px!important;line-height:1.8!important;color:var(--t1)!important;margin-top:8px!important}
.tm-next{margin:0;display:flex;gap:8px;align-items:flex-start;font-size:14.5px;line-height:1.5;color:var(--ink);background:var(--card);border-radius:10px;padding:9px 12px}
.tm-next .ic{color:var(--c);margin-top:2px;flex:none}
.tm-who{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid color-mix(in srgb,var(--c) 22%,var(--rule));padding-top:14px;margin-top:auto}
.tm-wn{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1 1 170px}
.tm-wn b{font-size:15.5px;color:var(--ink)}
.tm-anon{font-weight:400;font-size:13px;color:var(--muted)}
.tm-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.tm-pill{white-space:nowrap;display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;padding:3px 9px 3px 7px;border-radius:99px;background:var(--c-bg);color:var(--c)}
.tm-intake{white-space:nowrap;display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--t1)}
.tm-intake .ic{color:var(--muted)}
.tm-av{flex:none;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;object-fit:cover;background:var(--c);color:var(--bg);font:600 15px var(--mono);letter-spacing:.04em}
.tm-av.lg{width:64px;height:64px;font-size:19px}
img.tm-av{background:var(--c-bg);box-shadow:0 0 0 3px var(--c)}
.tm-link{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none;padding:6px 11px;border-radius:99px;border:1.5px solid color-mix(in srgb,var(--c) 45%,var(--rule));background:var(--card)}
.tm-link:hover{border-color:var(--c)}
.tm-link .ic{color:var(--c)}

/* ------------------------------------------------ empty state */
.tm-empty{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:30px;border-radius:18px;background:var(--card);border:1.5px dashed var(--rule)}
.tm-empty-art{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:4px}
.tm-empty-art .ic-tile:nth-child(2){transform:translateY(-6px)}
.tm-empty-art .ic-tile:nth-child(4){transform:translateY(-6px)}
.tm-empty h2{margin:0;font-family:var(--serif);font-weight:500;font-size:clamp(24px,3vw,30px);line-height:1.2;color:var(--ink)}
.tm-empty .arh{margin:-4px 0 0;font-family:var(--deco);color:var(--red);font-size:22px;direction:rtl}
.tm-empty p{margin:0;max-width:60ch;font-size:16px;line-height:1.6;color:var(--t1)}
.tm-empty-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.tm-empty .btn,.tm-cta .btn{border-radius:10px}

/* ------------------------------------------------ apply nudge */
.tm-cta{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px 20px;align-items:center;padding:22px 24px;border-radius:18px;background:var(--rose);border:1px solid var(--rose2)}
.tm-cta h2{margin:0 0 4px;font-size:21px}
.tm-cta p{margin:0;color:var(--t1)}
.tm-cta-acts{display:flex;gap:10px;flex-wrap:wrap}
.tm-cta .btn:not(.ghost){background:var(--red-on,var(--red));border-color:var(--red-on,var(--red));color:#fff}

/* ------------------------------------------------ the home band */
.tm-band .tm-grid{margin-top:14px}
.tm-more{margin:14px 0 0}
.tm-more .btn{border-radius:10px}

/* ------------------------------------------------ narrower screens */
@media (max-width:1100px){.tm-grid3{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}}
@media (max-width:900px){.tm-hero{grid-template-columns:minmax(0,1fr)}.tm-art{justify-self:center;max-width:320px}.tm-cta{grid-template-columns:auto minmax(0,1fr)}.tm-cta-acts{grid-column:1/-1}}
@media (max-width:620px){
  .tm,#tmRoot{gap:44px}
  .tm-hero{padding:26px 20px 24px;border-radius:14px}
  .tm-hero p{font-size:16.5px}
  .tm-art{max-width:280px}
  .tm-feat{padding:80px 18px 20px 22px}
  .tm-feat-mark{left:20px;top:18px}
  .tm-sh .arh{font-size:21px}
  .tm-empty{padding:22px 18px}
  .tm-cta{padding:18px;grid-template-columns:minmax(0,1fr)}
  .tm-cta .ic-tile{display:none}
}
/* v5t: the home-page carousel moved to assets/css/v3-carousel.css in v11 (shared with the consultants band) */
.tmc .tm-card .tm-q{margin-inline-end:84px}
.ps-dlg .stm-wrap{border:0;padding:0;background:none;box-shadow:none}.ps-dlg .stm-wrap>h3{display:none}
