/**
 * FTC Robotics camp — layout helpers only.
 * Colors, fonts, and components come from ../deck/css/deck.css (Deloitte / BMAD theme).
 */

/* ── EXEC SLIDES — fill full height, no vertical-center gap ─────────────────
   deck.css .slide-main has justify-content:center which vertically centers
   content leaving large empty gaps. For exec slides we start from the top
   and let the layout grid/flex items grow to fill the remaining height.
   ──────────────────────────────────────────────────────────────────────── */
.slide-exec .slide-main {
  justify-content: flex-start;
  gap: 0.55rem;
}

/* Primary layout containers stretch to fill slide-main */
.slide-exec .slide-main > .onshape-welcome-layout,
.slide-exec .slide-main > .onshape-reg-layout,
.slide-exec .slide-main > .onshape-ui-layout,
.slide-exec .slide-main > .cad-intro-layout,
.slide-exec .slide-main > .cad-what-layout,
.slide-exec .slide-main > .edp-image-layout,
.slide-exec .slide-main > .edp-chevron-flow,
.slide-exec .slide-main > .first-layout,
.slide-exec .slide-main > .robot-reveal-layout,
.slide-exec .slide-main > .view-merged-layout,
.slide-exec .slide-main > .t3d-layout,
.slide-exec .slide-main > .feat-act-layout,
.slide-exec .slide-main > .newdoc-layout,
.slide-exec .slide-main > .star-ex-layout,
.slide-exec .slide-main > .dex-layout,
.slide-exec .slide-main > .hw-hero-layout,
.slide-exec .slide-main > .hw-layout,
.slide-exec .slide-main > .hw-detail-layout,
.slide-exec .slide-main > .hw-mecanum-layout,
.slide-exec .slide-main > .hw-sensors-2col,
.slide-exec .slide-main > .hw-build-layout,
.slide-exec .slide-main > .bench-intro-layout,
.slide-exec .slide-main > .bench-components-grid,
.slide-exec .slide-main > .connect-layout,
.slide-exec .slide-main > .lesson-layout,
.slide-exec .slide-main > .qref-layout,
.slide-exec .slide-main > .trouble-layout {
  flex: 1 1 auto;
  min-height: 0;
}

/* Hero column and image panels fill full column height */
.slide-exec .onshape-welcome-layout {
  align-items: stretch;
  align-content: stretch; /* stretch implicit grid rows to fill flex-grow height */
  gap: 1rem;
  grid-template-columns: 1fr 1fr; /* equal columns for maximum robot size */
}
.slide-exec .onshape-welcome-hero,
.slide-exec .ppt-img-panel {
  min-height: 0;
  align-self: stretch;
  height: auto;
}

/* Text column distributes its children top-down */
.slide-exec .onshape-welcome-text {
  gap: 0.7rem;
  justify-content: flex-start;
}

/* Objectives grid grows to fill remaining text column height */
.slide-exec .onshape-welcome-text > .objectives-grid {
  flex: 1 1 auto;
  min-height: 0;
  align-content: stretch;
}

/* Each objective card is a flex column so it can stretch in the grid */
.slide-exec .objectives-grid .objective-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ── BIGGER FONTS — presentation scale for grades 7-11 ── */
.slide-exec .objective-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.slide-exec .objective-card p {
  font-size: 0.92rem;
  line-height: 1.5;
}
.slide-exec .objective-num {
  font-size: 0.8rem;
  top: 0.8rem;
}
.slide-exec .callout-flex p,
.slide-exec .onshape-welcome-callout p {
  font-size: 1rem !important; /* override .onshape-welcome-callout p below */
  line-height: 1.65;
}
.slide-exec .onshape-ui-def p {
  font-size: 0.95rem;
  line-height: 1.55;
}
.slide-exec .onshape-ui-def__term {
  font-size: 1rem;
}

/* Tighten the exec-lead subtitle — saves vertical space for content */
.slide-exec > .lead.exec-lead {
  font-size: 0.88rem !important;
  margin-bottom: 0.2rem;
}

/* Onshape tutorial — native deck components (no screenshot embeds) */
.slide-onshape-tut .slide-main {
  gap: 0.55rem;
}

.onshape-welcome-callout p {
  font-size: 0.82rem;
  line-height: 1.5;
}

.onshape-ui-def {
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--content-panel-shadow);
}

.onshape-ui-def__term {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-teal);
}

.onshape-ui-def p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Wireframe schematic — Part Studio layout */
.onshape-wireframe {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  min-height: 11.5rem;
  border: 2px solid var(--accent-teal);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--content-panel-shadow);
}

.onshape-wireframe__badge {
  position: absolute;
  left: var(--wf-x);
  top: var(--wf-y);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bg-slide);
}

.onshape-wireframe__top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: var(--table-header-bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.58rem;
  color: var(--text-muted);
}

.onshape-wireframe__versions {
  flex-shrink: 0;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: var(--bg-slide);
  border: 1px solid var(--border);
}

.onshape-wireframe__toolbar {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
}

.onshape-wireframe__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem;
  border-right: 1px solid var(--border);
  background: var(--bg-slide);
  font-size: 0.55rem;
}

.onshape-wireframe__comments {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  align-self: flex-start;
}

.onshape-wireframe__tree {
  margin: 0;
  padding: 0.25rem 0 0 0.85rem;
  list-style: disc;
  color: var(--text-muted);
  line-height: 1.35;
}

.onshape-wireframe__parts {
  margin-top: auto;
  padding: 0.25rem;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 600;
}

.onshape-wireframe__viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  background: linear-gradient(145deg, var(--bg-slide) 0%, var(--bg-card) 100%);
}

.onshape-wireframe__viewcube {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.45rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-muted);
}

.onshape-wireframe__model {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 6px;
}

.onshape-wireframe__tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem 0.45rem;
  border-top: 1px solid var(--border);
  background: var(--table-header-bg);
  font-size: 0.58rem;
}

.onshape-wireframe__tabs span {
  padding: 0.2rem 0.45rem;
  border-radius: 4px 4px 0 0;
  background: var(--bg-slide);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.onshape-wireframe__tabs span:first-child {
  background: var(--accent-teal);
  color: #fff;
  border-color: var(--accent-teal);
  font-weight: 600;
}

.onshape-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem 0.65rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.onshape-legend strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-right: 0.2rem;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #fff;
  font-size: 0.55rem;
}

/* Violin tab exercise */
.onshape-violin-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.75rem;
  align-items: stretch;
}

.onshape-tab-demo {
  padding: 0.65rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--content-panel-shadow);
}

.onshape-tab-demo__prompt {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.onshape-tab-demo__task {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.onshape-tab-bar {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 0.35rem;
  background: var(--table-header-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.onshape-tab {
  flex: 1;
  padding: 0.35rem 0.4rem;
  text-align: center;
  font-size: 0.62rem;
  border-radius: 4px;
  background: var(--bg-slide);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.onshape-tab--target {
  position: relative;
  background: var(--accent-gold);
  color: #1a1a1a;
  border-color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
}

.onshape-tab__hint {
  display: block;
  font-size: 0.52rem;
  font-weight: 600;
  opacity: 0.85;
}

.onshape-violin-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.onshape-violin-shape {
  width: 3.5rem;
  height: 7.5rem;
  background: linear-gradient(160deg, #f5f5f5 0%, #d8d8d8 100%);
  border-radius: 45% 45% 12% 55% / 55% 55% 8% 45%;
  border: 1px solid var(--border);
  box-shadow: inset -0.25rem 0 0.5rem rgba(0, 0, 0, 0.08);
}

.onshape-violin-preview p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-teal);
}

/* View controls grid */
.onshape-view-intro {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  text-align: center;
}

.view-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.view-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--content-panel-shadow);
  text-align: center;
}

.view-control h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.view-control--rotate h3 { color: #2e9b4a; }
.view-control--pan h3 { color: #d97b1a; }
.view-control--zoom h3 { color: #2a7ab8; }

.view-control__cmd {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

.view-control__alt {
  margin: 0;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.view-control__hint {
  margin: 0;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.view-control__kbd-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  font-size: 0.55rem;
  padding: 0.1rem 0.25rem;
}

/* Input glyphs — simple mouse / trackpad icons */
.input-glyph {
  position: relative;
  width: 3.25rem;
  height: 4.5rem;
  margin: 0.25rem 0;
}

.input-glyph--mouse {
  background: var(--bg-slide);
  border: 2px solid var(--text-muted);
  border-radius: 1.6rem 1.6rem 0.9rem 0.9rem;
}

.input-glyph__btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1.4rem;
  height: 1.5rem;
  border-radius: 0.35rem 0.35rem 0 0;
  border: 2px solid transparent;
}

.input-glyph__btn--right {
  top: 0.35rem;
  border-color: #2e9b4a;
  background: rgba(46, 155, 74, 0.15);
}

.input-glyph__btn--middle {
  top: 1.85rem;
  width: 0.55rem;
  height: 0.9rem;
  border-radius: 0.2rem;
  border-color: #d97b1a;
  background: rgba(217, 123, 26, 0.2);
}

.input-glyph__wheel {
  position: absolute;
  left: 50%;
  top: 1.75rem;
  transform: translateX(-50%);
  width: 0.45rem;
  height: 1.1rem;
  border-radius: 0.2rem;
  border: 2px solid #2a7ab8;
  background: rgba(42, 122, 184, 0.15);
}

.input-glyph--trackpad {
  width: 4.5rem;
  height: 2.75rem;
  background: var(--bg-slide);
  border: 2px solid var(--text-muted);
  border-radius: 0.35rem;
}

.input-glyph--pinch .input-glyph__finger:first-child {
  left: 28%;
  top: 42%;
}

.input-glyph--pinch .input-glyph__finger:last-child {
  left: 58%;
  top: 52%;
}

.input-glyph__finger {
  position: absolute;
  left: 42%;
  top: 38%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 2px var(--bg-slide);
}

/* Scavenger preview difficulty tint */
.scavenger-grid--preview .scavenger-item {
  justify-content: center;
  font-size: 0.58rem;
  padding: 0.28rem 0.35rem;
}

.scavenger-item--easy {
  border-left: 3px solid var(--accent-teal);
}

.scavenger-item--medium {
  border-left: 3px solid var(--accent-orange);
}

.scavenger-item--hard {
  border-left: 3px solid var(--accent-purple);
}

@media (max-width: 900px) {
  .onshape-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onshape-violin-layout {
    grid-template-columns: 1fr;
  }

  .view-controls-grid {
    grid-template-columns: 1fr;
  }
}

/* Title slide agenda strip */
.camp-agenda-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
}

/* Three-column objective grid on one slide */
.objectives-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Printable handouts — always light surface (slides 6 & 8) */
.slide-printable.active {
  background: #ffffff !important;
  color: #222222 !important;
}

.slide-printable > h2 {
  color: #046a38 !important;
  text-align: center;
}

.slide-printable .print-subtitle {
  text-align: center;
  font-size: 0.72rem;
  color: #75787b;
  margin: -0.25rem 0 0.65rem;
}

.slide-printable .phase-table-panel,
.slide-printable .camp-cheat-table,
.slide-printable .scavenger-item {
  background: #ffffff;
  border-color: #e6e6e6;
  color: #222222;
}

.slide-printable .camp-cheat-table th {
  color: #75787b;
}

.slide-printable .camp-cheat-table td {
  color: #53565a;
}

.slide-printable .camp-cheat-col-head--teal {
  background: #046a38;
  color: #fff;
}

.slide-printable .camp-cheat-col-head--blue {
  background: #0076a8;
  color: #fff;
}

.slide-printable .scavenger-score {
  color: #046a38;
}

.slide-printable .camp-check-box {
  border-color: #75787b;
  background: #f4f7eb;
}

.camp-cheat-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.camp-cheat-col-head {
  padding: 0.35rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.camp-cheat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--content-panel-shadow);
  border: 1px solid var(--border);
}

.camp-cheat-table th,
.camp-cheat-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.camp-cheat-table th {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--table-header-bg);
}

.camp-cheat-table td:first-child {
  font-weight: 700;
  width: 22%;
}

.scavenger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.scavenger-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.62rem;
  color: var(--text-primary);
  box-shadow: var(--content-panel-shadow);
}

.scavenger-item .camp-check-box {
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0;
}

.camp-check-box {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.12rem;
  border: 2px solid var(--text-muted);
  border-radius: 3px;
  background: var(--bg-slide);
}

.scavenger-score {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.camp-rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-rules-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.camp-rule-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media print {
  .slide-printable.active {
    background: #fff !important;
  }

  .camp-check-box {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 900px) {
  .objectives-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ── PPT real-image helpers ── */
.ppt-img-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.4rem;
}
.ppt-img-panel img,
.ppt-img-hero {
  width: 100%;
  height: auto;
  max-height: 12rem;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.ppt-img-banner {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: block;
  margin-bottom: 0.55rem;
  object-fit: cover;
}
.ppt-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.ppt-photo-grid img {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: block;
}
.ppt-2col-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.ppt-2col-photo-grid img {
  width: 100%;
  height: 6rem;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: block;
}
/* ── SLIDE 3: FIRST Robotics — 4-column PPT-style layout ── */

/* Chevron logo banner — full width, natural aspect ratio */
.first-ppt-banner {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

/* 4-column grid matching the PPT slide */
.first-ppt-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

/* Each column: label + team photo + robot photo */
.first-ppt-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  padding: 0.35rem;
  background: rgba(255,255,255,0.04);
}

.first-ppt-col--fll-jr  { border-top: 3px solid #3aaa35; }
.first-ppt-col--fll     { border-top: 3px solid #d9252e; }
.first-ppt-col--ftc     { border-top: 3px solid #e07b20; }
.first-ppt-col--frc     { border-top: 3px solid #3bb0d5; }

.first-ppt-tools {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.2rem 0.1rem;
  min-height: 1.6rem;
}
.first-ppt-tool-logo {
  height: 1.2rem;
  width: auto;
  max-width: 45%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Team photos — cover fill, slightly more height */
.first-ppt-photo {
  flex: 1.4 1 0;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.15);
}

/* Robot photos — contain so full robot is visible */
.first-ppt-robot {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  background: #0d1117;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.15);
}

/* ── First layout (kept for any future use) ── */
.first-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.65rem;
  align-items: stretch;
}

/* Left column: one card per FIRST program */
.first-programs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

.first-prog-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1 1 0;
  min-height: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.first-prog-card--us {
  border-left-color: var(--accent-teal);
  background: rgba(0, 180, 168, 0.06);
}

.first-prog-badge {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-slide);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  flex-shrink: 0;
  min-width: 3.5rem;
  text-align: center;
  line-height: 1.2;
}

.first-prog-badge--ftc {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

.first-prog-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--text-primary);
}

.first-prog-grades {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-teal);
  margin-left: 0.4rem;
  background: rgba(0, 180, 168, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
}

.first-prog-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* Right column: stacked competition photos that fill column height */
.first-photos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  overflow: hidden;
}

.first-photos img {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: block;
}
/* ── EDP image+steps layout ── */
.edp-image-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.65rem;
  align-items: stretch;
}

/* EDP diagram panel fills full column height */
.edp-img-panel {
  min-height: 0;
  align-self: stretch;
}
.edp-img-panel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
/* ── CAD intro layout ── */
.cad-intro-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-rows: 1fr;
  gap: 0.65rem;
  align-items: stretch;
  align-content: stretch;
}

/* ── Left hero panel ── */
.cad-hero-panel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1117;
  min-height: 0;
  display: flex;
  align-items: stretch;
}
.cad-hero-panel--light {
  background: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.12);
}
.cad-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.cad-hero-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  padding: 0.28rem 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Right content column ── */
.cad-content-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

/* Definition card */
.cad-def-card {
  background: linear-gradient(135deg, rgba(30,60,114,0.5) 0%, rgba(42,82,152,0.4) 100%);
  border: 1px solid rgba(74,144,226,0.4);
  border-left: 4px solid #4a90e2;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  flex-shrink: 0;
}
.cad-def-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #4a90e2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.cad-def-body {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text, #e8eaf0);
  margin: 0;
}
.cad-def-body em {
  color: #7ecfff;
  font-style: normal;
  font-weight: 600;
}

/* Benefits list */
.cad-benefits-list {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cad-benefit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  flex: 1 1 0;
}
.cad-benefit-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}
.cad-benefit-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.cad-benefit-text strong {
  font-size: 0.8rem;
  color: var(--text, #e8eaf0);
  font-weight: 700;
}
.cad-benefit-text span {
  font-size: 0.7rem;
  color: var(--text-muted, #8892a4);
}

/* Software + today card */
.cad-software-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.cad-software-header {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8892a4);
}
.cad-tools-img {
  width: 100%;
  height: auto;
  max-height: 2.8rem;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  padding: 0.2rem;
}
.cad-today-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,158,74,0.15);
  border: 1px solid rgba(26,158,74,0.4);
  border-radius: 7px;
  padding: 0.35rem 0.6rem;
}
.cad-today-badge--full {
  width: 100%;
  padding: 0.5rem 0.8rem;
}
.cad-onshape-icon {
  height: 1.6rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.cad-today-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.cad-today-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3aaa5a;
}
.cad-today-note {
  font-size: 0.65rem;
  color: var(--text-muted, #8892a4);
}

/* ── Software logos strip (legacy) ── */
.ppt-software-logo {
  width: 100%;
  height: auto;
  max-height: 4rem;
  object-fit: contain;
  border-radius: 6px;
  margin-top: 0.5rem;
  background: #fff;
  padding: 0.3rem;
}
/* ──────────── SLIDE 5 v2: What is CAD? (3-row stacked layout) ──────────── */
.cad-what-layout {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.55rem;
}

/* Definition card */
.cad-what-def {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-left: 4px solid #27ae60;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.cad-what-term {
  color: #4ade80;
  font-weight: 700;
}

.cad-what-cite {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
}

/* 4-step process flow (green chevron arrows) */
.cad-what-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cad-what-step {
  color: #fff;
  padding: 0.6rem 1.1rem 0.6rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  letter-spacing: 0.01em;
}

.cad-step-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  opacity: 0.93;
}

.cad-what-step strong {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  display: block;
}

.cad-what-step span {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.82;
  line-height: 1.3;
  display: block;
}

.cad-what-step--1 {
  background: #1a9e54;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%);
}
.cad-what-step--2 {
  background: #1eb85e;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%, 0.9rem 50%);
  margin-left: -0.2rem;
}
.cad-what-step--3 {
  background: #22cc68;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%, 0.9rem 50%);
  margin-left: -0.2rem;
}
.cad-what-step--4 {
  background: #27e072;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0.9rem 50%);
  margin-left: -0.2rem;
}

/* 2D vs 3D comparison */
.cad-what-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  min-height: 0;
}

.cad-what-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
}

.cad-what-panel-img {
  flex: 1 1 0;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cad-what-panel-img--light {
  background: #f0f0f0;
}

.cad-what-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cad-what-panel-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   STEP-REVEAL SYSTEM — interactive slides with data-steps / data-reveal
   ════════════════════════════════════════════════════════════════════════════ */

/* Hidden by default — revealed by JS adding .step-visible */
.step-item {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(.22,.68,0,1.2),
              transform 0.42s cubic-bezier(.22,.68,0,1.2);
}
.step-item.step-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Progress dots strip */
.step-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: auto;
  padding-top: 0.4rem;
}
.step-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
}
.step-dot--done {
  background: var(--accent-teal);
}
.step-dot--next {
  background: var(--accent-teal);
  opacity: 0.35;
  transform: scale(1.25);
}

/* Hint text inside exec-lead */
.step-hint kbd {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  background: var(--bg-card);
  font-family: inherit;
}

/* ── SLIDE 2: "What is a Robot?" interactive layout ── */
.robot-reveal-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
}

.robot-hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.robot-hero-panel img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.robot-reveal-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
  min-width: 0;       /* prevent text from pushing outside grid column */
  overflow: hidden;
}

/* Definition box — step 1 */
.robot-def-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-teal);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
}
.robot-def-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 0.4rem;
}
.robot-def-box p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}
.robot-def-box p:last-child { margin-bottom: 0; }
.robot-def-sub {
  font-size: 0.86rem !important;
  color: var(--text-muted) !important;
}

/* 2×2 category cards grid — steps 2-5 */
.robot-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr; /* equal rows */
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  align-content: stretch; /* rows fill available height */
}

.robot-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-accent, var(--accent-teal));
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.18);
  min-height: 0; /* allow flex shrink */
}
.robot-cat-card.step-visible {
  transition: opacity 0.42s cubic-bezier(.22,.68,0,1.2),
              transform 0.42s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.2s ease;
}
.robot-cat-card.step-visible:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
  transform: translateY(-3px) !important;
}

/* Card image wrapper with badge overlay */
.robot-cat-img-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 auto;       /* grow to fill card height */
  min-height: 5.5rem;
  max-height: 9rem;
  overflow: hidden;
  background: #0d1117;  /* dark neutral background so contain mode looks intentional */
  display: flex;
  align-items: center;
  justify-content: center;
}
.robot-cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* show FULL image, no cropping */
  display: block;
}
.robot-cat-badge {
  position: absolute;
  top: 0.3rem;
  right: 0.35rem;
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8));
  z-index: 1;
}

/* Card text body — fixed height so image wrapper gets remaining space */
.robot-cat-body {
  padding: 0.55rem 0.75rem 0.65rem;
  flex-shrink: 0; /* keep text area compact; image wrapper grows */
}
.robot-cat-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.28rem;
  color: var(--card-accent, var(--accent-teal));
  text-transform: none;
  letter-spacing: normal;
}
.robot-cat-body p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* ── Scavenger item image ── */
.scav-onshape-img {
  width: 100%;
  height: auto;
  max-height: 13rem;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ── Engineering Design Process ── */
.edp-layout {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-height: 0;
}

/* Each step fills equal height in the flex column */
.edp-step {
  display: grid;
  grid-template-columns: 2rem 1.4rem 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex: 1 1 0;
  min-height: 0;
}

/* This-week callout strip at bottom of edp-layout */
.edp-week-callout {
  background: rgba(0, 180, 168, 0.08);
  border: 1px solid var(--accent-teal);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.edp-week-label {
  color: var(--accent-teal);
  font-weight: 700;
  margin-right: 0.3rem;
}

.edp-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.edp-num--teal   { background: var(--accent-teal); }
.edp-num--blue   { background: var(--accent-blue); }
.edp-num--purple { background: var(--accent-purple); }
.edp-num--orange { background: var(--accent-orange); }

.edp-arrow {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.55;
}
.edp-arrow--loop { color: var(--accent-teal); opacity: 1; font-size: 1.1rem; }

.edp-body {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.edp-body strong { font-size: 1rem; font-weight: 700; white-space: nowrap; min-width: 4.5rem; }
.edp-body span   { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.45; }

/* ── FIRST programs table highlight ── */
.first-row-highlight { background: rgba(0, 180, 168, 0.07); }

/* ── SLIDE 4: 4-column chevron flow (Brainstorm → Sketch → Build → Program) ── */
.edp-chevron-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.edp-proc-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  padding: 0 0.25rem;
  position: relative;
}

/* Chevron headers — clip-path creates the arrow shape */
.edp-proc-head {
  color: #fff;
  padding: 0.5rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.edp-step-icon {
  width: 1.4rem;
  height: 1.4rem;
  opacity: 0.92;
  flex-shrink: 0;
}

.edp-proc-head strong {
  font-size: 0.9rem;
  font-weight: 800;
  display: block;
  line-height: 1.2;
}

.edp-proc-head span {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.85;
  display: block;
  line-height: 1.3;
}

/* First col: flat left, arrow right */
.edp-head--1 {
  background: #8b3fae;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%);
}
/* Middle cols: notch left, arrow right */
.edp-head--2 {
  background: #9b44c0;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%, 0.9rem 50%);
  margin-left: -0.2rem;
}
.edp-head--3 {
  background: #a84ecf;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%, 0.9rem 50%);
  margin-left: -0.2rem;
}
/* Last col: notch left, flat right */
.edp-head--4 {
  background: #b558de;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0.9rem 50%);
  margin-left: -0.2rem;
}

/* Image fills the remaining column height */
.edp-proc-img {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}
.edp-proc-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Two-image stacked variant for Sketch/Design column */
.edp-proc-img--stack {
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-start;
}
.edp-proc-img--stack .edp-stack-top {
  flex: 0 0 auto;
  max-width: 90%;
  max-height: 28%;
  object-fit: contain;
}
.edp-proc-img--stack .edp-stack-bot {
  flex: 1 1 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Bullet list at the bottom of each column */
.edp-proc-list {
  flex-shrink: 0;
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
}
.edp-proc-list li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.18rem;
}

/* ── CAD hero SVG (landscape) ── */
.cad-hero-svg { max-height: 13rem; }

/* ════════════════════════════════════════════════════════════════════════════
   SLIDE 5 — SKETCH-BASED WORKFLOW COLUMN
   ════════════════════════════════════════════════════════════════════════════ */
.cad-workflow-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
}
.cad-workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  flex: 1 1 0;
}
.cad-workflow-step--highlight {
  background: rgba(26,158,74,0.12);
  border-color: rgba(26,158,74,0.35);
}
.cad-workflow-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent, #4a90e2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cad-workflow-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.cad-workflow-body strong {
  font-size: 0.8rem;
  color: var(--text, #e8eaf0);
  font-weight: 700;
}
.cad-workflow-body span {
  font-size: 0.69rem;
  color: var(--text-muted, #8892a4);
  line-height: 1.3;
}
.cad-workflow-arrow {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted, #8892a4);
  line-height: 1;
  padding: 0.1rem 0;
  flex-shrink: 0;
}

/* 4-feature grid (Extrude, Revolve, Sweep, Loft) */
.cad-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  flex: 1 1 0;
  min-height: 0;
}
.cad-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  border-left: 3px solid;
}
.cad-feature--extrude { border-left-color: #4a90e2; }
.cad-feature--revolve { border-left-color: #9b59b6; }
.cad-feature--sweep   { border-left-color: #e67e22; }
.cad-feature--loft    { border-left-color: #27ae60; }
.cad-feature-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.cad-feature div {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.cad-feature strong {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text, #e8eaf0);
  display: block;
}
.cad-feature span {
  font-size: 0.65rem;
  color: var(--text-muted, #8892a4);
  line-height: 1.3;
}

/* ════════════════════════════════════════════════════════════════════════════
   SLIDE 7 — ONSHAPE REGISTRATION
   ════════════════════════════════════════════════════════════════════════════ */
/* ── Registration slide layout ── */
.onshape-reg-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr;
  gap: 0.7rem;
  align-items: stretch;
  align-content: stretch;
}
.slide-exec .slide-main > .onshape-reg-layout { flex: 1 1 auto; min-height: 0; }

/* ── Left: step cards ── */
.onshape-reg-steps {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-height: 0;
}

.onshape-reg-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid #4a90e2;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  flex: 1 1 0;
  transition: border-left-color 0.2s;
}

.onshape-reg-step--done {
  border-left-color: #27ae60;
  background: rgba(39,174,96,0.07);
}

.onshape-reg-num {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #4a90e2;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onshape-reg-num--green { background: #27ae60; }

.onshape-reg-stepicon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  color: rgba(255,255,255,0.5);
}

.onshape-reg-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.onshape-reg-body strong {
  font-size: 1rem;
  font-weight: 700;
  color: #e8eaf0;
  line-height: 1.3;
}

.onshape-reg-body span {
  font-size: 0.82rem;
  color: #8892a4;
  line-height: 1.35;
}

/* Clickable, copyable links */
.onshape-reg-link {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #60b4ff;
  background: rgba(74,144,226,0.15);
  border: 1px solid rgba(74,144,226,0.35);
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.05rem 0;
  text-decoration: none;
  cursor: pointer;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}

.onshape-reg-link:hover {
  background: rgba(74,144,226,0.28);
  color: #93cfff;
  text-decoration: underline;
}

/* ── Right info column ── */
.onshape-reg-info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}

.onshape-reg-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(26,158,74,0.12);
  border: 1px solid rgba(26,158,74,0.4);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  flex-shrink: 0;
}

.onshape-reg-logo {
  height: 2.2rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.onshape-reg-plan {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.onshape-reg-plan-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #3aaa5a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.onshape-reg-plan-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}

.onshape-reg-perks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 0;
  min-height: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.onshape-reg-perk {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  flex: 1 1 0;
}

.reg-perk-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
}

.onshape-reg-perk div {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.onshape-reg-perk strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e8eaf0;
  line-height: 1.25;
}

.onshape-reg-perk span {
  font-size: 0.74rem;
  color: #8892a4;
  line-height: 1.3;
}

.onshape-reg-perk--renew strong { color: #93c5fd; }

.onshape-reg-tip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,200,0,0.08);
  border: 1px solid rgba(255,200,0,0.25);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.69rem;
  color: #8892a4;
}

.onshape-reg-tip-label {
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0b429;
  flex-shrink: 0;
  background: rgba(240,180,41,0.15);
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   SLIDE 8 — ONSHAPE INTERFACE DIAGRAM
   ════════════════════════════════════════════════════════════════════════════ */
.onshape-ui-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr;
  gap: 0.7rem;
  align-items: stretch;
  align-content: stretch;
}
.slide-exec .slide-main > .onshape-ui-layout { flex: 1 1 auto; min-height: 0; }

/* Real interface image */
.onshape-ui-img-wrap {
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(0,188,212,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.onshape-ui-real-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Interface diagram */
.onshape-ui-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 0;
  border: 2px solid rgba(0,188,212,0.3);
  border-radius: 10px;
  overflow: hidden;
}
.onshape-ui-zone {
  padding: 0.35rem 0.6rem;
}
.onshape-ui-zone-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
}
.onshape-ui-zone--toolbar {
  background: rgba(0,188,212,0.15);
  border-bottom: 1px solid rgba(0,188,212,0.25);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.onshape-ui-zone-label { color: #00bcd4; }
.onshape-ui-zone-tools {
  font-size: 0.67rem;
  color: var(--text-muted, #8892a4);
  font-family: 'Courier New', monospace;
}
.onshape-ui-mid {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  gap: 0;
}
.onshape-ui-sidebar {
  width: 7rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0,188,212,0.2);
}
.onshape-ui-zone--features {
  flex: 1 1 0;
  border-bottom: 1px solid rgba(0,188,212,0.2);
  background: rgba(255,255,255,0.03);
}
.onshape-ui-tree {
  list-style: none;
  padding: 0.15rem 0.3rem;
  margin: 0;
  font-size: 0.6rem;
  color: var(--text-muted, #8892a4);
  font-family: 'Courier New', monospace;
}
.onshape-ui-tree li { padding: 0.05rem 0; }
.onshape-ui-zone--parts {
  flex-shrink: 0;
  padding: 0.3rem 0.5rem;
  background: rgba(255,255,255,0.02);
}
.onshape-ui-parts-hint {
  font-size: 0.55rem;
  color: var(--text-muted, #8892a4);
  display: block;
  margin-top: 0.1rem;
}
.onshape-ui-viewport {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
}
.onshape-ui-viewcube {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  font-size: 0.55rem;
  font-weight: 800;
  color: #00bcd4;
  background: rgba(0,188,212,0.15);
  border: 1px solid rgba(0,188,212,0.4);
  border-radius: 3px;
  padding: 0.1rem 0.25rem;
}
.onshape-ui-zone-label--center {
  position: absolute;
  bottom: 0.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.55rem;
}
.onshape-ui-model-svg { opacity: 0.85; }
.onshape-ui-zone--tabs {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(0,188,212,0.2);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.onshape-ui-tabs-row {
  display: flex;
  gap: 0.3rem;
}
.onshape-ui-tab {
  font-size: 0.6rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px 4px 0 0;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted, #8892a4);
  border: 1px solid rgba(255,255,255,0.1);
}
.onshape-ui-tab--active {
  background: rgba(0,188,212,0.2);
  color: #00bcd4;
  border-color: rgba(0,188,212,0.4);
}

/* Legend column */
.onshape-ui-legend {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
}
.onshape-ui-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  flex: 1 1 0;
}
.onshape-ui-legend-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #00bcd4;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.onshape-ui-legend-item div {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.onshape-ui-legend-item strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text, #e8eaf0);
}
.onshape-ui-legend-item span {
  font-size: 0.72rem;
  color: var(--text-muted, #8892a4);
  line-height: 1.3;
}
.onshape-ui-tip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,200,0,0.08);
  border: 1px solid rgba(255,200,0,0.2);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.69rem;
  color: var(--text-muted, #8892a4);
}
.onshape-ui-tip-key {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0b429;
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 4px;
}

/* ── Welcome to Onshape — two-column hero layout ── */
.onshape-welcome-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.75rem;
  align-items: center;
}

.onshape-welcome-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--content-panel-shadow);
  min-height: 9rem;
}

.onshape-hero-svg {
  width: 100%;
  max-height: 10rem;
}

.onshape-welcome-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .onshape-welcome-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Scavenger icon card grid ── */
.scavenger-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
}

.scav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  padding: 0.5rem 0.3rem 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--content-panel-shadow);
  transition: transform 0.12s ease;
}

.scav-card.scavenger-item--easy {
  border-bottom: 3px solid var(--accent-teal);
}

.scav-card.scavenger-item--medium {
  border-bottom: 3px solid var(--accent-orange);
}

.scav-card.scavenger-item--hard {
  border-bottom: 3px solid var(--accent-purple);
}

.scav-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scav-icon svg {
  width: 100%;
  height: 100%;
}

.scav-label {
  font-size: 0.54rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .scavenger-icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
  }
  .scav-icon {
    width: 2.2rem;
    height: 2.2rem;
  }
}

/* ── Violin preview row (view controls slides) ── */
.violin-preview-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.violin-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--content-panel-shadow);
  overflow: hidden;
  min-height: 5rem;
}

.violin-preview__label {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vln-svg {
  height: 4rem;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.violin-preview--rotated .vln-svg {
  height: 3.5rem;
  transform-origin: center center;
}

.violin-preview--pan .vln-svg {
  /* straight on — driven by animation below */
}

.violin-preview--zoomed .vln-svg {
  height: 5.5rem;
  margin-top: -1.5rem;
}

/* ════════════════════════════════════════════════
   ANIMATIONS — triggered when slide is .active
   ════════════════════════════════════════════════ */

/* ── Keyframes ── */

/* Violin orbit: rock ±38° with perspective squash */
@keyframes vln-orbit {
  0%   { transform: rotate(0deg)   scaleX(1)    scaleY(1);    }
  20%  { transform: rotate(-38deg) scaleX(0.84) scaleY(0.68); }
  50%  { transform: rotate(0deg)   scaleX(1)    scaleY(1);    }
  80%  { transform: rotate(38deg)  scaleX(0.84) scaleY(0.68); }
  100% { transform: rotate(0deg)   scaleX(1)    scaleY(1);    }
}

/* Violin pan: slide left → right → center */
@keyframes vln-pan {
  0%, 100% { transform: translateX(0);    }
  30%      { transform: translateX(-12px); }
  70%      { transform: translateX(12px);  }
}

/* Violin zoom: subtle scale pulse (already cropped viewBox) */
@keyframes vln-zoom {
  0%, 100% { transform: scale(1)    translateY(0);    }
  50%      { transform: scale(1.14) translateY(-4%); }
}

/* Mouse / trackpad glyph highlight pulse */
@keyframes glyph-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Badge pop-in */
@keyframes badge-pop {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  65%  { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}

/* Card stagger rise */
@keyframes card-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Pill entrance */
@keyframes pill-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Callout fade */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Agenda ticker scroll */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Title slide ── */
.title-slide .pill-row .pill {
  opacity: 0;
}
.title-slide.active .pill-row .pill {
  animation: pill-rise 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.title-slide.active .pill-row .pill:nth-child(1) { animation-delay: 0.25s; }
.title-slide.active .pill-row .pill:nth-child(2) { animation-delay: 0.45s; }
.title-slide.active .pill-row .pill:nth-child(3) { animation-delay: 0.65s; }
.title-slide.active .pill-row .pill:nth-child(4) { animation-delay: 0.85s; }

.title-slide .title-meta {
  opacity: 0;
}
.title-slide.active .title-meta {
  animation: fade-in 0.5s ease both;
}
.title-slide.active .title-meta:nth-of-type(1) { animation-delay: 1.1s; }
.title-slide.active .title-meta:nth-of-type(2) { animation-delay: 1.35s; }

/* Scrolling ticker */
.camp-agenda-ticker {
  overflow: hidden;
  white-space: nowrap;
}
.camp-agenda-ticker::after {
  content: attr(data-ticker-dup);
}
.slide.active .camp-agenda-ticker {
  /* use JS-free duplicate trick via CSS pseudo-content if needed */
}

/* ── Part Studio Interface — badge stagger pop ── */
.onshape-wireframe__badge {
  opacity: 0;
}
.slide.active .onshape-wireframe__badge {
  animation: badge-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.slide.active .onshape-wireframe__badge:nth-child(1) { animation-delay: 0.15s; }
.slide.active .onshape-wireframe__badge:nth-child(2) { animation-delay: 0.30s; }
.slide.active .onshape-wireframe__badge:nth-child(3) { animation-delay: 0.45s; }
.slide.active .onshape-wireframe__badge:nth-child(4) { animation-delay: 0.60s; }
.slide.active .onshape-wireframe__badge:nth-child(5) { animation-delay: 0.75s; }
.slide.active .onshape-wireframe__badge:nth-child(6) { animation-delay: 0.90s; }
.slide.active .onshape-wireframe__badge:nth-child(7) { animation-delay: 1.05s; }

/* ── View Controls — animated violin previews ── */
.slide.active .violin-preview--rotated .vln-svg {
  animation: vln-orbit 3.6s ease-in-out infinite;
  animation-delay: 0.3s;
}
.slide.active .violin-preview--pan .vln-svg {
  animation: vln-pan 4s ease-in-out infinite;
  animation-delay: 0.5s;
}
.slide.active .violin-preview--zoomed .vln-svg {
  animation: vln-zoom 3s ease-in-out infinite;
  animation-delay: 0.7s;
}

/* ── View Controls — input glyph pulse ── */
.slide.active .input-glyph__btn--right {
  animation: glyph-pulse 2s ease-in-out infinite;
}
.slide.active .input-glyph__btn--middle {
  animation: glyph-pulse 2s ease-in-out infinite 0.3s;
}
.slide.active .input-glyph__wheel {
  animation: glyph-pulse 2s ease-in-out infinite 0.6s;
}
.slide.active .input-glyph__finger {
  animation: glyph-pulse 2s ease-in-out infinite;
}

/* ── Scavenger icon grid — stagger card rise ── */
.scav-card {
  opacity: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.slide.active .scav-card {
  animation: card-rise 0.3s ease both;
}
.scav-card:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 1;
  opacity: 1;
}

/* Cards appear row-by-row with stagger when slide is active */
.slide.active .scav-card:nth-child(1)  { animation-delay: 0.08s; }
.slide.active .scav-card:nth-child(2)  { animation-delay: 0.14s; }
.slide.active .scav-card:nth-child(3)  { animation-delay: 0.20s; }
.slide.active .scav-card:nth-child(4)  { animation-delay: 0.26s; }
.slide.active .scav-card:nth-child(5)  { animation-delay: 0.32s; }
.slide.active .scav-card:nth-child(6)  { animation-delay: 0.38s; }
.slide.active .scav-card:nth-child(7)  { animation-delay: 0.44s; }
.slide.active .scav-card:nth-child(8)  { animation-delay: 0.50s; }
.slide.active .scav-card:nth-child(9)  { animation-delay: 0.56s; }
.slide.active .scav-card:nth-child(10) { animation-delay: 0.62s; }
.slide.active .scav-card:nth-child(11) { animation-delay: 0.68s; }
.slide.active .scav-card:nth-child(12) { animation-delay: 0.74s; }
.slide.active .scav-card:nth-child(13) { animation-delay: 0.80s; }
.slide.active .scav-card:nth-child(14) { animation-delay: 0.86s; }
.slide.active .scav-card:nth-child(15) { animation-delay: 0.92s; }
.slide.active .scav-card:nth-child(16) { animation-delay: 0.98s; }
.slide.active .scav-card:nth-child(17) { animation-delay: 1.04s; }
.slide.active .scav-card:nth-child(18) { animation-delay: 1.10s; }
.slide.active .scav-card:nth-child(19) { animation-delay: 1.16s; }
.slide.active .scav-card:nth-child(20) { animation-delay: 1.22s; }

/* ── Objective cards — stagger on active ── */
.objective-card {
  opacity: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.objective-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}
.slide.active .objective-card {
  animation: card-rise 0.35s ease both;
}
.slide.active .objective-card:nth-child(1) { animation-delay: 0.15s; }
.slide.active .objective-card:nth-child(2) { animation-delay: 0.30s; }
.slide.active .objective-card:nth-child(3) { animation-delay: 0.45s; }
.slide.active .objective-card:nth-child(4) { animation-delay: 0.60s; }

/* ── Callout / phase table — fade in ── */
.slide.active .callout-flex,
.slide.active .phase-table-panel,
.slide.active .onshape-ui-def {
  animation: fade-in 0.5s ease both;
  animation-delay: 0.2s;
}

/* ── Welcome hero SVG — monitor glow and cube spin ── */
@keyframes hero-monitor-glow {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.9;  }
}
.slide.active .onshape-hero-svg line {
  animation: hero-monitor-glow 2.8s ease-in-out infinite;
}

/* Wireframe model cube in Part Studio viewport — continuous orbit */
@keyframes wf-cube-orbit {
  0%   { transform: rotateY(0deg) rotateX(0deg);   }
  25%  { transform: rotateY(90deg) rotateX(15deg);  }
  50%  { transform: rotateY(180deg) rotateX(0deg);  }
  75%  { transform: rotateY(270deg) rotateX(-15deg);}
  100% { transform: rotateY(360deg) rotateX(0deg);  }
}

.wf-model-svg {
  transform-origin: 40px 35px;
  transform-style: preserve-3d;
}

/* Simulated cube perspective shift using skew/translate on the polygon groups */
@keyframes wf-cube-shift {
  0%   { transform: skewX(0deg)  translateX(0px);  }
  25%  { transform: skewX(-8deg) translateX(4px);  }
  50%  { transform: skewX(0deg)  translateX(0px);  }
  75%  { transform: skewX(8deg)  translateX(-4px); }
  100% { transform: skewX(0deg)  translateX(0px);  }
}

.slide.active .wf-model-svg {
  animation: wf-cube-shift 5s ease-in-out infinite;
}

/* Pulsing depth lines */
@keyframes wf-depth-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0.2; }
}
.slide.active .wf-model-svg .wf-depth {
  animation: wf-depth-pulse 2.5s ease-in-out infinite;
}
.slide.active .wf-model-svg .wf-back {
  animation: wf-depth-pulse 2.5s ease-in-out infinite 0.5s;
}

/* ── Layout fix: slide-exec + slide-exec-reference grid conflict ──
   deck.css's exec-reference rule wins (2 rows, 0-3-0) and lands exec-lead
   and slide-main in the same row. These 5-class selectors (0-5-0) restore
   the 3-row grid: h2→row1, exec-lead→row2, slide-main→row3. ── */
.slide.slide-exec.slide-exec-reference.slide-body-layout.active {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.slide.slide-exec.slide-exec-reference.slide-body-layout > .slide-main {
  grid-row: 3;
  min-height: 0;
}

/* ── Reduce motion: disable all animations ── */
@media (prefers-reduced-motion: reduce) {
  .scav-card,
  .objective-card,
  .onshape-wireframe__badge,
  .title-slide .pill-row .pill,
  .title-slide .title-meta,
  .vln-svg,
  .input-glyph__btn--right,
  .input-glyph__btn--middle,
  .input-glyph__wheel,
  .input-glyph__finger,
  .onshape-hero-svg line,
  .onshape-hero-svg polygon,
  .wf-model-svg,
  .wf-model-svg .wf-depth,
  .wf-model-svg .wf-back,
  .callout-flex,
  .phase-table-panel,
  .onshape-ui-def {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── How Onshape Works — redesigned ── */
.slide-exec .slide-main > .how-layout { flex: 1 1 auto; min-height: 0; }

.how-layout {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.6rem;
  height: 100%;
}

/* Workflow strip */
.how-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(0,188,212,0.07);
  border: 1px solid rgba(0,188,212,0.2);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  flex-shrink: 0;
}
.how-wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.12rem;
  flex: 1;
}
.how-wf-icon {
  margin-bottom: 0.1rem;
  opacity: 0.85;
}
.how-wf-num {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #00bcd4;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.08rem;
}
.how-wf-num--done { background: #4caf50; }
.how-wf-step strong { font-size: 0.8rem; color: #e0f7fa; font-weight: 700; }
.how-wf-step span   { font-size: 0.61rem; color: #80deea; line-height: 1.35; }
.how-wf-arrow {
  font-size: 1.4rem;
  color: #00bcd4;
  font-weight: 700;
  padding: 0 0.4rem;
  flex-shrink: 0;
  margin-top: -0.5rem;
}

/* 4 Feature cards */
.how-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  min-height: 0;
}
.how-feat {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  min-height: 0;
}
.how-feat--extrude { border-color: rgba(0,188,212,0.4); }
.how-feat--revolve { border-color: rgba(179,136,255,0.4); }
.how-feat--sweep   { border-color: rgba(255,183,77,0.4); }
.how-feat--loft    { border-color: rgba(129,199,132,0.4); }
.how-feat-ppt-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.how-feat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.5rem 0.5rem;
  flex-shrink: 0;
}
.how-feat--extrude .how-feat-text { background: rgba(0,188,212,0.12); }
.how-feat--revolve .how-feat-text { background: rgba(179,136,255,0.12); }
.how-feat--sweep   .how-feat-text { background: rgba(255,183,77,0.12); }
.how-feat--loft    .how-feat-text { background: rgba(129,199,132,0.12); }
.how-feat-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}
.how-feat-desc {
  font-size: 0.66rem;
  color: #ccc;
  line-height: 1.4;
}
.how-feat-examples {
  font-size: 0.61rem;
  color: #999;
  font-style: italic;
}

/* Bottom Onshape strip */
.how-onshape-strip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.28);
  border-radius: 8px;
  padding: 0.42rem 0.85rem;
  flex-shrink: 0;
}
.how-onshape-logo { width: 1.5rem; height: 1.5rem; object-fit: contain; flex-shrink: 0; }
.how-onshape-strip > div { flex: 1; }
.how-onshape-strip strong { font-size: 0.75rem; color: #e0f7fa; display: block; }
.how-onshape-strip span   { font-size: 0.62rem; color: #80deea; }
.how-onshape-perks {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.how-perk {
  background: rgba(0,188,212,0.18);
  border: 1px solid rgba(0,188,212,0.35);
  border-radius: 20px;
  padding: 0.18rem 0.6rem;
  font-size: 0.63rem;
  color: #80ffff;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Scavenger Hunt Intro slide ── */
.slide-exec .slide-main > .scav-intro-layout { flex: 1 1 auto; min-height: 0; }

.scav-intro-layout {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 0.75rem;
  height: 100%;
  align-items: stretch;
}
.scav-intro-card {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.12);
}
.scav-intro-card--field   { background: linear-gradient(160deg, #0d2137 0%, #0a3550 100%); }
.scav-intro-card--find    { background: linear-gradient(160deg, #1a2a14 0%, #1e3a18 100%); }
.scav-intro-card--comment { background: linear-gradient(160deg, #12203a 0%, #0e2a45 100%); }

.scav-intro-card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.25);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.scav-intro-card-head svg { opacity: 0.85; flex-shrink: 0; }

/* Field panel */
.scav-field-scene {
  padding: 0;
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}
.scav-field-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.scav-field-link-box {
  margin: 0.5rem 0.7rem 0.65rem;
  background: rgba(0,188,212,0.15);
  border: 1px solid rgba(0,188,212,0.4);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  flex-shrink: 0;
}
.scav-field-link-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: #90e0ef;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.scav-field-link {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: #00e5ff;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.4;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}
.scav-field-link:hover { text-decoration: underline; color: #80ffff; }

/* Find panel */
.scav-intro-body {
  font-size: 0.73rem;
  color: #c8e6c9;
  line-height: 1.5;
  padding: 0.55rem 0.75rem 0.3rem;
  flex-shrink: 0;
}
.scav-intro-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.75rem;
}
.scav-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.scav-badge--easy   { background: #388e3c; color: #e8f5e9; }
.scav-badge--medium { background: #f57c00; color: #fff3e0; }
.scav-badge--hard   { background: #c62828; color: #ffebee; }
.scav-badge-example {
  font-size: 0.67rem;
  color: #a5d6a7;
  line-height: 1.4;
}
.scav-intro-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.55rem 0.75rem 0.65rem;
  background: rgba(255,213,79,0.1);
  border: 1px solid rgba(255,213,79,0.3);
  border-radius: 7px;
  padding: 0.45rem 0.55rem;
  font-size: 0.67rem;
  color: #fff9c4;
  line-height: 1.45;
  flex-shrink: 0;
}
.scav-intro-tip svg { flex-shrink: 0; margin-top: 1px; }

/* Comment panel */
.scav-comment-steps {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.scav-comment-step {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.scav-step-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #00bcd4;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}
.scav-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.scav-step-body strong {
  font-size: 0.76rem;
  color: #e0f7fa;
  font-weight: 700;
}
.scav-step-body span {
  font-size: 0.65rem;
  color: #80d8ff;
  line-height: 1.4;
}
.scav-comment-shortcut {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0.7rem 0.6rem;
  font-size: 0.63rem;
  color: #80deea;
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.25);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.scav-comment-shortcut svg { flex-shrink: 0; }

/* ── View Controls — Onshape link bar ── */
.vm-onshape-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.3rem 1rem;
  background: rgba(0,188,212,0.12);
  border: 1px solid rgba(0,188,212,0.3);
  border-radius: 7px;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  color: #80d8ff;
  flex-shrink: 0;
}
.vm-onshape-bar svg { opacity: 0.8; flex-shrink: 0; }
.vm-onshape-bar span { color: #80deea; }
.vm-onshape-link {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: #00e5ff;
  text-decoration: none;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}
.vm-onshape-link:hover { text-decoration: underline; color: #80ffff; }

/* ── View Controls — merged Mouse + Trackpad slide ── */
.view-merged-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  align-items: stretch;
}
.view-merged-panel {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #c8c8c8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.vm-tabbar {
  display: flex;
  flex-shrink: 0;
}
.vm-tab {
  flex: 1;
  padding: 0.45rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: default;
  user-select: none;
}
.vm-tab--on {
  background: #00bcd4;
  color: #fff;
}
.vm-tab--off {
  background: #e0f7fa;
  color: #555;
}
.vm-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  flex: 1;
}
.vm-table thead th {
  padding: 0.4rem 0.2rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
.vm-table thead th:last-child { border-right: none; }
.vm-row-icons td {
  padding: 0.6rem 0.15rem;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  height: 30%;
}
.vm-row-icons td:last-child { border-right: none; }
.vm-row-cmd td {
  padding: 0.4rem 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  color: #333;
  line-height: 1.55;
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
  height: 20%;
}
.vm-row-cmd td:last-child { border-right: none; }
.vm-row-cmd em { color: #777; font-size: 0.64rem; }
.vm-row-cmd strong { font-size: 0.74rem; }
.vm-row-vln td {
  padding: 0.5rem 0.2rem;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #eeeeee;
  height: 35%;
  overflow: hidden;
}
.vm-row-vln td:last-child { border-right: none; }

/* ── Violin animations ── */
/* col 1: rotate – oscillate around Y axis */
@keyframes vm-vln-rotate {
  0%   { transform: perspective(200px) rotateY(-35deg) scale(0.9); }
  50%  { transform: perspective(200px) rotateY(35deg)  scale(0.9); }
  100% { transform: perspective(200px) rotateY(-35deg) scale(0.9); }
}
/* col 2: pan – slide left/right keeping tilt */
@keyframes vm-vln-pan {
  0%   { transform: rotate(-18deg) translateX(-18px); }
  50%  { transform: rotate(-18deg) translateX(18px); }
  100% { transform: rotate(-18deg) translateX(-18px); }
}
/* col 3: zoom – pulse bigger/smaller */
@keyframes vm-vln-zoom {
  0%   { transform: scale(0.55); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(0.55); }
}
.vm-row-vln td:nth-child(1) svg {
  animation: vm-vln-rotate 2.8s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}
.vm-row-vln td:nth-child(2) svg {
  animation: vm-vln-pan 2.2s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}
.vm-row-vln td:nth-child(3) svg {
  animation: vm-vln-zoom 2.2s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE A — Learning to Think in 3D
   ══════════════════════════════════════════════════════════════════════════ */
.t3d-layout {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 0.75rem;
  height: 100%;
}

/* Left panel — color-coded legend */
.t3d-legend {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  height: 100%;
}
.t3d-legend-card {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: rgba(255,255,255,0.04);
  border-left: 4px solid;
  flex: 1;
  min-height: 0;
}
.t3d-legend-card.t3d-c1 { border-color: #64b5f6; }
.t3d-legend-card.t3d-c2 { border-color: #81c784; }
.t3d-legend-card.t3d-c3 { border-color: #ffb74d; }
.t3d-legend-card.t3d-c4 { border-color: #ef9a9a; }
.t3d-legend-card.t3d-c5 { border-color: #ce93d8; }
.t3d-legend-num {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  margin-top: 0.05rem;
}
.t3d-legend-card.t3d-c1 .t3d-legend-num { background: #64b5f6; }
.t3d-legend-card.t3d-c2 .t3d-legend-num { background: #81c784; }
.t3d-legend-card.t3d-c3 .t3d-legend-num { background: #ffb74d; }
.t3d-legend-card.t3d-c4 .t3d-legend-num { background: #ef9a9a; }
.t3d-legend-card.t3d-c5 .t3d-legend-num { background: #ce93d8; }
.t3d-legend-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-height: 0;
}
.t3d-legend-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.t3d-legend-desc {
  font-size: 0.6rem;
  color: #b0bec5;
  line-height: 1.4;
}

/* Bottom strip inside screenshot panel */
.t3d-how-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  padding: 0.35rem 0.7rem;
  background: rgba(0,188,212,0.12);
  border-top: 1px solid rgba(0,188,212,0.25);
  flex-shrink: 0;
}
.t3d-how-step {
  font-size: 0.62rem;
  color: #e0e0e0;
  white-space: nowrap;
}
.t3d-how-step strong { color: #00bcd4; }
.t3d-how-step em { color: #fff; font-style: normal; font-weight: 600; }
.t3d-how-arrow {
  font-size: 0.65rem;
  color: #00bcd4;
  font-weight: 700;
}

/* Right panel — screenshot with framed background to fill panel */
.t3d-screenshot {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0d1b2a;
  border-radius: 10px;
  border: 1px solid rgba(0,188,212,0.25);
  overflow: hidden;
}
.t3d-ppt-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: center center;
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE B — 4 Features in Action
   ══════════════════════════════════════════════════════════════════════════ */
.feat-act-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0.6rem;
  height: 100%;
}

/* Workflow header spanning all 4 feature columns */
.feat-act-workflow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0,188,212,0.06);
  border-radius: 8px;
  border: 1px solid rgba(0,188,212,0.2);
}
.feat-wf-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.feat-wf-step.feat-wf-sketch  { border-color: rgba(0,188,212,0.35); }
.feat-wf-step.feat-wf-pick    { border-color: rgba(179,136,255,0.35); }
.feat-wf-step.feat-wf-result  { border-color: rgba(129,199,132,0.35); }
.feat-wf-num {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  flex-shrink: 0;
}
.feat-wf-sketch .feat-wf-num  { background: #00bcd4; }
.feat-wf-pick   .feat-wf-num  { background: #b388ff; }
.feat-wf-result .feat-wf-num  { background: #81c784; }
.feat-wf-text {
  font-size: 0.66rem;
  color: #cfd8dc;
  white-space: nowrap;
}
.feat-wf-text strong { color: #fff; }
.feat-wf-arrow {
  font-size: 1rem;
  color: #00bcd4;
  font-weight: 700;
  opacity: 0.7;
}
.feat-act-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid;
  padding: 0.55rem 0.5rem 0.45rem;
  overflow: hidden;
  min-height: 0;
}
.feat-act-card.feat-extrude  { border-color: rgba(0,188,212,0.3);   background: rgba(0,188,212,0.08); }
.feat-act-card.feat-revolve  { border-color: rgba(179,136,255,0.3); background: rgba(179,136,255,0.08); }
.feat-act-card.feat-sweep    { border-color: rgba(255,183,77,0.3);  background: rgba(255,183,77,0.08); }
.feat-act-card.feat-loft     { border-color: rgba(129,199,132,0.3); background: rgba(129,199,132,0.08); }

.feat-act-svg {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-act-svg svg {
  width: 100%;
  max-height: 7rem;
}
/* Real PPT screenshots for Extrude card — stacked vertically */
.feat-act-imgs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.feat-act-dialog-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 4px;
}
.feat-act-result-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
}
/* Single full image (Revolve/Sweep/Loft): only child fills the whole area */
.feat-act-imgs > img:only-child {
  flex: 1;
}
.feat-act-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin: 0.3rem 0 0.15rem;
  letter-spacing: 0.04em;
}
.feat-act-card.feat-extrude  .feat-act-name { color: #00bcd4; }
.feat-act-card.feat-revolve  .feat-act-name { color: #b388ff; }
.feat-act-card.feat-sweep    .feat-act-name { color: #ffb74d; }
.feat-act-card.feat-loft     .feat-act-name { color: #81c784; }
.feat-act-analogy {
  font-size: 0.62rem;
  font-style: italic;
  color: #90a4ae;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}
.feat-act-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.feat-act-steps li {
  font-size: 0.6rem;
  color: #cfd8dc;
  display: flex;
  gap: 0.3rem;
  line-height: 1.3;
}
.feat-act-steps li::before {
  content: attr(data-n);
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-act-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin-top: auto;
}
.feat-act-badge {
  font-size: 0.56rem;
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
  color: #000;
  font-weight: 600;
}
.feat-extrude .feat-act-badge  { background: #00bcd4; }
.feat-revolve .feat-act-badge  { background: #b388ff; }
.feat-sweep   .feat-act-badge  { background: #ffb74d; }
.feat-loft    .feat-act-badge  { background: #81c784; }

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE C — Create Your First Document
   ══════════════════════════════════════════════════════════════════════════ */
.newdoc-layout {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.65rem;
  height: 100%;
}
.newdoc-steps-row {
  display: flex;
  gap: 0.5rem;
}
.newdoc-step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(0,188,212,0.18);
  padding: 0.5rem 0.4rem;
  gap: 0.3rem;
}
.newdoc-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #00bcd4;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.newdoc-step-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.newdoc-step-desc {
  font-size: 0.62rem;
  color: #b0bec5;
  line-height: 1.35;
}

/* Default geometry panel */
.newdoc-geo-panel {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(0,188,212,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.newdoc-geo-header {
  background: rgba(0,188,212,0.18);
  padding: 0.35rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #00bcd4;
  letter-spacing: 0.02em;
}
.newdoc-geo-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.85rem;
  padding: 0.55rem 0.8rem;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.newdoc-geo-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.newdoc-geo-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: #cfd8dc;
  line-height: 1.4;
}
.newdoc-geo-row > span {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.newdoc-geo-row strong {
  color: #fff;
  font-size: 0.88rem;
}
/* Real screenshot replacing SVG planes diagram */
.newdoc-planes-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  border-radius: 6px;
}
.newdoc-geo-rows {
  align-self: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE D — Exercise 1: Draw & Extrude a Star
   ══════════════════════════════════════════════════════════════════════════ */
.star-ex-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.75rem;
  height: 100%;
}
.star-ex-steps {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  height: 100%;
}
.star-ex-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(0,188,212,0.15);
  padding: 0.5rem 0.65rem;
}
.star-ex-num {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #00bcd4;
  color: #000;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.star-ex-text {
  font-size: 0.79rem;
  color: #e0e0e0;
  line-height: 1.45;
}
.star-ex-text strong { color: #fff; }

.star-ex-visual {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  min-height: 0;
}
.star-ex-img-pair {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.star-ex-img-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.star-ex-sketch-label {
  font-size: 0.62rem;
  color: #455a64;
  background: rgba(0,188,212,0.12);
  padding: 0.18rem 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.star-ex-ppt-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.star-ex-tip2 {
  background: rgba(255,183,77,0.08);
  border-color: rgba(255,183,77,0.3);
}
.star-ex-tip2 strong {
  color: #ffb74d;
  font-style: normal;
}
.star-ex-tip {
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.3);
  border-radius: 8px;
  padding: 0.38rem 0.65rem;
  font-size: 0.72rem;
  color: #b0bec5;
  font-style: italic;
  line-height: 1.35;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.star-ex-tip strong { color: #00bcd4; font-style: normal; }

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE E — Exercises 2 & 3
   ══════════════════════════════════════════════════════════════════════════ */
.dex-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  height: 100%;
}
.dex-panel {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 0;
}
.dex-panel-header {
  padding: 0.38rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #000;
}
.dex-panel.dex-orange .dex-panel-header { background: #ffb74d; }
.dex-panel.dex-blue   .dex-panel-header { background: #64b5f6; }
.dex-panel-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  grid-template-rows: 1fr auto;
  gap: 0.4rem 0.55rem;
  background: rgba(255,255,255,0.04);
  padding: 0.5rem 0.6rem;
  min-height: 0;
}
.dex-steps {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  height: 100%;
}
.dex-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: #cfd8dc;
  line-height: 1.35;
  padding: 0.1rem 0;
}
.dex-step-num {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dex-panel.dex-orange .dex-step-num { background: rgba(255,183,77,0.35); }
.dex-panel.dex-blue   .dex-step-num { background: rgba(100,181,246,0.35); }
.dex-step strong { color: #fff; }
.dex-result-badge {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.63rem;
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
  line-height: 1.35;
  font-style: italic;
}
.dex-panel.dex-orange .dex-result-badge { background: rgba(255,183,77,0.15); color: #ffb74d; border: 1px solid rgba(255,183,77,0.3); }
.dex-panel.dex-blue   .dex-result-badge { background: rgba(100,181,246,0.15); color: #90caf9; border: 1px solid rgba(100,181,246,0.3); }
.dex-ppt-wrap {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
.dex-ppt-label {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  letter-spacing: 0.02em;
}
.dex-panel.dex-orange .dex-ppt-label { background: rgba(255,183,77,0.85); color: #000; }
.dex-panel.dex-blue   .dex-ppt-label { background: rgba(100,181,246,0.85); color: #000; }
.dex-ppt-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE A — What is NUsights?
   ══════════════════════════════════════════════════════════════════════════ */
.nus-what-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}
.nus-what-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  height: 100%;
}
.nus-what-hero {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.28);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  flex-shrink: 0;
}
.nus-hero-logo {
  height: 2.8rem;
  object-fit: contain;
  flex-shrink: 0;
}
.nus-tagline-main {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f97316;
  letter-spacing: 0.01em;
}
.nus-tagline-sub {
  display: block;
  font-size: 0.72rem;
  color: #b0bec5;
  line-height: 1.4;
}
.nus-what-body {
  font-size: 0.84rem;
  color: #cfd8dc;
  line-height: 1.6;
  margin: 0;
}
.nus-what-body strong { color: #fff; }
.nus-audience-pills {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-height: 0;
}
.nus-aud-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.84rem;
  color: #cfd8dc;
  line-height: 1.4;
}
.nus-aud-pill > span { font-size: 1.6rem; flex-shrink: 0; }
.nus-aud-pill strong { color: #fff; font-size: 0.9rem; display: block; margin-bottom: 0.05rem; }
.nus-aud-student { background: rgba(100,181,246,0.1); border: 1px solid rgba(100,181,246,0.25); }
.nus-aud-coach   { background: rgba(249,115,22,0.1);  border: 1px solid rgba(249,115,22,0.25); }
.nus-aud-team    { background: rgba(129,199,132,0.1); border: 1px solid rgba(129,199,132,0.25); }
.nus-badge-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.nus-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 0.18rem 0.55rem;
  font-size: 0.62rem;
  color: #b0bec5;
}
/* Right column — dashboard screenshot */
.nus-what-right {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nus-screenshot-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(249,115,22,0.3);
  background: #12082a;
}
.nus-screenshot-bar {
  background: #2a2a3e;
  padding: 0.28rem 0.6rem;
  font-size: 0.58rem;
  color: #78909c;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.nus-screenshot-bar span {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #555; display: inline-block; flex-shrink: 0;
}
.nus-screenshot-bar span:nth-child(1) { background: #ff5f57; }
.nus-screenshot-bar span:nth-child(2) { background: #febc2e; }
.nus-screenshot-bar span:nth-child(3) { background: #28c840; }
.nus-main-screenshot {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
}
/* Website URL link */
.nus-url-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(249,115,22,0.08));
  border: 1.5px solid rgba(249,115,22,0.55);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f97316;
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.nus-url-link:hover {
  background: linear-gradient(135deg, rgba(249,115,22,0.28), rgba(249,115,22,0.15));
  border-color: rgba(249,115,22,0.9);
}

/* Quote strip */
.nus-quote-strip {
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-style: italic;
  color: #fb923c;
  text-align: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE B — Register for NUsights
   ══════════════════════════════════════════════════════════════════════════ */
.nus-reg-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
}
.nus-reg-steps {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  height: 100%;
}
.nus-reg-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 9px;
  padding: 0.45rem 0.65rem;
}
.nus-reg-num {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nus-reg-body {
  font-size: 0.72rem;
  color: #cfd8dc;
  line-height: 1.4;
}
.nus-reg-body strong { color: #fff; }
.nus-reg-body em { color: #fb923c; font-style: normal; }
/* Right column — screenshot + paths */
.nus-reg-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  min-height: 0;
}
.nus-reg-shot-frame {
  flex: 1;
  min-height: 0;
  background: #f5f0eb;
}
.nus-reg-screenshot {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
}
.nus-paths-row {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.nus-path-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
  padding: 0.38rem 0.5rem;
}
.nus-path-icon { font-size: 1.1rem; flex-shrink: 0; }
.nus-path-title { font-size: 0.64rem; font-weight: 700; color: #fff; }
.nus-path-desc  { font-size: 0.56rem; color: #90a4ae; line-height: 1.3; }
.nus-path-student { background: rgba(100,181,246,0.1); border: 1px solid rgba(100,181,246,0.3); }
.nus-path-coach   { background: rgba(249,115,22,0.1);  border: 1px solid rgba(249,115,22,0.3); }
.nus-path-solo    { background: rgba(129,199,132,0.1); border: 1px solid rgba(129,199,132,0.3); }
.nus-orgcode-tip {
  background: rgba(249,115,22,0.1);
  border: 1.5px solid rgba(249,115,22,0.4);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  color: #cfd8dc;
  line-height: 1.5;
  flex-shrink: 0;
}
.nus-orgcode-value {
  color: #f97316;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-family: monospace;
}
.nus-orgcode-label {
  display: inline-block;
  background: #f97316;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-right: 0.35rem;
  letter-spacing: 0.04em;
}
.nus-warning-strip {
  background: rgba(255,183,77,0.08);
  border: 1px solid rgba(255,183,77,0.3);
  border-radius: 7px;
  padding: 0.35rem 0.75rem;
  font-size: 0.67rem;
  color: #ffb74d;
  font-style: italic;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE C — FTC Module Walkthrough
   ══════════════════════════════════════════════════════════════════════════ */
.nus-walk-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
}
.nus-walk-pane {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  min-height: 0;
}
.nus-walk-label {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nus-walk-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.nus-walk-blue   { border-color: rgba(100,181,246,0.4); }
.nus-walk-purple { border-color: rgba(179,136,255,0.4); }
.nus-walk-teal   { border-color: rgba(0,188,212,0.4); }
.nus-walk-blue   .nus-walk-label { background: rgba(100,181,246,0.2); color: #90caf9; }
.nus-walk-purple .nus-walk-label { background: rgba(179,136,255,0.2); color: #ce93d8; }
.nus-walk-teal   .nus-walk-label { background: rgba(0,188,212,0.2);   color: #80deea; }
/* Feature chips row */
.nus-walk-chips {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  flex-shrink: 0;
}
.nus-walk-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}
.nus-chip-violet { background: rgba(149,117,205,0.12); color: #ce93d8; border-color: rgba(149,117,205,0.35); }
.nus-chip-amber  { background: rgba(255,183,77,0.12);  color: #ffb74d; border-color: rgba(255,183,77,0.35); }
.nus-chip-green  { background: rgba(129,199,132,0.12); color: #81c784; border-color: rgba(129,199,132,0.35); }
.nus-chip-blue2  { background: rgba(33,150,243,0.12);  color: #64b5f6; border-color: rgba(33,150,243,0.35); }
.nus-chip-teal2  { background: rgba(0,188,212,0.12);   color: #4dd0e1; border-color: rgba(0,188,212,0.35); }
.nus-chip-orange { background: rgba(249,115,22,0.12);  color: #fb923c; border-color: rgba(249,115,22,0.35); }
/* Hardware workflow strip */
.nus-hw-strip {
  background: rgba(0,188,212,0.08);
  border: 1px solid rgba(0,188,212,0.25);
  border-radius: 8px;
  padding: 0.38rem 0.85rem;
  font-size: 0.68rem;
  color: #b0bec5;
  flex-shrink: 0;
}
.nus-hw-strip strong { color: #00bcd4; }
.nus-hw-strip code { background: rgba(255,255,255,0.1); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.65rem; color: #80deea; }
/* Wire slide-main to column layout for nus slides */
.slide-exec .slide-main > .nus-what-layout,
.slide-exec .slide-main > .nus-reg-layout,
.slide-exec .slide-main > .nus-walk-layout { flex: 1 1 auto; min-height: 0; }

/* hw-strip spans all 3 cols in walk layout */
.nus-walk-layout + .nus-hw-strip { grid-column: 1 / -1; }

/* ════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES — robotics.css hardcoded whites
   ════════════════════════════════════════════════════════ */

/* ── CAD What slide ── */
[data-theme="light"] .cad-what-def    { color: #37474f; }
[data-theme="light"] .cad-what-cite   { color: rgba(0,0,0,0.45); }
[data-theme="light"] .cad-what-panel-label { color: rgba(0,0,0,0.5); }

/* ── 4 Features in Action slide ── */
[data-theme="light"] .feat-wf-step {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .feat-wf-text          { color: #37474f; }
[data-theme="light"] .feat-wf-text strong   { color: #1a1a1a; }
[data-theme="light"] .feat-act-analogy      { color: #546e7a; }
[data-theme="light"] .feat-act-steps li     { color: #37474f; }
[data-theme="light"] .feat-act-steps li::before {
  background: rgba(0,0,0,0.12);
  color: #1a1a1a;
}
[data-theme="light"] .feat-act-card {
  background: rgba(0,0,0,0.025);
}

/* ── Exercise 1 (Star) slide ── */
[data-theme="light"] .star-ex-step {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,188,212,0.3);
}
[data-theme="light"] .star-ex-text          { color: #37474f; }
[data-theme="light"] .star-ex-text strong   { color: #1a1a1a; }

/* ── Exercises 2 & 3 slide (dex-*) ── */
[data-theme="light"] .dex-step              { color: #37474f; }
[data-theme="light"] .dex-step strong       { color: #1a1a1a; }
[data-theme="light"] .dex-step-num {
  background: rgba(0,0,0,0.12);
  color: #1a1a1a;
}
[data-theme="light"] .dex-panel.dex-orange .dex-step-num { background: rgba(230,126,34,0.25); color: #7f4000; }
[data-theme="light"] .dex-panel.dex-blue   .dex-step-num { background: rgba(66,165,245,0.25); color: #0d47a1; }

/* ── Create Document slide (newdoc-*) ── */
[data-theme="light"] .newdoc-step-card {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,188,212,0.25);
}
[data-theme="light"] .newdoc-step-title     { color: #1a1a1a; }
[data-theme="light"] .newdoc-geo-panel {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,188,212,0.25);
}
[data-theme="light"] .newdoc-geo-row        { color: #37474f; }
[data-theme="light"] .newdoc-geo-row strong { color: #1a1a1a; }

/* ── 3D Simulator how-to (t3d-*) ── */
[data-theme="light"] .t3d-how-step          { color: #37474f; }
[data-theme="light"] .t3d-how-step em       { color: #1a1a1a; }

/* ── NUSIGHTS What slide (nus-what-*) ── */
[data-theme="light"] .nus-what-body         { color: #37474f; }
[data-theme="light"] .nus-what-body strong  { color: #1a1a1a; }
[data-theme="light"] .nus-aud-pill          { color: #37474f; }
[data-theme="light"] .nus-aud-pill strong   { color: #1a1a1a; }
[data-theme="light"] .nus-badge {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.15);
  color: #37474f;
}

/* ── NUSIGHTS Registration slide (nus-reg-*) ── */
[data-theme="light"] .onshape-reg-stepicon  { color: rgba(0,0,0,0.4); }
[data-theme="light"] .onshape-reg-body      { color: #37474f; }
[data-theme="light"] .onshape-reg-body strong { color: #1a1a1a; }
[data-theme="light"] .onshape-reg-perk strong { color: #1a1a1a; }
[data-theme="light"] .nus-reg-body          { color: #37474f; }
[data-theme="light"] .nus-reg-body strong   { color: #1a1a1a; }
[data-theme="light"] .nus-path-title        { color: #1a1a1a; }
[data-theme="light"] .nus-orgcode-tip       { color: #37474f; }

/* ── NUSIGHTS hardware strip ── */
[data-theme="light"] .nus-hw-strip          { color: #546e7a; }
[data-theme="light"] .nus-hw-strip code     { background: rgba(0,0,0,0.08); color: #0097a7; }

/* ── CAD feature cards ── */
[data-theme="light"] .cad-feature {
  background: rgba(0,0,0,0.025);
  border-color: rgba(0,0,0,0.12);
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE OVERRIDES  (max-width: 768px)
   All rules below are additive — desktop layout is unchanged above this point.
   ════════════════════════════════════════════════════════════════════════════ */

/* Fix 1: Fixed-width layout overflow — allow slides to scroll on small screens */
@media (max-width: 768px) {
  .deck {
    height: auto;
    overflow: visible;
  }
  .slide {
    overflow-y: auto;
    height: auto;
    min-height: 100svh;
  }
}

/* Fix 2: Two-column grids collapse to single column */
@media (max-width: 768px) {
  .lesson-layout,
  .d3-overview-layout,
  .d3-sim-layout,
  .d3-editor-layout,
  .d3-course-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .lesson-left, .lesson-right,
  .d3-overview-left, .d3-overview-right,
  .d3-sim-left, .d3-sim-right,
  .d3-editor-left, .d3-editor-right,
  .d3-course-left, .d3-course-right {
    width: 100%;
    min-width: 0;
  }
}

/* Fix 3: Multi-column objective/PPT grids use auto-fill columns */
@media (max-width: 768px) {
  .first-ppt-4col,
  [class*="first-ppt-"] {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .scav-icon-grid,
  .scav-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* Fix 4: Fixed pixel widths on PPT panels */
@media (max-width: 768px) {
  .ppt-img-panel,
  .ppt-photo-grid,
  .ppt-2col-photo-grid {
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column;
  }
}

/* Fix 5: Font sizes too large for small screens */
@media (max-width: 768px) {
  .slide h1,
  .title-slide h1 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
    line-height: 1.2;
  }
  .slide h2 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
}

/* Fix 6: Agenda ticker height clipping */
@media (max-width: 768px) {
  .camp-agenda-ticker {
    font-size: 0.7rem;
    height: auto;
    min-height: 1.8em;
    white-space: nowrap;
    overflow: hidden;
  }
}

/* Fix 7: Navigation controls too small for touch (WCAG 2.5.5 — 44×44px minimum) */
@media (max-width: 768px) {
  .deck-toolbar-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .deck-toolbar {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }
}

/* Fix 8: Tables without horizontal scroll */
@media (max-width: 768px) {
  .view-merged-layout {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .vm-table {
    min-width: 500px;
  }
}

/* Fix 9: Images not responsive inside PPT panels */
@media (max-width: 768px) {
  .ppt-img-panel img,
  .ppt-photo-grid img,
  .ppt-2col-photo-grid img,
  [class*="ppt-"] img {
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: cover;
  }
}

/* ============================================================
   ORIENTATION — portrait vs landscape on mobile
   ============================================================ */

/* PORTRAIT */
@media (max-width: 768px) and (orientation: portrait) {
  .slide.active {
    min-height: 100svh;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .slide h1,
  .title-slide h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .slide h2 { font-size: clamp(1.15rem, 5.5vw, 1.6rem); }

  /* collapse to single column in portrait */
  .rbt-two-col,
  .rbt-grid,
  .day-grid,
  .ppt-2col-photo-grid,
  .ppt-photo-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }

  .cad-hero-svg { max-height: 10rem; }
  .diagram-hero { max-height: 40svh; }
}

/* LANDSCAPE: short viewport */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .slide.active {
    min-height: 100svh;
    padding-top: 2.25rem;
    padding-bottom: 1.5rem;
  }

  /* toolbar compact */
  .deck-toolbar {
    height: 2rem;
    min-height: 2rem;
    padding: 0 0.5rem;
    gap: 0.3rem;
  }
  .deck-toolbar-btn {
    min-height: 2rem;
    min-width: 2.5rem;
    font-size: 0.75rem;
  }

  /* headings */
  .slide h1,
  .title-slide h1 { font-size: clamp(1.1rem, 4vw, 1.6rem); line-height: 1.1; }
  .slide h2 { font-size: clamp(0.95rem, 3.5vw, 1.3rem); }

  /* restore 2-col where width allows */
  .rbt-two-col,
  .ppt-2col-photo-grid { grid-template-columns: 1fr 1fr !important; }

  /* slide padding */
  .slide { padding: 0.5rem 0.75rem 0.75rem; }

  .cad-hero-svg { max-height: 8rem; }
  .diagram-hero { max-height: 55svh; }

  /* agenda ticker — less height */
  .camp-agenda-ticker { font-size: 0.65rem; min-height: 1.5em; }
}

/* ============================================================
   MOBILE NAV — hide keyboard hint, show swipe/tap UI
   ============================================================ */

/* Hide keyboard shortcut bar on touch devices */
@media (max-width: 768px) {
  .nav-hint { display: none !important; }
}
@media (hover: none) {
  .nav-hint { display: none !important; }
}

/* Floating prev/next buttons */
.mobile-nav {
  display: none;
}
@media (max-width: 768px), (hover: none) {
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    justify-content: space-between;
    padding: 0 0.75rem;
    z-index: 300;
    pointer-events: none;
  }
  .mobile-nav-btn {
    pointer-events: auto;
    min-width: 48px;
    min-height: 48px;
    background: rgba(15, 17, 23, 0.88);
    border: 1px solid rgba(255,255,255,0.18);
    color: #e0e6ef;
    border-radius: 10px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(6px);
  }
  .mobile-nav-btn:active {
    background: rgba(80,80,80,0.7);
  }
}

/* step-hint: replace keyboard copy with swipe copy on mobile */
@media (hover: none), (max-width: 768px) {
  .step-hint { display: none; }
  .step-hint-touch { display: inline; }
}
.step-hint-touch { display: none; }
