/* ═══════════════════════════════════════════════════════════════════
   ISU–GSA Spaceport Leadership Series
   Main Stylesheet — production grade
   Aesthetic: Deep-space observatory meets executive briefing room.
   Cormorant Garamond for editorial weight / DM Sans for clarity.
   Dark background with precise gold and arctic-blue accents.
═══════════════════════════════════════════════════════════════════ */

/* ── RESET & ROOT ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --ink:        #0a0c10;
  --ink-2:      #111520;
  --ink-3:      #1a1f2e;
  --ink-4:      #242a3a;
  --surface:    #161b28;
  --surface-2:  #1e2535;
  --surface-3:  #28304a;

  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   #7a6530;

  --arctic:     #5b9bd5;
  --arctic-light:#8ec0ef;
  --arctic-dim: #2d5a8a;

  --slate:      #7a8aaa;
  --slate-light:#a8b4cc;
  --slate-dim:  #3a4460;

  --white:      #f0f2f7;
  --white-dim:  #8090b0;

  --danger:     #c0392b;
  --success:    #27ae60;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Layout */
  --content-max: 960px;
  --sidebar-w: 280px;
  --nav-h: 60px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── STARFIELD ─────────────────────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* ── TOP NAV ───────────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 100;
}

.nav-logos {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.nav-sep {
  color: var(--slate);
  font-size: 0.9rem;
}

.nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ── LANDING PAGE HERO ─────────────────────────────────────────── */
.landing-page .hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
}

.hero-eyebrow {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.8s var(--ease-out) both;
}

.pill {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.pill-outline {
  background: transparent;
  color: var(--slate-light);
  border-color: var(--slate-dim);
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.8s var(--ease-out) 0.1s both;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.meta-item { text-align: center; }
.meta-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.meta-div {
  width: 1px;
  height: 40px;
  background: var(--slate-dim);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 2rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--slate-light);
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--slate-dim);
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--slate);
  color: var(--white);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.25rem;
  background: var(--surface-2);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--surface-3);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--arctic-dim);
}

/* ── ABOUT STRIP ───────────────────────────────────────────────── */
.about-strip {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--surface);
  border-top: 1px solid var(--surface-2);
}

.about-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.about-card {
  padding: var(--space-xl);
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-lg);
  transition: border-color 0.2s var(--ease);
}

.about-card:hover { border-color: var(--gold-dim); }

.about-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.about-card p {
  font-size: 0.88rem;
  color: var(--slate-light);
  line-height: 1.7;
}

/* ── MODULE PREVIEW ─────────────────────────────────────────────── */
.module-preview {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-xl);
  max-width: calc(var(--content-max) + var(--space-xl) * 2);
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: var(--space-xl);
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.module-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
}

.module-row-active {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.05);
}

.module-row-active:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  transform: translateX(4px);
}

.module-row-locked {
  opacity: 0.45;
  cursor: default;
}

.module-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  min-width: 2rem;
}

.module-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.module-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.module-theme {
  font-size: 0.78rem;
  color: var(--slate);
}

.module-dur {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
}

.module-status {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.status-available {
  background: rgba(39, 174, 96, 0.15);
  color: #4cce80;
  border: 1px solid rgba(39, 174, 96, 0.25);
}

.status-soon {
  background: rgba(122, 138, 170, 0.1);
  color: var(--slate);
  border: 1px solid var(--slate-dim);
}

/* ── INSTRUCTORS ────────────────────────────────────────────────── */
.instructors {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--surface);
  border-top: 1px solid var(--surface-2);
}

.instructors .section-title,
.instructors .section-label {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.instructors .section-title { margin-bottom: var(--space-xl); }

.instructor-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.instructor-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-lg);
}

.instructor-initials {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--arctic-dim);
  border: 1px solid var(--arctic-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--arctic-light);
}

.instructor-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.instructor-title {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.instructor-bio {
  font-size: 0.82rem;
  color: var(--slate-light);
  line-height: 1.65;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--surface-2);
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--slate-light);
}

.footer-sep { color: var(--slate-dim); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--slate-dim);
}

/* ════════════════════════════════════════════════════════════════
   COURSE APP LAYOUT (course.html)
════════════════════════════════════════════════════════════════ */

.course-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--surface-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.sidebar-header {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--surface-2);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.brand-sep { color: var(--slate-dim); font-size: 0.8rem; }

.sidebar-module-title {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.2rem;
}

.sidebar-module-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}

/* Progress bar */
.progress-bar-wrap {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--surface-2);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--slate);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-bar {
  height: 3px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 2px;
  transition: width 0.6s var(--ease-out);
}

/* Segment nav */
.segment-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.segment-nav::-webkit-scrollbar { width: 4px; }
.segment-nav::-webkit-scrollbar-track { background: transparent; }
.segment-nav::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }

.seg-group-label {
  padding: var(--space-md) var(--space-lg) var(--space-xs);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-dim);
}

.seg-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0.6rem var(--space-lg);
  cursor: pointer;
  transition: background 0.15s var(--ease);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
}

.seg-item:hover { background: var(--surface-2); }

.seg-item.active {
  background: rgba(201, 168, 76, 0.07);
  border-left-color: var(--gold);
}

.seg-item.completed .seg-dot { background: var(--success); border-color: var(--success); }

.seg-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--slate-dim);
  margin-top: 6px;
  transition: all 0.2s var(--ease);
}

.seg-item.active .seg-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.5);
}

.seg-text { flex: 1; }

.seg-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--slate-dim);
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.seg-name {
  font-size: 0.8rem;
  color: var(--slate-light);
  line-height: 1.35;
}

.seg-item.active .seg-name { color: var(--white); }

.seg-dur {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--slate-dim);
  margin-top: 4px;
}

/* Sidebar footer */
.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--surface-2);
}

.sidebar-back {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-back:hover { color: var(--gold); }

/* ── MAIN CONTENT AREA ──────────────────────────────────────────── */
.course-main {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.course-main::-webkit-scrollbar { width: 6px; }
.course-main::-webkit-scrollbar-track { background: transparent; }
.course-main::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }

/* Course top bar */
.course-topbar {
  position: sticky;
  top: 0;
  padding: 0 var(--space-xl);
  height: var(--nav-h);
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
}

.topbar-seg-name {
  font-size: 0.82rem;
  color: var(--slate-light);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ── SEGMENT CONTENT ────────────────────────────────────────────── */
.segment-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  width: 100%;
  animation: fadeUp 0.4s var(--ease-out) both;
}

/* Segment header */
.seg-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--surface-2);
}

.seg-header-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.seg-header-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.seg-header-meta {
  font-size: 0.72rem;
  color: var(--slate);
  letter-spacing: 0.08em;
}

.seg-header-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.seg-header-title em {
  color: var(--gold);
  font-style: italic;
}

.seg-header-subtitle {
  font-size: 1rem;
  color: var(--slate-light);
  font-weight: 300;
  margin-bottom: var(--space-lg);
}

.seg-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--slate);
  border: 1px solid var(--surface-3);
}

.tag-lo {
  background: rgba(91, 155, 213, 0.1);
  color: var(--arctic-light);
  border-color: rgba(91, 155, 213, 0.2);
}

/* ── TYPOGRAPHY IN CONTENT ─────────────────────────────────────── */
.seg-body h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--white);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--surface-2);
}

.seg-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  margin: var(--space-xl) 0 var(--space-sm);
}

.seg-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate-light);
  margin-bottom: var(--space-lg);
  max-width: 72ch;
}

.seg-body p strong {
  color: var(--white);
  font-weight: 500;
}

.seg-body p em {
  color: var(--gold-light);
  font-style: italic;
}

.seg-body ul, .seg-body ol {
  margin: 0 0 var(--space-lg) var(--space-xl);
}

.seg-body li {
  color: var(--slate-light);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: var(--space-sm);
  max-width: 68ch;
}

.seg-body li strong { color: var(--white); font-weight: 500; }

.seg-body ol { list-style: decimal; }
.seg-body ul { list-style: none; }
.seg-body ul li::before {
  content: "—";
  color: var(--gold-dim);
  margin-left: -1.5rem;
  margin-right: 0.5rem;
  font-weight: 300;
}

/* Callout boxes */
.callout {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--arctic);
  background: rgba(91, 155, 213, 0.07);
}

.callout-insight {
  border-left-color: var(--gold);
  background: rgba(201, 168, 76, 0.07);
}

.callout-legal {
  border-left-color: var(--arctic);
  background: rgba(91, 155, 213, 0.07);
}

.callout-warning {
  border-left-color: #e67e22;
  background: rgba(230, 126, 34, 0.07);
}

.callout-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.callout-insight .callout-label { color: var(--gold); }
.callout-legal .callout-label { color: var(--arctic-light); }
.callout-warning .callout-label { color: #e67e22; }

.callout p {
  font-size: 0.93rem;
  margin-bottom: 0;
  color: var(--white);
  line-height: 1.7;
  max-width: none;
}

/* Pull quote */
.pull-quote {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) var(--space-2xl);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}

.pull-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.pull-quote-attr {
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.08em;
}

/* Data table */
.data-table-wrap {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--surface-2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--surface-2);
  padding: 0.75rem var(--space-md);
  text-align: left;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--surface-3);
}

.data-table td {
  padding: 0.75rem var(--space-md);
  border-bottom: 1px solid var(--surface-2);
  color: var(--slate-light);
  vertical-align: top;
  line-height: 1.5;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table td strong { color: var(--white); }

/* Classification axis display */
.axis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.axis-card {
  padding: var(--space-lg);
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-lg);
  transition: border-color 0.2s;
}

.axis-card:hover { border-color: var(--arctic-dim); }

.axis-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--arctic);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  display: block;
}

.axis-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.axis-body {
  font-size: 0.85rem;
  color: var(--slate-light);
  line-height: 1.65;
}

/* Driver cards (site selection) */
.driver-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.driver-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-lg);
  transition: all 0.2s var(--ease);
}

.driver-card:hover {
  border-color: var(--gold-dim);
  background: var(--surface-3);
}

.driver-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold-dim);
  line-height: 1;
  min-width: 2.5rem;
}

.driver-body { flex: 1; }

.driver-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.driver-text {
  font-size: 0.9rem;
  color: var(--slate-light);
  line-height: 1.7;
  max-width: none;
  margin-bottom: 0;
}

.driver-text strong { color: var(--white); }

/* ── KNOWLEDGE CHECK ────────────────────────────────────────────── */
.knowledge-check {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-xl);
}

.kc-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.kc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kc-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
}

.kc-subtitle {
  font-size: 0.78rem;
  color: var(--slate);
}

.kc-question {
  margin-bottom: var(--space-xl);
}

.kc-q-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.kc-q-text {
  font-size: 0.97rem;
  color: var(--white);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  max-width: none;
}

.kc-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.kc-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: 0.85rem var(--space-lg);
  background: var(--surface-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
  color: inherit;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--slate-light);
  width: 100%;
}

.kc-option:hover:not(.disabled) {
  border-color: var(--arctic-dim);
  background: rgba(91, 155, 213, 0.08);
  color: var(--white);
}

.kc-option.selected {
  border-color: var(--arctic);
  background: rgba(91, 155, 213, 0.12);
  color: var(--white);
}

.kc-option.correct {
  border-color: var(--success);
  background: rgba(39, 174, 96, 0.1);
  color: var(--white);
}

.kc-option.incorrect {
  border-color: var(--danger);
  background: rgba(192, 57, 43, 0.1);
  color: var(--slate-light);
}

.kc-option.disabled { cursor: default; }

.option-letter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  min-width: 20px;
  color: var(--slate-dim);
  margin-top: 2px;
}

.kc-option.selected .option-letter,
.kc-option.correct .option-letter { color: var(--arctic); }

.kc-feedback {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  line-height: 1.6;
  display: none;
}

.kc-feedback.show { display: block; }
.kc-feedback.correct-fb { background: rgba(39, 174, 96, 0.1); border: 1px solid rgba(39,174,96,0.2); color: #4cce80; }
.kc-feedback.incorrect-fb { background: rgba(192, 57, 43, 0.1); border: 1px solid rgba(192,57,43,0.2); color: #e87c7c; }

.kc-submit {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--surface-3);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.kc-score {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}

.kc-score span { color: var(--gold); }

/* ── NAV FOOTER (prev/next) ─────────────────────────────────────── */
.seg-nav-footer {
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.seg-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-md);
  color: var(--slate-light);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s var(--ease);
}

.seg-nav-btn:hover {
  border-color: var(--gold-dim);
  color: var(--white);
}

.seg-nav-btn.next {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 500;
}

.seg-nav-btn.next:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.seg-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ── CASE STUDY STYLES ──────────────────────────────────────────── */
.case-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--surface-2);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
}

.case-meta-item {
  background: var(--surface);
  padding: var(--space-md) var(--space-lg);
}

.case-meta-key {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin-bottom: 0.3rem;
}

.case-meta-val {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 500;
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 240px; }
  .about-grid { grid-template-columns: 1fr; }
  .instructor-grid { grid-template-columns: 1fr; }
  .axis-grid { grid-template-columns: 1fr; }
  .case-meta-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .course-app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; max-height: 50vh; }
  .hero-meta { gap: var(--space-lg); }
  .hero-cta { flex-direction: column; align-items: center; }
  .seg-nav-footer { flex-direction: column; gap: var(--space-md); }
}
