/* CurioSpark v9.2.3 - Production Readiness Refinement
   Presentation-only corrections for Admin spacing, Calendar detail consistency,
   Home brand-color discipline, and Family Portal card balance.
   No routes, data, payments, registration, authentication, or business logic change. */

/* Admin: restore clear separation between the impersonation panel and session card. */
body.cs-premium-v920 .admin-preview-controls {
  margin-top: 22px !important;
  margin-bottom: clamp(32px, 4vw, 44px) !important;
}
body.cs-premium-v920 .admin-grid[data-team-or-admin-panel] {
  margin-top: 0 !important;
}
body.cs-premium-v920 .admin-actions.stacked {
  gap: 10px !important;
}
body.cs-premium-v920 .admin-actions.stacked .button,
body.cs-premium-v920 .admin-actions.stacked button[data-logout] {
  display: inline-flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Calendar: apply the approved label/value detail treatment to every detail card. */
body.cs-premium-v920.programs-calendar-page .calendar-detail-card .calendar-detail-copy {
  max-width: 80ch !important;
  color: #5d5167 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.72 !important;
}
body.cs-premium-v920.programs-calendar-page .calendar-detail-card .program-description-section-heading {
  display: flex !important;
  align-items: center !important;
  gap: .55rem !important;
  margin: 1.15rem 0 .55rem !important;
  color: #3d1157 !important;
  font-family: Fraunces, Georgia, serif !important;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem) !important;
  font-weight: 750 !important;
  letter-spacing: -.018em !important;
  line-height: 1.2 !important;
}
body.cs-premium-v920.programs-calendar-page .calendar-detail-card .program-description-section-heading::before {
  content: "" !important;
  flex: 0 0 auto !important;
  width: .5rem !important;
  height: .5rem !important;
  border-radius: 999px !important;
  background: #f4b516 !important;
  box-shadow: 0 0 0 4px rgba(244,181,22,.14) !important;
}
body.cs-premium-v920.programs-calendar-page .calendar-detail-card .program-description-line:has(> .program-description-label) {
  display: grid !important;
  grid-template-columns: minmax(5.8rem, auto) 1fr !important;
  align-items: baseline !important;
  column-gap: .7rem !important;
  margin: .46rem 0 !important;
  padding: .68rem .82rem !important;
  border-left: 3px solid rgba(95,37,121,.28) !important;
  border-radius: 0 10px 10px 0 !important;
  background: #ffffff !important;
}
body.cs-premium-v920.programs-calendar-page .calendar-detail-card .program-description-label {
  min-width: 0 !important;
  color: #4b176c !important;
  font-weight: 900 !important;
}
body.cs-premium-v920.programs-calendar-page .calendar-detail-card .program-description-list {
  display: grid !important;
  gap: .48rem !important;
  margin: .45rem 0 .95rem !important;
  padding-left: 1.35rem !important;
}
body.cs-premium-v920.programs-calendar-page .calendar-detail-card .program-description-list li {
  padding-left: .2rem !important;
  line-height: 1.62 !important;
}
body.cs-premium-v920.programs-calendar-page .calendar-detail-card .program-description-list li::marker {
  color: #b67b00 !important;
}

/* Home: use clean, fixed brand colors with no added gradient or highlight veil. */
body.cs-premium-v920.home-streamline-v8361 .local-access-hub .mini-panel::after {
  content: none !important;
  display: none !important;
}
body.cs-premium-v920.home-streamline-v8361 .local-access-hub .mini-panel:not(.purple-panel) {
  background: #ffffff !important;
  background-image: none !important;
}
body.cs-premium-v920.home-streamline-v8361 .local-access-hub .purple-panel {
  background: #5f2579 !important;
  background-image: none !important;
  border-color: rgba(244,181,22,.55) !important;
  box-shadow: 0 18px 42px rgba(95,37,121,.14) !important;
}
body.cs-premium-v920.home-streamline-v8361 .local-access-hub .purple-panel h2,
body.cs-premium-v920.home-streamline-v8361 .local-access-hub .purple-panel p,
body.cs-premium-v920.home-streamline-v8361 .local-access-hub .purple-panel .eyebrow {
  color: #ffffff !important;
}

/* Family Portal: solid canonical purple and natural card height, without fade effects. */
body.cs-premium-v920.visual-composition-refresh .fp-families-grid {
  align-items: start !important;
}
body.cs-premium-v920.visual-composition-refresh .fp-program-card {
  align-self: start !important;
  min-height: 0 !important;
  background: #5f2579 !important;
  background-image: none !important;
}
body.cs-premium-v920.visual-composition-refresh .fp-program-card::after {
  content: none !important;
  display: none !important;
}
body.cs-premium-v920.visual-composition-refresh .fp-program-card h2,
body.cs-premium-v920.visual-composition-refresh .fp-program-card p,
body.cs-premium-v920.visual-composition-refresh .fp-program-card .eyebrow {
  color: #ffffff !important;
}

@media (max-width: 700px) {
  body.cs-premium-v920 .admin-preview-controls {
    margin-bottom: 28px !important;
  }
  body.cs-premium-v920.programs-calendar-page .calendar-detail-card .program-description-line:has(> .program-description-label) {
    grid-template-columns: 1fr !important;
    row-gap: .2rem !important;
    padding: .68rem .75rem !important;
  }
  body.cs-premium-v920.programs-calendar-page .calendar-detail-card .program-description-label {
    display: block !important;
  }
  body.cs-premium-v920.visual-composition-refresh .fp-program-card,
  body.cs-premium-v920.visual-composition-refresh .fp-calendar-card {
    width: 100% !important;
  }
}
