/* Course listing pages (/courses/, /courses/specialized/, /courses/free/).
   Presentation only: every text, price, link and filter comes from the templates unchanged.
   Scoped to body.ch-on (added by Content\CourseHub). Mobile (<768px) is laid out like an app. */

body.ch-on {
  --ch-navy: #04223b;
  --ch-navy-2: #072f4f;
  --ch-blue: #0167ad;
  --ch-blue-2: #0b7fc4;
  --ch-gold: #fba830;
  --ch-gold-2: #ffd08a;
  --ch-ink: #13293d;
  --ch-muted: #5b6e80;
  --ch-line: #e3eaf1;
  --ch-bg: #f3f6f9;
  --ch-card-shadow: 0 1px 2px rgba(4, 34, 59, .05), 0 14px 34px -24px rgba(4, 34, 59, .42);
  --ch-card-shadow-hover: 0 2px 4px rgba(4, 34, 59, .06), 0 26px 48px -28px rgba(4, 34, 59, .55);
  --ch-ease: cubic-bezier(.22, 1, .36, 1);
  --ch-top: 64px;
}

/* ---------------------------------------------------------------- shared bits */
html body.ch-on .ch-pre { opacity: 0; transform: translate3d(0, 14px, 0); }
html body.ch-on .ch-pre.ch-in { opacity: 1; transform: none; transition: opacity .5s var(--ch-ease), transform .55s var(--ch-ease); }
@media (prefers-reduced-motion: reduce) {
  html body.ch-on .ch-pre { opacity: 1; transform: none; }
}

/* ================================================================
   /courses/ and /courses/specialized/  (template-parts/shop/learning-hub.php)
   ================================================================ */
body.ch-on .learning-hub { background: var(--ch-bg); color: var(--ch-ink); }

/* ---------- hero: deep navy, like the course pages ---------- */
body.ch-on .learning-hub .lh-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 26px 0 0; border-bottom: 0; color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 88% 12%, rgba(11, 127, 196, .38), transparent 62%),
    radial-gradient(ellipse 45% 60% at 8% 92%, rgba(251, 168, 48, .16), transparent 64%),
    linear-gradient(118deg, #031a2e 0%, #062c4b 52%, #04223b 100%);
}
body.ch-on .learning-hub .lh-hero::before { animation: none; background: none; }
body.ch-on .learning-hub .lh-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%);
}
body.ch-on .learning-hub .lh-breadcrumb { color: rgba(255, 255, 255, .55); margin-bottom: 22px; }
body.ch-on .learning-hub .lh-breadcrumb a { color: rgba(255, 255, 255, .8); }
body.ch-on .learning-hub .lh-breadcrumb a:hover { color: var(--ch-gold-2); }
body.ch-on .learning-hub .lh-hero-copy .lh-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
  padding: 5px 13px; margin-bottom: 14px; border: 1px solid rgba(255, 208, 138, .32); border-radius: 999px;
  background: rgba(251, 168, 48, .1); color: var(--ch-gold-2); font-size: 12.5px; font-weight: 800;
}
body.ch-on .learning-hub .lh-hero-copy .lh-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ch-gold); box-shadow: 0 0 0 4px rgba(251, 168, 48, .18); }
body.ch-on .learning-hub .lh-hero-copy h1 { color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, .18); }
body.ch-on .learning-hub .lh-hero-copy h1 span {
  color: var(--ch-gold-2);
  background: linear-gradient(100deg, #ffe2aa, #fbb040 60%, #ffd08a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.ch-on .learning-hub .lh-hero-copy > p { color: #c7d7e4; }
body.ch-on .learning-hub .lh-hero-copy > .lh-button--primary {
  min-height: 52px; padding-inline: 24px; border-radius: 14px; border: 1px solid #ffe1a8;
  background: linear-gradient(115deg, #ffde9a, #ffc365 45%, #fba830); color: #2f1c00 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 30px -14px rgba(251, 168, 48, .65);
  transition: transform .2s var(--ch-ease), box-shadow .2s ease, filter .2s ease;
}
body.ch-on .learning-hub .lh-hero-copy > .lh-button--primary:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 36px -14px rgba(251, 168, 48, .75); }
body.ch-on .learning-hub .lh-hero-copy > .lh-text-link { color: #fff; opacity: .88; }
body.ch-on .learning-hub .lh-hero-copy > .lh-text-link:hover { opacity: 1; color: var(--ch-gold-2); }

/* "where do I start" card: glass panel on the navy hero */
body.ch-on .learning-hub .lh-start {
  position: relative; padding: 22px 22px 16px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -34px rgba(0, 0, 0, .7);
}
body.ch-on .learning-hub .lh-start-label { font-size: 16px; color: #fff; margin-bottom: 8px !important; }
body.ch-on .learning-hub .lh-start > a {
  margin-inline: -10px; padding: 14px 10px; border-radius: 16px; border-bottom: 0;
  transition: background .2s ease, color .2s ease;
}
body.ch-on .learning-hub .lh-start > a + a { box-shadow: 0 -1px 0 rgba(255, 255, 255, .08); }
body.ch-on .learning-hub .lh-start > a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
body.ch-on .learning-hub .lh-start > a > svg:last-child { color: var(--ch-gold-2); transition: transform .2s var(--ch-ease); }
body.ch-on .learning-hub .lh-start > a:hover > svg:last-child { transform: translateX(-4px); }
body.ch-on .learning-hub .lh-route-icon {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255, 208, 138, .3);
  background: linear-gradient(145deg, rgba(251, 168, 48, .22), rgba(251, 168, 48, .06)); color: var(--ch-gold-2);
}
body.ch-on .learning-hub .lh-start small { color: #a9bfd0; }
body.ch-on .learning-hub .lh-start .lh-start-help { margin-top: 4px; padding: 12px 10px; font-size: 12.5px; color: #d3e2ee; background: rgba(0, 0, 0, .14); }
body.ch-on .learning-hub .lh-start .lh-start-help > svg:first-child { color: var(--ch-gold-2); }

body.ch-on .learning-hub .lh-assurance { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 34px; padding: 18px 0 22px; gap: 10px; color: #d2e0ea; }
body.ch-on .learning-hub .lh-assurance > span {
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 12.5px;
}
body.ch-on .learning-hub .lh-assurance svg { color: var(--ch-gold-2); }

/* ---------- sections ---------- */
body.ch-on .learning-hub .lh-primary { background: var(--ch-bg); }
body.ch-on .learning-hub .lh-catalog { background: #fff; }
body.ch-on .learning-hub .lh-section-heading .lh-eyebrow,
body.ch-on .learning-hub .lh-catalog .lh-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; margin-bottom: 10px;
  padding: 4px 12px; border-radius: 999px; background: #e3f0f9; color: var(--ch-blue); font-size: 12px; font-weight: 800;
}
body.ch-on .learning-hub .lh-section-heading .lh-eyebrow::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--ch-gold); }
body.ch-on .learning-hub .lh-section-heading h2 { color: var(--ch-navy); }
body.ch-on .learning-hub .lh-section-heading > p { color: var(--ch-muted); }

/* ---------- the two main courses ---------- */
body.ch-on .learning-hub .lh-primary-card {
  border: 1px solid var(--ch-line); border-radius: 26px; box-shadow: var(--ch-card-shadow);
  transition: transform .35s var(--ch-ease), box-shadow .35s ease;
}
body.ch-on .learning-hub .lh-primary-cover { background: linear-gradient(150deg, #0a3a60, #04223b); }
body.ch-on .learning-hub .lh-primary-cover > img { transition: transform .6s var(--ch-ease); }
body.ch-on .learning-hub .lh-level { border-radius: 999px; padding: 6px 12px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); }
body.ch-on .learning-hub .lh-course-label { display: inline-flex; width: max-content; max-width: 100%; padding: 3px 10px; border-radius: 999px; background: #e7f2fa; }
body.ch-on .learning-hub .lh-primary-card--premium .lh-course-label { background: rgba(255, 208, 138, .12); }
body.ch-on .learning-hub .lh-teacher img { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ch-line); }
body.ch-on .learning-hub .lh-primary-card--premium .lh-teacher img { box-shadow: 0 0 0 2px var(--ch-navy), 0 0 0 3px rgba(255, 208, 138, .5); }
body.ch-on .learning-hub .lh-enroll { border-top-style: dashed; }
body.ch-on .learning-hub .lh-tuition strong { font-size: 20px; letter-spacing: -.2px; }
body.ch-on .learning-hub .lh-discount { border-radius: 999px; padding: 3px 10px; background: linear-gradient(135deg, #d42a3d, #b01b2e); box-shadow: 0 6px 14px -8px rgba(176, 27, 46, .8); }
body.ch-on .learning-hub .lh-primary-card--premium {
  background: radial-gradient(ellipse 80% 50% at 100% 100%, rgba(251, 168, 48, .12), transparent 60%), linear-gradient(165deg, #0a3354, #04223b 55%);
  border-color: rgba(255, 208, 138, .28);
}
body.ch-on .learning-hub .lh-button { border-radius: 14px; min-height: 52px; font-weight: 800; transition: transform .2s var(--ch-ease), box-shadow .2s ease, filter .2s ease, background .2s ease; }
body.ch-on .learning-hub .lh-primary-card .lh-button--primary { background: linear-gradient(115deg, #0b7fc4, #0167ad 55%, #01508a); box-shadow: 0 14px 28px -16px rgba(1, 103, 173, .85); }
body.ch-on .learning-hub .lh-button--accent { background: linear-gradient(115deg, #ffde9a, #ffc365 45%, #fba830); border-color: #ffe1a8; color: #2f1c00 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 28px -16px rgba(251, 168, 48, .8); }
body.ch-on .learning-hub .lh-button > svg { transition: transform .2s var(--ch-ease); }

@media (hover: hover) {
  body.ch-on .learning-hub .lh-primary-card:hover { transform: translateY(-5px); box-shadow: var(--ch-card-shadow-hover); }
  body.ch-on .learning-hub .lh-primary-card:hover .lh-primary-cover > img { transform: scale(1.03); }
  body.ch-on .learning-hub .lh-button:hover > svg { transform: translateX(-4px); }
  body.ch-on .learning-hub .lh-primary-card .lh-button--primary:hover { filter: brightness(1.08); }
}

/* AI workshop card */
body.ch-on .learning-hub .lh-ai-workshop { border-radius: 28px; border-color: rgba(200, 156, 77, .7); box-shadow: 0 30px 60px -36px rgba(4, 34, 59, .9); }

/* ---------- catalog (search, filters, cards) ---------- */
body.ch-on .learning-hub .lh-controls {
  padding: 18px; border: 1px solid var(--ch-line); border-radius: 22px; background: #fff; box-shadow: var(--ch-card-shadow);
}
body.ch-on .learning-hub .lh-controls label { color: var(--ch-muted); font-size: 12px; font-weight: 800; }
body.ch-on .learning-hub .lh-search-field > div,
body.ch-on .learning-hub .lh-sort-field select {
  border: 1px solid var(--ch-line); border-radius: 14px; background: var(--ch-bg); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body.ch-on .learning-hub .lh-search-field > div:focus-within { background: #fff; border-color: rgba(1, 103, 173, .45); box-shadow: 0 0 0 4px rgba(1, 103, 173, .1); }
body.ch-on .learning-hub .lh-search-field input:focus { outline: none; }
body.ch-on .learning-hub .lh-filters {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #edf2f6; flex-wrap: nowrap;
}
body.ch-on .learning-hub .lh-filters button {
  min-height: 40px; padding: 7px 16px; border: 0; border-radius: 11px; background: transparent; color: var(--ch-muted); font-weight: 800;
}
body.ch-on .learning-hub .lh-filters button[aria-pressed="true"] { background: #fff; color: var(--ch-navy); box-shadow: 0 1px 2px rgba(4, 34, 59, .08), 0 6px 14px -8px rgba(4, 34, 59, .35); }
body.ch-on .learning-hub .lh-filters button:hover:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .6); color: var(--ch-navy); }
body.ch-on .learning-hub .lh-count { color: var(--ch-muted); font-weight: 600; }

body.ch-on .learning-hub .lh-catalog-grid { gap: 22px; }
body.ch-on .learning-hub .lh-course {
  border: 1px solid var(--ch-line); border-radius: 22px; background: #fff; box-shadow: var(--ch-card-shadow);
  transition: transform .35s var(--ch-ease), box-shadow .35s ease, border-color .35s ease;
}
body.ch-on .learning-hub .lh-course-cover { background: linear-gradient(150deg, #e9f2f9, #dde9f3); }
body.ch-on .learning-hub .lh-course-cover img { transition: transform .6s var(--ch-ease); }
body.ch-on .learning-hub .lh-course-cover > .lh-discount,
body.ch-on .learning-hub .lh-free-badge { border-radius: 999px; padding: 3px 10px; font-size: 11.5px; }
body.ch-on .learning-hub .lh-free-badge { background: #e3f6ec; border-color: #bfe3cf; }
body.ch-on .learning-hub .lh-course-body { padding: 18px 20px 18px; min-height: 0; }
body.ch-on .learning-hub .lh-course-body h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  white-space: normal; text-wrap: pretty; font-size: 17px; line-height: 1.8; min-height: 3.6em; margin-bottom: 8px; color: var(--ch-navy);
}
body.ch-on .learning-hub .lh-date { margin-bottom: 14px !important; }
body.ch-on .learning-hub .lh-course-bottom { border-top: 1px dashed var(--ch-line); padding-top: 14px; align-items: center; }
body.ch-on .learning-hub .lh-course .lh-price strong { font-size: 18px; color: var(--ch-navy); }
body.ch-on .learning-hub .lh-price .lh-free { display: inline-flex; padding: 2px 12px; border-radius: 999px; background: #e3f6ec; color: #17603f; font-size: 15px; }
body.ch-on .learning-hub .lh-more {
  padding: 7px 12px; border-radius: 999px; background: #e7f2fa; color: var(--ch-blue); transition: background .2s ease, color .2s ease, gap .2s ease;
}
@media (hover: hover) {
  body.ch-on .learning-hub .lh-course:hover { transform: translateY(-5px); box-shadow: var(--ch-card-shadow-hover); border-color: #cfdeea; }
  body.ch-on .learning-hub .lh-course:hover .lh-course-cover img { transform: scale(1.04); }
  body.ch-on .learning-hub .lh-course:hover .lh-more { background: var(--ch-blue); color: #fff; gap: 9px; }
}
body.ch-on .learning-hub .lh-pagination { gap: 6px; }
body.ch-on .learning-hub .lh-pagination button {
  min-width: 44px; min-height: 44px; border: 1px solid var(--ch-line); border-radius: 14px; background: #fff; font-weight: 800; color: var(--ch-ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ch-ease);
}
body.ch-on .learning-hub .lh-pagination button:hover:not(:disabled):not([aria-current="page"]) { border-color: #bcd3e4; color: var(--ch-blue); transform: translateY(-1px); }
body.ch-on .learning-hub .lh-pagination button[aria-current="page"] { background: var(--ch-navy); border-color: var(--ch-navy); color: #fff; box-shadow: 0 10px 20px -12px rgba(4, 34, 59, .8); }
body.ch-on .learning-hub .lh-empty { border-radius: 22px; border: 1px dashed #c9d9e6; background: var(--ch-bg); }

/* anchors land below the pinned header (and the mobile tabs) */
body.ch-on .learning-hub :is(#featured, #courses, .lh-primary-card, .lh-ai-workshop) { scroll-margin-top: calc(var(--ch-top) + 16px); }

/* ================================================================
   /courses/free/  (template-parts/shop/section-03 + courses + scripts)
   ================================================================ */
body.ch-mode-free.ch-on main > section.mesh h1 { text-shadow: 0 2px 22px rgba(0, 0, 0, .18); }
body.ch-mode-free.ch-on #courses { background: var(--ch-bg); }
body.ch-mode-free.ch-on #courses .sec-num { display: none; }
body.ch-mode-free.ch-on #courses > div > div.text-center h2 { color: var(--ch-navy); font-size: clamp(26px, 3vw, 38px); margin-top: 0; }
body.ch-mode-free.ch-on #courses .archive-toolbar {
  padding: 12px; border: 1px solid var(--ch-line); border-radius: 22px; background: #fff; box-shadow: var(--ch-card-shadow);
}
body.ch-mode-free.ch-on #courses .archive-search { border-radius: 14px; background: var(--ch-bg); border-color: var(--ch-line); min-height: 48px; }
body.ch-mode-free.ch-on #courses .archive-search:focus-within { background: #fff; }
body.ch-mode-free.ch-on #courses .archive-filter { gap: 4px; padding: 4px; border-radius: 14px; background: #edf2f6; }
body.ch-mode-free.ch-on #courses .archive-filter .free-tab-btn { border: 0; background: transparent; color: var(--ch-muted); border-radius: 11px; padding: 8px 16px; min-height: 40px; }
body.ch-mode-free.ch-on #courses .archive-filter .free-tab-btn.active { background: #fff; color: var(--ch-navy); box-shadow: 0 1px 2px rgba(4, 34, 59, .08), 0 6px 14px -8px rgba(4, 34, 59, .35); }
body.ch-mode-free.ch-on #courseGrid { gap: 22px; }
body.ch-mode-free.ch-on #courseGrid .course-card {
  border: 1px solid var(--ch-line); border-radius: 22px; box-shadow: var(--ch-card-shadow);
  transition: transform .35s var(--ch-ease), box-shadow .35s ease, border-color .35s ease;
}
body.ch-mode-free.ch-on #courseGrid .course-card::before { display: none; }
body.ch-mode-free.ch-on #courseGrid .course-thumb { background: linear-gradient(150deg, #e9f2f9, #dde9f3); }
body.ch-mode-free.ch-on #courseGrid .course-thumb img { transition: transform .6s var(--ch-ease); }
body.ch-mode-free.ch-on #courseGrid .course-card > div + div { padding: 18px 20px; }
body.ch-mode-free.ch-on #courseGrid .course-card h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 17px; line-height: 1.8; min-height: 3.6em; margin-bottom: 4px; color: var(--ch-navy);
}
body.ch-mode-free.ch-on #courseGrid .course-card .border-t { border-top-style: dashed; }
body.ch-mode-free.ch-on #courseGrid .article-more { padding: 7px 12px; border-radius: 999px; background: #e7f2fa; transition: background .2s ease, color .2s ease; }
body.ch-mode-free.ch-on #courseGrid .course-price-text.bg-accent-tint { background: #e3f6ec; color: #17603f; font-weight: 800; }
@media (hover: hover) {
  body.ch-mode-free.ch-on #courseGrid .course-card:hover { transform: translateY(-5px); box-shadow: var(--ch-card-shadow-hover); border-color: #cfdeea; }
  body.ch-mode-free.ch-on #courseGrid .course-card:hover .course-thumb img { transform: scale(1.04); }
  body.ch-mode-free.ch-on #courseGrid .course-card:hover .article-more { background: var(--ch-blue); color: #fff; }
}
body.ch-mode-free.ch-on #coursePagination .archive-page-btn { min-width: 44px; height: 44px; border-radius: 14px; font-weight: 800; }
body.ch-mode-free.ch-on #coursePagination .archive-page-btn.is-active { background: var(--ch-navy); border-color: var(--ch-navy); box-shadow: 0 10px 20px -12px rgba(4, 34, 59, .8); }

/* ================================================================
   Tablet
   ================================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  body.ch-on .learning-hub .lh-start { background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); }
}

/* ================================================================
   Mobile: app-like screens
   ================================================================ */
.ch-tabs { display: none; }

@media (max-width: 767px) {
  body.ch-on { --ch-top: 61px; background: var(--ch-bg); }
  body.ch-on .learning-hub,
  body.ch-mode-free.ch-on main { background: var(--ch-bg); }

  /* press feedback like a native list */
  body.ch-on :is(.lh-course-link, .lh-button, .lh-start > a, .lh-primary-cover, .course-card, .free-tab-btn, .archive-page-btn, .lh-filters button, .lh-pagination button, .ch-tabs button, main > section.mesh .btn) {
    -webkit-tap-highlight-color: transparent;
  }
  body.ch-on :is(.lh-course-link, .lh-start > a, .course-card):active { transform: scale(.985); transition: transform .12s ease; }
  body.ch-on :is(.lh-button, .lh-filters button, .lh-pagination button, .free-tab-btn, .archive-page-btn, main > section.mesh .btn):active { transform: scale(.97); transition: transform .12s ease; }

  /* ---------- hero = app screen header ---------- */
  body.ch-on .learning-hub .lh-hero { padding: 18px 0 30px; }
  body.ch-on .learning-hub .lh-breadcrumb { display: none; }
  body.ch-on .learning-hub .lh-hero-layout { gap: 18px; }
  body.ch-on .learning-hub .lh-hero-copy { text-align: right; }
  body.ch-on .learning-hub .lh-hero-copy .lh-eyebrow { font-size: 11.5px; margin-bottom: 10px; }
  body.ch-on .learning-hub .lh-hero-copy h1 { font-size: 27px; line-height: 1.55; }
  body.ch-on .learning-hub .lh-hero-copy h1 span { font-size: .78em; margin-top: 2px; }
  body.ch-on .learning-hub .lh-hero-copy > p { font-size: 14px; line-height: 2; margin: 10px 0 18px; }
  body.ch-on .learning-hub .lh-hero-copy > .lh-button { width: 100%; min-height: 52px; font-size: 15px; }
  body.ch-on .learning-hub .lh-hero-copy > .lh-text-link {
    width: 100%; min-height: 48px; margin: 10px 0 0; justify-content: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .05);
  }
  body.ch-on .learning-hub .lh-start { padding: 16px 14px 10px; border-radius: 22px; }
  body.ch-on .learning-hub .lh-start-label { font-size: 13px; color: #a9bfd0; font-weight: 800; padding-inline: 4px; }
  body.ch-on .learning-hub .lh-start > a { margin-inline: -4px; padding: 12px 6px; }
  body.ch-on .learning-hub .lh-start strong { font-size: 14px; }
  body.ch-on .learning-hub .lh-route-icon { width: 42px; height: 42px; border-radius: 13px; }
  body.ch-on .learning-hub .lh-assurance {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 18px -16px 0; padding: 0 16px; border-top: 0; gap: 8px;
  }
  body.ch-on .learning-hub .lh-assurance::-webkit-scrollbar { display: none; }
  body.ch-on .learning-hub .lh-assurance > span { flex: 0 0 auto; font-size: 12px; padding: 7px 12px; white-space: nowrap; }

  /* the page slides up over the hero like a sheet */
  body.ch-on .learning-hub .lh-hero + .lh-section,
  body.ch-on .learning-hub .ch-tabs + .lh-section { position: relative; z-index: 1; }
  body.ch-on .learning-hub .ch-tabs {
    display: block; position: sticky; top: var(--ch-top); z-index: 30; margin-top: -20px; padding: 10px 16px 8px;
    border-radius: 22px 22px 0 0; background: var(--ch-bg);
    transition: box-shadow .25s ease, border-radius .25s ease;
  }
  body.ch-on .learning-hub .ch-tabs.is-stuck { border-radius: 0; box-shadow: 0 10px 20px -18px rgba(4, 34, 59, .6); }
  .ch-tabs__track { position: relative; display: flex; padding: 4px; border-radius: 15px; background: #e4ebf1; }
  .ch-tabs__pill {
    position: absolute; inset-block: 4px; right: 4px; width: calc((100% - 8px) / var(--ch-count, 2)); border-radius: 11px; background: #fff;
    box-shadow: 0 1px 2px rgba(4, 34, 59, .1), 0 6px 14px -8px rgba(4, 34, 59, .4);
    transform: translateX(calc(var(--ch-index, 0) * -100%)); transition: transform .35s var(--ch-ease);
  }
  .ch-tabs button {
    position: relative; z-index: 1; flex: 1; min-width: 0; min-height: 40px; padding: 6px 8px; border: 0; background: none; border-radius: 11px;
    color: var(--ch-muted); font: 800 13px/1.6 IRANSansX, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
    transition: color .25s ease;
  }
  .ch-tabs button[aria-current="true"] { color: var(--ch-navy); }
  .ch-tabs button:focus-visible { outline: 2px solid var(--ch-gold); outline-offset: 1px; }

  body.ch-on .learning-hub .lh-section { padding-block: 18px 26px; }
  body.ch-on .learning-hub .lh-primary { background: var(--ch-bg); }
  body.ch-on .learning-hub .lh-catalog { background: var(--ch-bg); padding-bottom: 34px; }
  body.ch-on .learning-hub .lh-section-heading { gap: 4px; margin-bottom: 16px; text-align: right; }
  body.ch-on .learning-hub .lh-section-heading .lh-eyebrow { font-size: 11px; margin-bottom: 6px; }
  body.ch-on .learning-hub .lh-section-heading h2 { font-size: 22px; line-height: 1.6; }
  body.ch-on .learning-hub .lh-section-heading > p { font-size: 13px; line-height: 1.9; }

  /* main course cards */
  body.ch-on .learning-hub .lh-primary-grid { gap: 16px; }
  body.ch-on .learning-hub .lh-primary-card { border-radius: 24px; }
  body.ch-on .learning-hub .lh-primary-cover { aspect-ratio: 16 / 10; }
  body.ch-on .learning-hub .lh-level { inset: 10px 10px auto auto; font-size: 11px; padding: 5px 10px; }
  body.ch-on .learning-hub .lh-primary-body { padding: 16px 18px 18px; }
  body.ch-on .learning-hub .lh-primary-body .lh-course-label,
  body.ch-on .learning-hub .lh-primary-body h3 { text-align: right; }
  body.ch-on .learning-hub .lh-primary-body .lh-course-label { font-size: 11px; }
  body.ch-on .learning-hub .lh-primary-body h3 { font-size: 20px; line-height: 1.6; margin-top: 4px; }
  body.ch-on .learning-hub .lh-teacher { justify-content: flex-start; padding: 12px 0; }
  body.ch-on .learning-hub .lh-outcomes { gap: 6px; margin-bottom: 16px !important; }
  body.ch-on .learning-hub .lh-outcomes li { font-size: 13px; line-height: 1.8; }
  body.ch-on .learning-hub .lh-enroll { padding-top: 14px; }
  body.ch-on .learning-hub .lh-tuition { margin-bottom: 12px; }
  body.ch-on .learning-hub .lh-tuition strong { font-size: 18px; }
  body.ch-on .learning-hub .lh-enroll > .lh-button { min-height: 52px; }

  /* AI workshop */
  body.ch-on .learning-hub .lh-ai-workshop { border-radius: 24px; margin-bottom: 16px; }
  body.ch-on .learning-hub .lh-ai-workshop-poster { min-height: 300px; }
  body.ch-on .learning-hub .lh-ai-workshop__body { padding: 18px; text-align: right; }
  body.ch-on .learning-hub .lh-ai-workshop__body h3 { font-size: 21px; }
  body.ch-on .learning-hub .lh-ai-workshop__body > p { margin: 8px 0 14px; }
  body.ch-on .learning-hub .lh-ai-workshop__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
  body.ch-on .learning-hub .lh-ai-workshop__facts > div { display: grid; gap: 2px; justify-content: stretch; text-align: center; padding: 9px 6px; }
  body.ch-on .learning-hub .lh-ai-workshop__facts dt { font-size: 10.5px; }
  body.ch-on .learning-hub .lh-ai-workshop__facts dd { font-size: 12px; white-space: normal; }

  /* catalog: compact search bar + segmented filters */
  body.ch-on .learning-hub .lh-controls { padding: 10px; border-radius: 20px; }
  body.ch-on .learning-hub .lh-search-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body.ch-on .learning-hub .lh-controls label {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  body.ch-on .learning-hub .lh-search-field input { min-height: 46px; font-size: 16px; }
  body.ch-on .learning-hub .lh-sort-field select { min-height: 44px; font-size: 13px; }
  body.ch-on .learning-hub .lh-filter-row { margin-top: 8px; gap: 8px; align-items: center; flex-wrap: nowrap; }
  body.ch-on .learning-hub .lh-filters { display: flex; flex: 1; min-width: 0; }
  body.ch-on .learning-hub .lh-filters button { flex: 1; padding: 6px 8px; min-height: 38px; font-size: 12.5px; }
  body.ch-on .learning-hub .lh-reset { flex: 0 0 auto; font-size: 12px; min-height: 38px; }
  body.ch-on .learning-hub .lh-count { padding: 12px 4px 10px; font-size: 12px; }

  /* course cards: full size like before (big cover on top), just tidier */
  body.ch-on .learning-hub .lh-catalog-grid { gap: 16px; }
  body.ch-on .learning-hub .lh-course { border-radius: 22px; }
  body.ch-on .learning-hub .lh-course-body { padding: 16px 18px 18px; }
  body.ch-on .learning-hub .lh-course-body h3 { font-size: 17px; line-height: 1.8; min-height: 0; margin-bottom: 6px; }
  body.ch-on .learning-hub .lh-date { margin-bottom: 12px !important; }
  body.ch-on .learning-hub .lh-course-bottom { padding-top: 12px; }
  body.ch-on .learning-hub .lh-course .lh-price strong { font-size: 18px; white-space: nowrap; }
  body.ch-on .learning-hub .lh-pagination { padding-top: 18px; }
  body.ch-on .learning-hub .lh-pagination button { min-width: 42px; min-height: 42px; border-radius: 13px; }

  /* ---------- /courses/free/ ---------- */
  body.ch-mode-free.ch-on main > section.mesh > div:first-child { padding-top: 18px; padding-bottom: 30px; gap: 18px; }
  body.ch-mode-free.ch-on main > section.mesh > div:first-child > div:first-child { text-align: right; }
  body.ch-mode-free.ch-on main > section.mesh nav[aria-label="مسیر"] { display: none; }
  body.ch-mode-free.ch-on main > section.mesh h1 { font-size: 27px; line-height: 1.55; margin-bottom: 10px; }
  body.ch-mode-free.ch-on main > section.mesh h1 + p { font-size: 14px; line-height: 2; margin-bottom: 18px; }
  body.ch-mode-free.ch-on main > section.mesh .btn { min-height: 52px; border-radius: 14px; }
  body.ch-mode-free.ch-on main > section.mesh > div:last-child:not(:first-child) { display: none; } /* wave; the list below slides up as a sheet instead */
  body.ch-mode-free.ch-on .mobile-hero-detail { border-radius: 16px; }
  body.ch-mode-free.ch-on #courses { position: relative; z-index: 1; margin-top: -20px; border-radius: 22px 22px 0 0; padding: 22px 0 30px; }
  body.ch-mode-free.ch-on #courses > div > div.text-center { text-align: right; margin-bottom: 14px; }
  body.ch-mode-free.ch-on #courses > div > div.text-center h2 { font-size: 22px; line-height: 1.6; margin-bottom: 4px; }
  body.ch-mode-free.ch-on #courses > div > div.text-center p { font-size: 13px; line-height: 1.9; margin: 0; }
  body.ch-mode-free.ch-on #courses .archive-toolbar { position: sticky; top: calc(var(--ch-top) + 8px); z-index: 20; padding: 8px; gap: 8px; border-radius: 20px; }
  body.ch-mode-free.ch-on #courses .archive-search { min-height: 44px; }
  body.ch-mode-free.ch-on #courses .archive-search input { font-size: 16px; }
  body.ch-mode-free.ch-on #courses .archive-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.ch-mode-free.ch-on #courses .archive-filter::-webkit-scrollbar { display: none; }
  body.ch-mode-free.ch-on #courses .archive-filter .free-tab-btn { flex: 0 0 auto; min-height: 36px; padding: 5px 14px; font-size: 12.5px; }
  body.ch-mode-free.ch-on #courses #courseCount { font-weight: 800; }
  body.ch-mode-free.ch-on #courseGrid { gap: 16px; margin-top: 14px; }
  body.ch-mode-free.ch-on #courseGrid .course-card > div + div { padding: 16px 18px 18px; }
  body.ch-mode-free.ch-on #courseGrid .course-card h3 { font-size: 17px; min-height: 0; }
  body.ch-mode-free.ch-on #coursePagination { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.ch-on .learning-hub *, body.ch-mode-free.ch-on #courseGrid *, .ch-tabs__pill { transition: none !important; }
}
