/* ==========================================================================
   TechSupper Trainings — catalogue pages + live / self-paced detail pages.
   Everything is scoped under .ts-tr so the rest of the site is untouched.
   Change brand colours and fonts in the variables block below.
   ========================================================================== */

.ts-tr {
	color-scheme: light;
	--ground: #F7F6F2; --white: #FFFFFF; --ink: #1B2330; --muted: #4F5A6A; --line: #E4E1D8; --line2: #EFEDE6; --chip: #F1EFE8; --field: #C9C4B6;
	--navy: #0E1A2B; --navy-deep: #0A1422; --navy-card: #16263D; --navy-line: #263B57; --navy-btn: #3B5170;
	--on-navy: #C9D3E1; --on-navy-2: #B7C2D3; --peach: #FDBA74; --peach-bg: #FFF4EA; --peach-line: #F6D6BC;
	--accent: #C2410C; --link: #9A3412; --link-h: #7C2D12; --good: #134E4A; --good-bg: #E6F2EF;
	--display: "Bricolage Grotesque", system-ui, sans-serif;
	--body: "IBM Plex Sans", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	display: block;
	background: var(--ground);
	color: var(--ink);
	font: 16px/1.55 var(--body);
	-webkit-font-smoothing: antialiased;
}
body.ts-tr-body { background: #F7F6F2; }
.ts-tr.ts-tr-embed { background: transparent; }

.ts-tr *, .ts-tr *::before, .ts-tr *::after { box-sizing: border-box; }
.ts-tr [hidden] { display: none !important; }
body .ts-tr a { color: var(--link); }
body .ts-tr a:hover { color: var(--link-h); }
.ts-tr a:focus-visible, .ts-tr button:focus-visible, .ts-tr input:focus-visible, .ts-tr select:focus-visible, .ts-tr summary:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
.ts-tr h1, .ts-tr h2, .ts-tr h3 { color: inherit; text-wrap: balance; text-transform: none; letter-spacing: normal; }
.ts-tr img { max-width: 100%; height: auto; }
.ts-tr .wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ts-tr .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
body .ts-tr .btn { display: inline-block; text-decoration: none; padding: 14px 22px; border-radius: 8px; font: 600 16px/1.2 var(--body); text-align: center; border: 1px solid transparent; cursor: pointer; transition: filter .15s, background-color .15s; }
body .ts-tr .btn.primary, body .ts-tr .btn.primary:visited { background: var(--accent); border-color: var(--accent); color: #fff; }
body .ts-tr .btn.primary:hover { color: #fff; filter: brightness(1.08); }
body .ts-tr .btn.ghost { color: #fff; border-color: var(--navy-btn); background: transparent; }
body .ts-tr .btn.ghost:hover { color: #fff; background: var(--navy-card); }
body .ts-tr .btn.outline { color: var(--ink); border-color: var(--field); background: #fff; }
body .ts-tr .btn.outline:hover { color: var(--ink); background: var(--chip); }
body .ts-tr .btn.block { display: block; width: 100%; }
body .ts-tr .btn.sm { padding: 11px 18px; font-size: 15px; }
body .ts-tr .btn.xs { padding: 8px 14px; font-size: 14px; }

/* ---------- Fields (beat Elementor kit + Hello reset) ---------- */
body .ts-tr .ts-field.ts-field.ts-field { width: auto; height: auto; min-height: 0; margin: 0; font: 400 15px/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 8px; padding: 10px 12px; box-shadow: none; }
body .ts-tr input.ts-field.ts-field.ts-field { width: 220px; max-width: 100%; }

/* ---------- Shared type ---------- */
.ts-tr .eyebrow { margin: 0 0 14px; font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--peach); }
.ts-tr .h1 { margin: 0; font: 800 clamp(34px, 4.6vw, 56px)/1.05 var(--display); letter-spacing: -.02em; color: #fff; }
.ts-tr .h2 { margin: 0 0 6px; font: 800 clamp(22px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.ts-tr .hero { background: var(--navy); color: #fff; }

/* ==========================================================================
   CATALOGUE (archive-ts_live.php / archive-ts_selfpaced.php)
   ========================================================================== */
.ts-tr-cat .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.ts-tr-cat .hero .h1 { max-width: 820px; }
.ts-tr .hero p.lede { margin: 18px 0 0; font-size: 18px; color: var(--on-navy); max-width: 660px; }
.ts-tr .stats { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--on-navy-2); }
.ts-tr .stats strong { color: #fff; font-size: 18px; }

/* Starting soon strip */
.ts-tr .soon { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
body .ts-tr .soon a { display: flex; gap: 16px; align-items: center; background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: 14px; padding: 18px; text-decoration: none; color: #fff; }
body .ts-tr .soon a:hover { border-color: var(--peach); color: #fff; }
.ts-tr .date { flex: 0 0 auto; width: 64px; border-radius: 10px; background: var(--accent); text-align: center; padding: 8px 0; color: #fff; }
.ts-tr .date small { display: block; font: 500 11px var(--mono); letter-spacing: .08em; }
.ts-tr .date b { display: block; font: 800 26px/1.05 var(--display); }
.ts-tr .soon .t { display: block; font: 700 17px/1.25 var(--display); }
.ts-tr .soon .s { display: block; font-size: 13px; color: var(--on-navy-2); margin-top: 2px; }

/* Toolbar */
.ts-tr-cat main.wrap { padding-bottom: 64px; }
.ts-tr .toolbar { padding-top: 40px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.ts-tr .tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
body .ts-tr .tab, body .ts-tr .tab:hover, body .ts-tr .tab:focus { font: 500 15px/1.3 var(--body); padding: 10px 14px; border: 0; border-radius: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; margin-bottom: -1px; box-shadow: none; text-transform: none; letter-spacing: normal; }
body .ts-tr .tab:hover { color: var(--ink); }
body .ts-tr .tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.ts-tr .tab small { font: 500 12px var(--mono); margin-left: 6px; opacity: .7; }
.ts-tr .tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ts-tr .tools label { font-size: 14px; color: var(--muted); margin: 0; }
.ts-tr .legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.ts-tr .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Cards */
.ts-tr .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.ts-tr .card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ts-tr .card-top { min-height: 96px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 10px; background: var(--navy-card); }
.ts-tr .card-top .cat { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: .85; }
.ts-tr .badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ts-tr .b-soon { background: #E8EEF6; color: #1E3A5F; }
.ts-tr .b-few { background: var(--peach); color: #431407; }
.ts-tr .b-dim { background: #23374F; color: #E6ECF5; }
.ts-tr .b-wait { background: #5EC4BB; color: #0A1422; }
.ts-tr .b-new { background: #E6F2EF; color: var(--good); }
.ts-tr .card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ts-tr .card h3 { margin: 0; font: 700 20px/1.25 var(--display); }
body .ts-tr .card h3 a { color: var(--ink); text-decoration: none; }
body .ts-tr .card h3 a:hover { color: var(--link-h); }
.ts-tr .card p { margin: 0; font-size: 14px; color: var(--muted); }
.ts-tr .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.ts-tr .card .price { font: 800 20px/1.2 var(--display); color: var(--ink); }
.ts-tr .card .price small { margin-left: 6px; font: 500 13px var(--body); color: var(--muted); text-decoration: line-through; }
.ts-tr .card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.ts-tr .card-foot .lbl { color: var(--muted); }
.ts-tr .card-foot strong { display: block; font-size: 14px; }
.ts-tr .card-foot strong small { margin-left: 6px; font-weight: 400; color: var(--muted); text-decoration: line-through; }
body .ts-tr .card-foot a { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.ts-tr .card.is-hidden { display: none; }

.ts-tr .empty { background: #fff; border: 1px dashed var(--field); border-radius: 14px; padding: 40px 24px; text-align: center; }
.ts-tr .empty h3 { margin: 0; font: 700 20px var(--display); }
.ts-tr .empty p { margin: 8px 0 0; color: var(--muted); }

/* CTA band (catalogue + detail) */
.ts-tr .cta-band { background: var(--navy-card); color: #fff; border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.ts-tr .cta-band .txt { flex: 999 1 420px; }
.ts-tr .cta-band h2 { margin: 0; font: 800 clamp(24px, 2.8vw, 34px)/1.15 var(--display); color: #fff; }
.ts-tr .cta-band p { margin: 10px 0 0; color: var(--on-navy); }
.ts-tr .cta-band .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.ts-tr-cat .cta-wrap { padding-bottom: 80px; }

/* Currency switch */

/* ==========================================================================
   DETAIL PAGES (single-ts_live.php / single-ts_selfpaced.php)
   ========================================================================== */
.ts-tr-single .hero .wrap { padding-top: 36px; padding-bottom: 44px; }
.ts-tr-single .h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.ts-tr-single .eyebrow { margin-bottom: 12px; }
.ts-tr-single .hero p.lede { margin-top: 16px; font-size: 17px; max-width: 600px; }
.ts-tr .crumb { font-size: 13px; color: var(--on-navy-2); margin-bottom: 18px; }
body .ts-tr .crumb a { color: var(--on-navy-2); text-decoration: none; }
body .ts-tr .crumb a:hover { color: #fff; }
.ts-tr .crumb .sep { margin: 0 8px; }
.ts-tr .trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--on-navy-2); }
.ts-tr .trust strong { color: #fff; }
.ts-tr .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ts-tr .hero-tags span { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--navy-card); border: 1px solid var(--navy-line); color: var(--on-navy); }

/* Sticky section nav */
.ts-tr .subnav-wrap { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-bar .ts-tr .subnav-wrap { top: 32px; }
.ts-tr .subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ts-tr .subnav::-webkit-scrollbar { display: none; }
body .ts-tr .subnav a { flex: 0 0 auto; font-size: 15px; font-weight: 500; padding: 16px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
body .ts-tr .subnav a:hover { color: var(--ink); }
body .ts-tr .subnav a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

.ts-tr .layout { display: flex; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 72px; }
.ts-tr .content { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.ts-tr .side { flex: 1 1 320px; max-width: 360px; position: sticky; top: 76px; }
.admin-bar .ts-tr .side { top: 108px; }

.ts-tr section.block { scroll-margin-top: 70px; }
.ts-tr section.block > p.sub { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; max-width: 680px; }

/* Overview + audience cards */
.ts-tr .audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ts-tr .audience-grid .card { flex-direction: row; padding: 18px 20px; gap: 12px; align-items: flex-start; border-radius: 12px; }
.ts-tr .audience-grid .ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; background: var(--good-bg); color: var(--good); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ts-tr .audience-grid p { margin: 0; font-size: 14.5px; color: var(--muted); }
.ts-tr .audience-grid b { display: block; margin-bottom: 3px; font-size: 15px; color: var(--ink); }
.ts-tr .not-for { margin: 16px 0 0; font-size: 14px; color: var(--muted); background: var(--chip); border-radius: 10px; padding: 12px 16px; }

/* Outcomes */
.ts-tr .outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.ts-tr .outcomes li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; gap: 12px; font-size: 15px; margin: 0; }
.ts-tr .outcomes li::before { content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 999px; background: var(--navy); color: var(--peach); font-size: 13px; font-weight: 700; display: grid; place-items: center; }

/* Curriculum */
.ts-tr .module { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.ts-tr .module summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; gap: 14px; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15.5px; }
.ts-tr .module summary::-webkit-details-marker { display: none; }
.ts-tr .module summary .n { font: 600 13px var(--mono); color: var(--muted); flex: 0 0 auto; }
.ts-tr .module summary .ttl { flex: 1; }
.ts-tr .module summary .m { font: 500 13px var(--body); color: var(--muted); flex: 0 0 auto; }
.ts-tr .module[open] summary { border-bottom: 1px solid var(--line2); }
.ts-tr .module .inner { padding: 4px 20px 18px 52px; color: var(--muted); font-size: 14.5px; }
.ts-tr .module .inner ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.ts-tr .module .inner li { display: flex; justify-content: space-between; gap: 12px; }
.ts-tr .module .inner li .len { flex: 0 0 auto; font: 500 12.5px var(--mono); color: var(--muted); opacity: .8; }
.ts-tr .module .lab { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--peach-bg); border: 1px solid var(--peach-line); border-radius: 8px; padding: 5px 10px; }

/* Instructor */
.ts-tr .instructor { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.ts-tr .instructor .ava { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; background: var(--navy-card); color: var(--peach); display: grid; place-items: center; font: 800 28px var(--display); overflow: hidden; }
.ts-tr .instructor .ava img { width: 100%; height: 100%; object-fit: cover; }
.ts-tr .instructor .who { flex: 1 1 280px; }
.ts-tr .instructor h3 { margin: 0; font: 700 19px var(--display); }
.ts-tr .instructor .role { color: var(--accent); font-weight: 600; font-size: 14px; margin: 2px 0 8px; }
.ts-tr .instructor p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 520px; }
.ts-tr .instructor .stats { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ts-tr .instructor .stats strong { color: var(--ink); display: block; font-size: 16px; }

/* Demo video */
body .ts-tr .demo { position: relative; width: 100%; border: 1px solid var(--navy-line); border-radius: 16px; overflow: hidden; background: var(--navy-card) center / cover no-repeat; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; padding: 0; cursor: pointer; font: inherit; }
body .ts-tr .demo:hover { background-color: var(--navy-card); }
.ts-tr .demo .play { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 22px; color: #fff; transition: transform .15s; }
.ts-tr .demo:hover .play { transform: scale(1.06); }
.ts-tr .demo .cap { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); padding: 40px 20px 16px; font-size: 14px; text-align: left; }
.ts-tr .demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* What's included (self-paced) */
.ts-tr .included { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ts-tr .included .card { flex-direction: row; padding: 18px 20px; gap: 12px; align-items: flex-start; border-radius: 12px; }
.ts-tr .included .ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; background: var(--peach-bg); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.ts-tr .included b { display: block; margin-bottom: 3px; font-size: 15px; }
.ts-tr .included p { margin: 0; font-size: 14px; color: var(--muted); }

/* Batches table (live) */
.ts-tr .batches { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ts-tr .b-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr .8fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line2); font-size: 14.5px; }
.ts-tr .b-row:first-child { border-top: 0; }
.ts-tr .b-head { background: var(--chip); font: 700 13px var(--display); color: var(--ink); }
.ts-tr .b-name { font-weight: 600; }
.ts-tr .seat { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--good-bg); color: var(--good); white-space: nowrap; }
.ts-tr .seat-few { background: var(--peach-bg); color: var(--accent); }
.ts-tr .seat-full { background: var(--chip); color: var(--muted); }
.ts-tr .b-empty { padding: 18px; font-size: 14.5px; color: var(--muted); }

/* Pricing cards */
.ts-tr .price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ts-tr .price-cards .pc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.ts-tr .price-cards .pc.hi { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ts-tr .tag { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.ts-tr .price-cards .amt { font: 800 30px var(--display); margin: 8px 0; }
.ts-tr .amt small { font: 500 14px var(--body); color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.ts-tr .price-cards ul { margin: 12px 0 16px; padding-left: 0; list-style: none; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.ts-tr .price-cards li { margin: 0; }
.ts-tr .price-cards li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.ts-tr .price-cards .btn { margin-top: auto; }

/* Reviews */
.ts-tr .testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ts-tr .testi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.ts-tr .testi .stars { color: var(--accent); font-size: 14px; margin-bottom: 10px; letter-spacing: 1px; }
.ts-tr .testi p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink); }
.ts-tr .testi footer { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.ts-tr .testi .av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--ink); }

/* FAQ */
.ts-tr .faq-item { border-bottom: 1px solid var(--line); }
.ts-tr .faq-item summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; gap: 12px; }
.ts-tr .faq-item summary::-webkit-details-marker { display: none; }
.ts-tr .faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.ts-tr .faq-item[open] summary::after { content: "–"; }
.ts-tr .faq-item .a { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; max-width: 680px; }

/* Sidebar card */
.ts-tr .sidecard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ts-tr .sidecard .amt { font: 800 34px var(--display); }
.ts-tr .sidecard .seats { font-size: 13.5px; color: var(--good); font-weight: 600; background: var(--good-bg); border: 1px solid #CBE4DD; border-radius: 8px; padding: 8px 12px; }
.ts-tr .sidecard .seats.warn { color: var(--accent); background: var(--peach-bg); border-color: var(--peach-line); }
.ts-tr .sidecard .seats.mute { color: var(--muted); background: var(--chip); border-color: var(--line); }
.ts-tr .sidecard dl { margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.ts-tr .sidecard dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line2); padding-bottom: 9px; }
.ts-tr .sidecard dt { color: var(--muted); font-weight: 400; }
.ts-tr .sidecard dd { margin: 0; font-weight: 600; text-align: right; }
.ts-tr .sidecard .note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.ts-tr .sidecard .share { display: flex; gap: 8px; justify-content: center; font-size: 13px; color: var(--muted); }
body .ts-tr .sidecard .share a { color: var(--muted); text-decoration: none; }
body .ts-tr .sidecard .share a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.ts-tr .layout { flex-direction: column; }
	.ts-tr .side { position: static; max-width: 100%; width: 100%; }
}
@media (max-width: 760px) {
	.ts-tr .b-head { display: none; }
	.ts-tr .b-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
	.ts-tr .b-row > span[data-label]::before { content: attr(data-label) " · "; color: var(--muted); font-size: 12.5px; }
	.ts-tr .b-row .b-name, .ts-tr .b-row .btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.ts-tr .wrap { padding-left: 16px; padding-right: 16px; }
	.ts-tr .cta-band { padding: 32px 24px; }
	.ts-tr .instructor { padding: 20px; }
	.admin-bar .ts-tr .subnav-wrap { top: 0; }
}

/* ==========================================================================
   [ts_upcoming_batches] — home page table. Uses the page's own fonts.
   ========================================================================== */
.ts-upb {
	--upb-ink: #1B2330; --upb-muted: #4F5A6A; --upb-line: #E4E1D8; --upb-line2: #EFEDE6;
	--upb-btn: #F2A33A; --upb-btn-h: #E39228; --upb-chip: #F1EFE8; --upb-few-bg: #FFF1E0; --upb-few: #9A3412;
	background: #fff; border: 1px solid var(--upb-line); border-radius: 14px; overflow: hidden; color: var(--upb-ink); font-family: inherit;
}
.ts-upb *, .ts-upb *::before { box-sizing: border-box; }
.ts-upb-row { display: grid; grid-template-columns: 2.4fr 1fr 1.3fr .8fr auto; gap: 16px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--upb-line2); font-size: 15px; }
.ts-upb-head { padding: 16px 24px; border-top: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--upb-muted); }
.ts-upb-act { justify-self: end; text-align: center; min-width: 84px; }
body .ts-upb a.ts-upb-title { display: block; font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--upb-ink); text-decoration: none; }
body .ts-upb a.ts-upb-title:hover { color: var(--upb-few); }
.ts-upb-sub { display: block; margin-top: 4px; font-size: 14px; color: var(--upb-muted); }
.ts-upb-seat { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--upb-chip); color: var(--upb-ink); white-space: nowrap; }
.ts-upb-seat.is-few { background: var(--upb-few-bg); color: var(--upb-few); }
body .ts-upb a.ts-upb-btn { display: inline-block; padding: 12px 24px; border-radius: 6px; background: var(--upb-btn); color: var(--upb-ink); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s; }
body .ts-upb a.ts-upb-btn:hover { background: var(--upb-btn-h); color: var(--upb-ink); }
.ts-upb-empty { margin: 0; color: #4F5A6A; }

@media (max-width: 767px) {
	.ts-upb-head { display: none; }
	.ts-upb-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 18px; }
	.ts-upb-row:nth-child(2) { border-top: 0; }
	.ts-upb-prog, .ts-upb-act { grid-column: 1 / -1; }
	.ts-upb-act { justify-self: stretch; }
	body .ts-upb a.ts-upb-btn { display: block; text-align: center; }
	.ts-upb-row > [data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--upb-muted); margin-bottom: 2px; }
}

/* Upcoming batches table: always fill the available width */
.ts-upb { width: 100%; }
.elementor-widget-shortcode:has(.ts-upb),
.elementor-widget-shortcode:has(.ts-upb) > .elementor-widget-container { width: 100%; max-width: 100%; flex-basis: 100%; }
/* =========================================================================
   Automatic currency (no switch). <html data-ts-cur> is set in the <head>
   before paint, so only the right price is ever drawn.
   ========================================================================= */
.ts-money.has-usd .m-usd { display: none; }
html[data-ts-cur="USD"] .ts-money.has-usd .m-inr { display: none; }
html[data-ts-cur="USD"] .ts-money.has-usd .m-usd { display: inline; }
/* First visit only, while the country is being checked (max 2 s): hold the space, hide the digits. */
html.ts-cur-pending .ts-money { visibility: hidden; }

/* =========================================================================
   Duration plans (self-paced)
   ========================================================================= */
.ts-tr [data-plan][hidden] { display: none !important; }
.ts-tr .plan-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ts-tr .plan-lbl { font: 600 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ts-tr .plans { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 4px; padding: 3px; background: var(--chip); border: 1px solid var(--line); border-radius: 10px; }
body .ts-tr .plans button,
body .ts-tr .plans button:hover,
body .ts-tr .plans button:focus { flex: 0 0 auto; margin: 0; padding: 7px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 600 13px/1.2 var(--body); white-space: nowrap; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; transition: background .12s, color .12s; }
body .ts-tr .plans button:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
body .ts-tr .plans button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(14, 26, 43, .25); }
body .ts-tr .plans button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Card: pills sit above the price row */
.ts-tr .card .plan-pick { margin-top: 14px; }
body .ts-tr .card .plans button { padding: 6px 12px; font-size: 12.5px; }
.ts-tr .card-foot .plan-row { display: block; }

/* % off badge next to the price */
.ts-tr .amt .off { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 8px; border-radius: 6px; background: var(--good-bg); color: var(--good); font: 700 12px var(--body); letter-spacing: .02em; }

/* Sidecard spacing with pills */
.ts-tr .sidecard .plan-pick { margin: 4px 0 2px; }
.ts-tr .price-cards .plan-pick { margin: 10px 0 4px; }

/* =========================================================================
   Coupon (sidecard, under the seats box)
   ========================================================================= */
.ts-tr .coupon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1.5px dashed var(--peach); border-radius: 10px; background: var(--peach-bg); }
.ts-tr .coupon-txt { display: flex; flex-direction: column; min-width: 0; }
.ts-tr .coupon-lbl { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.ts-tr .coupon-code { font: 700 17px var(--mono); letter-spacing: .04em; color: var(--ink); word-break: break-all; }
.ts-tr .coupon-txt small { font-size: 12.5px; color: var(--muted); }
body .ts-tr .coupon-copy,
body .ts-tr .coupon-copy:hover,
body .ts-tr .coupon-copy:focus { flex: 0 0 auto; margin: 0; padding: 7px 14px; border: 1px solid var(--peach-line); border-radius: 8px; background: #fff; color: var(--link); font: 600 13px var(--body); cursor: pointer; box-shadow: none; text-transform: none; }
body .ts-tr .coupon-copy:hover { border-color: var(--accent); color: var(--link-h); }
body .ts-tr .coupon-copy.is-copied { background: var(--good-bg); border-color: #CBE4DD; color: var(--good); }

/* =========================================================================
   Curriculum icons: play/lesson for self-paced, tick for live sessions
   ========================================================================= */
.ts-tr .curriculum .inner ul.lessons { list-style: none; padding-left: 0; gap: 8px; }
.ts-tr .curriculum .inner ul.lessons li { position: relative; padding-left: 26px; align-items: baseline; }
.ts-tr .curriculum .inner ul.lessons li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ts-ico) center / contain no-repeat; mask: var(--ts-ico) center / contain no-repeat; }
/* Self-paced: play-in-circle (a video lesson) */
.ts-tr .curriculum.is-sp ul.lessons li::before { color: var(--navy-btn); --ts-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 6.2 6 3.8-6 3.8z'/%3E%3C/svg%3E"); }
/* Live: tick-in-circle */
.ts-tr .curriculum.is-live ul.lessons li::before { color: var(--good); --ts-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.1-4.1 1.4-1.4 2.7 2.7 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E"); }
.ts-tr .curriculum .inner ul.lessons li .len { margin-left: auto; }

/* =========================================================================
   [ts_bundle_courses] — "What's included" on bundle / subscription pages.
   Self-contained (works inside any Elementor container).
   ========================================================================= */
.ts-bc {
	--bc-ink: #1B2330; --bc-muted: #4F5A6A; --bc-line: #E4E1D8; --bc-field: #C9C4B6;
	--bc-accent: #C2410C; --bc-link: #9A3412; --bc-link-h: #7C2D12;
	--bc-display: "Bricolage Grotesque", system-ui, sans-serif; --bc-mono: "IBM Plex Mono", ui-monospace, monospace; --bc-body: "IBM Plex Sans", system-ui, sans-serif;
	width: 100%; font-family: var(--bc-body); color: var(--bc-ink);
}
.elementor-widget-shortcode:has(.ts-bc),
.elementor-widget-shortcode:has(.ts-bc) > .elementor-widget-container { width: 100%; max-width: 100%; flex-basis: 100%; }
.ts-bc-tabs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 900px; margin: 0 auto 28px; border-bottom: 1px solid var(--bc-line); }
body .ts-bc-tabs button,
body .ts-bc-tabs button:hover,
body .ts-bc-tabs button:focus { margin: 0 0 -1px; padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--bc-muted); font: 500 14.5px var(--bc-body); cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
body .ts-bc-tabs button:hover { color: var(--bc-ink); }
body .ts-bc-tabs button[aria-selected="true"] { color: var(--bc-ink); font-weight: 600; border-bottom-color: var(--bc-accent); }
.ts-bc-tabs small { margin-left: 6px; font: 500 12px var(--bc-mono); color: var(--bc-muted); opacity: .8; }
.ts-bc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
body .ts-bc-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: #fff; border: 1px solid var(--bc-line); border-radius: 12px; color: var(--bc-ink); text-decoration: none; transition: border-color .12s, box-shadow .12s; }
body .ts-bc-card:hover { border-color: var(--bc-field); box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .18); color: var(--bc-ink); }
.ts-bc-card[hidden] { display: none; }
.ts-bc-cat { font: 600 11.5px var(--bc-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bc-accent); }
.ts-bc-card h3 { margin: 0; font: 700 16.5px/1.3 var(--bc-display); color: var(--bc-ink); }
.ts-bc-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--bc-muted); }
.ts-bc-view { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--bc-link); }
.ts-bc-card:hover .ts-bc-view { color: var(--bc-link-h); }
.ts-bc-count { margin: 28px 0 0; text-align: center; font-size: 14.5px; color: var(--bc-muted); }
.ts-bc-count strong { color: var(--bc-ink); }
.ts-bc-empty { padding: 14px 18px; border: 1px dashed var(--bc-field, #C9C4B6); border-radius: 10px; color: #4F5A6A; }
@media (max-width: 600px) {
	.ts-bc-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
	.ts-bc-tabs::-webkit-scrollbar { display: none; }
	body .ts-bc-tabs button { flex: 0 0 auto; padding: 10px 12px; }
}