/* =========================================================================
   site.css — styles for the public CodingClave website (generated pages).
   Loaded alongside styles.css. Reuses the lesson/sidebar/snippet design from
   styles.css and adds: top nav, homepage, subject menus, footer, CTAs.
   ========================================================================= */

a { text-decoration: none; }
.content a:not(.btn):not(.nav-card):not(.lesson-row):hover { text-decoration: underline; }

/* ========================= Top navigation ========================= */
.site-nav {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.5px; color: var(--text); }
.site-logo .mark {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-content: center; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
  font-family: var(--mono); font-size: 16px; letter-spacing: -1px;
}
.site-logo .clave { color: var(--brand); }
body.dark .site-logo .clave { color: #8b95ff; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13.5px; font-weight: 600; color: var(--text-soft);
  padding: 8px 12px; border-radius: 8px; transition: .14s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); }

/* Courses dropdown (header) */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-soft); background: transparent; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 8px; }
.nav-dd-btn:hover { background: var(--surface-2); color: var(--text); }
.nav-dd .dd-caret { font-size: 10px; transition: transform .15s; }
.nav-dd:hover .dd-caret, .nav-dd.open .dd-caret { transform: rotate(180deg); }
.nav-dd-menu { display: none; position: absolute; top: 100%; left: 0; margin-top: 6px; width: 560px; max-width: 92vw;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; grid-template-columns: 1fr 1fr; gap: 2px; z-index: 60; }
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: grid; }
.nav-dd-menu a { display: block; padding: 9px 12px; font-size: 13.5px; font-weight: 500; color: var(--text-soft); border-radius: 8px; line-height: 1.3; }
.nav-dd-menu a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.nav-dd-menu a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta {
  font-size: 13.5px; font-weight: 700; color: #fff; background: var(--brand);
  padding: 9px 16px; border-radius: 10px; transition: .14s; white-space: nowrap;
}
.nav-cta:hover { background: var(--brand-strong); }

/* Search */
.search { position: relative; }
.search input {
  width: 210px; font: inherit; font-size: 13.5px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px 8px 32px; outline: none; transition: .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238b91a7' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px center;
}
.search input:focus { border-color: var(--brand); width: 240px; }
.search-results {
  position: absolute; top: 46px; right: 0; width: 360px; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60;
}
.search-results.open { display: block; }
.search-results a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.search-results a:hover, .search-results a.sel { background: var(--brand-soft); }
.search-results a b { font-size: 14px; display: block; }
.search-results a span { font-size: 12px; color: var(--text-mute); }
.search-results .empty { padding: 14px; color: var(--text-mute); font-size: 13.5px; text-align: center; }

.nav-toggle { display: none; }

/* ===== Course bar — all course names as menu items (W3Schools-style) ===== */
:root { --coursebar-h: 46px; }
.course-bar {
  position: sticky; top: var(--topbar-h); z-index: 45;
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px 4px;
  min-height: var(--coursebar-h); padding: 5px 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
/* the 5 flagship courses live in the top row on desktop, so hide their copies here */
.course-bar a.cb-dup { display: none; }
.course-bar .cb-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-mute); margin-right: 8px; flex: 0 0 auto; }
.course-bar a { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text-soft); padding: 7px 13px; border-radius: 8px; flex: 0 0 auto; transition: .12s; }
.course-bar a:hover { background: var(--surface-2); color: var(--text); }
.course-bar a.active { color: var(--brand); background: var(--brand-soft); }

/* sidebar + sticky course-page nav sit below BOTH the header and the course bar */
.sidebar { top: calc(var(--topbar-h) + var(--coursebar-h)); height: calc(100vh - var(--topbar-h) - var(--coursebar-h)); }
body.nav-open::after { top: calc(var(--topbar-h) + var(--coursebar-h)); }

/* ========================= Homepage ========================= */
.home-main { max-width: 1140px; margin: 0 auto; padding: 0 24px 60px; }

.hero {
  text-align: center; padding: 70px 20px 50px;
  background:
    radial-gradient(1200px 380px at 50% -120px, color-mix(in srgb, var(--brand) 22%, transparent), transparent),
    radial-gradient(800px 300px at 80% 0, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft); padding: 6px 14px; border-radius: 99px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -1.8px; margin: 0 auto 18px; max-width: 760px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: var(--text-soft); max-width: 600px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; padding: 14px 26px; border-radius: 12px; transition: .15s; cursor: pointer; border: 1px solid transparent; }
.btn-lg.primary { background: var(--brand); color: #fff; }
.btn-lg.primary:hover { background: var(--brand-strong); transform: translateY(-2px); }
.btn-lg.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-lg.ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero .trust { margin-top: 26px; font-size: 13.5px; color: var(--text-mute); }

.section-head { text-align: center; margin: 56px 0 26px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.8px; margin: 0 0 8px; }
.section-head p { font-size: 16px; color: var(--text-soft); margin: 0; }

.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.subject-tile {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; transition: .16s; border-top: 4px solid var(--c); position: relative; overflow: hidden;
}
.subject-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.subject-tile .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-content: center; margin-bottom: 14px;
  font-family: var(--mono); font-weight: 700; font-size: 20px; color: #fff;
  background: var(--c);
}
.subject-tile .stag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--c); }
.subject-tile h3 { margin: 4px 0 6px; font-size: 20px; letter-spacing: -.4px; color: var(--text); }
.subject-tile p { font-size: 14px; color: var(--text-soft); margin: 0 0 16px; line-height: 1.55; }
.subject-tile .meta { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c); }
.subject-tile .meta .arrow { transition: .2s; }
.subject-tile:hover .meta .arrow { transform: translateX(4px); }

.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.path-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: .16s; }
.path-card:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.path-card .ribbon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.path-card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.4px; }
.path-card p { font-size: 14px; color: var(--text-soft); margin: 0 0 16px; }
.path-card .stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.path-card .chip { font-size: 12px; font-weight: 600; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; }
.path-card .go { font-size: 14px; font-weight: 700; color: var(--brand); }

/* Promo / join training band */
.promo {
  margin: 60px 0 0; padding: 44px; border-radius: 20px; text-align: center;
  background: linear-gradient(135deg, var(--brand), #6d28d9 60%, var(--accent));
  color: #fff; box-shadow: var(--shadow-lg);
}
.promo h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.6px; margin: 0 0 10px; }
.promo p { font-size: 17px; opacity: .92; max-width: 560px; margin: 0 auto 24px; }
.promo .btn-lg.primary { background: #fff; color: var(--brand-strong); }
.promo .btn-lg.primary:hover { background: #f3f3ff; }

/* Stats row */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; margin: 36px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stats .stat { text-align: center; }
.stats .stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .stat span { font-size: 13px; color: var(--text-mute); }

/* ========================= Subject index page ========================= */
.subject-hero { padding: 6px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.subject-hero .stag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--c); }
.subject-hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -1.2px; margin: 6px 0 10px; font-weight: 800; }
.subject-hero p { font-size: 18px; color: var(--text-soft); max-width: 640px; margin: 0 0 18px; }
.subject-hero .meta-row { display: flex; gap: 18px; font-size: 13.5px; color: var(--text-mute); flex-wrap: wrap; align-items: center; }
.subject-hero .meta-row b { color: var(--text); }

.unit-block { margin-bottom: 26px; }
.unit-block h2 { font-size: 19px; letter-spacing: -.3px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.unit-block h2 .n { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-content: center; font-size: 13px; font-weight: 700; }
.lesson-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 11px; margin-bottom: 8px; background: var(--surface); transition: .14s; color: var(--text);
}
.lesson-row:hover { border-color: var(--brand); transform: translateX(3px); box-shadow: var(--shadow); }
.lesson-row .ln { font-size: 12px; font-weight: 700; color: var(--text-mute); min-width: 28px; }
.lesson-row .lt { flex: 1; font-weight: 600; font-size: 15px; }
.lesson-row .ld { font-size: 13px; color: var(--text-mute); }
.lesson-row .lvl { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }

/* ========================= Breadcrumb ========================= */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-mute); margin-bottom: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }

/* In-lesson CTA banner */
.cta-banner {
  margin: 34px 0 8px; padding: 20px 24px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cta-banner .cb-text { flex: 1; min-width: 200px; }
.cta-banner b { font-size: 16px; display: block; margin-bottom: 3px; }
.cta-banner p { margin: 0; font-size: 14px; color: var(--text-soft); }
.cta-banner .btn { background: var(--brand); color: #fff; border-color: var(--brand); white-space: nowrap; }
.cta-banner .btn:hover { background: var(--brand-strong); color: #fff; }

/* ========================= Footer ========================= */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: 72px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 54px 24px 30px; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand .site-logo { font-size: 19px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-soft); max-width: 330px; line-height: 1.65; margin: 0 0 12px; }
.footer-brand .footer-made { font-size: 12.5px; color: var(--text-mute); }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--text); font-weight: 700; margin: 3px 0 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-soft); padding: 6px 0; width: fit-content; transition: color .14s, transform .14s; }
.footer-col a:hover { color: var(--brand); transform: translateX(3px); }
.footer-col .footer-all { margin-top: 8px; font-weight: 600; color: var(--brand); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 20px 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-mute); }
.footer-bottom .heart { color: #ef4444; }

/* ========================= FAQ ========================= */
.faq-list { display: grid; gap: 10px; margin-top: 8px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .15s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 15.5px; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-item .faq-ic { flex: 0 0 18px; color: var(--text-mute); transition: transform .2s; }
.faq-item .faq-ic svg { width: 18px; height: 18px; display: block; }
.faq-item[open] .faq-ic { transform: rotate(180deg); color: var(--brand); }
.faq-item .faq-a { padding: 0 18px 16px; color: var(--text-soft); font-size: 14.5px; line-height: 1.65; }
.faq-item .faq-a a { color: var(--brand); }

/* Content max width on lesson pages — keep readable */
.content .lesson-wrap { max-width: 820px; }

/* ========================= Responsive ========================= */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .search input { width: 150px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .search { display: none; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .nav-cta { padding: 8px 12px; font-size: 12.5px; }
}

@media (max-width: 720px) { .nav-links { display: none; } }

/* When the top row gets tight, fold the flagship links back into the course bar
   so every course stays reachable without any horizontal scrolling. */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .course-bar a.cb-dup { display: inline-flex; }
}
@media (max-width: 860px) {
  .course-bar { position: static; }
}

/* ========================= Homepage: features + about ========================= */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 10px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feature .fic { font-size: 24px; margin-bottom: 8px; }
.feature b { display: block; font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 13.5px; color: var(--text-soft); margin: 0; line-height: 1.5; }

.about { margin: 56px auto 0; text-align: center; max-width: 720px; }
.about h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.6px; margin: 0 0 12px; }
.about p { font-size: 17px; color: var(--text-soft); line-height: 1.7; margin: 0; }

/* ========================= Course sections (course-wise homepage) ========================= */
.course-section {
  margin: 0 0 34px; padding: 26px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface-2); position: relative; overflow: hidden;
}
.course-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.course-section .cs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.cs-info { flex: 1; min-width: 280px; }
.cs-ribbon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 12px; }
.cs-info h2 { font-size: clamp(22px, 3.5vw, 30px); letter-spacing: -.6px; margin: 0 0 8px; }
.cs-info > p { font-size: 15px; color: var(--text-soft); margin: 0 0 14px; max-width: 640px; line-height: 1.55; }
.cs-durations { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-durations .dur-label { font-size: 12.5px; color: var(--text-mute); font-weight: 600; }
.cs-durations .dur { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; }
.cs-cta { flex-shrink: 0; text-align: right; }
.cs-cta .cs-meta { font-size: 12.5px; color: var(--text-mute); margin-top: 8px; }
.cs-subjects-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-mute); margin: 4px 0 12px; }
@media (max-width: 640px) { .cs-cta { text-align: left; } }

/* ========================= Full-Stack Program cards (legacy, unused) ========================= */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.program-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 22px; transition: .16s; overflow: hidden; color: var(--text);
}
.program-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.program-card .pc-ribbon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.program-card h3 { font-size: 22px; letter-spacing: -.5px; margin: 0 0 8px; line-height: 1.2; }
.program-card > p { font-size: 14.5px; color: var(--text-soft); margin: 0 0 16px; line-height: 1.55; }
.program-card .pc-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.program-card .pc-durations { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; padding: 13px 14px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px; }
.program-card .dur-label { font-size: 12px; color: var(--text-mute); font-weight: 600; margin-right: 2px; }
.program-card .dur { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 8px; }
.program-card .pc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-mute); border-top: 1px solid var(--line-soft); padding-top: 14px; }
.program-card .pc-foot .go { font-weight: 700; color: var(--brand); }

/* ========================= Course catalog cards (homepage) ========================= */
.course-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; }
.course-card { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: .16s; overflow: hidden; color: var(--text); }
.course-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.course-card .cc-ribbon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.course-card h3 { font-size: 23px; letter-spacing: -.5px; margin: 0 0 8px; line-height: 1.2; }
.course-card > p { font-size: 15px; color: var(--text-soft); margin: 0 0 16px; line-height: 1.5; }
.course-card .cc-tech { font-size: 13.5px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; line-height: 1.6; }
.course-card .cc-tech-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-mute); margin-bottom: 4px; }
.course-card .cc-durations { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.course-card .cc-durations .dur-label { font-size: 12px; color: var(--text-mute); font-weight: 600; }
.course-card .cc-durations .dur { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 8px; }
.course-card .cc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-mute); border-top: 1px solid var(--line-soft); padding-top: 14px; }
.course-card .cc-foot .go { font-weight: 700; color: var(--brand); }
.course-card .cc-ribbon.alt { color: var(--accent); background: var(--accent-soft); }
.course-card.mentored::before { background: linear-gradient(90deg, var(--accent), #8b5cf6); }

/* ========================= Course overview page ========================= */
.course-page { padding-top: 30px; }
.course-hero { padding: 6px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ch-ribbon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; margin: 8px 0 12px; }
.course-hero h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -1.4px; margin: 0 0 12px; font-weight: 800; max-width: 800px; }
.ch-tagline { font-size: 19px; color: var(--text-soft); margin: 0 0 20px; max-width: 680px; }
.ch-facts { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 24px; }
.ch-facts span { font-size: 13.5px; color: var(--text-mute); }
.ch-facts b { display: block; font-size: 24px; color: var(--text); letter-spacing: -.5px; }

.course-block { margin: 40px 0 0; }
.course-block > h2 { font-size: 26px; letter-spacing: -.6px; margin: 0 0 6px; }
.course-block .cb-sub { font-size: 15px; color: var(--text-soft); margin: 0 0 20px; max-width: 720px; }

.outcomes-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.outcomes-grid li { position: relative; padding: 14px 16px 14px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.outcomes-grid li::before { content: '✓'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--tip); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-content: center; }

.pace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pace-card { border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px; padding: 20px; background: var(--surface); }
.pace-card .pace-days { font-size: 34px; font-weight: 800; letter-spacing: -1.5px; color: var(--c); line-height: 1; }
.pace-card .pace-days span { font-size: 14px; font-weight: 600; margin-left: 4px; }
.pace-card h3 { margin: 8px 0 6px; font-size: 17px; }
.pace-card p { font-size: 13.5px; color: var(--text-soft); margin: 0 0 12px; }
.pace-card .pace-meta { font-size: 13px; font-weight: 600; color: var(--c); border-top: 1px solid var(--line-soft); padding-top: 10px; }

/* Curriculum accordion */
.cur-module { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--surface); }
.cur-module summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.cur-module summary::-webkit-details-marker { display: none; }
.cur-module summary:hover { background: var(--surface-2); }
.cur-mn { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 14px; display: grid; place-content: center; }
.cur-mtitle { flex: 1; font-weight: 700; font-size: 16px; }
.cur-msub { font-weight: 400; color: var(--text-mute); font-size: 14px; }
.cur-mmeta { font-size: 12.5px; color: var(--text-mute); white-space: nowrap; }
.cur-chev { color: var(--text-mute); transition: .2s; display: flex; }
.cur-module[open] .cur-chev { transform: rotate(180deg); }
.cur-body { padding: 4px 18px 16px; border-top: 1px solid var(--line-soft); }
.cur-unit { margin-top: 14px; }
.cur-unit-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-mute); margin-bottom: 4px; }
.cur-lessons { list-style: none; padding: 0; margin: 0; }
.cur-lessons li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-soft); font-size: 14.5px; }
.cur-lessons li a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.cl-lvl { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.cl-title { flex: 1; }
.cl-time { font-size: 12px; color: var(--text-mute); }

/* Projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.proj-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; transition: .14s; color: var(--text); }
.proj-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.proj-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.proj-card span { font-size: 12.5px; color: var(--text-mute); }

@media (max-width: 640px) { .pace-grid { grid-template-columns: 1fr; } .course-card-grid { grid-template-columns: 1fr; } }

/* ===== Duration differentiation: clickable pace cards + curriculum filter ===== */
.pace-card { appearance: none; cursor: pointer; font: inherit; text-align: left; width: 100%; color: var(--text); }
.pace-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pace-card.active { box-shadow: 0 0 0 2px var(--c); border-color: var(--c); }
.pace-includes { font-size: 13px; color: var(--text-soft); margin: 6px 0 10px; }
.pace-includes b { color: var(--text); }
.pace-card .pace-meta b { color: var(--c); }
.pace-see { font-size: 12.5px; font-weight: 700; color: var(--c); margin-top: 8px; opacity: .55; transition: .15s; }
.pace-card:hover .pace-see, .pace-card.active .pace-see { opacity: 1; }

.cur-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cur-filter-label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.cur-fbtns { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.cur-fbtn { appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-soft); padding: 7px 14px; border-radius: 8px; transition: .14s; }
.cur-fbtn:hover { color: var(--text); }
.cur-fbtn.active { background: var(--brand); color: #fff; }
.cur-count { font-size: 13px; color: var(--text-mute); font-weight: 600; }

.cur-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; font-size: 12.5px; color: var(--text-mute); }
.cur-legend span { display: inline-flex; align-items: center; gap: 7px; }

/* curriculum lesson level dots */
.cl-lvl { display: inline-block; }
.cl-lvl.core { background: var(--brand); }
.cl-lvl.plus { background: var(--t45); }
.cl-lvl.pro  { background: var(--t6m); }

/* generic chip + stack (used on mentored course pages) */
.pc-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; font-weight: 600; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 8px; }

/* ===== Lesson page: course + duration context ===== */
.ctx-banner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); color: var(--text); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.ctx-banner .ctx-ic { font-size: 16px; }
.ctx-banner b { color: var(--brand-strong); }
body.dark .ctx-banner b { color: #c7d0ff; }
.ctx-track-pill { font-weight: 700; color: var(--brand); }
.ctx-banner .ctx-overview { margin-left: auto; font-weight: 600; color: var(--brand); white-space: nowrap; }

.ctx-side-head { padding: 4px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ctx-course-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-mute); }
.ctx-side-head h2 { margin: 4px 0 10px; font-size: 15.5px; letter-spacing: -.3px; line-height: 1.3; }
.ctx-track { font-size: 12.5px; color: var(--text-soft); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ctx-track-sel { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; cursor: pointer; }
.module-head .ctx-mn-count { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--text-mute); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.module-head .ctx-mn-count + .chev { margin-left: 8px; }
