/* ============================================
   AI & the Future of Work — Stylesheet
   MYP Personal Project | Andrei | 2025-2026
   ============================================ */

:root {
  /* Default "Classic Navy" theme.
     --bg     = page background
     --surface = card / modal background
     --white  = light text-on-dark color (kept as legacy var name)
     Theme classes on <body> below override these to switch themes. */
  --navy: #1a2340;
  --teal: #048A81;
  --teal-dark: #036a63;
  --white: #ffffff;
  --bg: #ffffff;
  --surface: #ffffff;
  --heading: #1a2340; /* main heading/text-strong color (kept readable on --bg/--surface in each theme) */
  --light: #F4F6F9;
  --amber: #F5A623;
  --amber-dark: #d8901a;
  --text: #2a2a2a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --red-tint: #fdecea;
  --amber-tint: #fff8e1;
  --green-tint: #e8f5e9;
  --shadow: 0 2px 8px rgba(26, 35, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(26, 35, 64, 0.12);
  --radius: 8px;
  --radius-btn: 6px;
}

/* ============================================
   THEMES — override variables on body class
   ============================================ */
body.theme-midnight {
  --navy: #14192E;
  --teal: #00D9FF;
  --teal-dark: #00B5DC;
  --white: #E7ECF3;
  --bg: #0A0F1F;
  --surface: #14192E;
  --heading: #F5F7FA;
  --light: #1A2140;
  --amber: #F5A623;
  --amber-dark: #d8901a;
  --text: #E7ECF3;
  --muted: #8892B0;
  --border: #243049;
  --red-tint: #3a1a1a;
  --amber-tint: #3a2e10;
  --green-tint: #133a1f;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.55);
}

body.theme-forest {
  --navy: #1E4D2B;
  --teal: #2E7D52;
  --teal-dark: #1E5638;
  --white: #ffffff;
  --bg: #FAF6F0;
  --surface: #ffffff;
  --heading: #1E4D2B;
  --light: #F0EAD6;
  --amber: #E27D60;
  --amber-dark: #C46446;
  --text: #2D2A26;
  --muted: #6B6358;
  --border: #E5DDD0;
  --red-tint: #f6e1d4;
  --amber-tint: #faead5;
  --green-tint: #e0eed3;
  --shadow: 0 2px 8px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 8px 24px rgba(45, 42, 38, 0.14);
}

body.theme-aurora {
  --navy: #2D3436;
  --teal: #6C5CE7;
  --teal-dark: #5547C7;
  --white: #ffffff;
  --bg: #ffffff;
  --surface: #ffffff;
  --heading: #2D3436;
  --light: #F7F5FF;
  --amber: #FD79A8;
  --amber-dark: #E662A0;
  --text: #2D3436;
  --muted: #636E72;
  --border: #E5E0F5;
  --red-tint: #fbe1ec;
  --amber-tint: #fde6f0;
  --green-tint: #e3f3ed;
  --shadow: 0 2px 8px rgba(108, 92, 231, 0.10);
  --shadow-lg: 0 8px 24px rgba(108, 92, 231, 0.16);
}

body.theme-mono {
  --navy: #0F1115;
  --teal: #0F1115;
  --teal-dark: #000000;
  --white: #ffffff;
  --bg: #ffffff;
  --surface: #FAFAFA;
  --heading: #0F1115;
  --light: #F0F1F3;
  --amber: #FFD60A;
  --amber-dark: #E5C209;
  --text: #0F1115;
  --muted: #5A6373;
  --border: #E4E7EC;
  --red-tint: #f1eded;
  --amber-tint: #fff8d6;
  --green-tint: #ededed;
  --shadow: 0 2px 8px rgba(15, 17, 21, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 17, 21, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-top: 64px;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  font-family: "Syne", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--teal-dark); }

img { max-width: 100%; height: auto; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--navy);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-title {
  color: var(--white);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--amber); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--surface);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 500px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(4, 138, 129, 0.15); border-left: 3px solid var(--teal); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 32px 24px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-center {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
}

.footer-diary {
  color: var(--amber);
  font-size: 0.85rem;
}

.footer-diary:hover { color: var(--white); }

/* ============================================
   GENERIC LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section.bg-light {
  background: var(--light);
}

section.bg-navy {
  background: var(--navy);
  color: var(--white);
}

section.bg-navy h2, section.bg-navy h3 {
  color: var(--white);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  border-radius: var(--radius-btn);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--white);
}

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #1a2340; /* always-dark text on amber bg, theme-independent */
  font-weight: 600;
}

.btn-amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: #1a2340;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card h3 { color: var(--heading); margin-bottom: 8px; }

.card p { color: var(--muted); margin: 0; }

/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HERO (Home page)
   ============================================ */
.hero {
  min-height: calc(100vh - 64px);
  background: linear-gradient(135deg, var(--navy) 0%, #0f1729 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(4, 138, 129, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-present {
  display: block;
  margin: 24px auto 0;
  max-width: 240px;
}

/* ============================================
   NAV CARDS GRID (Home)
   ============================================ */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.nav-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  border-top: 4px solid var(--teal);
  display: block;
  color: inherit;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--amber);
}

.nav-card .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.nav-card h3 { color: var(--heading); }
.nav-card p { color: var(--muted); font-size: 0.92rem; }

.about-small {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 16px;
}

/* ============================================
   AI FLOW (What is AI page)
   ============================================ */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.flow-box {
  background: var(--surface);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 28px;
  font-weight: 600;
  color: var(--heading);
  min-width: 160px;
  text-align: center;
  box-shadow: var(--shadow);
}

.flow-arrow {
  font-size: 2rem;
  color: var(--teal);
  font-weight: bold;
}

@media (max-width: 700px) {
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.system-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}

.system-card h3 { font-size: 1.1rem; color: var(--heading); }
.system-card p { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }

/* ============================================
   STATS (Research page)
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
}

.stat-number {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  margin: 12px 0 14px;
  color: var(--text);
  font-size: 0.98rem;
}

.stat-source {
  display: inline-block;
  background: var(--light);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Three-column exposure */
.exposure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

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

.exposure-col {
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.exposure-col.high { background: var(--red-tint); border-top: 4px solid #c0392b; }
.exposure-col.medium { background: var(--amber-tint); border-top: 4px solid var(--amber-dark); }
.exposure-col.low { background: var(--green-tint); border-top: 4px solid #2e7d32; }

.exposure-col h3 {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.exposure-col ul {
  list-style: none;
}

.exposure-col li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.exposure-col li:last-child { border-bottom: none; }

/* Augmentation vs automation */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

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

.compare-card {
  border-radius: var(--radius);
  padding: 28px;
  color: var(--white);
}

.compare-card.teal { background: var(--teal); }
.compare-card.amber { background: var(--amber); color: #1a2340; }

.compare-card h3 { color: inherit; margin-bottom: 12px; }

/* Expert debate */
.debate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

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

.debate-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.debate-card.optimistic { border-top: 4px solid var(--teal); }
.debate-card.cautious { border-top: 4px solid var(--amber-dark); }

.debate-caption {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  margin-top: 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Sources list */
.sources-list {
  list-style: none;
  counter-reset: src;
  max-width: 800px;
  margin: 24px auto 0;
}

.sources-list li {
  counter-increment: src;
  padding: 14px 0 14px 50px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.sources-list li::before {
  content: counter(src);
  position: absolute;
  left: 0;
  top: 14px;
  background: var(--teal);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.sources-list a {
  word-break: break-word;
}

/* ============================================
   EXPERIMENT page
   ============================================ */
.experiment-list {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 24px 24px 48px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}

.experiment-list li {
  padding: 6px 0;
  font-size: 0.98rem;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.results-table th,
.results-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.results-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.results-table tr:nth-child(even) td { background: var(--light); }
.results-table tr:hover td { background: #eef3f7; }

@media (max-width: 700px) {
  .table-wrap { overflow-x: auto; }
  .results-table { min-width: 640px; }
}

.highlight-box {
  background: var(--surface);
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  margin-top: 24px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  font-size: 1rem;
}

.learned-list {
  list-style: none;
  margin-top: 16px;
}

.learned-list li {
  background: var(--surface);
  padding: 18px 20px 18px 50px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.learned-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--teal);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ============================================
   SIMULATOR page
   ============================================ */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

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

.sim-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.slider-group { margin-bottom: 24px; }

.slider-group:last-child { margin-bottom: 0; }

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.slider-label strong { color: var(--heading); }

.slider-value {
  background: var(--teal);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.slider-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--teal);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--teal);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

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

.gauge {
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.gauge circle {
  fill: none;
  stroke-width: 18;
  transform: rotate(-90deg);
  transform-origin: center;
}

.gauge .bg { stroke: var(--light); }

.gauge .fg {
  transition: stroke-dashoffset 0.5s ease, stroke 0.4s ease;
  stroke-linecap: round;
}

.gauge-pct {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  fill: var(--navy);
}

.gauge-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.risk-desc {
  margin-top: 16px;
  color: var(--text);
  text-align: left;
}

.bar-chart {
  margin-top: 24px;
}

.bar-row {
  margin-bottom: 12px;
}

.bar-row-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.bar-track {
  background: var(--light);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 5px;
  transition: width 0.4s ease, background 0.4s ease;
}

.what-do-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.action-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
}

.action-card h3 { color: var(--heading); }
.action-card p { color: var(--muted); margin: 8px 0 0; }

/* ============================================
   CONCLUSION page
   ============================================ */
.answer-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-left: 4px solid var(--teal);
}

.answer-block h3 {
  color: var(--heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.verdict-box {
  background: var(--navy);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  margin-top: 24px;
}

.verdict-box h2 { color: var(--white); }
.verdict-box p { color: rgba(255,255,255,0.9); margin: 0; }

.bigger-picture {
  background: var(--light);
  padding: 24px;
  border-radius: var(--radius);
  font-style: italic;
  color: var(--text);
  border-left: 4px solid var(--amber);
}

.further-reading {
  list-style: none;
  margin-top: 16px;
}

.further-reading li {
  padding: 8px 0;
}

.further-reading a::before {
  content: "→ ";
  color: var(--amber);
  font-weight: bold;
}

/* ============================================
   DOCUMENT (PDF viewer) page
   ============================================ */
.pdf-viewer {
  background: var(--light);
  padding: 30px;
  border-radius: var(--radius);
  margin-top: 24px;
  min-height: 300px;
}

.pdf-canvas {
  display: block;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  background: var(--surface);
}

.pdf-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 60px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pdf-fallback {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--muted);
}

.pdf-fallback h3 { color: var(--heading); margin-bottom: 8px; }

.pdf-note {
  font-style: italic;
  text-align: center;
  color: var(--muted);
  margin-top: 24px;
}

/* ============================================
   PRESENTATION MODE
   ============================================ */
#present {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0f1f 0%, #1a2340 100%);
  z-index: 5000;
  padding: 60px 40px;
  overflow-y: auto;
}

body.presenting #present { display: flex; flex-direction: column; }
body.presenting { overflow: hidden; }

.present-exit {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-btn);
  padding: 10px 18px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.present-exit:hover { background: rgba(255,255,255,0.2); }

.present-title {
  color: var(--white);
  font-family: "Syne", sans-serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 36px;
}

.present-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  flex: 1;
  align-content: center;
}

.present-tile {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.present-tile:hover {
  background: rgba(4, 138, 129, 0.25);
  border-color: var(--teal);
  transform: scale(1.03);
  color: var(--white);
}

.present-tile .tile-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}

.present-tile h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.present-tile p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  margin: 0;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1729 100%);
  color: var(--white);
  padding: 80px 24px 60px;
  text-align: center;
}

.page-header h1 { color: var(--white); margin-bottom: 12px; }

.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   Simulator role presets
   ============================================ */
.presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.preset-btn {
  background: var(--surface);
  border: 2px solid var(--teal);
  color: var(--heading);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.preset-btn:hover {
  background: var(--teal);
  color: var(--white);
}

/* ============================================
   Research page "Key insight" callout
   ============================================ */
.takeaway-box {
  background: #e6f7f5;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: #1a2340; /* mint bg is hardcoded light — keep dark text in every theme */
  margin: 1.5rem 0;
}

/* ============================================
   Mobile polish for the simulator + presets
   ============================================ */
@media (max-width: 600px) {
  .sim-grid { grid-template-columns: 1fr; }
  .gauge-wrap svg.gauge { width: 160px; height: 160px; }
  .presets-grid { gap: 0.5rem; }
  .preset-btn { font-size: 0.85rem; padding: 0.5rem 0.9rem; }
}

/* ============================================
   QUIZ (research.html)
   ============================================ */
.quiz-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-question {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}

.quiz-question .q-num {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.quiz-question .q-text {
  font-weight: 600;
  color: var(--heading);
  font-size: 1.05rem;
  margin-bottom: 14px;
  line-height: 1.4;
}

.quiz-choices {
  display: grid;
  gap: 8px;
}

.quiz-choice {
  text-align: left;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 11px 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quiz-choice:hover:not(:disabled) {
  border-color: var(--teal);
  transform: translateX(2px);
}

.quiz-choice:disabled { cursor: default; }

.quiz-choice.correct {
  background: rgba(46, 204, 113, 0.15);
  border-color: #2ECC71;
  color: var(--heading);
  font-weight: 600;
}

.quiz-choice.wrong {
  background: rgba(231, 76, 60, 0.12);
  border-color: #E74C3C;
  color: var(--heading);
}

.quiz-explanation {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--light);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text);
  display: none;
}

.quiz-question.answered .quiz-explanation { display: block; }

.quiz-score-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1729 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-top: 8px;
}

.quiz-score-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.quiz-score-card .big-score {
  font-family: "Syne", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin: 10px 0;
}

.quiz-score-card p {
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.quiz-reset-btn {
  margin-top: 14px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}

.quiz-reset-btn:hover { background: rgba(255,255,255,0.2); }

/* ============================================
   CAREER PATH PICKER (simulator.html)
   ============================================ */
.picker-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.picker-label {
  display: block;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.career-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 20px;
}

.career-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(4, 138, 129, 0.15);
}

.career-result {
  min-height: 1px;
}

.career-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--teal);
}

.career-card .role-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.career-card .role-emoji { font-size: 2.4rem; }

.career-card .role-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--heading);
  flex: 1;
}

.career-card .risk-pill {
  padding: 6px 14px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.career-card .risk-bar-track {
  background: var(--light);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}

.career-card .risk-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

.career-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .career-lists { grid-template-columns: 1fr; }
}

.career-list h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 8px;
}

.career-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-list li {
  padding: 7px 0;
  font-size: 0.94rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.career-list li:last-child { border-bottom: none; }

.career-list.danger li::before { content: "⚠ "; color: #E74C3C; }
.career-list.safe li::before   { content: "✓ "; color: #2ECC71; }

.career-skill {
  background: var(--light);
  border-left: 4px solid var(--amber);
  padding: 14px 18px;
  border-radius: 4px;
}

.career-skill .skill-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--amber-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.career-skill .skill-text {
  color: var(--heading);
  font-weight: 600;
  font-size: 1rem;
}

.career-note {
  margin-top: 14px;
  background: rgba(231, 76, 60, 0.08);
  border-left: 4px solid #E74C3C;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.career-note strong { color: #E74C3C; }

/* ============================================
   THEME SWITCHER (footer swatch row)
   ============================================ */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-switcher .ts-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  margin-right: 4px;
}

.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.theme-swatch:hover {
  transform: scale(1.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.theme-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.theme-swatch.active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
