/**
 * Design System CSS
 * CST395 & CST349 Learning Design Components
 *
 * Based on Course Page Design Principles document
 * Architect metaphor: Studio, Blueprint, Design Challenge, Debrief
 */

/* ============================================
   CSS Variables - Extended Design System
   ============================================ */

:root {
  /* CST395 Primary - Teal */
  --cst395-primary: #14b8a6;
  --cst395-primary-light: #99f6e4;
  --cst395-primary-dark: #0d9488;
  --cst395-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);

  /* CST349 Primary - Blue */
  --cst349-primary: #3b82f6;
  --cst349-primary-light: #dbeafe;
  --cst349-primary-dark: #2563eb;
  --cst349-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);

  /* Component Colors */
  --hook-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --hook-text: white;

  --payoff-bg: #f0fdfa;
  --payoff-border: #14b8a6;
  --payoff-text: #0f766e;

  --pause-bg: #fffbeb;
  --pause-border: #f59e0b;
  --pause-text: #92400e;

  --action-bg: #f0fdfa;
  --action-border: #14b8a6;
  --action-text: #0f766e;

  --critical-bg: #fef2f2;
  --critical-border: #ef4444;
  --critical-text: #991b1b;

  --check-bg: #eff6ff;
  --check-border: #3b82f6;
  --check-text: #1e40af;

  --insight-bg: #faf5ff;
  --insight-border: #a855f7;
  --insight-text: #6b21a8;

  --connection-bg: #f9fafb;
  --connection-border: #d1d5db;
  --connection-text: #4b5563;

  --submission-bg: #111827;
  --submission-text: #f9fafb;

  --peer-bg: #f0fdf4;
  --peer-border: #22c55e;
  --peer-text: #166534;

  /* Capability Colors */
  --cap-sdl: #3b82f6;
  --cap-sdl-light: #dbeafe;
  --cap-is: #ec4899;
  --cap-is-light: #fce7f3;
  --cap-ab: #22c55e;
  --cap-ab-light: #dcfce7;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Contrast Grid */
  --good-bg: #f0fdf4;
  --good-border: #22c55e;
  --good-text: #166534;
  --avoid-bg: #fef2f2;
  --avoid-border: #ef4444;
  --avoid-text: #991b1b;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Base Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4);
}

a {
  color: var(--cst395-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   Identity Header (Studio)
   First element on home pages
   ============================================ */

.identity-header {
  background: var(--cst395-gradient);
  color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.identity-header--cst349 {
  background: var(--cst349-gradient);
}

.identity-header__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.identity-header__greeting {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-2) 0;
}

.identity-header__tagline {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ============================================
   Hook Component
   Purple/indigo gradient, provocative question
   Always first on assignment pages
   ============================================ */

.hook {
  background: var(--hook-gradient);
  color: var(--hook-text);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  text-align: center;
}

.hook__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-3) 0;
}

.hook__question {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-style: italic;
}

.hook__prompt {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-4);
}

/* ============================================
   Payoff Box
   Teal accent, capabilities students will gain
   ============================================ */

.payoff-box {
  background: var(--payoff-bg);
  border-left: 4px solid var(--payoff-border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.payoff-box__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--payoff-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.payoff-box__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--payoff-text);
  margin: 0 0 var(--space-3) 0;
}

.payoff-box__list {
  margin: 0;
  padding-left: var(--space-5);
  color: var(--gray-700);
}

.payoff-box__list li {
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.payoff-box__list li:last-child {
  margin-bottom: 0;
}

/* ============================================
   Mental Model Box
   Gray background, "The Shift" or "The Key Idea"
   ============================================ */

.mental-model {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.mental-model__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Simple Before/After variant */
.mental-model__shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
}

.mental-model__before {
  background: white;
  border: 2px dashed var(--critical-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  color: var(--gray-600);
}

.mental-model__arrow {
  font-size: var(--text-2xl);
  color: var(--gray-400);
}

.mental-model__after {
  background: white;
  border: 2px solid var(--good-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  color: var(--gray-900);
  font-weight: 500;
}

/* Cascade Diagram variant (belief → behavior) */
.mental-model__cascade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.mental-model__cascade-column {
  text-align: center;
}

.mental-model__cascade-column--old {
  opacity: 0.6;
}

.mental-model__cascade-belief {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  font-style: italic;
  color: var(--gray-700);
}

.mental-model__cascade-column--old .mental-model__cascade-belief {
  border: 2px dashed var(--gray-300);
}

.mental-model__cascade-column--new .mental-model__cascade-belief {
  border: 2px solid var(--cst395-primary);
}

.mental-model__cascade-arrow {
  color: var(--gray-400);
  margin: var(--space-2) 0;
}

.mental-model__cascade-behavior {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.mental-model__cascade-column--new .mental-model__cascade-behavior {
  color: var(--gray-900);
  font-weight: 500;
}

/* ============================================
   Framework Process
   Vertical stepped layout for UMPIRE, 3Cs, 5 Whys
   ============================================ */

.framework-process {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.framework-process__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 var(--space-4) 0;
}

.framework-process__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.framework-process__step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  transition: all 0.2s ease;
}

.framework-process__step--current {
  background: var(--cst395-primary-light);
  border-left: 4px solid var(--cst395-primary);
}

.framework-process__step--future {
  opacity: 0.5;
}

.framework-process__step--complete {
  background: var(--good-bg);
  border-left: 4px solid var(--good-border);
}

.framework-process__step-letter {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.framework-process__step--current .framework-process__step-letter {
  background: var(--cst395-primary);
  color: white;
}

.framework-process__step--complete .framework-process__step-letter {
  background: var(--good-border);
  color: white;
}

.framework-process__step-name {
  font-weight: 500;
  color: var(--gray-700);
}

.framework-process__step--current .framework-process__step-name {
  color: var(--gray-900);
  font-weight: 600;
}

.framework-process__step-indicator {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--cst395-primary-dark);
  font-weight: 600;
}

.framework-process__connector {
  width: 2px;
  height: 1rem;
  background: var(--gray-300);
  margin-left: calc(var(--space-4) + 1rem - 1px);
}

/* 5 Whys specific variant */
.five-whys {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.five-whys__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 var(--space-4) 0;
}

.five-whys__level {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.five-whys__level--insight {
  background: var(--insight-bg);
  border: 2px solid var(--insight-border);
}

.five-whys__number {
  font-weight: 700;
  color: var(--gray-500);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.five-whys__level--insight .five-whys__number {
  color: var(--insight-text);
}

.five-whys__content {
  flex: 1;
}

.five-whys__prompt {
  font-size: var(--text-xs);
  color: var(--gray-400);
  text-align: center;
  margin: var(--space-1) 0;
}

/* ============================================
   Pause Box
   Amber/yellow, visceral language
   ============================================ */

.pause-box {
  background: var(--pause-bg);
  border-left: 4px solid var(--pause-border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.pause-box__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--pause-text);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pause-box__content {
  color: var(--gray-800);
  font-size: var(--text-base);
  line-height: 1.7;
}

.pause-box__content p {
  margin: 0 0 var(--space-3) 0;
}

.pause-box__content p:last-child {
  margin-bottom: 0;
}

.pause-box__visceral {
  font-weight: 600;
  font-style: italic;
}

/* ============================================
   Action Box
   Teal background, single clear action
   ============================================ */

.action-box {
  background: var(--action-bg);
  border: 2px solid var(--action-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.action-box__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--action-text);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.action-box__content {
  color: var(--gray-800);
  font-size: var(--text-base);
  line-height: 1.7;
}

.action-box__content p {
  margin: 0;
}

/* ============================================
   Critical Box (Common Mistake)
   Red background, three parts
   ============================================ */

.critical-box {
  background: var(--critical-bg);
  border-left: 4px solid var(--critical-border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.critical-box__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--critical-text);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.critical-box__mistake {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.critical-box__why {
  color: var(--gray-700);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.critical-box__instead {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  color: var(--gray-800);
  font-size: var(--text-sm);
}

.critical-box__instead strong {
  color: var(--good-text);
}

/* ============================================
   Contrast Grid
   Side-by-side: Good vs Avoid
   ============================================ */

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 600px) {
  .contrast-grid {
    grid-template-columns: 1fr;
  }
}

.contrast-grid__column {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.contrast-grid__column--good {
  background: var(--good-bg);
  border: 1px solid var(--good-border);
}

.contrast-grid__column--avoid {
  background: var(--avoid-bg);
  border: 1px solid var(--avoid-border);
}

.contrast-grid__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.contrast-grid__column--good .contrast-grid__header {
  color: var(--good-text);
}

.contrast-grid__column--avoid .contrast-grid__header {
  color: var(--avoid-text);
}

.contrast-grid__list {
  margin: 0;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
}

.contrast-grid__column--good .contrast-grid__list {
  color: var(--gray-700);
}

.contrast-grid__column--avoid .contrast-grid__list {
  color: var(--gray-600);
}

.contrast-grid__list li {
  margin-bottom: var(--space-2);
}

.contrast-grid__list li:last-child {
  margin-bottom: 0;
}

/* ============================================
   Check Box (Self-Assessment Gate)
   Blue background, yes/no question
   ============================================ */

.check-box {
  background: var(--check-bg);
  border: 2px solid var(--check-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.check-box__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--check-text);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.check-box__question {
  font-size: var(--text-base);
  color: var(--gray-900);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.check-box__guidance {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* ============================================
   Peer Script
   Green background, structured conversation
   ============================================ */

.peer-script {
  background: var(--peer-bg);
  border: 1px solid var(--peer-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.peer-script__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--peer-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.peer-script__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--peer-text);
  margin: 0 0 var(--space-4) 0;
}

.peer-script__roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
  .peer-script__roles {
    grid-template-columns: 1fr;
  }
}

.peer-script__role {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.peer-script__role-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.peer-script__role-prompt {
  font-size: var(--text-sm);
  color: var(--gray-700);
  font-style: italic;
  margin: 0;
}

.peer-script__skill {
  font-size: var(--text-sm);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.peer-script__skill strong {
  color: var(--peer-text);
}

.peer-script__success {
  font-size: var(--text-sm);
  color: var(--peer-text);
  font-weight: 500;
}

/* ============================================
   Insight Box
   Purple background, key takeaway
   ============================================ */

.insight-box {
  background: var(--insight-bg);
  border-left: 4px solid var(--insight-border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.insight-box__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--insight-text);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.insight-box__content {
  font-size: var(--text-lg);
  color: var(--gray-900);
  font-weight: 500;
  line-height: 1.6;
}

/* ============================================
   Connection Box
   Gray with link icon
   ============================================ */

.connection-box {
  background: var(--connection-bg);
  border: 1px solid var(--connection-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.connection-box__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--connection-text);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.connection-box__content {
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.6;
}

.connection-box__content a {
  font-weight: 500;
}

/* ============================================
   Submission Box
   Dark background, 3-bullet format
   ============================================ */

.submission-box {
  background: var(--submission-bg);
  color: var(--submission-text);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.submission-box__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.submission-box__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--space-4) 0;
}

.submission-box__requirements {
  margin: 0 0 var(--space-4) 0;
  padding-left: var(--space-5);
}

.submission-box__requirements li {
  margin-bottom: var(--space-2);
  color: var(--gray-300);
}

.submission-box__requirements li strong {
  color: white;
}

.submission-box__meta {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}

.submission-box__gut-check {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-300);
  margin-bottom: var(--space-4);
}

.submission-box__button {
  display: inline-block;
  background: var(--cst395-primary);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.submission-box__button:hover {
  background: var(--cst395-primary-dark);
  text-decoration: none;
}

/* ============================================
   Progress Section (Stepped)
   Multi-step assignments with visibility
   ============================================ */

.progress-section {
  margin-bottom: var(--space-6);
}

.progress-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.progress-section__steps {
  display: flex;
  gap: var(--space-2);
}

.progress-section__step-indicator {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-500);
}

.progress-section__step-indicator--active {
  background: var(--cst395-primary);
  color: white;
}

.progress-section__step-indicator--complete {
  background: var(--good-border);
  color: white;
}

.progress-section__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

/* Step Content */
.step {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.step--active {
  border: 2px solid var(--cst395-primary);
}

.step--complete {
  border-color: var(--good-border);
  background: var(--gray-50);
}

.step--future {
  opacity: 0.5;
  pointer-events: none;
}

.step__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-200);
}

.step__number {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-600);
  flex-shrink: 0;
}

.step--active .step__number {
  background: var(--cst395-primary);
  color: white;
}

.step--complete .step__number {
  background: var(--good-border);
  color: white;
}

.step__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.step--complete .step__title {
  color: var(--gray-600);
}

.step__complete-badge {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--good-text);
  background: var(--good-bg);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.step__content {
  color: var(--gray-700);
}

.step--complete .step__content {
  color: var(--gray-500);
}

.step__button {
  display: inline-block;
  background: var(--cst395-primary);
  color: white;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--space-4);
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: var(--text-base);
}

.step__button:hover {
  background: var(--cst395-primary-dark);
  text-decoration: none;
}

.step--complete .step__button {
  display: none;
}

/* ============================================
   Current Coordinates (Home Page)
   Status banner with project info
   ============================================ */

.current-coordinates {
  background: var(--gray-800);
  color: white;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
}

.current-coordinates__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.current-coordinates__project {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 var(--space-1) 0;
}

.current-coordinates__phase {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin: 0;
}

.current-coordinates__progress {
  text-align: right;
}

.current-coordinates__progress-number {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.current-coordinates__progress-label {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

.current-coordinates__bar {
  grid-column: 1 / -1;
  height: 0.5rem;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.current-coordinates__bar-fill {
  height: 100%;
  background: var(--cst395-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* ============================================
   Priority Work (Home Page)
   Due items with highlighting
   ============================================ */

.priority-work {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.priority-work__header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.priority-work__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.priority-work__content {
  padding: var(--space-4) var(--space-5);
}

.priority-work__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  transition: background 0.2s ease;
}

.priority-work__item:last-child {
  margin-bottom: 0;
}

.priority-work__item:hover {
  background: var(--gray-100);
}

.priority-work__item--primary {
  background: var(--cst395-primary-light);
  border-left: 4px solid var(--cst395-primary);
}

.priority-work__item--primary:hover {
  background: #5eead4;
}

.priority-work__item-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.priority-work__item-type {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.priority-work__item-type--assignment {
  background: #3b82f6;
}

.priority-work__item-type--reflection {
  background: #a855f7;
}

.priority-work__item-type--peer {
  background: #22c55e;
}

.priority-work__item-name {
  font-weight: 500;
  color: var(--gray-900);
}

.priority-work__item-name a {
  color: inherit;
  text-decoration: none;
}

.priority-work__item-name a:hover {
  color: var(--cst395-primary-dark);
  text-decoration: underline;
}

.priority-work__item-due {
  font-size: var(--text-sm);
  color: var(--gray-500);
  white-space: nowrap;
}

/* Due Item styles (for compatibility with renderWeeklyLearning) */
.due-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  transition: background 0.2s ease;
}

.due-item:last-child {
  margin-bottom: 0;
}

.due-item:hover {
  background: var(--gray-100);
}

.due-item__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.due-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.due-item__dot--assignment {
  background: #3b82f6;
}

.due-item__dot--reflection {
  background: #a855f7;
}

.due-item__dot--peer {
  background: #22c55e;
}

.due-item__dot--engagement {
  background: #22c55e;
}

.due-item__dot--bridge {
  background: #f59e0b;
}

.due-item__title {
  font-weight: 500;
  color: var(--gray-900);
}

.due-item__title a {
  color: inherit;
  text-decoration: none;
}

.due-item__title a:hover {
  color: var(--cst395-primary-dark);
  text-decoration: underline;
}

.due-item__date {
  font-size: var(--text-sm);
  color: var(--gray-500);
  white-space: nowrap;
}

/* ============================================
   Weekly Insight (Home Page)
   Crystallized takeaway
   ============================================ */

.weekly-insight {
  background: var(--insight-bg);
  border: 1px solid var(--insight-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  text-align: center;
}

.weekly-insight__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--insight-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.weekly-insight__content {
  font-size: var(--text-lg);
  color: var(--gray-900);
  font-weight: 500;
  font-style: italic;
  margin: 0;
}

/* ============================================
   Skills in Development (Home Page)
   Capability badges with taglines
   ============================================ */

.skills-development {
  margin-bottom: var(--space-6);
}

.skills-development__header {
  margin-bottom: var(--space-4);
}

.skills-development__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.skills-development__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.skills-development__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .skills-development__grid {
    grid-template-columns: 1fr;
  }
}

.skills-development__card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.skills-development__card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.skills-development__card--active {
  border-width: 2px;
}

.skills-development__card--sdl.skills-development__card--active {
  border-color: var(--cap-sdl);
}

.skills-development__card--is.skills-development__card--active {
  border-color: var(--cap-is);
}

.skills-development__card--ab.skills-development__card--active {
  border-color: var(--cap-ab);
}

.skills-development__card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.skills-development__badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
}

.skills-development__badge--sdl {
  background: var(--cap-sdl-light);
  color: var(--cap-sdl);
}

.skills-development__badge--is {
  background: var(--cap-is-light);
  color: var(--cap-is);
}

.skills-development__badge--ab {
  background: var(--cap-ab-light);
  color: var(--cap-ab);
}

.skills-development__card-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--gray-900);
}

.skills-development__card-status {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: var(--space-2);
}

.skills-development__card--active .skills-development__card-status {
  color: var(--cst395-primary-dark);
  font-weight: 600;
}

.skills-development__card-desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: 0;
}

/* ============================================
   Blueprint Header (Sprint Pages)
   ============================================ */

.blueprint-header {
  background: var(--cst395-gradient);
  color: white;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.blueprint-header--cst349 {
  background: var(--cst349-gradient);
}

.blueprint-header__breadcrumb {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-3);
}

.blueprint-header__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.blueprint-header__breadcrumb a:hover {
  color: white;
}

.blueprint-header__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2);
}

.blueprint-header__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin: 0 0 var(--space-2) 0;
}

.blueprint-header__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--space-4) 0;
}

.blueprint-header__meta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.blueprint-header__tag {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
}

/* ============================================
   The Vision (Sprint Payoff)
   ============================================ */

.vision-box {
  background: var(--payoff-bg);
  border: 2px solid var(--payoff-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.vision-box__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--payoff-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.vision-box__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--payoff-text);
  margin: 0 0 var(--space-3) 0;
}

.vision-box__list {
  margin: 0;
  padding-left: var(--space-5);
  color: var(--gray-700);
}

.vision-box__list li {
  margin-bottom: var(--space-2);
}

/* ============================================
   What Comes Next
   Ends with a question
   ============================================ */

.what-next {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin-top: var(--space-6);
}

.what-next__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.what-next__question {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  font-style: italic;
}

/* ============================================
   Utility Classes
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

/* ============================================
   Framing Section (Collapsible)
   ============================================ */

.framing-section {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.framing-section__header {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.framing-section__header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.framing-section__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.framing-section__icon {
  font-size: 1.5rem;
}

.framing-section__title {
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 0;
}

.framing-section__subtitle {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin: var(--space-1) 0 0 0;
}

.framing-section__header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.framing-section__hint {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-style: italic;
}

.framing-section__toggle {
  font-size: var(--text-xl);
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.framing-section__header[aria-expanded="true"] .framing-section__toggle {
  transform: rotate(45deg);
}

.framing-section__content {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--gray-700);
  display: none;
}

.framing-section__content.is-expanded {
  display: block;
}

.framing-section__content p {
  color: var(--gray-300);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.framing-section__content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Looking Ahead Card
   ============================================ */

.looking-ahead {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
  overflow: hidden;
}

.looking-ahead__header {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.looking-ahead__header:hover {
  background: rgba(251, 191, 36, 0.2);
}

.looking-ahead__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.looking-ahead__icon {
  font-size: 1.25rem;
}

.looking-ahead__title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: #92400e;
}

.looking-ahead__toggle {
  font-size: var(--text-lg);
  color: #92400e;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.looking-ahead__content {
  padding: 0 var(--space-4) var(--space-4);
  border-top: 1px solid #fbbf24;
  display: none;
}

.looking-ahead__content.is-expanded {
  display: block;
}

.looking-ahead__subtitle {
  font-size: var(--text-xs);
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: var(--space-3) 0 var(--space-2) 0;
}

.looking-ahead .due-item,
.looking-ahead .priority-work__item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #fbbf24;
}

.looking-ahead .due-item:hover,
.looking-ahead .priority-work__item:hover {
  background: rgba(255, 255, 255, 0.8);
}
