/* =====================================================================
   courses.html only. Shared rules live in assets/css/styles.css.
   No new colours, radii, shadows or type sizes: tokens only.
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. Grids documented as shared in COMPONENTS.md but currently defined
   in assets/css/pages/home.css. Repeated here so this page does not
   depend on another page's stylesheet. See sharedRequests.
   --------------------------------------------------------------------- */
.course-grid{display:grid;gap:clamp(14px,1.8vw,20px);grid-template-columns:1fr}
@media (min-width:700px){ .course-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:1100px){ .course-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
/* the empty state is one card, never a third of a row */
.course-grid.cs-grid--empty{grid-template-columns:minmax(0,1fr)}

/* `.section--ribbon` (a section whose bottom padding the ribbon replaces) and
   the two CTA band art rules below are documented as shared but currently live
   in pages/home.css. Repeated here so this page stands on its own. See sharedRequests. */
.section--ribbon{padding-bottom:0}
.cta-band__ridge{position:absolute;left:0;right:0;bottom:0;width:100%;height:var(--ridge-h);z-index:-1;display:block}
.cta-band__figs{
  position:absolute;left:50%;translate:-50% 0;
  bottom:calc(var(--ridge-h) * var(--crest));
  width:clamp(158px,23vw,300px);height:auto;z-index:-1;display:block;
}

/* ---------------------------------------------------------------------
   1. Hero
   --------------------------------------------------------------------- */
.cs-hero .page-hero__inner{align-items:start}
.cs-hero h1{margin-top:var(--sp-3)}
.cs-hero .lead{max-width:54ch}

.cs-hero__zero{
  display:flex;gap:9px;align-items:flex-start;margin:var(--sp-6) 0 0;
  font-size:var(--fs-sm);color:var(--text-muted);line-height:1.55;
}
.cs-hero__zero svg{width:18px;height:18px;color:var(--forest-500);flex:none;margin-top:2px}
.cs-hero__zero b{color:var(--ink-800)}

.cs-hero__media{position:relative}
.cs-hero__media img{
  border-radius:var(--r-xl);box-shadow:var(--sh-lg);width:100%;object-fit:cover;aspect-ratio:4/3;display:block;
}
.cs-hero__chip{position:absolute;max-width:min(74%,290px)}
.cs-hero__chip--batch{left:-8px;bottom:26px}
.cs-hero__chip--emi{right:-6px;top:20px}
@media (max-width:539.98px){
  .cs-hero__chip--batch{left:4px;bottom:12px}
  .cs-hero__chip--emi{right:4px;top:10px}
  .cs-hero__chip{font-size:12.5px}
}

/* Search band spans both hero columns */
.cs-hero__search{grid-column:1/-1;margin-top:var(--sp-4)}
@media (max-width:899.98px){
  .cs-hero .page-hero__media{order:3}
  .cs-hero__search{order:2;margin-top:0}
}
.cs-searchbar{grid-template-columns:1fr}
@media (min-width:640px){ .cs-searchbar{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto} }
.cs-searchbar .btn{white-space:nowrap}
@media (min-width:640px){ .cs-searchbar .btn{width:auto;padding-inline:26px} }

.cs-trending{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:var(--sp-4) 0 0}
.cs-trending>span{font-size:var(--fs-sm);color:var(--text-muted);font-weight:600}
.cs-trending .chip{min-height:32px;font-size:13px}

.cs-facts{
  display:flex;flex-wrap:wrap;gap:var(--sp-4) clamp(18px,3vw,38px);align-items:flex-start;
  margin-top:var(--sp-6);padding-top:var(--sp-5);border-top:1px solid var(--line);
}
.cs-fact{display:flex;flex-direction:column;gap:2px;min-width:96px}
.cs-fact b{
  font-family:var(--font-head);font-size:var(--fs-h3);font-weight:700;color:var(--heading);
  line-height:1.1;font-variant-numeric:tabular-nums;
}
.cs-fact span{font-size:var(--fs-xs);color:var(--text-muted)}

/* ---------------------------------------------------------------------
   2. Category chips + filter row
   --------------------------------------------------------------------- */
.cs-cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:var(--sp-5)}
.cs-cats .chip{min-height:40px}
.cs-cats .chip b{font-weight:700}
.cs-cats .chip .count{
  font-size:11.5px;color:var(--text-subtle);font-variant-numeric:tabular-nums;
  background:var(--ink-50);border-radius:var(--r-pill);padding:1px 7px;
}
.cs-cats .chip[aria-pressed="true"] .count{background:rgba(255,255,255,.55);color:var(--forest-800)}

.cs-filters{
  display:grid;gap:var(--sp-4);align-items:end;
  grid-template-columns:1fr;padding:clamp(16px,2vw,22px);
}
@media (min-width:600px){ .cs-filters{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:1024px){ .cs-filters{grid-template-columns:repeat(5,minmax(0,1fr))} }
.cs-filters .field__label{font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--text-subtle)}
.cs-filters .select{min-height:44px;font-size:15px}
.cs-filters__toggle{
  display:flex;align-items:center;min-height:44px;gap:10px;
}
.cs-filters__toggle .check{font-weight:600;color:var(--ink-800)}

.cs-resbar{
  display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-5);align-items:center;justify-content:space-between;
  margin:var(--sp-6) 0 var(--sp-5);
}
.cs-count{margin:0;font-size:var(--fs-sm);color:var(--text-muted)}
.cs-count b{color:var(--ink-800);font-weight:600}
.cs-active{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cs-active:empty{display:none}

.cs-empty{
  display:flex;flex-direction:column;align-items:center;gap:var(--sp-4);text-align:center;
  padding:clamp(28px,4vw,52px) var(--sp-5);
}
.cs-empty__icon{
  width:56px;height:56px;border-radius:50%;display:grid;place-items:center;flex:none;
  background:var(--saffron-50);color:var(--saffron-700);
}
.cs-empty__icon svg{width:26px;height:26px}
.cs-empty h3{margin:0;font-size:var(--fs-h4)}
.cs-empty p{margin:0;max-width:52ch;font-size:var(--fs-sm);color:var(--text-muted)}

/* Sort control sits at the right of the results bar */
.cs-sort{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:nowrap}
.cs-sort .field__label{margin:0;white-space:nowrap;font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--text-subtle)}
.cs-sort .select{min-height:44px;font-size:15px;min-width:190px}

/* The shared card renderer prints the fee without saying whose it is.
   This caption is added to every card by pages/courses.js. See sharedRequests. */
.cs-fee-label{
  width:100%;order:-1;margin:0;font-size:var(--fs-xs);color:var(--text-subtle);
  text-transform:uppercase;letter-spacing:.08em;font-weight:600;
}
.cs-foot{margin-top:var(--sp-8);max-width:88ch}

/* the "prepares you for N live jobs" line added to every rendered card */
.cs-jobs-line{
  display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;
  color:var(--saffron-800);background:var(--saffron-50);border:1px solid var(--saffron-200);
  border-radius:var(--r-pill);padding:5px 12px;text-decoration:none;align-self:flex-start;
  transition:background var(--dur-fast),border-color var(--dur-fast);
}
.cs-jobs-line svg{width:15px;height:15px;flex:none}
.cs-jobs-line:hover{background:var(--saffron-100);border-color:var(--saffron-300)}

/* ---------------------------------------------------------------------
   3. Skill gap band (the one dark section on this page)
   --------------------------------------------------------------------- */
.cs-gap{display:grid;gap:clamp(28px,3.5vw,52px);grid-template-columns:1fr;align-items:start}
@media (min-width:980px){ .cs-gap{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)} }

/* A white product panel on the dark ground, built from the shared .mock chrome */
.section--dark .mock.cs-gapcard{background:var(--surface);border-color:var(--line);box-shadow:var(--sh-xl)}
.section--dark .cs-gapcard .mock__bar{background:var(--ink-50);border-color:var(--line)}
.section--dark .cs-gapcard .mock__title{color:var(--heading)}
.section--dark .cs-gapcard .mock__foot{background:var(--ink-50);border-color:var(--line);color:var(--text-muted)}
.cs-gapcard,.cs-gapcard p,.cs-gapcard label{color:var(--text-muted)}
.cs-gapcard h3,.cs-gapcard h4{color:var(--heading)}
.cs-gapcard b,.cs-gapcard strong{color:var(--ink-800)}
.section--dark .cs-gapcard .chip{background:#fff;border-color:var(--line);color:var(--ink-700)}
.section--dark .cs-gapcard .chip:hover{background:var(--saffron-50);border-color:var(--saffron-300);color:var(--saffron-800)}
.section--dark .cs-gapcard .chip[aria-pressed="true"]{background:var(--forest-50);border-color:var(--forest-400);color:var(--forest-800)}
.section--dark .cs-gapcard .match-ring__track{stroke:var(--forest-100)}
.section--dark .cs-gapcard .match-ring__val{color:var(--heading)}
.section--dark .cs-gapcard a:not(.btn){color:var(--forest-600)}
.section--dark .cs-gapcard .fineprint{color:var(--text-muted)}

.cs-gapcard .mock__body{display:flex;flex-direction:column;gap:var(--sp-5)}
.cs-gapcard .field__label{color:var(--ink-800)}
.cs-gapcard .select{min-height:46px;font-size:15px}
.cs-gap__have{display:flex;flex-wrap:wrap;gap:8px}
.cs-gap__have .chip{min-height:36px}
.cs-gap__result{
  display:flex;gap:var(--sp-5);align-items:center;flex-wrap:wrap;
  padding-top:var(--sp-5);border-top:1px solid var(--line-soft);
}
.cs-gap__resbody{flex:1;min-width:210px;display:flex;flex-direction:column;gap:var(--sp-2)}
.cs-gap__miss{display:flex;flex-wrap:wrap;gap:6px}
.cs-gap__miss .chip,
.section--dark .cs-gapcard .cs-gap__miss .chip{
  border-color:var(--saffron-300);color:var(--saffron-800);background:var(--saffron-50);
  min-height:30px;font-size:13px;
}
.cs-gap__resbody #cs-gap-summary{margin:0;font-size:var(--fs-sm);line-height:1.55}
.cs-gap__resbody .fineprint{margin:0}
.cs-gap__pick{
  display:flex;gap:var(--sp-3);align-items:flex-start;
  border:1px solid var(--line);border-radius:var(--r-lg);background:var(--ink-50);padding:var(--sp-4);
}
.cs-gap__pick .logo-tile{margin-top:2px}
.cs-gap__pickbody{min-width:0;flex:1}
.cs-gap__pickbody p{margin:0}
.cs-gap__pickname{font-family:var(--font-head);font-weight:600;font-size:15px;color:var(--heading);line-height:1.35}
.cs-gap__actions{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-top:var(--sp-3)}

.cs-gap__aside>h3{font-size:var(--fs-h3);margin-bottom:var(--sp-3)}
.cs-gap__aside>p{max-width:52ch}
.cs-gap__aside .stepper{margin-top:var(--sp-6)}
.section--dark .cs-gap__aside .stepper__body p{color:var(--text-on-dark-muted)}
.section--dark .cs-gap__aside .stepper__item:not(:last-child)::before{background:rgba(255,255,255,.16)}
.cs-gap__tools{
  display:flex;flex-wrap:wrap;gap:var(--sp-3);margin-top:var(--sp-8);
  padding-top:var(--sp-6);border-top:1px solid var(--line-dark);
}

/* ---------------------------------------------------------------------
   4. Featured institutes strip
   --------------------------------------------------------------------- */
.cs-inst-grid{display:grid;gap:clamp(14px,1.8vw,20px);grid-template-columns:1fr}
@media (min-width:620px){ .cs-inst-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:1024px){ .cs-inst-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
.cs-inst{display:flex;flex-direction:column;gap:var(--sp-3);height:100%}
.cs-inst__top{display:flex;gap:var(--sp-3);align-items:flex-start}
.cs-inst h3{font-size:16.5px;margin:0 0 4px;line-height:1.3}
.cs-inst__city{font-size:var(--fs-sm);color:var(--text-muted);margin:0;display:flex;align-items:center;gap:6px}
.cs-inst__city svg{width:15px;height:15px;color:var(--ink-400);flex:none}
.cs-inst__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.cs-inst__list li{
  margin:0;padding:9px 0;border-top:1px solid var(--line-soft);font-size:var(--fs-sm);
  color:var(--ink-700);display:flex;gap:10px;align-items:baseline;
}
.cs-inst__list li:first-child{border-top:0}
.cs-inst__list svg{width:15px;height:15px;color:var(--forest-500);flex:none;align-self:center}
.cs-inst__foot{margin-top:auto;padding-top:var(--sp-4);display:flex;flex-wrap:wrap;gap:var(--sp-3);align-items:center}

/* ---------------------------------------------------------------------
   5. Enrolment steps
   --------------------------------------------------------------------- */
.cs-enrol{margin-top:var(--sp-4);align-items:start}
.cs-enrol .stepper__body h3{font-size:16px}

/* "Not sure which course fits?" card beside the steps */
.cs-ask{padding:clamp(20px,2.4vw,30px)}
.cs-ask h3{font-size:var(--fs-h3)}
.cs-ask .card__body{max-width:48ch}
.cs-ask form{margin-top:var(--sp-5)}
.cs-ask .form-success{margin-top:var(--sp-4)}
.cs-note{
  display:flex;gap:10px;align-items:flex-start;margin:var(--sp-10) auto 0;max-width:72ch;
  border:1px solid var(--forest-200);background:var(--forest-50);border-radius:var(--r-lg);
  padding:var(--sp-4) var(--sp-5);font-size:var(--fs-sm);color:var(--ink-700);line-height:1.6;
}
.cs-note svg{width:18px;height:18px;color:var(--forest-600);flex:none;margin-top:2px}
.cs-note b{color:var(--forest-700)}

/* ---------------------------------------------------------------------
   6. Learner outcomes (sample)
   --------------------------------------------------------------------- */
.cs-out-grid{display:grid;gap:clamp(14px,1.8vw,20px);grid-template-columns:1fr}
@media (min-width:760px){ .cs-out-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
.cs-out__course{
  font-size:var(--fs-xs);color:var(--text-subtle);margin:0;
  display:flex;align-items:center;gap:6px;
}
.cs-out__course svg{width:14px;height:14px;color:var(--saffron-600);flex:none}

/* ---------------------------------------------------------------------
   7. Institutes band
   --------------------------------------------------------------------- */
.cs-listing__media{position:relative}
.cs-listing__media img{
  border-radius:var(--r-xl);box-shadow:var(--sh-lg);width:100%;object-fit:cover;aspect-ratio:4/3;display:block;
}
.cs-listing__chip{position:absolute;right:-6px;bottom:22px;max-width:min(76%,280px)}
@media (max-width:539.98px){ .cs-listing__chip{right:4px;bottom:10px;font-size:12.5px} }
.cs-listing__points{list-style:none;margin:var(--sp-6) 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.cs-listing__points li{margin:0;display:flex;gap:10px;font-size:var(--fs-sm);color:var(--ink-700);line-height:1.55}
.cs-listing__points svg{width:17px;height:17px;color:var(--forest-500);flex:none;margin-top:2px}

/* ---------------------------------------------------------------------
   8. FAQ layout (same shape as the homepage; see sharedRequests)
   --------------------------------------------------------------------- */
.cs-faq{display:grid;gap:clamp(24px,3vw,56px);grid-template-columns:1fr;align-items:start}
.cs-faq>*{min-width:0}
@media (min-width:1024px){ .cs-faq{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)} }
.cs-faq__aside{position:sticky;top:calc(var(--header-h) + 24px)}

/* ---------------------------------------------------------------------
   9. Course detail modal
   --------------------------------------------------------------------- */
.cs-modal .modal__dialog{max-width:640px}
.cs-modal__head{display:flex;gap:var(--sp-3);align-items:flex-start;padding-right:var(--sp-10)}
.cs-modal h2{font-size:var(--fs-h3);margin:0 0 var(--sp-2)}
.cs-modal__inst{font-size:var(--fs-sm);color:var(--text-muted);margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cs-modal__facts{
  list-style:none;margin:var(--sp-5) 0 0;padding:0;display:grid;gap:10px var(--sp-5);
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.cs-modal__facts li{margin:0;font-size:var(--fs-sm);color:var(--ink-700);display:flex;flex-direction:column}
.cs-modal__facts dt,.cs-modal__facts .k{font-size:var(--fs-xs);color:var(--text-subtle)}
.cs-modal__facts b{color:var(--ink-800);font-weight:600}
.cs-modal__actions{display:flex;flex-wrap:wrap;gap:var(--sp-3);margin-top:var(--sp-6)}
