/* ==========================================================================
   ECES Jobs - Graph NN | Research Presentation Stylesheet
   Design: Light/white theme, one-page scrollable site, 9 sections
   Fonts: Space Grotesk (headings), Inter (body), JetBrains Mono (numbers)
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --text-primary: #1A1D23;
  --text-secondary: #5B6178;
  --text-muted: #9CA3AF;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --accent-blue: #3B82F6;
  --accent-blue-light: #EFF6FF;
  --risk-low: #22C55E;
  --risk-medium: #F59E0B;
  --risk-high: #EF4444;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-heading: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 22px;
}

body {
  font-family: var(--font-heading);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Layout --- */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  overflow-x: hidden;
  overflow-y: visible;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.split,
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* --- Progress Bar --- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: var(--border);
}

#progressBar {
  height: 100%;
  width: 0;
  background: var(--accent-blue);
  transition: width 0.1s linear;
}

/* --- Navigation Dots --- */
.nav-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 999;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  text-decoration: none;
}

.nav-dot:hover {
  background: var(--text-muted);
  transform: scale(1.3);
}

.nav-dot.active {
  background: var(--accent-blue);
  transform: scale(1.4);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e8f0ff 50%, #f8fafc 100%);
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 1000px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 800px;
}

.hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-meta .divider {
  color: var(--border);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  box-shadow: var(--shadow-sm);
}

.stat-pill__value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.stat-pill__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 1;
  transition: opacity 0.3s;
}

.scroll-arrow {
  font-size: 1.5rem;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- Section Titles & Text --- */
.chapter-label {
  display: inline-block;
  margin: 0 0 12px 48px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--accent-blue-light);
  padding: 8px 20px;
  border-radius: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 1100px;
  line-height: 1.7;
}

.callout {
  background: var(--accent-blue-light);
  border-left: 4px solid var(--accent-blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.callout strong {
  color: var(--accent-blue);
  font-weight: 700;
}

/* --- Chart Wrapper --- */
.chart-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.chart-wrapper svg {
  max-width: 100%;
  height: auto;
}

#bridge-activities-chart,
#isco2-trapped-chart,
#tool-gaps-chart,
#skill-gaps-chart {
  max-width: 900px;
  margin: 0 auto;
}

#isco2-boxplot-chart {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 50px;
}

.chart-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* --- Question Section --- */
.question-section {
  background: linear-gradient(135deg, #1A1D23 0%, #2d3348 100%);
  color: white;
  text-align: center;
}

.question-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.question-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.question-heading {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 1000px;
  color: #000000 !important;
}

.highlight-number {
  color: var(--risk-high);
  font-family: var(--font-mono);
}

.question-subtext {
  font-size: 1.15rem;
  color: #000000;
  max-width: 850px;
  line-height: 1.7;
}

/* --- Method Gallery (single image slideshow) --- */
.method-gallery {
  display: flex;
  justify-content: center;
  margin: 32px auto 0;
  max-width: 1200px;
  cursor: pointer;
}

.method-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
  position: relative;
  width: 100%;
  max-width: 1200px;
  transition: transform 0.3s;
}

.method-gallery-item:hover {
  transform: scale(1.01);
}

.method-gallery-item img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.step-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-blue);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- Method Single Image (for clicker presentation) --- */
.method-single-image {
  display: flex;
  justify-content: center;
  margin: 32px auto 0;
  max-width: 1200px;
}

.method-single-image img {
  width: 100%;
  max-width: 1200px;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: white;
}

/* --- Method Section --- */
.method-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.method-image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
}

.method-image-card img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.image-caption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg-secondary);
}

/* --- Definition Cards --- */
.definition-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.definition-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.definition-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.definition-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.definition-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.definition-card strong {
  color: var(--text-primary);
}

/* --- Why Communities: Comparison Grid --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.comparison-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.comparison-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-card li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
}

.comparison-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.comparison-weak {
  border: 2px solid var(--border);
}

.comparison-weak li::before {
  background: var(--text-muted);
}

.comparison-weak .comparison-verdict {
  color: var(--text-muted);
}

.comparison-strong {
  border: 2px solid var(--accent);
}

.comparison-strong h3 {
  color: var(--accent);
}

.comparison-strong li::before {
  background: var(--accent);
}

.comparison-strong .comparison-verdict {
  color: var(--accent);
}

.comparison-verdict {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
}

.community-takeaway {
  margin-top: 24px;
  text-align: center;
}

.community-takeaway p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Story Overview Cards --- */
.story-chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.story-chapter-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.story-chapter-card .chapter-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-chapter-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.story-chapter-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Bridge Skills / Overlap Diagram --- */
.overlap-rule {
  margin: 24px 0;
}

.overlap-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.overlap-job {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: var(--radius);
  border: 2px solid;
}

.overlap-source {
  border-color: var(--risk-high);
  background: rgba(239, 68, 68, 0.06);
}

.overlap-dest {
  border-color: var(--risk-low);
  background: rgba(34, 197, 94, 0.06);
}

.overlap-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.overlap-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.overlap-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.overlap-shared {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.overlap-pct {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.overlap-explanation {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.bridge-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  text-align: center;
}

.mini-stat__value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.mini-stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Transition Cards --- */
.transitions-grid,
.transition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.transition-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.transition-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.transition-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.transition-from,
.transition-to {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.transition-to {
  text-align: right;
}

.transition-job {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.transition-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.risk-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.risk-high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--risk-high);
}

.risk-medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--risk-medium);
}

.risk-low {
  background: rgba(34, 197, 94, 0.1);
  color: var(--risk-low);
}

.transition-to .risk-badge {
  margin-left: auto;
}

.transition-meta {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.transition-reduction {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--risk-low);
}

.transition-overlap {
  color: var(--text-secondary);
}

.transition-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* --- Findings Section --- */
.findings-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.finding-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.finding-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.finding-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Policy Cards --- */
.policy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.policy-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.policy-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  right: 24px;
}

.policy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.policy-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.policy-card strong {
  color: var(--text-primary);
}

/* --- Chapter Title Slides --- */
.chapter-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e8f0ff 50%, #f8fafc 100%);
  text-align: center;
}

.chapter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.chapter-number-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
}

.chapter-title-large {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 900px;
}

.chapter-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
}

/* --- Closing Section --- */
.closing-section {
  background: linear-gradient(135deg, #1A1D23 0%, #2d3348 100%) !important;
  color: white;
  text-align: center;
}

.closing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.closing-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
}

.closing-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

.closing-info {
  margin-top: 24px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2;
}

.closing-link {
  color: var(--accent-blue);
  font-family: var(--font-mono);
}

/* --- Method Split Layout --- */
.method-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.method-split .definition-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0;
}

/* --- Pathway Slides --- */
.pathway-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pathway-badge {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pathway-badge.pathway-easy {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.pathway-badge.pathway-manageable {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.pathway-badge.pathway-hard {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.pathway-overlap {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.pathway-duration {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: auto;
}

.pathway-detail {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.pathway-jobs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.pathway-from,
.pathway-to {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  flex: 1;
  padding: 20px;
  border-radius: var(--radius);
  border: 2px solid;
}

.pathway-from {
  border-color: var(--risk-high);
  background: rgba(239, 68, 68, 0.04);
}

.pathway-to {
  border-color: var(--risk-low);
  background: rgba(34, 197, 94, 0.04);
}

.pathway-role {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pathway-category {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.pathway-arrow-big {
  font-size: 2.2rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.pathway-reduction {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pathway-reduction strong {
  color: var(--risk-low);
  font-family: var(--font-mono);
}

.pathway-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.pathway-col {
  padding: 16px;
  border-radius: var(--radius-sm);
}

.pathway-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

.pathway-col ul {
  list-style: none;
  padding: 0;
}

.pathway-col li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 5px 0;
  line-height: 1.5;
}

.pathway-col-shared {
  background: rgba(59, 130, 246, 0.04);
}

.pathway-col-shared h4 {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.pathway-col-leftout {
  background: rgba(156, 163, 175, 0.06);
}

.pathway-col-leftout h4 {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.pathway-col-learn {
  background: rgba(245, 158, 11, 0.04);
}

.pathway-col-learn h4 {
  color: #d97706;
  border-color: #d97706;
}

/* --- Pathway Card Grid (legacy compat) --- */
.pathway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pathway-meta {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.meta-overlap {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-blue);
}

.meta-reduction {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--risk-low);
}

/* --- Tool Tags --- */
.tools-heading {
  font-size: 0.9rem !important;
  margin-top: 16px !important;
  color: var(--text-secondary) !important;
  border-bottom: none !important;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tag {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
}

.tool-tags-learn .tool-tag {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* --- Insight Slide --- */
.insight-slide {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.insight-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-number {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
}

.insight-headline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.insight-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.insight-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-bar-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insight-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.insight-bar-label span:first-child {
  color: var(--text-secondary);
}

.insight-bar-label span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.insight-bar-track {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.insight-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.insight-bar-fill.blue { background: var(--accent-blue); }
.insight-bar-fill.green { background: var(--risk-low); }
.insight-bar-fill.amber { background: var(--risk-medium); }
.insight-bar-fill.red { background: var(--risk-high); }

.insight-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.insight-mini-stat {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.insight-mini-stat .value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: block;
}

.insight-mini-stat .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.insight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.insight-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 12px;
  border-bottom: 2px solid var(--accent-blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.insight-table td {
  padding: 10px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.insight-table tr:last-child td {
  border-bottom: none;
}

.insight-table .mono {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Fixed ECES Logo --- */
.eces-logo-fixed {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 998;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.eces-logo-fixed img {
  height: 120px;
  width: auto;
}

/* --- Table of Contents (Table Layout) --- */
.toc-table {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
  border-collapse: collapse;
  font-size: 1.1rem;
}
.toc-table thead th {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 14px 18px;
  border-bottom: 2px solid var(--accent-blue);
}
.toc-th-num { width: 60px; }
.toc-th-section { width: 220px; }
.toc-row {
  cursor: pointer;
  transition: background 0.2s;
}
.toc-row:hover {
  background: var(--accent-blue-light);
}
.toc-row td {
  padding: 18px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.toc-row:last-child td {
  border-bottom: none;
}
.toc-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-blue);
}
.toc-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}
.toc-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Side-by-Side Charts --- */
.side-by-side-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Numbers Flow Visualization (replaces Funnel) --- */
.numbers-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 48px auto;
  max-width: 1100px;
  flex-wrap: wrap;
}
.flow-item {
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 160px;
}
.flow-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}
.flow-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.flow-pct {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-mono);
}
.flow-total { background: #2563EB; }
.flow-risk { background: #EA580C; }
.flow-viable { background: #16A34A; }
.flow-trapped { background: #DC2626; }
.flow-separator {
  font-size: 2.5rem;
  color: #9CA3AF;
  font-weight: 300;
}
.flow-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Bundle Card Grid (Golden Training Bundle) --- */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.bundle-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #5B6178;
  margin-bottom: 16px;
  margin-top: 32px;
}
.bundle-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.bundle-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #1A1D23;
  margin-bottom: 12px;
}
.bundle-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.bundle-item {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
.bundle-item-skill {
  background: #EFF6FF;
  color: #3B82F6;
  border: 1px solid #BFDBFE;
}
.bundle-item-tool {
  background: #F0FDF4;
  color: #22C55E;
  border: 1px solid #BBF7D0;
}
.bundle-stat {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #3B82F6;
  font-weight: 600;
}
.bundle-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.bundle-card-skill .bundle-type { color: #3B82F6; }
.bundle-card-tool .bundle-type { color: #22C55E; }
.bundle-card-skill { border-top: 3px solid #3B82F6; }
.bundle-card-tool { border-top: 3px solid #22C55E; }
.bundle-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #1A1D23;
  margin-bottom: 12px;
}
.bundle-items {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.bundle-items li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: #5B6178;
  border-bottom: 1px solid #f1f5f9;
}
.bundle-items li:last-child { border-bottom: none; }
.bundle-impact {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 8px;
}
.bundle-impact strong { color: #3B82F6; }

/* --- Funnel Detail --- */
.funnel-detail {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 2px;
}

/* --- Chart Subtitle --- */
.chart-subtitle {
  font-size: 0.9rem;
  color: #5B6178;
  margin-bottom: 12px;
}
.chart-half { min-width: 0; }

/* --- Simplified Comparison (Why Communities) --- */
.simple-comparison {
  max-width: 1100px;
  margin: 32px auto 0;
}
.comparison-row {
  display: flex;
  align-items: stretch;
  gap: 32px;
  margin: 24px 0;
}
.comparison-card {
  flex: 1;
  padding: 36px 32px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comparison-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.comparison-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.comparison-verdict {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px solid;
  font-size: 1.05rem;
  font-weight: 600;
}
.comparison-vs {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #9CA3AF;
  flex-shrink: 0;
}
.comparison-weak {
  background: #F9FAFB;
  border: 2px solid #D1D5DB;
}
.comparison-weak .comparison-verdict {
  border-color: #9CA3AF;
  color: #6B7280;
}
.comparison-strong {
  background: #EFF6FF;
  border: 3px solid #3B82F6;
}
.comparison-strong .comparison-verdict {
  border-color: #3B82F6;
  color: #2563EB;
}

/* --- Big Rule Statement (Bridge Skills) --- */
.single-statement {
  text-align: center;
  margin: 48px 0 32px;
}
.big-rule {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #3B82F6;
  margin-bottom: 16px;
}
.big-rule-sub {
  font-size: 1.1rem;
  color: #5B6178;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* --- Tablet / Small Desktop (1024px) --- */
@media (max-width: 1024px) {
  .split,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .question-heading {
    font-size: 2.2rem;
  }

  .transitions-grid,
  .transition-grid {
    grid-template-columns: 1fr;
  }

  .findings-cards {
    grid-template-columns: 1fr 1fr;
  }

  .policy-cards {
    grid-template-columns: 1fr;
  }

  .method-images {
    grid-template-columns: 1fr;
  }

  .method-split {
    grid-template-columns: 1fr;
  }

  .pathway-columns {
    grid-template-columns: 1fr;
  }

  .insight-slide {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile Landscape / Small Tablet (768px) --- */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
  }

  .bridge-stats {
    grid-template-columns: 1fr;
  }

  .definition-cards {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .story-chapters {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .findings-cards {
    grid-template-columns: 1fr;
  }

  .nav-dots {
    display: none;
  }

  .pathway-jobs {
    flex-direction: column;
  }

  .pathway-arrow-big {
    transform: rotate(90deg);
  }

  .method-split {
    grid-template-columns: 1fr;
  }
}

/* --- New Layouts Responsive (900px) --- */
@media (max-width: 900px) {
  .side-by-side-charts { grid-template-columns: 1fr; }
  .bundle-grid { grid-template-columns: 1fr; }
  .toc-table { font-size: 0.9rem; }
  .comparison-row { flex-direction: column; }
  .comparison-vs { display: none; }
  .funnel-step-total { width: 100%; }
  .funnel-step-risk { width: 80%; }
  .funnel-step-viable { width: 50%; }
  .funnel-step-trapped { width: 90%; }
  .big-rule { font-size: 2rem; }
}

/* --- Mobile Portrait (480px) --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .question-heading {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .finding-value {
    font-size: 1.8rem;
  }
}
