:root {
  --bg-color: #f8fafc;
  --panel-bg: #ffffff;
  --primary-color: #0B1329;
  --primary-hover: #1A2647;
  --primary-light: #EEF2F8;
  --primary-border: #C9D2E3;
  --secondary-color: #475569;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --navy: #0B1329;
  --navy-surface: #131D3B;
  --navy-border: #1A2647;
  --amber: #F5A524;
  --amber-gold: #FFD27A;
  --sky: #38bdf8;
  --emerald: #10b981;
  --rose: #f43f5e;
  --purple: #a855f7;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*:not(mjx-container):not(mjx-container *) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  padding: 1.25rem 1rem 3rem;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  max-width: 1200px;
  width: 100%;
}

/* ==================== STANDARD 11: MATHJAX DUAL-RULE CSS ==================== */
.math-display mjx-container,
mjx-container[display="true"] {
  display: block !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  margin: 0.4rem auto !important;
  text-align: center;
}

mjx-container:not([display="true"]) {
  display: inline-block !important;
  max-width: 100% !important;
  overflow: visible !important;
  margin: 0 0.12em !important;
  vertical-align: -0.15em !important;
  line-height: 0;
}

mjx-container svg {
  max-width: 100% !important;
  height: auto !important;
  display: inline-block;
  vertical-align: middle;
}

/* ==================== STANDARD 4.1 TOP NAVIGATION BAR ==================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.nav-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #0284c7;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-home-btn:hover {
  color: #0369a1;
}

.brand-physics {
  color: #0284c7;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-pill-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.nav-dept-tag {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* ==================== STANDARD 22 CLEAN HEADER ARCHITECTURE ==================== */
.sim-header {
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0;
}

.sim-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.sim-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 960px;
}

/* ==================== 2-COLUMN WORKSPACE GRID (c-layout) ==================== */
.lab-grid.c-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.c-primary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.c-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.panel {
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid #E2E6EE;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.6rem;
}

/* ==================== INTERACTIVE STAGE (.c-stage) ==================== */
.c-stage.panel {
  padding: 0;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 4px 16px rgba(11, 19, 41, 0.12);
}

/* Mode Switcher Tabs */
.c-mode-switcher {
  display: flex;
  background: #070c1a;
  border-bottom: 1px solid var(--navy-border);
  padding: 6px;
  gap: 6px;
}

.c-mode-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.c-mode-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.c-mode-btn.active {
  background: var(--navy-surface);
  border-color: #22305A;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Stage Bar (Controls & Telemetry) */
.c-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-border);
}

.c-stage-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0 0.95rem;
  border-radius: 10px;
  font: 700 0.88rem/1 var(--font-sans);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.c-btn-amber {
  background: var(--amber);
  color: #0b1329;
  border: 1px solid #d97706;
}

.c-btn-amber:hover {
  background: #f59e0b;
}

.c-btn-ghost {
  background: var(--navy-surface);
  color: #e2e8f0;
  border: 1px solid var(--navy-border);
}

.c-btn-ghost:hover {
  background: #1e2c56;
  border-color: #2e3e6e;
  color: #fff;
}

.c-btn-active {
  background: #0284c7;
  color: #fff;
  border: 1px solid #38bdf8;
}

.c-stage-telemetry {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.c-readout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.c-readout-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.c-readout-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.c-speed-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--navy-surface);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.c-speed-pill input[type="range"] {
  width: 60px;
  accent-color: var(--amber);
  cursor: pointer;
}

.c-speed-badge {
  font-weight: 700;
  color: var(--amber-gold);
  min-width: 32px;
}

.lab-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.lab-toggle input[type="checkbox"] {
  accent-color: var(--amber);
  cursor: pointer;
}

/* Simulation Canvas Viewport */
.canvas-container.c-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 400px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.canvas-container.c-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  touch-action: none;
}

/* Stage Foot (Legends and Dynamic Hints) */
.c-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  padding: 0.65rem 1rem;
  background: #080e1f;
  border-top: 1px solid var(--navy-border);
  font-size: 0.78rem;
  color: #94a3b8;
}

.c-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: #cbd5e1;
}

.c-key-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.c-tip {
  margin-left: auto;
  color: #e2e8f0;
  font-style: italic;
  font-size: 0.78rem;
}

/* ==================== SUB-CARDS BELOW STAGE (.c-cards) ==================== */
.c-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.c-subcard {
  padding: 1.15rem 1.25rem;
}

.c-card-desc {
  font-size: 0.88rem;
  color: var(--secondary-color);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-card.highlight {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.metric-card.alert-gold {
  background: #fffbeb;
  border-color: #fde68a;
}

.metric-card.success-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.metric-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Data Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 0.6rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

/* ==================== 3-MINUTE INVESTIGATION CARD (.c-mission-card) ==================== */
.c-mission-card {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.c-mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #f59e0b 100%);
}

.c-mission-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.c-mission-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.c-mission-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.c-mission-head h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.c-mission-step-counter {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
}

.c-mission-toggle-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.c-mission-toggle-btn:hover {
  background: #f1f5f9;
  color: var(--primary-color);
}

.c-mission-chevron {
  transition: transform 0.2s ease;
}

.c-mission-card.collapsed .c-mission-chevron {
  transform: rotate(180deg);
}

.c-mission-collapsed-summary {
  display: none;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
  padding: 0.2rem 0;
}

.c-mission-card.collapsed .c-mission-collapsed-summary {
  display: block;
}

.c-mission-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-mission-card.collapsed .c-mission-body {
  display: none;
}

/* Step switcher pills */
.c-mission-steps-nav {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

.c-mission-step-btn {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.c-mission-step-btn:hover {
  background: #f1f5f9;
  color: var(--primary-color);
  border-color: #cbd5e1;
}

.c-mission-step-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 2px 4px rgba(11, 19, 41, 0.15);
}

.c-mission-step-btn.done {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.c-mission-step-btn.done.active {
  background: #166534;
  color: #ffffff;
  border-color: #166534;
}

.c-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-mission-step-btn.active .c-step-dot {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Active Step Content Box */
.c-mission-content-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.c-mission-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.c-mission-type-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0284c7;
}

.c-mission-mode-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.c-mission-mode-link:hover {
  background: #fde68a;
}

.c-mission-instruction,
.c-mission-observe {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #1e293b;
}

.c-mission-instruction strong {
  color: #0369a1;
}

.c-mission-observe strong {
  color: #047857;
}

/* Action Footer */
.c-mission-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.c-btn-mission-done {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25);
}

.c-btn-mission-done:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.c-btn-mission-done:active {
  transform: translateY(0);
}

.c-mission-congrats {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-align: center;
  flex-direction: column;
  gap: 0.5rem;
}

.c-mission-congrats h4 {
  font-size: 0.95rem;
  color: #065f46;
  font-weight: 700;
  margin: 0;
}

.c-mission-congrats p {
  font-size: 0.82rem;
  color: #047857;
  line-height: 1.4;
  margin: 0;
}

.c-btn-mission-restart {
  background: #ffffff;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  align-self: center;
  margin-top: 0.3rem;
  transition: all 0.15s ease;
}

.c-btn-mission-restart:hover {
  background: #f0fdf4;
}

/* ==================== RIGHT COLUMN: KEY RELATION CARD (.c-relation) ==================== */
.c-relation {
  background: #ffffff;
  border: 1px solid #E2E6EE;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-relation-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.4rem;
}

.c-relation-head h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
}

.c-relation-head span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.c-rel-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-formula {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--primary-color);
  font-weight: 700;
}

.c-subst {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #475569;
  background: #fafbfc;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  text-align: center;
  line-height: 1.45;
  word-break: break-word;
}

.c-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
}

.c-rel-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #047857;
}

/* ==================== CONTROL PANELS (.c-card) ==================== */
.panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid #f1f5f9;
}

.panel-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--secondary-color);
  line-height: 1.5;
}

/* Preset Pills */
.preset-pill-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.preset-pill {
  padding: 0.5rem 0.65rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.preset-pill:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.preset-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 1px 3px rgba(11, 19, 41, 0.2);
}

/* Custom Responsive Sliders with Steppers */
.control-group.c-slider {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.c-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}

.c-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-color);
}

.c-slider-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c-slider-row input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: #e2e8f0;
  accent-color: #0284c7;
  outline: none;
  cursor: pointer;
}

.c-step {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s ease;
}

.c-step:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.c-step:active {
  background: #cbd5e1;
}

.c-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

/* Toggles & Checkbox Rows */
.toggle-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
  font-weight: 500;
}

.c-checkbox input[type="checkbox"] {
  accent-color: #0284c7;
  cursor: pointer;
  width: 15px;
  height: 15px;
}

/* ==================== CALLOUTS & INFORMATIVE BOXES ==================== */
.callout-box {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 0.75rem 0.95rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #065f46;
}

.callout-box.amber {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}

.callout-box.sky {
  background: #f0f9ff;
  border-left-color: #0284c7;
  color: #075985;
}

/* ==================== PROGRESSIVE DISCLOSURE ACCORDIONS (Standard 23) ==================== */
.is-collapsible {
  background: #ffffff;
  border: 1px solid #E2E6EE;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.is-collapsible:hover {
  border-color: #CBD5E1;
}

.is-collapsible.is-open {
  box-shadow: 0 4px 14px rgba(11, 19, 41, 0.04);
}

.accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: background 0.15s;
}

.accordion-head:hover {
  background: #F8FAFC;
}

.accordion-head:focus-visible {
  outline: 2px solid var(--accent-color, #2563EB);
  outline-offset: -2px;
}

.accordion-head-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.accordion-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}

.accordion-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.accordion-head h2,
.accordion-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color, #0B1329);
  margin: 0;
  line-height: 1.25;
}

.accordion-subtext {
  font-size: 0.82rem;
  color: var(--secondary-color, #64748B);
  display: block;
}

.accordion-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  flex: none;
  transition: all 0.15s ease;
  pointer-events: none;
}

.accordion-head:hover .accordion-toggle-btn {
  background: #0B1329;
  color: #FFFFFF;
  border-color: #0B1329;
}

.accordion-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-collapsible.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 1.25rem 1.4rem 1.4rem 1.4rem;
  border-top: 1px solid #F1F5F9;
}

.accordion-content[hidden] {
  display: none !important;
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.concept-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.concept-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.concept-item p {
  font-size: 0.85rem;
  color: var(--secondary-color);
  line-height: 1.5;
  margin: 0;
}

/* Specific POE Accordion Card */
.poe-box {
  background: #F0F7FF;
  border-color: #BAE6FD;
}

.poe-box .accordion-head {
  background: #F0F7FF;
}

.poe-box .accordion-head:hover {
  background: #E0F2FE;
}

.poe-box .accordion-head h3 {
  color: #0369A1;
}

.poe-box .accordion-subtext {
  color: #0284C7;
}

.poe-box .accordion-toggle-btn {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #BAE6FD;
}

.poe-box .accordion-head:hover .accordion-toggle-btn {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
}

.poe-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1E293B;
}

.poe-body p {
  margin-bottom: 0.75rem;
}

.poe-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 680px) {
  .accordion-head {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .accordion-toggle-btn {
    width: 100%;
    justify-content: center;
  }
  .accordion-content {
    padding: 1rem;
  }
}

/* ==================== ABOUT SERIES, ADMISSION & FEEDBACK ==================== */
.series-card {
  background: #ffffff;
  border: 1px solid #E2E6EE;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.series-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.series-tagline {
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 0.5rem;
}

.series-card p {
  font-size: 0.88rem;
  color: var(--secondary-color);
  line-height: 1.55;
}

/* Institutional Admission Callout */
.admission-card {
  background: linear-gradient(135deg, #0B1329 0%, #172554 100%);
  border-radius: 16px;
  padding: 1.5rem;
  color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(11, 19, 41, 0.15);
  border: 2px solid transparent;
}

.attention-flash {
  animation: bannerGlowPulse 3s infinite ease-in-out;
}

@keyframes bannerGlowPulse {
  0% { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: transparent; }
  50% { box-shadow: 0 0 22px 5px rgba(251, 191, 36, 0.45); border-color: rgba(251, 191, 36, 0.7); }
  100% { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: transparent; }
}

.promo-copy .promo-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 0.2rem;
}

.promo-copy .promo-lead {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.2rem;
}

.promo-headline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.program-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.program-card strong {
  font-size: 0.95rem;
  color: #ffffff;
}

.program-card span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.program-card small {
  font-size: 0.72rem;
  color: var(--amber-gold);
  font-weight: 600;
}

.promo-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.promo-button {
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.promo-button.main-cta {
  background: var(--amber);
  color: #0b1329;
}

.promo-button.main-cta:hover {
  background: #f59e0b;
}

.promo-button.sub-cta {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-button.sub-cta:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Feedback & Footer */
.feedback-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #E2E6EE;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.feedback-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feedback-icon {
  color: #0284c7;
}

.feedback-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.15rem;
}

.feedback-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feedback-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-mono);
  transition: all 0.15s ease;
}

.feedback-btn:hover {
  background: #f1f5f9;
}

.series-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  padding-top: 1rem;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 19, 41, 0.6);
  backdrop-filter: blur(4px);
}

.modal-window {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid #cbd5e1;
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-color);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-admission {
  margin-bottom: 0.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .lab-grid.c-layout {
    grid-template-columns: 1fr;
  }
  .c-stage.panel {
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0.75rem 0.5rem 2rem;
  }
  .sim-title {
    font-size: 1.65rem;
  }
  .c-mode-switcher {
    flex-direction: column;
  }
  .c-stage-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
