/* ====================================================================
   Nexify Academy — public site design layer (2026-10 redesign)
   Loaded after style.css by the public Layout only; the admin keeps style.css.
   One accent (Nexify blue) on brand navy ink and cool, navy-tinted neutrals.
   Display: Bricolage Grotesque · Body: Geist · Figures and labels: Geist Mono.
   ==================================================================== */

:root {
  --ink: #0b1437;
  --ink-2: #26304f;
  --slate: #535f78;
  --slate-2: #656f85;
  --slate-3: #c3c9d6;
  --paper: #f6f7fb;
  --paper-2: #edf0f7;
  --line: #e1e5ee;
  --line-2: #eceff5;
  --accent: #2d6be4;
  --accent-ink: #1f55c0;
  --accent-soft: #eaf0fd;
  --live: #0e9c8b;
  --live-soft: #e2f4f1;

  /* Old token names, re-pointed so every existing page follows the new palette */
  --navy: var(--ink);
  --navy-2: #101b45;
  --navy-3: #16224f;
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --blue: var(--accent);
  --blue-600: var(--accent-ink);
  --blue-light: #8fb1f3;
  --teal: var(--live);
  --teal-light: #4fc7b6;
  --violet: var(--accent);
  --violet-light: #8fb1f3;
  --amber: #b7791f;
  --grad-brand: linear-gradient(135deg, #2d6be4, #2459c8);
  --grad-brand-soft: linear-gradient(135deg, #eaf0fd, #eef2fb);
  --grad-text: linear-gradient(95deg, #9cbcf6, #d6e3fb);
  --grad-navy: radial-gradient(900px 420px at 85% -10%, rgba(45,107,228,.28), transparent 60%), linear-gradient(170deg, #0b1437, #111c47);
  --grad-primary: linear-gradient(180deg, #3374ea, #2d6be4);
  --grad-teal: linear-gradient(180deg, #1a2550, #0b1437);

  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(11,20,55,.06);
  --shadow-sm: 0 1px 2px rgba(11,20,55,.05), 0 4px 14px rgba(11,20,55,.05);
  --shadow: 0 2px 6px rgba(11,20,55,.06), 0 14px 34px rgba(11,20,55,.07);
  --shadow-lg: 0 4px 10px rgba(11,20,55,.06), 0 24px 56px rgba(11,20,55,.11);
  --shadow-xl: 0 10px 24px rgba(11,20,55,.10), 0 40px 90px rgba(11,20,55,.18);
  --shadow-glow: 0 10px 28px rgba(45,107,228,.28);
  --ring: 0 0 0 4px rgba(45,107,228,.18);

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
body.site {
  font-family: var(--font); color: var(--ink-2); background: var(--paper);
  font-size: 16px; line-height: 1.6; font-feature-settings: normal;
}
/* A whisper of grain so large flat areas don't feel sterile */
body.site::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site h1, .site h2, .site h3, .site h4 {
  font-family: var(--font-display); color: var(--ink); font-weight: 650; letter-spacing: -.022em;
  text-wrap: balance; font-optical-sizing: auto;
}
.site h1 { font-weight: 700; letter-spacing: -.035em; }
.site p { text-wrap: pretty; }
.site ::selection { background: rgba(45,107,228,.18); }
.site a:focus-visible, .site button:focus-visible, .site input:focus-visible, .site select:focus-visible, .site textarea:focus-visible, .site summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.site .price, .site .stat-val { font-variant-numeric: tabular-nums; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.site .btn { font-weight: 600; letter-spacing: -.005em; border-radius: 10px; transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; }
.site .btn::before { display: none; }
.site .btn:hover { transform: translateY(-1px); }
.site .btn:active { transform: translateY(0) scale(.98); }
.site .btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 12px; }
.site .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px rgba(45,107,228,.28); }
.site .btn-primary:hover { background: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px rgba(45,107,228,.34); }
.site .btn-dark, .site .btn-teal { background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(11,20,55,.22); }
.site .btn-dark:hover, .site .btn-teal:hover { background: #18245a; }
.site .btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.site .btn-outline:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-sm); }
.site .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-ink); }
.link-arrow i { transition: transform .2s var(--ease); font-size: .85em; }
.link-arrow:hover i { transform: translateX(3px); }
button.link-arrow { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* ---------- Badges, cards ---------- */
.site .badge { border-radius: 6px; font-weight: 600; padding: 4px 9px; letter-spacing: 0; }
.site .badge-blue { background: var(--accent-soft); color: var(--accent-ink); }
.site .badge-teal, .site .badge-green { background: var(--live-soft); color: #08786b; }
.site .badge-violet { background: var(--accent-soft); color: var(--accent-ink); }
.site .badge-slate { background: var(--paper-2); color: var(--slate); }
.site .card { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.site .card-hover::after { display: none; }
.site .card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd6e4; }

/* ---------- Section rhythm ---------- */
.site .section { padding: 96px 0 104px; }
.site .section-head { text-align: left; margin: 0 0 48px; max-width: 720px; }
.site .section-head .eyebrow { justify-content: flex-start; }
.site .section-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 12px 0 14px; letter-spacing: -.03em; }
.site .section-head p { font-size: 18px; color: var(--slate); max-width: 62ch; }
.site .eyebrow {
  font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500;
  color: var(--accent-ink); gap: 10px;
}
.site .eyebrow::before { display: inline-block !important; width: 18px; height: 1.5px; background: currentColor; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.split-head .section-head { margin: 0; }

/* ---------- Navbar ---------- */
.site .nav { background: rgba(246,247,251,.86); border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.site .nav.scrolled { background: rgba(255,255,255,.94); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(11,20,55,.05); }
.site .nav-links { gap: 4px; margin-left: 18px; }
.site .nav-link { font-size: 14.5px; font-weight: 500; color: #3b4664; padding: 8px 12px; border-radius: 8px; }
.site .nav-link::after { display: none; }
.site .nav-link:hover { color: var(--ink); background: rgba(11,20,55,.045); }
.site .nav-link[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.nav-quiet { background: none; border: 0; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav-quiet:hover { background: rgba(11,20,55,.05); }
.nav-mobile-only { display: none !important; }
.site .mega { width: 640px; border-radius: 16px; padding: 14px; gap: 2px 10px; box-shadow: var(--shadow-xl); background: #fff; }
.site .mega-item { border-radius: 10px; padding: 11px; }
.site .mega-item:hover { background: var(--paper); transform: none; }
.site .mega-ico { background: var(--accent-soft); color: var(--accent-ink); border-radius: 9px; width: 36px; height: 36px; font-size: 15px; }
.site .mega-item h5 { font-family: var(--font); font-weight: 600; }
.mega-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-weight: 600; font-size: 14px; color: var(--ink); }
.mega-all:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Page head (inner pages): light, quiet, left aligned ---------- */
.site .page-head { background: var(--paper); color: var(--ink); padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.site .page-head::before {
  inset: 0; width: auto; height: auto;
  background: radial-gradient(700px 300px at 92% 0%, rgba(45,107,228,.10), transparent 65%);
}
.site .page-head::after {
  background-image: linear-gradient(rgba(11,20,55,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,20,55,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.site .page-head h1 { color: var(--ink); font-size: clamp(34px, 4.4vw, 54px); max-width: 20ch; }
.site .page-head p { color: var(--slate); font-size: 18px; max-width: 60ch; }
.site .breadcrumb { color: var(--slate-2); font-family: var(--font-mono); font-size: 12.5px; }
.site .breadcrumb a:hover { color: var(--ink); }

/* ---------- Filters and chips ---------- */
.site .filters { border-radius: 14px; box-shadow: none; padding: 12px; }
.site .chip { border-radius: 8px; border: 1px solid var(--line); font-weight: 500; color: var(--ink-2); padding: 8px 13px; }
.site .chip:hover { border-color: var(--ink); color: var(--ink); transform: none; }
.site .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

/* ---------- Course cards ---------- */
.site .pcard { border-radius: 16px; }
.site .pcard-img { margin: 8px 8px 0; border-radius: 11px; aspect-ratio: 16/9; }
.site .pcard-img::after { display: none; }
.site .pcard:hover .pcard-img img { transform: scale(1.04); }
.site .pcard-img .float-badge { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.site .pcard-body { padding: 16px 18px 18px; }
.site .pcard-cat { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px; color: var(--accent-ink); }
.site .pcard h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.site .pcard-desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.site .pcard-meta { gap: 6px; margin: 14px 0; }
.site .pcard-meta span { background: var(--paper); border-radius: 6px; padding: 3px 8px; font-size: 12px; }
.site .pcard-foot { border-top: 1px dashed var(--line); }
.site .price { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); }

/* ---------- Detail page ---------- */
.site .detail-card { border-radius: 18px; top: 96px; box-shadow: var(--shadow); }
.site .tab { font-weight: 600; }
.site .tab.active { border-bottom-color: var(--ink); }
.site .feature-list li { border-bottom-color: var(--line-2); }
.site .module { border-radius: 12px; }
.site .module-head { background: #fff; font-weight: 600; }

/* ---------- Questions (accordion rows become a quiet list) ---------- */
.site .acc { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; background: transparent; box-shadow: none !important; }
.site .acc-q { padding: 20px 0; font-weight: 600; font-size: 16.5px; color: var(--ink); gap: 18px; }
.site .acc-q i { color: var(--slate); }
.site .acc-a { padding: 0; }
.site .acc.open .acc-a { padding: 0 0 20px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--slate); transition: transform .2s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { color: var(--slate); padding: 0 40px 22px 0; max-width: 68ch; }

/* ---------- Testimonials ---------- */
.site .tcard::before { display: none; }
.site .tcard { padding: 26px; }
.site .tcard p { font-size: 16px; color: var(--ink-2); }
.site .stars { color: #c98a12; letter-spacing: 2px; }
.initials {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 15px;
}

/* ---------- CTA band ---------- */
.site .cta-band { border-radius: 24px; text-align: left; padding: 64px; box-shadow: none; background: var(--grad-navy); }
.site .cta-band::before { animation: none; background: none; }
.site .cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 22ch; }
.site .cta-band p { margin: 14px 0 28px; max-width: 56ch; color: #b9c4de; }
.site .cta-band > div { justify-content: flex-start !important; }

/* ---------- Forms ---------- */
.site .input, .site .select, .site .textarea { border: 1px solid var(--line); border-radius: 10px; font-family: var(--font); }
.site .input:hover, .site .select:hover, .site .textarea:hover { border-color: var(--slate-3); }
.site .field label { font-weight: 600; color: var(--ink); }
.site .modal { border-radius: 20px; }
.site .modal-head { align-items: flex-start; gap: 16px; }
.site .modal-head h3 { font-size: 22px; }
.modal-sub { color: var(--slate); font-size: 14px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site .footer { background: var(--ink); color: #b9c3dc; padding: 72px 0 28px; }
.site .footer::before { background: linear-gradient(90deg, transparent, rgba(143,177,243,.45), transparent); }
.site .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site .footer h5, .site .footer .foot-h { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; color: #8fa0c9; margin-bottom: 14px; }
.site .footer a { color: #dbe2f3; font-size: 14.5px; padding: 5px 0; }
.site .footer a:hover { color: #fff; transform: none; text-decoration: underline; text-underline-offset: 3px; }
.site .footer-brand p { color: #9eabca; }
.footer-contact { display: grid; gap: 2px; font-size: 14px; }
.footer-contact a { padding: 2px 0 !important; }
.footer-contact span { color: #9eabca; }
.site .footer-bottom { align-items: center; color: #8fa0c9; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { display: inline; color: #b9c3dc !important; font-size: 13px !important; }
.site .footer-social { display: flex; gap: 8px; }
.site .footer-social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); display: grid; place-items: center; padding: 0; }
.site .footer-social a:hover { background: rgba(255,255,255,.14); box-shadow: none; transform: none; text-decoration: none; }

/* ---------- Simple message (404, confirmations) ---------- */
.msg { min-height: 62vh; display: grid; place-items: center; padding: 72px 16px; }
.msg-inner { max-width: 520px; text-align: left; }
.msg-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 22px; }
.msg h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.msg p { color: var(--slate); font-size: 17px; margin-bottom: 26px; }
.msg-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.msg-links { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14.5px; }
.msg-links a { color: var(--accent-ink); font-weight: 500; }

/* ====================================================================
   Home
   ==================================================================== */
.h-hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.h-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 360px at 88% 18%, rgba(45,107,228,.13), transparent 65%),
    linear-gradient(rgba(11,20,55,.04) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(11,20,55,.04) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.h-hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.h-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; margin: 18px 0 22px; max-width: 13ch; }
.h-hero h1 em { font-style: normal; color: var(--accent); }
.h-hero .lede { font-size: 19px; color: var(--slate); max-width: 52ch; }
.h-hero-cta { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.h-assure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--slate); font-size: 14px; }
.h-assure span { display: inline-flex; align-items: center; gap: 8px; }
.h-assure i { color: var(--live); font-size: 13px; }

/* Hero timetable: the week as a learner sees it */
.sched { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 10px; position: relative; }
.sched-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 14px; }
.sched-top h2 { font-size: 16px; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.sched-top span { font-family: var(--font-mono); font-size: 12px; color: var(--slate-2); }
.sched-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; }
.sched-row + .sched-row { border-top: 1px dashed var(--line); border-radius: 0; }
.sched-row.is-live { background: var(--paper); border-radius: 12px; border-top-color: transparent; }
.sched-row.is-live + .sched-row { border-top-color: transparent; }
.sched-when { font-family: var(--font-mono); font-size: 12px; color: var(--slate); line-height: 1.35; }
.sched-when b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.sched-what b { display: block; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.sched-what small { color: var(--slate); font-size: 12.5px; }
.tag-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #08786b; background: var(--live-soft); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.tag-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(14,156,139,.5); animation: pulse 2s infinite; }
.tag-quiet { font-size: 12px; font-weight: 600; color: var(--slate); background: var(--paper-2); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.tag-accent { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,156,139,.45); } 70% { box-shadow: 0 0 0 7px rgba(14,156,139,0); } 100% { box-shadow: 0 0 0 0 rgba(14,156,139,0); } }
.sched-foot { margin: 6px 4px 4px; padding: 14px; border-radius: 12px; background: var(--ink); color: #c9d3ea; display: flex; gap: 14px; align-items: center; font-size: 13.5px; }
.sched-foot b { color: #fff; font-weight: 600; }
.sched-bar { flex: 1; }
.sched-bar i { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); margin-top: 8px; overflow: hidden; }
.sched-bar i::after { content: ''; display: block; height: 100%; width: var(--p, 40%); background: #8fb1f3; border-radius: 6px; }
.sched-note { position: absolute; left: 22px; bottom: -30px; font-family: var(--font-mono); font-size: 11.5px; color: var(--slate-2); }

/* Facts strip */
.h-facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.h-facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-fact { padding: 26px 24px; border-left: 1px solid var(--line); }
.h-fact:first-child { border-left: 0; padding-left: 0; }
.h-fact b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.h-fact span { color: var(--slate); font-size: 14px; }

/* Learn / Train / Guide zig-zag */
.ways { display: grid; gap: 28px; }
.way { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.way:nth-child(even) .way-copy { order: 2; }
.way-copy h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 10px 0 14px; }
.way-copy p { color: var(--slate); font-size: 17px; max-width: 48ch; }
.way-copy ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.way-copy li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.way-copy li i { color: var(--accent); margin-top: 5px; font-size: 13px; }
.way-kicker { font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); }
.way-art { background: var(--paper); border-radius: 18px; padding: 26px; min-height: 260px; display: grid; align-content: center; gap: 12px; border: 1px solid var(--line-2); }
.mini { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-xs); }
.mini b { color: var(--ink); font-weight: 600; font-size: 14.5px; display: block; }
.mini small { color: var(--slate); font-size: 12.5px; }
.mini-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; font-size: 14px; }
.mini-l { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mini.offset { margin-left: 28px; }
.mini.offset-2 { margin-left: 56px; }
.check-ico { color: var(--live); }

/* Programs explorer */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 48px; }
.field-tile { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.field-tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.field-tile i { width: 34px; height: 34px; border-radius: 9px; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.field-tile b { display: block; font-weight: 600; color: var(--ink); font-size: 14.5px; line-height: 1.25; }
.field-tile small { font-family: var(--font-mono); font-size: 12px; color: var(--slate-2); }

/* Counselling journey */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: j; }
.journey::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, var(--slate-3) 0 6px, transparent 6px 12px); }
.j-step { position: relative; padding-right: 28px; }
.j-n { width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; color: var(--ink); position: relative; box-shadow: var(--shadow-xs); }
.j-step:first-child .j-n { background: var(--ink); color: #fff; border-color: var(--ink); }
.j-step h3 { font-size: 20px; margin: 22px 0 8px; }
.j-step p { color: var(--slate); font-size: 15px; }
.j-step small { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }

/* Testimonial wall */
.wall { columns: 3 300px; column-gap: 20px; }
.quote { break-inside: avoid; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.quote:nth-child(3n+1) { background: var(--ink); border-color: var(--ink); }
.quote:nth-child(3n+1) blockquote { color: #e6ebf7; }
.quote:nth-child(3n+1) figcaption b { color: #fff; }
.quote:nth-child(3n+1) figcaption small { color: #9eabca; }
.quote:nth-child(3n+1) .initials { background: rgba(255,255,255,.1); color: #fff; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.quote figcaption { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.quote figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.quote figcaption small { color: var(--slate); font-size: 13px; }

/* Financing teaser */
.fin-tease { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 48px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.fin-tease h2 { font-size: clamp(28px, 3vw, 38px); margin: 10px 0 14px; }
.fin-tease p { color: var(--slate); font-size: 17px; max-width: 52ch; }
.fin-tease .logo { height: 26px; width: auto; margin-bottom: 6px; }
.fin-sample { background: var(--paper); border-radius: 18px; padding: 26px; border: 1px solid var(--line-2); }
.fin-sample-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--slate); }
.fin-sample-row:last-of-type { border-bottom: 0; }
.fin-sample-row b { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
.fin-sample small { display: block; margin-top: 12px; color: var(--slate-2); font-size: 12px; }

/* FAQ side by side */
.faq-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-split .faq-aside { position: sticky; top: 104px; }
.faq-split .faq-aside h2 { font-size: clamp(30px, 3.2vw, 42px); margin: 12px 0 14px; }
.faq-split .faq-aside p { color: var(--slate); font-size: 17px; margin-bottom: 22px; }

/* Final call to action */
.h-final { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; }
.h-final-side { display: grid; gap: 12px; }
.h-final-side a, .h-final-side button { justify-content: center; }

/* ====================================================================
   Career services
   ==================================================================== */
.cs-hero { padding: 72px 0 80px; position: relative; overflow: hidden; }
.cs-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 340px at 90% 10%, rgba(45,107,228,.12), transparent 65%); }
.cs-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.cs-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; margin: 16px 0 20px; max-width: 15ch; }
.cs-hero .lede { font-size: 19px; color: var(--slate); max-width: 54ch; }
.cs-plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px; }
.cs-plan h2 { font-size: 15px; font-family: var(--font-mono); font-weight: 500; color: var(--slate); letter-spacing: 0; margin-bottom: 14px; }
.cs-plan ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: p; }
.cs-plan li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 10px; counter-increment: p; }
.cs-plan li::before { content: counter(p); font-family: var(--font-mono); font-size: 12px; color: var(--slate); width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; }
.cs-plan li.done::before { content: '\2713'; background: var(--live-soft); color: #08786b; border-color: transparent; }
.cs-plan li.now { background: var(--paper); }
.cs-plan li.now::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.cs-plan li b { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.service.wide { grid-column: span 3; }
.service i { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 16px; margin-bottom: 18px; }
.service h3 { font-size: 20px; margin-bottom: 8px; }
.service p { color: var(--slate); font-size: 15px; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.who > div { padding: 28px 28px 8px 0; }
.who > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.who h3 { font-size: 20px; margin-bottom: 8px; }
.who p { color: var(--slate); font-size: 15px; }
.cs-form { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; padding: 48px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.cs-form h2 { font-size: clamp(28px, 3vw, 40px); margin: 12px 0 14px; }
.cs-form > div > p { color: var(--slate); font-size: 17px; }
.cs-form ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.cs-form li { display: flex; gap: 10px; }
.cs-form li i { color: var(--live); margin-top: 5px; font-size: 13px; }
.note { font-size: 12.5px; color: var(--slate-2); margin-top: 12px; }

/* ====================================================================
   About
   ==================================================================== */
.about-body { font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 68ch; }
.about-body p + p { margin-top: 16px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 56px; }
.pillars > div { padding: 26px 26px 0 0; }
.pillars > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.pillars b { display: block; font-family: var(--font-display); font-size: 21px; color: var(--ink); margin-bottom: 6px; font-weight: 650; }
.pillars p { color: var(--slate); font-size: 15px; }

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 1100px) {
  .nav-quiet { display: none; }
}
@media (max-width: 1024px) {
  .site .nav-links { background: #fff; padding: 12px 16px 18px; }
  .site .nav-links .nav-link { padding: 13px 4px; border-radius: 0; }
  .site .nav-link[aria-current="page"] { box-shadow: none; background: transparent; color: var(--accent-ink); }
  .site .mega { padding: 4px 0; }
  .mega-all { margin: 4px 0 0; }
  .nav-mobile-only { display: inline-flex !important; margin-top: 12px; width: 100%; }
}
@media (max-width: 980px) {
  .h-hero-grid, .cs-hero-grid, .fin-tease, .faq-split, .h-final, .cs-form { grid-template-columns: 1fr; gap: 40px; }
  .h-hero { padding: 48px 0 72px; }
  .sched { max-width: 520px; }
  .h-facts-row { grid-template-columns: repeat(2, 1fr); }
  .h-fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .h-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .way { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .way:nth-child(even) .way-copy { order: 0; }
  .fields { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .journey::before { display: none; }
  .faq-split .faq-aside { position: static; }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service.wide { grid-column: span 1; }
  .who, .pillars { grid-template-columns: 1fr; }
  .who > div + div, .pillars > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .who > div, .pillars > div { padding: 22px 0; }
  .site .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .fin-tease, .cs-form { padding: 32px; }
  .site .section { padding: 72px 0 80px; }
}
@media (max-width: 560px) {
  .site .section { padding: 56px 0 64px; }
  .h-hero h1 { font-size: 40px; }
  .h-hero .lede, .cs-hero .lede { font-size: 17px; }
  .h-hero-cta .btn { width: 100%; }
  .h-hero-cta .link-arrow { width: 100%; justify-content: center; padding: 6px 0; }
  .sched-row { grid-template-columns: 54px 1fr; }
  .sched-row > :last-child { grid-column: 2; justify-self: start; }
  .sched-note { position: static; display: block; margin: 10px 4px 0; }
  .h-fact { padding: 20px 14px 20px 0; }
  .h-fact:nth-child(even) { padding-left: 14px; }
  .h-fact b { font-size: 24px; }
  .way { padding: 22px; border-radius: 18px; }
  .way-art { padding: 16px; min-height: 0; }
  .mini.offset, .mini.offset-2 { margin-left: 0; }
  .fields { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .j-step { padding-right: 0; display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; }
  .j-step h3 { margin: 4px 0 6px; }
  .j-step > :not(.j-n) { grid-column: 2; }
  .j-n { grid-row: span 3; }
  .fin-tease, .cs-form { padding: 22px; border-radius: 18px; }
  .services { grid-template-columns: 1fr; }
  .site .cta-band { padding: 36px 22px; }
  .site .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site .page-head { padding: 40px 0 34px; }
  .qa summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tag-live::before { animation: none; }
  .site .btn, .field-tile, .site .card-hover { transition: none; }
}

.site .cta-band h2, .site .cta-band h3 { color: #fff; }
.site .detail-grid > * { min-width: 0; }
@media (max-width: 1024px) {
  .site .nav-links { margin-left: 0; padding-bottom: 96px; }
  .site .mega { width: 100%; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px; }
  .site .mega-item { padding: 9px 4px; }
}

/* ====================================================================
   Phase 4: programs listing and course page
   ==================================================================== */
.site [hidden] { display: none !important; }
.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; }

/* Listing */
.field-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pfilter { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, 1fr)); gap: 10px; align-items: end; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pfilter:not(:has([name=type])) { grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(130px, 1fr)); }
.pf-search { position: relative; display: block; }
.pf-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate-2); font-size: 14px; }
.pf-search .input { padding-left: 38px; height: 44px; }
.pf-sel { display: grid; gap: 4px; }
.pf-sel span { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); padding-left: 2px; }
.pf-sel .select { height: 44px; padding: 0 12px; }
.pf-status { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px; min-height: 24px; }
.pf-status p { font-family: var(--font-mono); font-size: 13px; color: var(--slate); }
.pf-help { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.pf-help h2 { font-size: 22px; margin-bottom: 4px; }
.pf-help p { color: var(--slate); max-width: 60ch; }
.site .pcard-img .float-badge { font-size: 11.5px; }

/* Course page header: leaves room on the right for the enrol card that overlaps it */
.cd-head { padding: 56px 0 120px; }
.cd-head-copy { max-width: calc(100% - 410px); }
.cd-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.site .cd-head h1 { max-width: 22ch; }
.cd-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; color: var(--slate); font-size: 14px; align-items: center; }
.cd-proof b { color: var(--ink); font-weight: 600; }
.cd-body { padding: 0 0 72px; }
.cd-body .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: stretch; }
.cd-aside { margin-top: -96px; position: relative; z-index: 2; }
.site .cd-aside .detail-card { padding: 12px 12px 20px; top: 88px; }
.cd-img { border-radius: 11px; aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 16px; }
.cd-aside .detail-card > :not(.cd-img) { margin-left: 8px; margin-right: 8px; }
.cd-aside .btn-block { width: calc(100% - 16px); }
.cd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cd-price .price { font-size: 32px; }
.cd-price s { color: var(--slate-2); font-size: 15px; }
.cd-finance { display: flex; gap: 10px; align-items: center; margin-top: 10px; margin-bottom: 16px; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 13.5px; color: var(--ink-2); }
.cd-finance img { height: 14px; width: auto; }
.cd-finance i { margin-left: auto; font-size: 12px; color: var(--accent-ink); }
.cd-finance:hover { background: var(--accent-soft); }
.cd-cart { display: block; margin: 12px auto 0; font-size: 14px; }
.cd-includes { list-style: none; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.cd-includes i { width: 18px; color: var(--accent-ink); margin-right: 8px; }
.cd-help { margin-top: 16px; font-size: 14px; color: var(--slate); }

.cd-glance { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cd-glance > div { padding: 16px 18px; border-left: 1px solid var(--line); }
.cd-glance > div:first-child { border-left: 0; }
.cd-glance dt { font-family: var(--font-mono); font-size: 12px; color: var(--slate); }
.cd-glance dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); font-size: 15px; }
.cd-schedule { margin-top: 14px; color: var(--slate); font-size: 14px; display: flex; gap: 10px; }
.cd-schedule i { color: var(--accent-ink); margin-top: 4px; }

.cd-nav { position: sticky; top: 72px; z-index: 5; display: flex; gap: 4px; margin: 36px 0 8px; padding: 8px 0; background: rgba(246,247,251,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cd-nav::-webkit-scrollbar { display: none; }
.cd-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.cd-nav a:hover, .cd-nav a.on { color: var(--ink); background: rgba(11,20,55,.05); }
.cd-sec { padding: 44px 0 8px; scroll-margin-top: 130px; }
.cd-sec h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; }
.cd-sec h3 { font-size: 18px; margin: 30px 0 14px; }
.cd-lede { font-size: 17px; color: var(--ink-2); max-width: 68ch; line-height: 1.7; }
.cd-sub { color: var(--slate); margin: -4px 0 18px; }
.cd-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cd-outcomes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.cd-outcomes li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.cd-outcomes i { color: var(--live); margin-top: 5px; font-size: 13px; }
.cd-tools, .cd-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-tools span { font-family: var(--font-mono); font-size: 13px; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.cd-roles span { font-weight: 600; font-size: 14.5px; padding: 8px 13px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); }

/* Curriculum as a timeline */
.timeline { list-style: none; padding: 0; margin: 18px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.timeline > li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 12px; }
.tl-node { width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink); position: relative; z-index: 1; }
.timeline details { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.timeline details[open] { border-color: #cfd6e4; box-shadow: var(--shadow-xs); }
.timeline summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 10px 16px; min-height: 40px; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary::after { content: "+"; font-size: 20px; color: var(--slate); transition: transform .2s var(--ease); }
.timeline details[open] summary::after { transform: rotate(45deg); }
.tl-title { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.tl-count { font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin-left: auto; white-space: nowrap; }
.timeline details ul { margin: 0; padding: 4px 16px 14px 36px; color: var(--slate); font-size: 14.5px; display: grid; gap: 6px; }
.timeline details ul li::marker { color: var(--slate-3); }
.timeline li:has(details[open]) .tl-node { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-end .tl-node { background: var(--live-soft); color: #08786b; border-color: transparent; }
.tl-end b { display: block; color: var(--ink); margin-top: 9px; }
.tl-end p { color: var(--slate); font-size: 14.5px; }

.cd-projects { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-projects li { display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; color: var(--ink); }
.cd-projects .mono { font-size: 12px; color: var(--accent-ink); font-weight: 600; }

.cd-counsel { margin-top: 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; padding: 26px 28px; border-radius: 18px; background: var(--grad-navy); color: #c9d3ea; }
.site .cd-counsel h3 { color: #fff; margin: 0 0 6px; font-size: 20px; }
.cd-counsel p { max-width: 52ch; font-size: 15px; }
.cd-counsel-cta { display: flex; gap: 18px; align-items: center; }
.site .cd-counsel .link-arrow { color: #b8cdf7; }
.cd-mentor { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cd-mentor .initials { width: 56px; height: 56px; font-size: 19px; border-radius: 14px; }
.cd-mentor b { display: block; color: var(--ink); font-size: 18px; font-family: var(--font-display); }
.cd-mentor small { color: var(--accent-ink); font-weight: 500; }
.cd-mentor p { color: var(--slate); margin-top: 8px; font-size: 15px; }
.cd-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cd-quotes .quote { margin: 0; }

@media (max-width: 1100px) {
  .pfilter, .pfilter:not(:has([name=type])) { grid-template-columns: 1fr 1fr; }
  .pf-search { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .cd-head { padding: 40px 0 32px; }
  .cd-head-copy { max-width: none; }
  .cd-body .detail-grid { grid-template-columns: 1fr; gap: 0; }
  .cd-aside { margin-top: 24px; order: -1; }
  .site .cd-aside .detail-card { position: static; }
  .cd-glance { grid-template-columns: 1fr 1fr; }
  .cd-glance > div:nth-child(3) { border-left: 0; }
  .cd-glance > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cd-outcomes, .cd-projects, }
@media (max-width: 560px) {
  .field-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .field-chips::-webkit-scrollbar { display: none; }
  .field-chips .chip { white-space: nowrap; }
  .pf-help { padding: 22px; }
  .cd-counsel { padding: 22px; }
  .cd-counsel-cta { flex-wrap: wrap; }
  .timeline summary { flex-wrap: wrap; }
}
@media (max-width: 980px) { .cd-img { aspect-ratio: 16/7; } }

/* ====================================================================
   Phase 5: enroll, cart and checkout
   ==================================================================== */
.co { padding-top: 40px; }
.co .co-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: stretch; }
.co-form { display: grid; gap: 16px; }
.co-step { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 22px 24px 8px; margin: 0; min-width: 0; }
.co-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 650; font-size: 19px; color: var(--ink); margin-bottom: 18px; padding: 0; }
.co-step legend + * { clear: both; }
.co-n { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.co-step:has(:invalid) .co-n { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.co-hint { font-size: 13px; color: var(--slate); margin-top: 8px; }
.co-hint a { color: var(--accent-ink); text-decoration: underline; }
.co-amount { position: relative; }
.co-amount span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate); font-weight: 600; }
.co-amount .input { padding-left: 30px; font-family: var(--font-mono); font-size: 16px; }

.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pay-opts-3 { grid-template-columns: repeat(3, 1fr); }
.site .pay-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.site .pay-opt:hover { border-color: var(--slate-3); }
.site .pay-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,107,228,.14); background: #fbfcff; }
.site .pay-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--paper); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; font-size: 15px; }
.pay-opt:has(input:checked) .pay-ico { background: var(--accent); color: #fff; }
.pay-opt strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.pay-opt small { display: block; color: var(--slate); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }

.co-climb { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.co-climb img { height: 14px; width: auto; }
.co-climb i { margin-left: auto; color: var(--accent-ink); font-size: 12px; }
.co-climb:hover { background: var(--accent-soft); }

.co-terms { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.co-terms input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.co-terms label { font-size: 14px; color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.co-terms a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }
.co-terms .req { color: #c2410c; }
.co-terms p { grid-column: 2; color: #c2410c; font-size: 13px; font-weight: 500; }
.co-secure { text-align: center; font-size: 13px; color: var(--slate); }
.co-notice { padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-2); margin-bottom: 24px; font-size: 14.5px; }
.co-notice i { color: var(--accent-ink); margin-right: 6px; }

.site .co-sum { padding: 24px; top: 96px; box-shadow: var(--shadow-sm); }
.co-sum h2 { font-size: 20px; margin-bottom: 16px; }
.co-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--slate); }
.co-strong { color: var(--ink); font-weight: 600; text-align: right; }
.co-total { border-bottom: 0; align-items: baseline; padding: 16px 0 18px; color: var(--ink); font-weight: 600; }
.co-total .price { font-size: 28px; }
.co-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink); font-weight: 500; }
.co-item small { color: var(--slate); font-weight: 400; }
.co-next { margin: 4px 0 0; padding: 16px 0 0 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.co-next li::marker { font-family: var(--font-mono); color: var(--accent-ink); font-size: 12.5px; }
.co-help { margin-top: 16px; font-size: 14px; color: var(--slate); }
.co-more { display: flex; justify-content: center; margin-top: 14px; font-size: 14px; }

.co-h { font-size: 20px; margin-bottom: 14px; }
.site .cart-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.cart-row h3 { font-size: 18px; margin: 4px 0; }
.cart-row .mono { color: var(--ink); font-weight: 600; }
.co-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }
.cart-actions { display: flex; align-items: center; gap: 14px; }
.co-remove { font-size: 14px; color: #b42318; }
.co-empty { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.msg-next { border-top: 0; padding-top: 0; margin: -10px 0 26px; }

@media (max-width: 980px) {
  .co .co-grid { grid-template-columns: 1fr; gap: 24px; }
  .site .co-sum { position: static; }
  .pay-opts-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .co-step { padding: 18px 16px 4px; }
  .pay-opts { grid-template-columns: 1fr; }
  .site .cart-row { flex-direction: column; align-items: stretch; }
}

/* ====================================================================
   Phase 6: contact, legal, insights, verify, partners, login, dashboard
   ==================================================================== */
/* Long-form text (legal pages, articles, About) */
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 19px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-nav a { padding: 8px 14px; font-size: 14.5px; color: var(--slate); margin-left: -1px; border-left: 2px solid transparent; }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
.legal-q { margin-top: 2.4em !important; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 15px; color: var(--slate); }

/* Contact and partners */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.contact-form h2 { font-size: 22px; margin-bottom: 18px; }
.contact-ways { display: grid; gap: 4px; margin-bottom: 20px; }
.contact-ways > a, .contact-ways > div { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.contact-ways > a:hover { color: var(--accent-ink); }
.contact-ways i { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex-shrink: 0; }
.contact-ways small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--slate); font-weight: 400; }
.contact-cta { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.contact-cta h3 { font-size: 19px; margin-bottom: 6px; }
.contact-cta p { color: var(--slate); font-size: 15px; margin-bottom: 16px; }
.contact-more { margin-top: 18px; font-size: 14px; color: var(--slate); }
.contact-more a { color: var(--accent-ink); }
.partner-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.partner-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.partner-list b { font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 650; }
.partner-list span { color: var(--slate); }

/* Insights */
.blog-lead { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; transition: box-shadow .2s, border-color .2s; }
.blog-lead:hover { box-shadow: var(--shadow); border-color: #cfd6e4; }
.blog-lead img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.blog-lead > div { padding: 12px 20px 12px 0; display: grid; gap: 10px; justify-items: start; }
.blog-lead h2 { font-size: clamp(24px, 2.6vw, 34px); }
.blog-lead p { color: var(--slate); font-size: 16.5px; }
.blog-by { font-size: 13.5px; color: var(--slate); }
.post-head { padding: 56px 0 32px; }
.post-head .pcard-cat { display: inline-block; margin: 6px 0 12px; }
.post-head h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; }
.post-dek { font-size: 20px; color: var(--slate); margin-top: 16px; }
.post-by { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.post-by b { display: block; color: var(--ink); font-weight: 600; }
.post-by small { color: var(--slate); }
.post-cover { margin-bottom: 40px; }
.post-cover img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; }
.post .prose { margin-bottom: 48px; }
.post-cta { padding: 28px; border-radius: 18px; background: var(--grad-navy); color: #c9d3ea; }
.site .post-cta h2 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.post-cta p { margin-bottom: 18px; }
.post-cta > div { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }
.site .post-cta .link-arrow { color: #b8cdf7; }
.post { padding-bottom: 88px; }

/* Verify */
.verify { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.verify label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.verify-row { display: flex; gap: 10px; }
.verify-row .input { font-size: 16px; letter-spacing: .02em; }
.verify-wait { margin-top: 18px; color: var(--slate); font-family: var(--font-mono); font-size: 13px; }
.verify-ok, .verify-bad { margin-top: 18px; display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; }
.verify-ok { background: var(--live-soft); }
.verify-ok i { color: var(--live); font-size: 20px; margin-top: 2px; }
.verify-bad { background: #fff4ed; }
.verify-bad i { color: #c2410c; font-size: 20px; margin-top: 2px; }
.verify-ok b, .verify-bad b { color: var(--ink); }
.verify-ok p, .verify-bad p { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.verify-bad a { color: var(--accent-ink); text-decoration: underline; }

/* Log in / register */
.auth { display: grid; grid-template-columns: .9fr 1.1fr; min-height: calc(100dvh - 72px); }
.auth-side { background: var(--grad-navy); color: #c9d3ea; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth-logo img { height: 34px; width: auto; }
.site .auth-side h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); max-width: 16ch; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 15.5px; }
.auth-side li i { width: 22px; color: #8fb1f3; margin-right: 10px; }
.auth-main { display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 34px; }
.auth-sub { color: var(--slate); margin: 6px 0 26px; }
.form-error { padding: 12px 14px; border-radius: 10px; background: #fff4ed; color: #9a3412; font-size: 14.5px; margin-bottom: 18px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px 8px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.pw-toggle:hover { background: var(--accent-soft); }
.auth-switch { margin-top: 22px; font-size: 14.5px; color: var(--slate); }
.auth-switch a, .auth-help a { color: var(--accent-ink); font-weight: 600; }
.auth-help { margin-top: 8px; font-size: 13.5px; color: var(--slate); }

/* Learner dashboard (inside the public layout) */
.site .app-dash { grid-template-columns: 250px minmax(0, 1fr); max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; gap: 32px; min-height: 0; }
.site .app-dash .app-side { background: transparent; color: var(--ink); padding: 0; border: 0; position: sticky; top: 96px; height: max-content; min-height: 0; }
.site .side-user { display: flex; gap: 12px; align-items: center; padding: 0 4px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.site .side-user .nm { color: var(--ink); font-weight: 600; }
.site .side-user .em { color: var(--slate); font-size: 12.5px; overflow-wrap: anywhere; }
.site .side-link { color: var(--slate); font-weight: 500; border-radius: 9px; }
.site .side-link:hover { background: rgba(11,20,55,.05); color: var(--ink); transform: none; }
.site .side-link.active { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.site .side-link.active::before { display: none; }
.site .side-link i { color: inherit; }
.side-out { margin-top: 10px; }
.site .app-dash .app-body { background: transparent; padding: 0; }
.dash-h { font-size: clamp(26px, 3vw, 34px); }
.dash-sub { color: var(--slate); margin: 6px 0 28px; }
.site .stat { border-radius: 14px; }
.site .stat-val { font-family: var(--font-display); }

@media (max-width: 980px) {
  .legal, .contact, .blog-lead, .auth { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .legal-nav a { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 6px 10px; font-size: 13.5px; }
  .legal-nav a[aria-current="page"] { border-color: var(--ink); }
  .blog-lead > div { padding: 4px 12px 16px; }
  .auth-side { padding: 32px 20px; gap: 18px; }
  .auth-side ul { display: none; }
  .site .app-dash { grid-template-columns: 1fr; padding: 20px 16px 64px; gap: 20px; }
  .site .app-dash .app-side { position: static; }
  .site .side-user { display: none; }
}
@media (max-width: 860px) {
  .site .app-dash .app-side { background: transparent; border: 0; padding: 0; overflow-x: auto; }
  .site .side-link.active { background: var(--ink); color: #fff; box-shadow: none; }
}
@media (max-width: 560px) {
  .contact-form, .verify { padding: 20px; }
  .verify-row { flex-direction: column; }
}

/* Keyboard users open the Programs menu by tabbing into it */
@media (min-width: 1025px) { .site .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); } }
