:root {
  color-scheme: light;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --background: #f7f9fd;
  --foreground: #172033;
  --surface: #ffffff;
  --surface-soft: #f0f4fb;
  --text: #172033;
  --muted: #64718a;
  --line: #e2e8f2;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --purple: #7c3aed;
  --lavender: #f1edff;
  --green: #169b73;
  --shadow: 0 16px 48px rgba(23, 42, 86, .09);
  --radius: 1.2rem;
}

.dark {
  color-scheme: dark;
  --background: #0b1120;
  --foreground: #e9eef9;
  --surface: #111b2d;
  --surface-soft: #17243a;
  --text: #e9eef9;
  --muted: #a6b2c7;
  --line: #293750;
  --blue: #6d98ff;
  --blue-deep: #8eaeff;
  --purple: #b69aff;
  --lavender: #27233e;
  --green: #57d5a9;
  --shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--text); font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; transition: background-color .2s ease, color .2s ease; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(124, 58, 237, .2); }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .58); outline-offset: 3px; }
#root { min-height: 100vh; }
.site-shell { min-height: 100vh; background: var(--background); color: var(--text); }
.content-width { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px); }
.site-header-inner { width: min(1240px, calc(100% - 48px)); height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--text); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -.065em; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; }
.brand-accent { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { position: relative; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 600; transition: color .18s ease, background .18s ease; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.nav-account { margin-left: 9px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); font-size: 13px; font-weight: 700; transition: border-color .18s ease, transform .18s ease; }
.nav-account:hover { border-color: var(--blue); transform: translateY(-1px); }
.icon-button { width: 38px; height: 38px; border: 1px solid transparent; border-radius: 11px; display: inline-grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.icon-button:hover { color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); border-color: color-mix(in srgb, var(--blue) 20%, transparent); transform: translateY(-1px); }
.theme-toggle { margin-left: 3px; }
.mobile-menu-toggle { display: none; }

.hero-section { position: relative; overflow: hidden; background: radial-gradient(circle at 80% 13%, rgba(124, 58, 237, .13), transparent 29%), linear-gradient(135deg, var(--surface) 0%, var(--background) 74%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(370px, .97fr); align-items: center; gap: clamp(38px, 6vw, 82px); min-height: 545px; padding-top: 54px; padding-bottom: 68px; }
.hero-copy { position: relative; z-index: 2; max-width: 610px; animation: rise-in .45s ease both; }
.hero-kicker, .eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.hero-kicker { margin-bottom: 19px; color: var(--purple); letter-spacing: .07em; }
.sparkle-dot { width: 24px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--lavender); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.045em; }
.hero-copy h1 { max-width: 650px; margin: 0 0 17px; color: var(--text); font-size: clamp(42px, 5.25vw, 68px); font-weight: 700; line-height: 1.02; }
.hero-copy h1 span { color: var(--blue); }
.hero-copy > p { max-width: 545px; margin-bottom: 25px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-search { display: flex; align-items: center; gap: 11px; max-width: 530px; padding: 7px 7px 7px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 24px rgba(31, 55, 102, .06); color: var(--muted); }
.hero-search input, .search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.hero-search input::placeholder, .search-field input::placeholder { color: #94a0b3; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 15px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 750; line-height: 1; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); box-shadow: 0 6px 15px rgba(37, 99, 235, .19); }
.button-primary:hover { box-shadow: 0 10px 20px rgba(37, 99, 235, .28); }
.button-quiet { color: var(--text); border-color: var(--line); background: var(--surface); }
.button-quiet:hover, .button-outline:hover { color: var(--blue); border-color: var(--blue); }
.button-outline { border-color: color-mix(in srgb, var(--blue) 28%, var(--line)); color: var(--blue); background: transparent; }
.button-large { min-height: 46px; padding-inline: 17px; }
.button-small { min-height: 34px; padding: 8px 10px; border-radius: 9px; font-size: 11px; }
.button-saved { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 20%, var(--line)); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 22px; color: var(--muted); font-size: 11px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--green); }
.hero-visual { position: relative; min-height: 375px; border-radius: 28px; background: #111827; box-shadow: 0 28px 65px rgba(24, 42, 81, .2); animation: rise-in .55s .06s ease both; }
.hero-visual::before { position: absolute; z-index: 2; inset: -10px 18px 18px -12px; border: 1px solid rgba(124, 58, 237, .24); border-radius: 31px; content: ""; pointer-events: none; }
.hero-visual img { position: absolute; width: 100%; height: 100%; inset: 0; border-radius: 28px; object-fit: cover; }
.hero-image-shade { position: absolute; inset: 0; border-radius: 28px; background: linear-gradient(130deg, rgba(8, 13, 35, .1), rgba(30, 35, 88, .32) 56%, rgba(28, 17, 72, .46)); }
.hero-floating-card { position: absolute; right: -24px; bottom: 32px; display: flex; align-items: center; gap: 11px; min-width: 245px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.66); border-radius: 15px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow); color: var(--text); }
.floating-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--purple); background: var(--lavender); }
.hero-floating-card strong, .hero-floating-card span { display: block; }
.hero-floating-card strong { font-size: 12px; }
.hero-floating-card span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.hero-floating-card .floating-count { margin-left: auto; color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; }
.hero-image-label { position: absolute; left: 20px; bottom: 20px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; background: rgba(14, 20, 44, .52); color: white; font-size: 10px; font-weight: 700; backdrop-filter: blur(8px); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #8ff1c8; }
.hero-bottom-line { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.stat-strip { display: grid; grid-template-columns: repeat(3, auto) 1fr; align-items: center; gap: 0; padding-top: 27px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.stat-strip > div { display: flex; align-items: center; gap: 12px; padding-inline: 28px; border-right: 1px solid var(--line); }
.stat-strip > div:first-child { padding-left: 0; }
.stat-number { color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 27px; font-weight: 700; line-height: 1; }
.stat-label { max-width: 90px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.35; }
.stat-strip .stat-note { justify-content: flex-end; border: 0; color: var(--muted); font-size: 12px; }
.stat-icon { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; color: var(--purple); background: var(--lavender); }

.section-block { padding-top: 80px; padding-bottom: 78px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading-space { margin-bottom: 25px; }
.section-heading-row h2, .category-band h2, .about-band h2 { margin: 8px 0 0; color: var(--text); font-size: clamp(25px, 3vw, 34px); line-height: 1.12; }
.section-intro { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 750; cursor: pointer; transition: gap .18s ease; }
.text-link:hover { gap: 11px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.course-card { --card-accent: #2563eb; position: relative; min-height: 286px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 4px 18px rgba(20, 38, 78, .025); transition: border-color .18s ease, transform .2s ease, box-shadow .2s ease; }
.course-card::after { position: absolute; top: 0; right: 0; width: 120px; height: 120px; border-radius: 0 17px 0 100%; background: color-mix(in srgb, var(--card-accent) 8%, transparent); content: ""; pointer-events: none; }
.course-card:hover { border-color: color-mix(in srgb, var(--card-accent) 42%, var(--line)); box-shadow: var(--shadow); transform: translateY(-4px); }
.tone-python { --card-accent: #2563eb; }
.tone-java { --card-accent: #d97706; }
.tone-web { --card-accent: #0891b2; }
.tone-algorithms { --card-accent: #7c3aed; }
.tone-database { --card-accent: #0f766e; }
.tone-ai { --card-accent: #7c3aed; }
.tone-security { --card-accent: #db3862; }
.tone-cloud { --card-accent: #2563eb; }
.tone-networks { --card-accent: #0f8c88; }
.tone-os { --card-accent: #6d55c7; }
.course-card-top { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; }
.course-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--card-accent); background: color-mix(in srgb, var(--card-accent) 11%, var(--surface)); }
.course-level { margin-top: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 700; }
.save-button { position: relative; z-index: 2; margin-left: auto; border-color: var(--line); background: var(--surface); }
.save-button.is-saved { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.course-card-link { position: relative; z-index: 1; display: block; }
.course-card-link .eyebrow { color: var(--card-accent); font-size: 9px; }
.course-card h3 { margin: 8px 0 8px; font-size: 19px; line-height: 1.2; }
.course-card p { display: -webkit-box; min-height: 64px; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.62; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.course-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 650; }
.course-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card-meta span:last-child { color: var(--card-accent); }
.course-card-compact { min-height: 222px; padding: 17px; }
.course-card-compact .course-card-top { margin-bottom: 11px; }
.course-card-compact p { min-height: 52px; -webkit-line-clamp: 3; }

.category-band { padding-block: 54px; background: linear-gradient(107deg, color-mix(in srgb, var(--blue) 7%, var(--surface)) 0%, color-mix(in srgb, var(--purple) 7%, var(--surface)) 100%); border-block: 1px solid var(--line); }
.category-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.category-band h2 { font-size: 26px; }
.category-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.category-pill { display: inline-flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 11px; font-weight: 700; transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.category-pill:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.resource-home-section { padding-bottom: 82px; }
.resource-list { display: grid; gap: 11px; }
.resource-card { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.resource-card:hover { border-color: color-mix(in srgb, var(--blue) 28%, var(--line)); box-shadow: 0 8px 20px rgba(23, 42, 86, .06); transform: translateY(-1px); }
.resource-icon { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--blue) 13%, var(--line)); border-radius: 13px; display: grid; place-items: center; color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }
.resource-content { min-width: 0; flex: 1; }
.resource-content .eyebrow { font-size: 9px; }
.resource-content h3 { margin: 5px 0 3px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.resource-content p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.resource-meta { display: flex; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 9px; }
.resource-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }

.about-band { padding-block: 52px; background: var(--surface); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 18px; }
.about-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--purple); background: var(--lavender); }
.about-band h2 { margin-top: 6px; font-size: 24px; }
.about-band p { max-width: 700px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.home-privacy-note { display: flex; align-items: center; gap: 7px; padding-block: 16px; color: var(--muted); font-size: 10px; }
.home-privacy-note a { color: var(--blue); font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-main { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding-top: 44px; padding-bottom: 36px; }
.footer-brand { font-size: 19px; }
.footer-brand-block p { max-width: 300px; margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-links a { color: var(--muted); font-size: 11px; transition: color .18s ease; }
.footer-links a:hover { color: var(--blue); }
.footer-heading { margin-bottom: 4px; color: var(--text); font-size: 11px; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.footer-bottom span:last-child { display: inline-flex; align-items: center; gap: 6px; }

.page-hero { padding-top: 62px; padding-bottom: 36px; }
.page-hero h1 { max-width: 800px; margin: 10px 0 12px; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.06; }
.page-hero p { max-width: 710px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.catalog-section { padding-bottom: 90px; }
.filter-panel { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 5px 18px rgba(23, 42, 86, .035); }
.search-field, .select-field { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--background); color: var(--muted); }
.search-field { flex: 1; }
.search-field input { font-size: 12px; }
.select-field select { min-width: 118px; border: 0; appearance: none; outline: 0; background: transparent; color: var(--text); font-size: 11px; font-weight: 650; cursor: pointer; }
.sort-note { margin: 9px 2px 0; color: var(--muted); font-size: 10px; }
.catalog-result-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 23px 1px 15px; color: var(--muted); font-size: 11px; }
.catalog-result-row strong { color: var(--text); }
.clear-filters { padding: 0; }
.empty-state { display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }
.empty-state-icon { width: 50px; height: 50px; margin-bottom: 12px; border-radius: 16px; display: grid; place-items: center; color: var(--purple); background: var(--lavender); }
.empty-state h2, .empty-state h3 { margin: 4px 0 7px; font-size: 20px; }
.empty-state p { max-width: 450px; margin: 0; color: var(--muted); font-size: 12px; }

.course-detail-hero { border-bottom: 1px solid var(--line); background: linear-gradient(108deg, color-mix(in srgb, var(--card-accent) 7%, var(--surface)), var(--surface) 72%); }
.detail-hero-inner { padding-top: 24px; padding-bottom: 34px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: var(--muted); font-size: 11px; font-weight: 700; }
.back-link:hover { color: var(--blue); }
.detail-mark-row { display: flex; align-items: center; gap: 11px; margin: 8px 0 9px; }
.detail-course-mark { width: 39px; height: 39px; flex: 0 0 auto; border-radius: 12px; display: inline-grid; place-items: center; color: var(--card-accent); background: color-mix(in srgb, var(--card-accent) 11%, var(--surface)); font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 800; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.detail-title-row h1 { margin: 8px 0 8px; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.07; }
.detail-title-row p { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.detail-title-row > .button { margin-top: 28px; flex: 0 0 auto; }
.eyebrow-separator { color: var(--line); }
.detail-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 21px; color: var(--muted); font-size: 10px; font-weight: 650; }
.detail-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-hero-meta svg { color: var(--card-accent); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 50px; align-items: start; padding-top: 38px; padding-bottom: 85px; }
.detail-main-column { min-width: 0; }
.detail-section { margin-bottom: 46px; }
.detail-section > .eyebrow { margin-bottom: 7px; }
.detail-section h2 { margin: 7px 0 18px; font-size: 27px; }
.learning-outcomes { padding: 22px 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.learning-outcomes h2 { margin-bottom: 14px; }
.outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.outcome-item { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.outcome-item svg { flex: 0 0 auto; margin-top: 1px; color: var(--green); }
.video-panel { margin-bottom: 42px; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 7px 20px rgba(23, 42, 86, .035); }
.video-panel .section-heading-row { align-items: center; margin-bottom: 16px; }
.video-panel h2 { margin: 6px 0 0; font-size: 23px; }
.video-frame-wrap { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #080d19; aspect-ratio: 16 / 9; }
.video-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.video-play-icon { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; color: white; background: #ef4444; }
.video-caption h3 { margin: 0 0 2px; font-size: 14px; letter-spacing: -.02em; }
.video-caption p, .video-topics { margin: 0; color: var(--muted); font-size: 10px; }
.video-caption p span { padding-inline: 4px; }
.video-topics { margin-top: 9px; line-height: 1.6; }
.syllabus-section .section-heading-row { align-items: flex-end; margin-bottom: 11px; }
.syllabus-section .section-heading-row h2 { margin-bottom: 0; }
.module-count { color: var(--muted); font-size: 10px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--purple)); transition: width .24s ease; }
.progress-track.large { height: 8px; margin-bottom: 14px; }
.syllabus-list { display: grid; gap: 9px; }
.syllabus-module { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .18s ease, background .18s ease; }
.syllabus-module.is-complete { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); background: color-mix(in srgb, var(--green) 3%, var(--surface)); }
.module-check { flex: 0 0 auto; margin-top: 3px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.module-check:hover, .is-complete .module-check { color: var(--green); }
.module-body { flex: 1; min-width: 0; }
.module-title-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.module-state { letter-spacing: 0; font-weight: 650; }
.is-complete .module-state { color: var(--green); }
.module-body h3 { margin: 5px 0 6px; font-size: 16px; }
.module-body > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.module-body details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.module-body summary { color: var(--blue); font-size: 10px; font-weight: 750; cursor: pointer; }
.module-extra { margin-top: 10px; color: var(--muted); font-size: 10px; }
.module-extra strong { color: var(--text); }
.module-extra p { margin: 3px 0 10px; line-height: 1.6; }
.pdf-section .section-heading-row { margin-bottom: 16px; }
.pdf-section .section-heading-row h2 { margin-bottom: 0; }
.resource-count-pill { padding: 6px 9px; border-radius: 999px; color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); font-size: 10px; font-weight: 750; }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-sidebar { position: relative; }
.sticky-course-card { position: sticky; top: 100px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 24px rgba(23, 42, 86, .055); }
.sidebar-progress { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-block: 14px 9px; }
.sidebar-progress strong { color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 28px; }
.sidebar-progress span { color: var(--muted); font-size: 9px; }
.full-button { width: 100%; margin-top: 15px; }
.sidebar-divider { height: 1px; margin-block: 17px; background: var(--line); }
.sidebar-facts { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 10px; }
.sidebar-facts li { display: flex; align-items: center; gap: 7px; }
.sidebar-facts svg { color: var(--blue); }
.local-note { margin: 15px 0 0; padding: 10px; border-radius: 10px; color: var(--muted); background: var(--surface-soft); font-size: 9px; line-height: 1.55; }

.resources-page-section { padding-bottom: 88px; }
.resource-stats { display: flex; gap: 10px; margin-bottom: 21px; }
.resource-stats > div { min-width: 145px; display: flex; flex-direction: column; gap: 1px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.resource-stats strong { color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 23px; }
.resource-stats span { color: var(--muted); font-size: 9px; }
.resource-filter-panel { margin-bottom: 20px; }

.my-learning-section { padding-bottom: 86px; }
.local-storage-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--blue) 5%, var(--surface)); color: var(--blue); }
.local-storage-banner > svg { flex: 0 0 auto; }
.local-storage-banner div { flex: 1; display: flex; flex-direction: column; }
.local-storage-banner strong { color: var(--text); font-size: 11px; }
.local-storage-banner span { color: var(--muted); font-size: 10px; }
.local-storage-banner a { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 10px; font-weight: 750; }
.my-learning-block { margin-bottom: 43px; }
.my-learning-block .section-heading-row { margin-bottom: 16px; }
.my-learning-block h2 { margin: 6px 0 0; font-size: 26px; }
.progress-course-list { display: grid; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--surface); }
.progress-course-row { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.progress-course-row:last-child { border-bottom: 0; }
.progress-course-row:hover { background: color-mix(in srgb, var(--blue) 4%, var(--surface)); }
.mini-course-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--card-accent); background: color-mix(in srgb, var(--card-accent) 10%, var(--surface)); }
.progress-course-info { min-width: 180px; display: flex; flex-direction: column; }
.progress-course-info strong { font-size: 11px; }
.progress-course-info span { color: var(--muted); font-size: 9px; }
.progress-course-row .progress-track { flex: 1; }
.progress-percent { width: 34px; color: var(--blue); font-size: 10px; text-align: right; }
.quiet-empty { display: flex; align-items: center; gap: 9px; padding: 16px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); font-size: 11px; }
.quiet-empty svg { color: var(--purple); }
.compact-empty { min-height: 225px; }
.compact-empty .button { margin-top: 16px; }

.setup-page { display: grid; min-height: 610px; place-items: center; padding-block: 65px; }
.setup-card { width: min(590px, 100%); padding: clamp(25px, 5vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.setup-icon { width: 48px; height: 48px; margin-bottom: 19px; border-radius: 15px; display: grid; place-items: center; color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.setup-icon-warning { color: #c2415d; background: color-mix(in srgb, #e11d48 9%, var(--surface)); }
.setup-card h1 { margin: 9px 0 12px; font-size: 33px; line-height: 1.12; }
.setup-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.setup-check { display: flex; align-items: flex-start; gap: 9px; margin-block: 19px; padding: 12px; border-radius: 12px; color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.setup-check svg { flex: 0 0 auto; color: var(--green); }
.contact-note { min-height: 245px; margin-bottom: 70px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.contact-note h2 { margin: 2px 0 8px; font-size: 21px; }
.contact-note p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; }
.privacy-content { display: grid; gap: 11px; padding-bottom: 85px; }
.privacy-content article { display: flex; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.privacy-icon { width: 37px; height: 37px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: var(--purple); background: var(--lavender); }
.privacy-content h2 { margin: 2px 0 5px; font-size: 16px; }
.privacy-content p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 25px; background: rgba(4, 10, 25, .72); backdrop-filter: blur(6px); }
.pdf-modal { display: flex; width: min(1120px, 100%); height: min(88vh, 860px); flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.pdf-modal-header, .pdf-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 17px; background: var(--surface); }
.pdf-modal-header { border-bottom: 1px solid var(--line); }
.pdf-modal-header h2 { margin: 5px 0 0; font-size: 17px; }
.pdf-modal-header .eyebrow { font-size: 8px; }
.pdf-viewer { width: 100%; flex: 1; border: 0; background: #edf1f8; }
.pdf-modal-footer { border-top: 1px solid var(--line); }

@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 1050px) {
  .content-width, .site-header-inner { width: min(100% - 38px, 1000px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(310px, .83fr); gap: 34px; }
  .hero-visual { min-height: 330px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
  .site-nav { gap: 2px; }
  .nav-link { padding-inline: 9px; font-size: 12px; }
}
[hidden] { display: none !important; }
.social-note { color: var(--muted); font-size: 9px; }
.course-icon-letter { font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: -.05em; }

@media (max-width: 760px) {
  .content-width, .site-header-inner { width: calc(100% - 34px); }
  .site-header-inner { height: 66px; }
  .mobile-menu-toggle { display: inline-grid; }
  .site-nav { position: absolute; top: 65px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 4px; padding: 12px 17px 16px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-link, .nav-account { width: 100%; margin: 0; padding: 12px; }
  .theme-toggle { align-self: flex-start; margin-top: 3px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 31px; padding-top: 48px; padding-bottom: 50px; }
  .hero-copy h1 { font-size: clamp(42px, 11vw, 60px); }
  .hero-copy > p { font-size: 14px; }
  .hero-search { max-width: 100%; }
  .hero-visual { width: calc(100% - 7px); min-height: 310px; margin-left: 6px; }
  .hero-floating-card { right: 10px; bottom: 16px; min-width: 220px; }
  .hero-image-label { left: 12px; bottom: 12px; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); row-gap: 15px; padding-block: 21px; }
  .stat-strip > div { justify-content: center; gap: 7px; padding-inline: 9px; }
  .stat-number { font-size: 23px; }
  .stat-label { max-width: 68px; font-size: 9px; }
  .stat-strip .stat-note { grid-column: 1 / -1; justify-content: flex-start; padding: 8px 0 0; border-top: 1px solid var(--line); }
  .section-block { padding-block: 56px; }
  .section-heading-row { align-items: flex-start; }
  .section-heading-row h2 { font-size: 27px; }
  .section-heading-row > .text-link { align-self: flex-end; white-space: nowrap; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .course-card { min-height: 278px; padding: 15px; }
  .course-card h3 { font-size: 17px; }
  .course-card-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .category-band-inner { align-items: flex-start; flex-direction: column; }
  .category-pills { justify-content: flex-start; }
  .about-grid { grid-template-columns: 42px 1fr; align-items: start; gap: 12px; }
  .about-icon { width: 40px; height: 40px; }
  .about-grid > .button { grid-column: 2; justify-self: start; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .footer-links { gap: 12px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
  .page-hero { padding-top: 46px; padding-bottom: 27px; }
  .page-hero h1 { font-size: 39px; }
  .page-hero p { font-size: 13px; }
  .filter-panel { align-items: stretch; flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .select-field { flex: 1; }
  .select-field select { width: 100%; min-width: 70px; }
  .detail-layout { display: flex; flex-direction: column; gap: 25px; padding-top: 26px; }
  .detail-main-column { order: 2; width: 100%; }
  .detail-sidebar { order: 1; width: 100%; }
  .sticky-course-card { position: static; }
  .detail-title-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  .detail-title-row > .button { margin-top: 0; }
  .detail-hero-inner { padding-top: 18px; }
  .back-link { margin-bottom: 18px; }
  .detail-title-row h1 { font-size: 39px; }
  .outcome-grid { grid-template-columns: 1fr; }
  .video-panel { padding: 16px; }
  .video-panel .section-heading-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .resource-card { flex-wrap: wrap; }
  .resource-content { flex-basis: calc(100% - 60px); }
  .resource-actions { width: 100%; justify-content: flex-end; padding-top: 9px; border-top: 1px solid var(--line); }
  .resource-stats { overflow-x: auto; }
  .resource-stats > div { min-width: 115px; }
  .local-storage-banner { align-items: flex-start; flex-wrap: wrap; }
  .local-storage-banner a { margin-left: 30px; }
  .progress-course-row { flex-wrap: wrap; }
  .progress-course-info { flex: 1; }
  .progress-course-row .progress-track { flex-basis: 100%; margin-left: 49px; }
  .pdf-modal { height: 93vh; }
  .modal-backdrop { padding: 10px; }
}
@media (max-width: 460px) {
  .content-width, .site-header-inner { width: calc(100% - 28px); }
  .brand { font-size: 19px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-search { flex-wrap: wrap; padding-right: 8px; }
  .hero-search input { flex: 1; width: 75%; }
  .hero-search button { width: 100%; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 245px; }
  .hero-floating-card { right: 5px; bottom: 12px; min-width: 200px; padding: 10px; }
  .hero-image-label { display: none; }
  .featured-grid, .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 245px; }
  .course-card p { min-height: auto; }
  .category-pills { gap: 6px; }
  .category-pill { padding: 9px 10px; font-size: 10px; }
  .section-heading-row { flex-direction: column; gap: 13px; }
  .section-heading-row > .text-link { align-self: flex-start; }
  .footer-links { grid-template-columns: repeat(2, 1fr); row-gap: 23px; }
  .resource-stats > div { min-width: 105px; padding: 10px; }
  .resource-stats strong { font-size: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .detail-hero-meta { gap: 11px; }
  .module-title-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pdf-modal-header, .pdf-modal-footer { padding: 10px; }
  .pdf-modal-footer { align-items: flex-start; flex-direction: column; }
}
