/* =====================================================================
   courses.html only. Shared rules live in assets/css/styles.css.
   No new colours, radii, shadows or type sizes: tokens only.
   ===================================================================== */

/* the empty state is one card, never a third of a row */
.course-grid.cs-grid--empty{grid-template-columns:minmax(0,1fr)}

/* ---------------------------------------------------------------------
   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--fee{right:-6px;top:20px}
@media (max-width:539.98px){
  .cs-hero__chip--batch{left:4px;bottom:12px}
  .cs-hero__chip--fee{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-muted);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)}
/* A category the spec requires but no partner institute has filled yet. Words,
   not a bare "0", so the chip reads as deliberate rather than unfinished. */
.cs-cats .chip .count--none{font-variant-numeric:normal;letter-spacing:.01em}

.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-muted)}
.cs-filters .select{min-height:44px;font-size:15px}
.cs-filters__toggle{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  min-height:44px;gap:10px;
}
.cs-filters__toggle .check{font-weight:600;color:var(--ink-800);line-height:1.35}

.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. `.field` is a column by
   default; here the label belongs beside its select, on one line. */
.cs-sort{display:flex;flex-direction:row;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-muted)}
.cs-sort .select{min-height:44px;font-size:15px;min-width:190px}

/* The shared card renderer prints the fee without saying whose it is. The page
   script in courses.html rebuilds the whole `.course-card__fee` block before a
   card is inserted, and these two lines are part of that block: the caption
   above the figure and the promise under it. See sharedRequests. */
.cs-fee-label{
  width:100%;order:-1;margin:0;font-size:var(--fs-xs);color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.08em;font-weight:600;
}
.cs-fee-zero{
  width:100%;margin:0;display:flex;align-items:center;gap:6px;
  font-size:var(--fs-xs);color:var(--forest-700);font-weight:600;
}
.cs-fee-zero svg{width:14px;height:14px;color:var(--forest-600);flex:none}

.cs-foot{margin-top:var(--sp-8);max-width:88ch}

/* Teaching language, added to the chip row of every card by the page script. */
.cs-lang-chip{display:inline-flex;align-items:center;gap:6px}
.cs-lang-chip svg{width:14px;height:14px;color:var(--ink-500);flex:none}

/* 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
   --------------------------------------------------------------------- */
/* `align-items:start`, and no `height:100%` on the tile: an institute with one
   course should not be stretched to the height of an institute with three,
   which left ~150px of hollow card above the footer at 768. */
.cs-inst-grid{display:grid;gap:clamp(14px,1.8vw,20px);grid-template-columns:1fr;align-items:start}
@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)}
.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}

/* Last tile of the strip: the invitation, not an institute. Dashed edge and
   ivory ground so nobody reads it as a sixth partner. */
.cs-inst--join{
  border-style:dashed;border-color:var(--saffron-300);background:var(--surface-warm-2);
}
.cs-inst--join h3{font-size:var(--fs-h4);margin:0}
.cs-inst--join p{margin:0;font-size:var(--fs-sm);color:var(--ink-700);line-height:1.6}
.cs-inst__plus{
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;
  background:var(--saffron-100);color:var(--saffron-800);
}
.cs-inst__plus svg{width:20px;height:20px}

/* ---------------------------------------------------------------------
   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))} }
/* --text-muted, not --text-subtle: 12px at 3.82:1 fails AA on a white card. */
.cs-out__course{
  font-size:var(--fs-xs);color:var(--text-muted);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}

/* `.btn` is nowrap, and "Manjushri Akolkar, +91 83083 06251" is wider than a
   320px screen. A phone number must never be clipped, so this one wraps. */
@media (max-width:429.98px){
  .cs-listing__actions .btn{
    white-space:normal;text-align:left;justify-content:flex-start;
    height:auto;padding:12px 18px;line-height:1.35;max-width:100%;
  }
}

/* ---------------------------------------------------------------------
   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}
/* --text-muted, not --text-subtle: at 12px on the white dialog, subtle is
   3.82:1 and fails AA. Muted is 5.5:1 at the same visual weight, and these are
   the captions on the two positioning-critical rows (whose fee, whose plan). */
.cs-modal__facts dt,.cs-modal__facts .k{font-size:var(--fs-xs);color:var(--text-muted)}
.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)}

/* `.form-success` in styles.css sets `display:flex`, which beats the user
   agent's `[hidden]{display:none}`. Without this the success panel is
   visible on load on every page that uses the component. Same story for
   the skill-gap suggestion card, which is `display:flex` and starts hidden. */


/* Course cards: keep the status row the same height whether or not the
   institute offers placement support, so the fee block and the two
   buttons line up across a row. */
.course-card__status{margin:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* --text-muted, not --text-subtle: subtle is 3.6:1 on this tint, muted is 5.5:1. */
.cs-no-placement{
  color:var(--text-muted);background:var(--ink-50);border:1px solid var(--line);
}
.cs-no-placement svg{color:var(--ink-500)}

/* FAQ aside: a short help card under the button so the sticky column is
   not a tall empty gutter on wide screens. */
.cs-help{margin-top:var(--sp-6);padding:var(--sp-5);border-radius:var(--r-lg);
  border:1px solid var(--forest-200);background:var(--forest-50)}
.cs-help h3{font-size:var(--fs-h4);margin:0 0 var(--sp-2);color:var(--heading)}
.cs-help p{margin:0;font-size:var(--fs-sm);color:var(--ink-700);line-height:1.6}
.cs-help__list{list-style:none;margin:var(--sp-4) 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.cs-help__list li{margin:0;display:flex;gap:10px;align-items:flex-start;font-size:var(--fs-sm);color:var(--ink-700);line-height:1.5}
.cs-help__list svg{width:17px;height:17px;color:var(--forest-500);flex:none;margin-top:2px}
.cs-help__list a{color:var(--forest-700);font-weight:600}
@media (max-width:1023.98px){ .cs-help{margin-top:var(--sp-5)} }

/* "Already have the skill?" panel, a SIBLING of the stepper inside the left
   column of `.cs-enrol`, never a child of it: inside, step 4 stops being
   `:last-child` and the shared connector line hangs into empty space below it.
   It fills the column the four steps leave short of the form card on wide
   screens, and it is the honest nudge: do not buy a course you do not need. */
.cs-enrol__steps{display:flex;flex-direction:column;min-width:0}
.cs-already{
  margin-top:var(--sp-8);padding:var(--sp-6);border-radius:var(--r-lg);
  border:1px solid var(--saffron-200);background:var(--surface-warm);
  display:flex;flex-direction:column;gap:var(--sp-5);
}
.cs-already h3{font-size:var(--fs-h4);margin:0 0 var(--sp-2);color:var(--heading)}
.cs-already p{margin:0;font-size:var(--fs-sm);color:var(--ink-700);line-height:1.6;max-width:52ch}

/* The skill gap panel is a LIGHT card sitting inside the page's one dark band,
   so the global `.section--dark .btn--ghost` / `.link-arrow` colour
   (--saffron-300, meant for a dark ground) lands on an --ink-50 tint at
   1.69:1. Put the light-ground colours back inside the panel. Reported in
   sharedRequests: the on-dark rules should not reach inside a `.mock`. */
.section--dark .cs-gapcard .btn--ghost,
.section--dark .cs-gapcard .link-arrow{color:var(--forest-700)}
.section--dark .cs-gapcard .btn--ghost:hover,
.section--dark .cs-gapcard .link-arrow:hover{background:var(--forest-50);color:var(--forest-800)}

