/* Technical Skills Courses page (tsc.html), the template for the
   "Additional skills" courses (TSC, Database Theory and Practice, Micro
   Insurance Academy). Loaded after fm.css, which carries every shared
   product-page rule (tokens, Today card, path, collages, instructor cards
   and the initials panel, the long title and name, price terms,
   questions, close). There is no exam here, so this adds: the
   course-content collages (a formula on a lesson video, a section's lesson
   list, a project brief and its workbook, a solution video with the
   instructor's reply, Clear's "Course finished" card) and the two-course
   chooser with the bundle. Every colour is a Clear token or an fm.css /
   page.css token. */

/* ── Step collages ───────────────────────────────────────────────── */
/* Watch: the lesson's formula on its video, as it reads in Excel's bar. */
.prod-vid .tsc-chalk { top: 42px; }
/* The formula runs wide, so the play button sits low on the right, under
   it (the PA hero's player). */
.prod-vid.tsc-vid-fx .play { top: auto; bottom: 24px; margin-top: 0; }
.tsc-fx { display: block; font-family: var(--font-mono); font-size: 11.5px; line-height: 18px; font-weight: 500; color: var(--ink); white-space: nowrap; }
/* Its section's lessons, the one playing in bold with a ring on its dot. */
.tsc-rows { display: grid; }
.tsc-rows li { display: flex; align-items: center; gap: 9px; min-height: 32px; font-size: 12.5px; line-height: 16px; color: var(--ink); border-top: 1px solid var(--hair-soft); }
.tsc-rows li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--learn-hi); }
.tsc-rows li.is-now { font-weight: 650; }
.tsc-rows li.is-now::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--learn-hi) 22%, transparent); }

/* Build: the project brief (title, data file, what its tasks use) and its
   workbook tucked on the empty paper under it. */
.tsc-proj__title { margin-top: 12px; font-size: 17px; line-height: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.tsc-proj__file { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; line-height: 16px; color: var(--muted-foreground); }
.tsc-proj__file svg { flex-shrink: 0; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.tsc-proj__n { margin-top: 16px; font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.tsc-proj__list { display: grid; margin-top: 6px; }
.tsc-proj__list li { display: flex; align-items: center; gap: 10px; min-height: 36px; border-top: 1px solid var(--hair-soft); font-size: 13.5px; line-height: 18px; color: var(--ink); }
.tsc-proj__list li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--practice-hi); }
.prod-prob.tsc-proj { padding-bottom: 66px; } /* the workbook tile's paper */
.tsc-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-xl); }
.tsc-file b { display: block; font-size: 13.5px; line-height: 18px; font-weight: 650; color: var(--ink); }
.tsc-file span:last-child { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.tsc-tool { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px; font-size: 14px; font-weight: 700; color: var(--on-accent-fill); }
.tsc-tool--xls { background: var(--success); }

/* Check: the section projects' solution videos, each with a play mark in
   the exams lane, and Cedean's reply tucked under them (the instructor
   bubble, small) on the card's empty foot. */
.tsc-sols { padding: 14px 14px 96px; border-radius: var(--radius-2xl); }
.tsc-sols__list { display: grid; margin-top: 12px; }
.tsc-sols__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 33px; border-top: 1px solid var(--hair-soft); font-size: 13px; line-height: 18px; color: var(--ink); }
.tsc-sols__list i { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--exams-hi); box-sizing: border-box; }
.tsc-sols__list i::after { content: ""; position: absolute; left: 6px; top: 4.5px; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent var(--exams-hi); }
.tsc-sols__list li.is-now { font-weight: 650; }
.tsc-sols__list li.is-now i { background: var(--exams-hi); }
.tsc-sols__list li.is-now i::after { border-left-color: var(--on-accent-fill); }
.tsc-sols__list em { font-style: normal; font-size: 12px; color: var(--muted-foreground); white-space: nowrap; }
.tsc-reply { padding: 12px 14px 13px; border-radius: var(--radius-xl); }
.tsc-reply__who { display: block; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.tsc-reply p { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }

/* Finish: Clear's Today on the target finish date. The day carries the
   exam-day orange and flag (fm.css), and the day's card is Clear's finish
   card: the flag in an orange ring, its two lines, centred. */
.tsc-fin .today__total b { color: var(--exams); }
.tsc-fin__card { display: grid; justify-items: center; row-gap: 6px; margin: 2px 12px 14px; padding: 20px 14px 20px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--exams-hi) 55%, transparent); text-align: center; }
.tsc-fin__flag { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--exams-hi); background: color-mix(in srgb, var(--exams-hi) 15%, var(--paper)); }
.tsc-fin__flag svg { width: 18px; height: 18px; fill: none; stroke: var(--exams-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tsc-fin__flag .fill { fill: var(--exams-hi); }
.tsc-fin__title { font-size: 17px; line-height: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.tsc-fin__hint { max-width: 22em; font-size: 13px; line-height: 18px; color: var(--muted-foreground); text-wrap: balance; }

/* ── 3 · Two courses ─────────────────────────────────────────────── */
/* Two cards side by side (FM's topic cards, larger), each: who it's for,
   its name, one line, its sections as FM's chips, its size, then its price
   and button pinned to the foot so the two line up. The bundle under them
   as one wide row. */
.tsc-courses { padding-top: var(--rhythm); }
.tsc-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.tsc-course { display: flex; flex-direction: column; padding: 28px 28px 26px; border-radius: var(--radius-2xl); border: 1px solid var(--edge); background: var(--paper); box-shadow: var(--lift-1); }
.tsc-course__for { font-size: 12.5px; line-height: 16px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.tsc-course__name { margin-top: 8px; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.028em; color: var(--ink); }
.tsc-course__desc { margin-top: 10px; max-width: 30em; font-size: 17px; line-height: 1.5; color: var(--muted-foreground); text-wrap: pretty; }
.tsc-course .chips { margin-top: 20px; }
.tsc-course .chips li { min-height: 32px; background: var(--page); }
/* The size line takes the card's spare height, so both buy rows sit on
   their cards' feet, level with each other. */
.tsc-course__meta { margin: 18px 0 auto; font-size: 15px; line-height: 1.45; color: var(--muted-foreground); }
.tsc-course__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hair-soft); }
.tsc-course__price { display: grid; row-gap: 2px; }
.tsc-course__price strong { font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -0.035em; color: var(--primary-text); }
.tsc-course__price span { font-size: 14.5px; line-height: 20px; color: var(--muted-foreground); }
.tsc-course__cta { min-height: 48px; border-radius: 10px; box-shadow: var(--cta-shadow); }
.tsc-course__cta:hover { background: var(--cta-hover) !important; }

.tsc-both { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 32px; margin-top: 20px; padding: 22px 28px; border-radius: var(--radius-2xl); border: 1px solid var(--edge); background: var(--paper); box-shadow: var(--lift-1); }
.tsc-both__text b { display: block; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.tsc-both__text span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--muted-foreground); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .tsc-course-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .tsc-both { grid-template-columns: minmax(0, 1fr) auto; row-gap: 18px; }
  .tsc-both__text { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .tsc-course-grid { margin-top: 36px; }
  .tsc-course { padding: 22px 20px 20px; }
  .tsc-course__name { font-size: 25px; }
  .tsc-course__desc { font-size: 16px; }
  .tsc-course__buy, .tsc-both { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .tsc-both { padding: 22px 20px 20px; }
  .tsc-course__cta { width: 100%; }
}
