/* ============================================================
   subject-page.css — Split-Panel Subject Page Layout
   Used by: Biology, Chemistry, Physics, Maths Standard subject pages
   ============================================================ */

/* ── Base reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'DM Sans', sans-serif; font-size: 16px; background: #fff; -webkit-font-smoothing: antialiased; }

/* ── Layout ─────────────────────────────────────────────── */
.sp-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Left Panel ──────────────────────────────────────────── */
.sp-panel {
  width: 340px;
  min-width: 340px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  overflow: hidden;
}

/* Subject gradients — left panel only */
.sp-panel-bio  { background: linear-gradient(160deg, #d1fae5 0%, #6ee7b7 55%, #34d399 100%); }
.sp-panel-chem { background: linear-gradient(160deg, #dbeafe 0%, #93c5fd 55%, #60a5fa 100%); }
.sp-panel-phy  { background: linear-gradient(160deg, #fef3c7 0%, #fdba74 55%, #fb923c 100%); }
.sp-panel-math { background: linear-gradient(160deg, #ede9fe 0%, #c4b5fd 55%, #a78bfa 100%); }

/* ── Animated Blobs ──────────────────────────────────────── */
.sp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  animation: sp-blob 10s infinite alternate ease-in-out;
  background: rgba(255,255,255,0.55);
}
.sp-blob-1 { width: 200px; height: 200px; top: 15%; left: -20%; }
.sp-blob-2 { width: 170px; height: 170px; bottom: 15%; right: -12%; animation-delay: 2.5s; }

@keyframes sp-blob {
  0%   { transform: translate(0px, 0px) scale(1); }
  33%  { transform: translate(28px, -45px) scale(1.1); }
  66%  { transform: translate(-18px, 22px) scale(0.92); }
  100% { transform: translate(0px, 0px) scale(1); }
}

/* ── Watermark ───────────────────────────────────────────── */
.sp-watermark {
  position: absolute;
  bottom: -30px;
  right: -16px;
  font-size: 148px;
  font-weight: 800;
  letter-spacing: -6px;
  opacity: 0.13;
  line-height: 1;
  color: #fff;
  pointer-events: none;
  user-select: none;
  font-family: 'Outfit', sans-serif;
}

.sp-panel-top {
  position: relative;
  margin-bottom: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.sp-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: rgba(0,0,0,0.7);
  text-decoration: none;
}
.sp-logo:hover { color: rgba(0,0,0,0.9); }

.sp-top-sep { color: rgba(0,0,0,0.25); font-size: 14px; }

.sp-back {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.sp-back:hover { color: rgba(0,0,0,0.8); }

.sp-panel-inner {
  position: relative;
  padding-bottom: 20px;
  z-index: 1;
}

.sp-subject-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0,0,0,0.62);
  margin-bottom: 10px;
}

.sp-subject-name {
  font-size: 50px;
  font-weight: 800;
  color: rgba(0,0,0,0.82);
  letter-spacing: -2.5px;
  line-height: 1;
  margin-bottom: 14px;
  font-family: 'Outfit', sans-serif;
}

.sp-subject-desc {
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  line-height: 1.55;
  max-width: 260px;
}

/* ── Right Content Panel ─────────────────────────────────── */
.sp-content {
  flex: 1;
  background: #FAFAFA;
  overflow-y: auto;
  min-height: 100vh;
  scrollbar-width: none;
}
.sp-content::-webkit-scrollbar { display: none; }

.sp-content-bio,
.sp-content-chem,
.sp-content-phy,
.sp-content-math { background: #FAFAFA; }

.sp-content-inner {
  max-width: 700px;
  padding: 0 44px 120px;
}

/* ── Curriculum Header (sticky) ──────────────────────────── */
.sp-curriculum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,250,250,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 0 20px;
  margin-bottom: 44px;
}

.sp-curriculum-title {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  margin: 0;
}

.sp-pilot-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  margin: -16px 0 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sp-pilot-copy strong,
.sp-pilot-stats strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.sp-pilot-copy p,
.sp-pilot-stats p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
}

.sp-pilot-stats {
  display: grid;
  gap: 8px;
}

.sp-pilot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.sp-entry {
  display: grid;
  gap: 18px;
  margin: -16px 0 28px;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fffc 100%);
  border: 1px solid #dbeee5;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.sp-entry-copy {
  display: grid;
  gap: 10px;
}

.sp-entry-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-entry h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.sp-entry p {
  margin: 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
}

.sp-entry-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sp-entry-stat {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 18px;
}

.sp-entry-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.sp-entry-stat strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.sp-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sp-entry-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
}

.sp-entry-link.subtle {
  background: #eef2ff;
  color: #4338ca;
  box-shadow: none;
}

.sp-entry-link.subtle:hover {
  background: #e0e7ff;
  box-shadow: none;
}

.sp-momentum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.sp-momentum-card {
  padding: 16px 18px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.sp-momentum-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 8px;
}

.sp-momentum-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #0f172a;
  margin-bottom: 8px;
}

.sp-momentum-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.sp-pathways {
  display: grid;
  gap: 18px;
  margin: 2px 0 36px;
}

.sp-pathways-intro {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe5f4;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.sp-pathways-intro::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #6366f1 0%, #22c55e 100%);
}

.sp-pathways-intro strong {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.sp-pathways-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
}

.sp-pathways-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}

.sp-pathways-head h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.sp-pathways-head p {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
}

.sp-pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sp-pathway-card {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 20px 20px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  min-height: 250px;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sp-pathway-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.sp-pathway-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 62%, #f4fff8 100%);
  border-color: #c7d2fe;
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.10);
}

.sp-pathway-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6366f1 0%, #22c55e 100%);
}

.sp-pathway-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.sp-pathway-tagline {
  margin: -2px 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6366f1;
}

.sp-pathway-card h4 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.sp-pathway-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
}

.sp-pathway-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.sp-pathway-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.sp-pathway-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
}

.sp-pathway-link.subtle {
  background: #eef2ff;
  color: #4338ca;
  box-shadow: none;
}

.sp-pathway-link.subtle:hover {
  box-shadow: none;
  background: #e0e7ff;
}

/* ── Year Toggle ─────────────────────────────────────────── */
.sp-toggle {
  display: flex;
  gap: 3px;
  background: #e2e8f0;
  border-radius: 9px;
  padding: 3px;
}

.sp-tab {
  padding: 7px 18px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}

.sp-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ── Year Panels ─────────────────────────────────────────── */
.sp-year { display: none; }
.sp-year.active { display: block; }

/* ── Module Sections ─────────────────────────────────────── */
.sp-module {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 48px;
  position: relative;
}

/* Editorial oversized number behind module title */
.sp-module::before {
  content: attr(data-num);
  position: absolute;
  left: -8px;
  top: -36px;
  font-size: 7.5rem;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  color: rgba(0,0,0,0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}
.sp-module.coming-soon::before { display: none; }

.sp-module-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: none;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

/* Accordion: header is clickable on non-coming-soon modules */
.sp-module:not(.coming-soon) .sp-module-header {
  cursor: pointer;
  user-select: none;
}

.sp-module-info { flex: 1; }

/* Chevron */
.sp-module-header::after {
  content: '›';
  font-size: 22px;
  color: #cbd5e1;
  transition: transform 0.25s, color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.sp-module.coming-soon .sp-module-header::after { display: none; }
.sp-module.sp-open .sp-module-header::after {
  transform: rotate(90deg);
  color: #64748b;
}

/* ── Lesson List — smooth accordion ─────────────────────── */
.sp-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.sp-module.sp-open .sp-lesson-list,
.sp-module.coming-soon .sp-lesson-list {
  max-height: 3000px;
}

/* Closed state: tighter margin */
.sp-module:not(.coming-soon):not(.sp-open) { margin-bottom: 14px; }
.sp-module:not(.coming-soon):not(.sp-open) .sp-module-header {
  margin-bottom: 0;
  padding-bottom: 0;
}

.sp-module-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  flex-shrink: 0;
}

.sp-module-title {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-family: 'Outfit', sans-serif;
}

.sp-module-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

.sp-module-badge { display: none; }

/* ── Lesson Rows ─────────────────────────────────────────── */
.sp-lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: #334155;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

/* Indigo sweep on hover */
.sp-lesson-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(99,102,241,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.sp-lesson-row:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
  border-color: #e0e7ff;
  color: #0f172a;
}
.sp-lesson-row:hover::before { opacity: 1; }

.sp-lesson-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f8fafc;
  border: none;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.3s;
}
.sp-lesson-row:hover .sp-lesson-num {
  background: #eef2ff;
  color: #4f46e5;
}

.sp-quiz-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eff6ff;
  border: none;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #3b82f6;
  flex-shrink: 0;
}

.sp-mq-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fdf4ff;
  border: none;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #9333ea;
  flex-shrink: 0;
}

.sp-hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f0fdf4;
  border: none;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
  flex-shrink: 0;
}

.sp-fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff7ed;
  border: none;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #ea580c;
  flex-shrink: 0;
}

.sp-lesson-title {
  flex: 1;
  min-width: 0;
}

.sp-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
  opacity: 1;
  transition: all 0.3s;
  flex-shrink: 0;
}
.sp-lesson-row:hover .sp-arrow {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4f46e5;
}

/* ── Coming Soon Modules ──────────────────────────────────── */
.sp-module.coming-soon {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.sp-module.coming-soon .sp-module-header { padding-bottom: 0; margin-bottom: 0; }
.sp-module.coming-soon .sp-module-title { color: #64748b; font-size: 20px; }
.sp-module.coming-soon .sp-module-num { color: #cbd5e1; }

.sp-coming-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  font-size: 13px;
  color: #cbd5e1;
  border-radius: 9px;
}

.sp-lock-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #cbd5e1;
  flex-shrink: 0;
}
.sp-lock-icon::after {
  content: '–';
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

/* ── Floating Subject Dock ───────────────────────────────── */
.sp-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 100px;
  padding: 8px 10px;
}

.sp-dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  transition: all 0.25s;
}
.sp-dock-btn:hover { color: #334155; background: #f1f5f9; }

.sp-dock-sep {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
  margin: 0 4px;
  flex-shrink: 0;
}

.sp-dock-bio.active  { background: #d1fae5; color: #059669; transform: scale(1.1); }
.sp-dock-chem.active { background: #dbeafe; color: #2563eb; transform: scale(1.1); }
.sp-dock-phy.active  { background: #fef3c7; color: #d97706; transform: scale(1.1); }
.sp-dock-math.active { background: #ede9fe; color: #7c3aed; transform: scale(1.1); }

/* ── Completed lesson state ──────────────────────────────── */
.sp-lesson-row.sp-completed .sp-lesson-num {
  background: #d1fae5;
  color: #059669;
  font-size: 15px;
}
.sp-lesson-row.sp-completed {
  border-color: #d1fae5;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sp-blob { animation: none; }
  .sp-lesson-row,
  .sp-lesson-num,
  .sp-arrow { transition: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .sp-panel { width: 280px; min-width: 280px; }
  .sp-subject-name { font-size: 40px; }
  .sp-watermark { font-size: 110px; }
  .sp-content-inner { padding: 0 28px 100px; }
  .sp-entry { margin: -8px 0 24px; }
  .sp-entry-stats { grid-template-columns: 1fr; }
  .sp-pilot-banner { grid-template-columns: 1fr; gap: 14px; margin: -8px 0 24px; }
  .sp-momentum { grid-template-columns: 1fr; }
  .sp-pathways-head { align-items: start; flex-direction: column; }
  .sp-pathway-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .sp-layout { flex-direction: column; }
  .sp-panel {
    position: relative;
    width: 100%;
    min-width: unset;
    height: auto;
    min-height: unset;
    padding: 24px 20px 28px;
  }
  .sp-panel-top { margin-bottom: 24px; }
  .sp-subject-name { font-size: 38px; letter-spacing: -1.5px; }
  .sp-subject-desc { display: none; }
  .sp-watermark { font-size: 90px; bottom: -12px; }
  .sp-content { min-height: unset; overflow-y: visible; }
  .sp-content-inner { padding: 0 16px 80px; }
  .sp-entry { padding: 18px 16px 16px; margin: -4px 0 20px; border-radius: 18px; }
  .sp-entry h3 { font-size: 25px; }
  .sp-entry-stat { padding: 13px 14px; border-radius: 16px; }
  .sp-entry-stat strong { font-size: 21px; }
  .sp-pilot-banner { padding: 16px; margin: -4px 0 20px; border-radius: 16px; }
  .sp-momentum { margin: 0 0 20px; }
  .sp-momentum-card { padding: 15px 16px; border-radius: 16px; }
  .sp-pathways { margin: 0 0 24px; }
  .sp-pathway-card { min-height: 0; padding: 16px; border-radius: 18px; }
  .sp-pathway-card h4 { font-size: 19px; }
  .sp-dock { display: none; }
  .sp-module::before { font-size: 4.5rem; top: -20px; left: -6px; }
  .sp-lesson-row { padding: 12px 14px; border-radius: 16px; }
  .sp-lesson-num, .sp-quiz-icon, .sp-mq-icon { width: 38px; height: 38px; border-radius: 11px; }
  .sp-arrow { width: 30px; height: 30px; font-size: 15px; }
  .sp-curriculum-header { padding: 20px 0 16px; margin-bottom: 32px; }
  .sp-curriculum-title { font-size: 22px; }
}
