/* ─── Custom properties ─────────────────────────────────────────────────────── */
:root {
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --bg:        #111;
  --border:    rgba(255,255,255,0.11);
  --subtle:    rgba(255,255,255,0.055);
}

/* ─── Base / background ──────────────────────────────────────────────────────── */
/* Only set background on viewport/body — NOT on .reveal itself (iOS Safari bug) */
body,
.reveal-viewport {
  background: var(--bg) !important;
}

/* Breathing room on all slides */
.reveal .slides section {
  padding: 28px 52px;
  box-sizing: border-box;
}

/* ─── Typography ─────────────────────────────────────────────────────────────── */
.reveal {
  font-family: var(--font-body);
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  font-family: var(--font-head);
  text-transform: none;          /* override Reveal's default uppercase */
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
}

/* Pin h2 size explicitly so it can't drift when other em contexts are on the page */
.reveal h2 {
  font-size: var(--r-heading2-size, 1.6em);
}

/* Hook headline — large display size, moved from inline style so mobile can override */
.hook-h2 {
  font-size: 2.8em;
}

/* Table wrapper — allows horizontal scroll on narrow viewports */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── Tables ─────────────────────────────────────────────────────────────────── */
.reveal table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-body);
}

.reveal table thead tr {
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.reveal table th {
  border: none;
  padding: 0.45em 0.75em;
  font-family: var(--font-head);
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.5;
  text-align: left;
}

.reveal table td {
  border: none;
  padding: 0.5em 0.75em;
  vertical-align: top;
  line-height: 1.4;
}


.reveal table tbody tr:nth-child(odd) {
  background: var(--subtle);
}

.reveal table tbody tr:hover {
  background: rgba(255,255,255,0.08);
}

/* ─── Song link base ─────────────────────────────────────────────────────────── */
/* Shared reset for all inline song-title buttons */
.song-link {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: none;
  text-align: inherit;
}
.song-link:hover {
  opacity: 0.8;
}

/* ─── Evidence cards ─────────────────────────────────────────────────────────── */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9em;
  margin: 0.2em 0;
}

.evidence-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.evidence-card-art {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4em;
  flex-shrink: 0;
}

.evidence-card-body {
  padding: 0.6em 0.8em 0.75em;
  flex: 1;
}

.evidence-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78em;
  line-height: 1.25;
  margin-bottom: 0.25em;
}

.evidence-card-artist {
  font-size: 0.68em;
  opacity: 0.6;
  margin-bottom: 0.35em;
}

.evidence-card-note {
  font-size: 0.68em;
  opacity: 0.8;
  font-style: italic;
  line-height: 1.4;
}

/* ─── Song overlay ───────────────────────────────────────────────────────────── */
.song-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.song-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.song-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1c1c24;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 24px;
  min-width: 300px;
  max-width: 400px;
  width: 90vw;
  font-family: var(--font-body);
  color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.song-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.song-note {
  font-size: 2.2em;
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
}

.song-card-info {
  flex: 1;
  min-width: 0;
}

.song-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.3;
}

.song-card-meta {
  font-size: 0.8em;
  opacity: 0.5;
  margin-top: 3px;
}

.overlay-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 1.3em;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.overlay-close:hover { color: #fff; }

.song-card-platforms {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: var(--p-bg);
  color: var(--p-fg);
  border-radius: 9px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95em;
  transition: opacity 0.12s;
}
.platform-btn:hover { opacity: 0.85; }
.platform-arrow { opacity: 0.65; }

/* ─── Playlist slide ─────────────────────────────────────────────────────────── */
.playlist-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 0.5em;
}

.playlist-create-btn {
  flex-shrink: 0;
  background: #1DB954;
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 0.5em 1.2em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.55em;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.playlist-create-btn:hover { opacity: 0.88; transform: scale(1.03); }
.playlist-create-btn.copied { background: #19a349; }

.playlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.56em;
}

.playlist-table thead th {
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.3em 0.5em;
  font-family: var(--font-head);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.38;
  text-align: left;
  font-weight: 600;
}

.playlist-table .col-num {
  width: 2.2em;
  text-align: right;
  padding-right: 0.8em !important;
  opacity: 0.32;
}

.playlist-table .col-year {
  width: 3.5em;
  text-align: right;
  opacity: 0.38;
}

.playlist-table tr.pl-group-row td {
  padding: 0.75em 0.5em 0.2em;
  font-family: var(--font-head);
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.38;
  font-weight: 600;
}

.playlist-table tr.pl-song-row td {
  padding: 0.25em 0.5em;
  vertical-align: middle;
}

.playlist-table tr.pl-song-row:hover {
  background: rgba(255,255,255,0.05);
}

.playlist-table .pl-title {
  font-weight: 500;
  color: #fff;
}

.playlist-table .pl-artist {
  opacity: 0.52;
}

/* ─── Hero's Journey Map ─────────────────────────────────────────────────────── */
.hero-slide {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: left;
}

.hero-map-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  margin-top: 0.15em;
  overflow: hidden;
}

.hero-map {
  width: 100%;
  height: auto;
  max-height: 100%;
  overflow: visible;
}

.hero-stop {
  cursor: pointer;
  transition: filter 0.15s;
}

.hero-stop:hover,
.hero-stop:focus-visible {
  filter: brightness(1.18) drop-shadow(0 2px 6px rgba(139,80,0,0.45));
}

.hero-stop:focus-visible { outline: none; }

/* ─── Hero modal card ────────────────────────────────────────────────────────── */
/* Isolated from Reveal.js — all em values anchored to 1rem (16px), not 42px   */
.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.hero-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.hero-overlay .hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;              /* anchor: all em children relative to 16px */
  font-family: var(--font-body);
  color: #fff;
  background: #1c1c24;
  border: 1px solid rgba(200,149,58,0.28);
  border-radius: 20px;
  padding: 32px 52px 40px;
  min-width: 580px;
  max-width: 740px;
  width: 90vw;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  text-align: center;
}

.hero-overlay .hero-card-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero-overlay .hero-card-prev,
.hero-overlay .hero-card-next {
  background: none;
  border: none;
  color: rgba(255,255,255,0.38);
  font-size: 1.6em;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 7px;
  transition: color 0.12s, background 0.12s;
  line-height: 1;
}
.hero-overlay .hero-card-prev:hover,
.hero-overlay .hero-card-next:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.hero-overlay .hero-card-num {
  font-size: 0.85em;
  opacity: 0.35;
  letter-spacing: 0.06em;
}

.hero-overlay .hero-card-journey {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.2em;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #c8953a;
  margin-bottom: 0.4em;
}

.hero-overlay .hero-card-divider {
  font-size: 0.82em;
  opacity: 0.35;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5em;
}

.hero-overlay .hero-card-song {
  font-size: 1.25em;
  line-height: 1.5;
  opacity: 0.82;
  margin-bottom: 1.2em;
}

.hero-overlay .hero-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-overlay .hero-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

.hero-overlay .hero-dot.active {
  background: #c8953a;
}

/* ─── W1 Activity: Build Your Skeleton ──────────────────────────────────────── */
.activity-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;   /* override Reveal's section text-align: center */
  color: #e8e8e8;
  overflow: hidden;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.activity-title {
  font-family: var(--font-head);
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.activity-sub {
  font-size: 0.7em;
  opacity: 0.48;
  margin-top: 2px;
}

.reset-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78em;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.reset-btn:hover { background: rgba(255,255,255,0.13); }

/* Two-column body: cards left, structure right */
.activity-body {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-rows: 1fr;
  gap: 18px;
  min-height: 0;
}

/* Left column: phrase card pool */
.pool-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.pool-heading {
  font-size: 0.58em;
  opacity: 0.38;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 9px;
  flex-shrink: 0;
}

.card-pool {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Right column: drop zones stacked to fill height */
.zones-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  padding-left: 30px;
}

/* Each zone row: [drop container] [dim label] */
.zone-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.drop-zone {
  flex: 1;
  display: flex;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  overflow: hidden;
  min-height: 0;
  transition: border-color 0.15s, background 0.15s;
}

.drop-zone.drag-over {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.04);
}

/* Label sits to the right of the container — always visible */
.zone-label-side {
  display: flex;
  align-items: center;
  min-width: 46px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.62em;
  letter-spacing: -0.01em;
  opacity: 0.3;
  flex-shrink: 0;
  white-space: nowrap;
  pointer-events: none;
}

.zone-content {
  flex: 1;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  min-width: 0;
}

.zone-placeholder {
  font-size: 0.65em;
  opacity: 0.25;
  font-style: italic;
  pointer-events: none;
}

/* Draggable phrase cards */
.card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 0.68em;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: background 0.12s, opacity 0.12s;
  line-height: 1.4;
}
.card:hover { background: rgba(255,255,255,0.12); }
.card.is-dragging { opacity: 0.3; }

.drag-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 6px;
  padding: 6px 11px;
  font-family: var(--font-body);
  color: #e8e8e8;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  line-height: 1.4;
  white-space: nowrap;
}

/* ─── W2 Activity: Zoom-In Map ───────────────────────────────────────────────── */
.zoom-map-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  gap: 1.5em;
  align-items: flex-start;
  padding-right: 4px;
}

.zoom-map {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zoom-level {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
}
.zoom-level-1 { border-color: rgba(255,255,255,0.14); }
.zoom-level-2 { border-color: rgba(255,200,80,0.28); }
.zoom-level-3 { border-color: rgba(80,210,130,0.28); }

.zoom-level-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}

.zoom-level-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75em;
  flex-shrink: 0;
}

.zoom-level-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zoom-level-sublabel {
  font-size: 0.62em;
  opacity: 0.48;
  margin-top: 1px;
}

.zoom-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--subtle);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82em;
  padding: 7px 11px;
  resize: none;
  transition: border-color 0.15s;
}
.zoom-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.38);
}
.zoom-input::placeholder { opacity: 0.32; }

.zoom-step-arrow {
  text-align: center;
  opacity: 0.28;
  font-size: 0.85em;
  padding: 3px 0;
}

.zoom-film-test {
  margin-top: 7px;
  font-size: 0.68em;
  color: rgba(80,210,130,0.85);
  opacity: 0;
  transition: opacity 0.2s;
  font-style: italic;
}
.zoom-film-test.visible { opacity: 1; }

.seed-wrap {
  width: 190px;
  flex-shrink: 0;
}

.seed-label {
  font-size: 0.62em;
  opacity: 0.42;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  line-height: 1.4;
}

.seed-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.seed-card {
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 0.68em;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.seed-card:hover { background: rgba(255,255,255,0.11); }
.seed-card.active {
  background: rgba(255,200,80,0.14);
  border-color: rgba(255,200,80,0.38);
  color: #ffc850;
}

/* ─── Title slide ────────────────────────────────────────────────────────────── */

.title-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.title-eyebrow {
  font-size: 0.38em;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.4;
  margin: 0 0 0.8em;
}

.title-headline {
  font-size: 2.6em !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em !important;
}

.title-meta {
  font-size: 0.48em;
  opacity: 0.45;
  margin: 0;
}

/* ─── Instructor slide ───────────────────────────────────────────────────────── */

.instructor-slide {
  display: flex;
  flex-direction: column;
  gap: 1em;
  text-align: left;
}

.instructor-header {
  display: flex;
  gap: 1.6em;
  align-items: center;
}

.instructor-photo-ring {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.instructor-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.instructor-initials {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.8em;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: -0.02em;
}

.instructor-text { flex: 1; min-width: 0; }

.instructor-eyebrow {
  font-size: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.45;
  margin: 0 0 0.25em;
}

.instructor-name {
  font-size: 1.6em !important;
  line-height: 1.1 !important;
  margin: 0 0 0.15em !important;
}

.instructor-title-line {
  font-size: 0.58em;
  opacity: 0.5;
  margin: 0 0 0.8em;
}

/* ── Stat cards ───────────────────────────────────────────────────── */

.instructor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7em;
}

.instructor-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 0.7em 0.6em;
  text-align: center;
}

.instructor-stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5em;
  letter-spacing: -0.02em;
  color: #7BA7D4;
}

.instructor-stat-label {
  font-size: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-top: 0.25em;
}

/* ── Discography grid ─────────────────────────────────────────────── */

.instructor-discog {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6em;
}

.discog-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.discog-art {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 !important;
}

.discog-meta {
  padding: 0.45em 0.55em 0.55em;
}

.discog-title {
  font-size: 0.46em;
  font-weight: 700;
  line-height: 1.25;
}

.discog-sub {
  font-size: 0.4em;
  opacity: 0.55;
  margin-top: 0.1em;
}

/* ── Sun Dogs Music Manitoba slide ────────────────────────────────── */

.sundogs-intro {
  font-size: 0.62em;
  opacity: 0.7;
  max-width: 46em;
  line-height: 1.55;
  margin: 0.3em 0 1em;
}

.sundogs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9em;
}

.sundogs-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 1em 1.2em;
}

.sundogs-card-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.6em;
  letter-spacing: 0.05em;
  color: #7BA7D4;
  opacity: 0.8;
}

.sundogs-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: -0.01em;
  margin: 0.25em 0 0.35em;
}

.sundogs-card-desc {
  font-size: 0.56em;
  opacity: 0.65;
  line-height: 1.55;
}

/* ─── Housekeeping slide ─────────────────────────────────────────────────────── */

.housekeeping-headline {
  font-size: 1.8em !important;
  margin: 0 0 0.5em !important;
}

.housekeeping-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5em;
  text-align: left;
}

.hk-col-head {
  font-size: 0.55em !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.45;
  margin: 0 0 0.5em !important;
}

.hk-schedule {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.58em;
}

.hk-schedule-item {
  display: flex;
  gap: 0.8em;
  padding: 0.32em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.5;
}

.hk-schedule-item.hk-active { opacity: 1; }
.hk-active .hk-name { font-weight: 600; }

.hk-date {
  color: rgba(255, 255, 255, 0.45);
  min-width: 3.5em;
  flex-shrink: 0;
}

.hk-body {
  font-size: 0.58em;
  line-height: 1.65;
  opacity: 0.8;
  margin: 0 0 0.5em;
}

.hk-care {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.56em;
  line-height: 1.5;
}

.hk-care li {
  padding: 0.25em 0 0.25em 1.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  opacity: 0.8;
}

.hk-care li::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0.4;
}

.hk-care li:last-child {
  border-bottom: none;
  opacity: 1;
}

/* ─── W3 Activity: The Rewrite Game ──────────────────────────────────────────── */

.rewrite-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6fr 2fr;
  gap: 18px;
  min-height: 0;
}

.rewrite-pool-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.cliche-pool {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cliche-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 6px;
  color: #e8e8e8;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.66em;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.cliche-card:hover { background: rgba(255,255,255,0.09); }
.cliche-card.active {
  background: rgba(200,90,90,0.12);
  border-color: rgba(200,90,90,0.4);
  color: #ff9b9b;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.rewrite-work-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 9px;
}

.rewrite-original {
  font-size: 0.62em;
  opacity: 0.55;
  line-height: 1.5;
}

.rewrite-original-line {
  opacity: 0.85;
  font-style: italic;
  text-decoration: line-through;
  text-decoration-color: rgba(200,90,90,0.6);
}

.rewrite-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--subtle);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7em;
  line-height: 1.5;
  padding: 10px 13px;
  resize: none;
  transition: border-color 0.15s;
}
.rewrite-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.38);
}
.rewrite-input::placeholder { opacity: 0.32; }

.prompt-label {
  font-size: 0.56em;
  opacity: 0.42;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prompt-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow-y: auto;
  min-height: 0;
}

.prompt-chip {
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: #e8e8e8;
  font-family: var(--font-body);
  padding: 5px 9px;
  font-size: 0.62em;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.prompt-chip:hover { background: rgba(255,255,255,0.11); }
.prompt-chip.used {
  background: rgba(80,210,130,0.1);
  border-color: rgba(80,210,130,0.32);
  color: #8fe0ab;
}

/* ─── W4 Activity: The Assembly Session ──────────────────────────────────────── */

.assembly-board {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.assembly-stages {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.assembly-stage-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s, border-color 0.15s, background 0.15s;
}
.assembly-stage-pill:hover { opacity: 0.7; }
.assembly-stage-pill.active {
  opacity: 1;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.32);
}
.assembly-stage-pill.done {
  opacity: 0.6;
  border-color: rgba(80,210,130,0.3);
}

.assembly-stage-pill-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72em;
}

.assembly-stage-pill-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.6em;
  letter-spacing: 0.05em;
}

.assembly-stage-pill-time {
  font-size: 0.54em;
  opacity: 0.6;
}

.assembly-stage-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 16px 18px;
}

.assembly-stage-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.assembly-stage-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85em;
  flex-shrink: 0;
}

.assembly-stage-labels { flex: 1; min-width: 0; }

.assembly-stage-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7em;
  letter-spacing: 0.06em;
}

.assembly-stage-prompt {
  font-size: 0.6em;
  opacity: 0.6;
  margin-top: 2px;
  line-height: 1.4;
}

.assembly-timer {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.assembly-timer-display {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1em;
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
  text-align: right;
}
.assembly-timer-display.low { color: #ffc850; }
.assembly-timer-display.done { color: #ff9b9b; }

.assembly-timer-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.66em;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.assembly-timer-btn:hover { background: rgba(255,255,255,0.13); }

#assembly-input-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
}

.assembly-input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: var(--subtle);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7em;
  line-height: 1.5;
  padding: 10px 13px;
  resize: none;
  transition: border-color 0.15s;
}
.assembly-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.38);
}
.assembly-input::placeholder { opacity: 0.32; }

.assembly-readaloud-note {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 0.66em;
  line-height: 1.6;
  opacity: 0.6;
  font-style: italic;
  padding: 10px 13px;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 6px;
}

.assembly-complete-banner {
  flex-shrink: 0;
  padding: 12px 16px;
  border: 1px solid rgba(80,210,130,0.35);
  border-radius: 8px;
  background: rgba(80,210,130,0.08);
}

.assembly-complete-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.74em;
  color: #8fe0ab;
}

.assembly-complete-sub {
  font-size: 0.6em;
  opacity: 0.65;
  margin-top: 3px;
  line-height: 1.4;
}

.assembly-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.assembly-nav-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.66em;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.assembly-nav-btn:hover { background: rgba(255,255,255,0.12); }
.assembly-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.assembly-nav-btn-primary {
  background: rgba(80,210,130,0.14);
  border-color: rgba(80,210,130,0.4);
  color: #8fe0ab;
}
.assembly-nav-btn-primary:hover { background: rgba(80,210,130,0.22); }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
/* Note: media queries fire on actual viewport px, not the Reveal-scaled canvas.  */
/* Slide canvas = 90% of viewport, so breakpoints intentionally exceed canvas px. */

/* ── Tablet portrait (≤ 900px viewport → ≤ 810px canvas) ─────────────────────── */
@media (max-width: 900px) {
  /* 3-col evidence grid → 2 columns */
  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero modal card: remove fixed min-width that overflows phone screens */
  .hero-overlay .hero-card {
    min-width: 0;
    width: min(90vw, 560px);
    padding: 24px 32px 32px;
  }

  /* Zoom-map activity: side-by-side seed panel → stacks below */
  .zoom-map-scroll {
    flex-direction: column;
  }

  .seed-wrap {
    width: 100%;
  }
}

/* ── Phone (≤ 640px viewport → ≤ 576px canvas) ───────────────────────────────── */
@media (max-width: 640px) {
  /* Tighter slide padding so content has more room */
  .reveal .slides section {
    padding: 14px 20px;
  }

  /* Override Reveal's word-wrap: break-word, which splits mid-character on narrow canvases.
     With reduced font sizes below, all common words fit on a single line. */
  .reveal h1,
  .reveal h2,
  .reveal h3 {
    overflow-wrap: normal !important;
    word-wrap: normal !important;
  }

  /* Scale h2 down so words fit the ~295px phone canvas without mid-word breaks */
  .reveal h2 {
    font-size: 1.2em !important;
  }

  /* Hook headline was 2.8em — reduce but keep it visually dominant */
  .hook-h2 {
    font-size: 1.6em !important;
  }

  /* Activity title: flex header shares row with Reset button (~40% width),
     so reduce title size to keep it to 2 lines */
  .activity-title {
    font-size: 0.85em !important;
  }

  /* Table: 3 columns don't fit on narrow canvas and overflow:hidden on section
     prevents horizontal scroll — hide the Example column instead */
  .table-wrap table th:last-child,
  .table-wrap table td:last-child {
    display: none;
  }

  /* All multi-column grids → single column */
  .evidence-grid,
  .eras-grid,
  .comparison-grid {
    grid-template-columns: 1fr !important;
  }

  /* Contrast pairs: [weak] → [strong] stacks vertically */
  .contrast-grid {
    grid-template-columns: 1fr !important;
  }

  /* Activity: pool above, drop zones below */
  .activity-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  /* Constrain card pool height so drop zones still get space */
  .pool-col {
    max-height: 130px;
  }

  /* Remove indent on narrow canvas — no room for it */
  .zones-col {
    padding-left: 0;
  }

  /* Hero modal: full-width, compact padding */
  .hero-overlay .hero-card {
    width: 96vw;
    padding: 18px 18px 24px;
    border-radius: 14px;
  }

  /* Song card: let it fill the screen */
  .song-card {
    min-width: 0;
    width: 94vw;
  }

  /* Playlist header: stack button below heading */
  .playlist-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ── Slide 3 (eras): tighten vertical rhythm so 3 cards fit in canvas ── */
  .eras-grid {
    gap: 0.4em !important;
    margin-top: 0.2em !important;
  }

  .era-card {
    padding-top: 0.35em !important;
  }

  .era-card p {
    margin-bottom: 0.1em !important;
  }

  /* ── Slide 5 (evidence): reduce art height + hide notes, shrink "No." ── */
  .evidence-answer {
    font-size: 1.2em !important;
    margin: 0.05em 0 0.2em !important;
  }

  .evidence-grid {
    gap: 0.35em;
  }

  .evidence-card-art {
    height: 36px;
    font-size: 1.4em;
  }

  .evidence-card-body {
    padding: 0.3em 0.6em 0.35em;
  }

  .evidence-card-title {
    margin-bottom: 0.1em;
  }

  .evidence-card-artist {
    margin-bottom: 0;
  }

  /* Notes are the longest text in the card — hiding them saves ~55px per card */
  .evidence-card-note {
    display: none;
  }

  /* ── Slide 7 (case study): tighten paragraph spacing ──
     W1 wraps body in <div class="casestudy-body"><p>...</p></div>;
     W2/W3/W4 put the class directly on a single <p class="casestudy-body">.
     Cover both shapes. ── */
  .casestudy-body,
  .casestudy-body p {
    margin-top: 0.2em !important;
    line-height: 1.5 !important;
  }

  /* ── Slide 9 (activity): hide drag-and-drop, show desktop-only message ── */
  .activity-view {
    display: none !important;
  }

  .activity-mobile-msg {
    display: flex;
  }

  /* W3/W4 activities are click + textarea based — they work fine on touch,
     so keep them visible (overrides the drag-and-drop hide rule above) */
  .activity-view.touch-activity {
    display: flex !important;
  }

  /* Rewrite Game: cards above, rewrite workspace below */
  .rewrite-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .rewrite-pool-col {
    max-height: 130px;
  }

  /* Assembly Session: stage pills wrap, hide sublabels to save space */
  .assembly-stage-pill-time {
    display: none;
  }

  .assembly-stage-prompt {
    display: none;
  }

  .assembly-stage-head {
    flex-wrap: wrap;
  }

  /* ── Title slide ── */
  .title-headline { font-size: 1.8em !important; }

  /* ── Instructor slide ── */
  .instructor-header { flex-direction: column; text-align: center; }
  .instructor-photo-ring { width: 110px; height: 110px; }
  .instructor-initials { font-size: 2.2em; }
  .instructor-stats { grid-template-columns: repeat(2, 1fr); }
  .instructor-discog { grid-template-columns: repeat(3, 1fr); }

  /* ── Sun Dogs Music Manitoba slide ── */
  .sundogs-grid { grid-template-columns: 1fr; }

  /* ── Housekeeping slide ── */
  .housekeeping-headline { font-size: 1.3em !important; }
  .housekeeping-cols { grid-template-columns: 1fr; gap: 1em; }
}

/* ─── Activity mobile message (hidden by default, shown at ≤640px) ─────────── */
.activity-mobile-msg {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: #fff;
  gap: 0;
}
