/* =========================================================================
   UNIFIED MINIMALIST LESSON HEADER (GLOBAL FOR ALL LESSONS & SLIDES)
   Merges navigation, audio settings, lesson title and playback controls
   into a single, elegant, responsive glassmorphism card across all pages.
   ========================================================================= */

/* 1. Top Bar: Breadcrumb Navigation & Minimalist Audio Switcher */
.lesson-unified-top-bar {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-width: 0 !important;
  margin-bottom: 0 !important;
  border-color: rgba(229, 231, 235, 0.85) !important;
}

.dark .lesson-unified-top-bar {
  border-color: rgba(51, 65, 85, 0.85) !important;
}

/* 2. Seamless Activity Header Block: Title + Word Count + Speed & Auto */
.activity-runner-wrapper > div > div:first-child {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(229, 231, 235, 0.85) !important;
  border-top: 1px solid rgba(243, 244, 246, 0.9) !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 1rem !important;
  border-bottom-right-radius: 1rem !important;
  padding: 0.875rem 1.25rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.875rem !important;
  transition: all 0.2s ease-in-out !important;
}

.dark .activity-runner-wrapper > div > div:first-child {
  background-color: rgba(30, 41, 59, 0.95) !important;
  border-color: rgba(51, 65, 85, 0.85) !important;
  border-top-color: rgba(51, 65, 85, 0.7) !important;
}

/* 3. Hide duplicate Back buttons inside the activity header block */
.activity-runner-wrapper > div > div:first-child button:has(svg):has(path[d*="15 19l-7-7 7-7"]),
.activity-runner-wrapper > div > div:first-child .flex.justify-between > button,
.activity-runner-wrapper > div > div:first-child .flex.justify-between.items-start > button,
.activity-runner-wrapper > div > div:first-child .flex.justify-between.items-center > button {
  display: none !important;
}

/* 4. Reset inner title margins to integrate seamlessly */
.activity-runner-wrapper > div > div:first-child .flex.justify-between,
.activity-runner-wrapper > div > div:first-child .flex.justify-between.items-start,
.activity-runner-wrapper > div > div:first-child .flex.justify-between.items-center {
  margin-bottom: 0 !important;
  gap: 0.25rem !important;
}

/* 5. Typography refinement for title */
.activity-runner-wrapper > div > div:first-child h2 {
  font-size: 1.25rem !important;
  line-height: 1.5rem !important;
  font-weight: 800 !important;
  color: rgb(15 23 42) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.125rem !important;
}

.dark .activity-runner-wrapper > div > div:first-child h2 {
  color: rgb(248 250 252) !important;
}

.activity-runner-wrapper > div > div:first-child p {
  font-size: 0.75rem !important;
  line-height: 1rem !important;
  color: rgb(100 116 139) !important;
}

.dark .activity-runner-wrapper > div > div:first-child p {
  color: rgb(148 163 184) !important;
}

@media (min-width: 640px) {
  .activity-runner-wrapper > div > div:first-child h2 {
    font-size: 1.5rem !important;
    line-height: 1.75rem !important;
  }
}

/* 6. Cohesive Emerald styling for Speed & Controls inside unified header */
.activity-runner-wrapper > div > div:first-child .bg-primary-100 {
  background-color: #059669 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}
.dark .activity-runner-wrapper > div > div:first-child .dark\:bg-primary-900\/50,
.dark .activity-runner-wrapper > div > div:first-child .bg-primary-100 {
  background-color: #059669 !important;
  color: #ffffff !important;
}

