/* Activity Sign-Up Cards — redesigned parent view
   ================================================= */

/* --- CSS custom properties --- */
/* --primary-colour (RGB) is set globally by the school's LookAndFeelSettings.
   We derive --signup-brand, --signup-brand-light, and --signup-accent from it.
   Hex fallbacks are used when --primary-colour is not available. */
:root {
  --signup-brand: rgb(var(--primary-colour, 45, 50, 128));
  --signup-brand-light: color-mix(in srgb, rgb(var(--primary-colour, 45, 50, 128)) 75%, #fff);
  --signup-brand-accent: color-mix(in srgb, rgb(var(--primary-colour, 45, 50, 128)) 60%, #6c63ff);
  --signup-brand-dark: color-mix(in srgb, rgb(var(--primary-colour, 45, 50, 128)), #000 30%);
  --signup-success: #28a745;
  --signup-warning: #ffc107;
  --signup-danger: #dc3545;
  --signup-info: #3b6fd6;
  --signup-muted: #6c757d;
  --signup-light-bg: #f8f9fa;
  --signup-card-radius: 8px;
  --signup-transition: 0.2s ease;
  --signup-border: #e2e4ef;
  --signup-text: #1e2040;
}

/* --- Child switcher (inside header) --- */
.child-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.child-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.child-tab:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.child-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.child-tab .child-tab__avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.child-tab.active .child-tab__avatar {
  background: rgba(255, 255, 255, 0.9);
  color: var(--signup-brand);
}

.child-tab:not(.active) .child-tab__avatar {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

.child-tab__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-tab__enrolled {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  margin-left: 0.15rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.child-tab.active .child-tab__enrolled {
  background: var(--signup-success);
  color: #fff;
}

/* --- Page header with gradient --- */
.signup-header {
  background: linear-gradient(135deg, var(--signup-brand) 0%, var(--signup-brand-light) 100%);
  border-radius: var(--signup-card-radius);
  color: #fff;
  padding: 24px 32px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.signup-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.signup-header__content {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.signup-header__title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.signup-header__subtitle {
  margin: 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

.signup-header__stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.signup-header__stat {
  text-align: center;
}

.signup-header__stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.signup-header__stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.signup-header__stat--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 10px;
  transition: background 0.2s;
}

.signup-header__stat--link:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: inherit;
}

/* --- Sticky filter bar --- */
.signup-filters {
  position: sticky;
  top: 52px;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.signup-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.signup-filters__row:last-child {
  margin-bottom: 0;
}

/* Row 1: search stretches, gap pushes sort + toggle to the right */
.signup-filters__search {
  flex: 1 1 220px;
  max-width: 380px;
}

.signup-filters__search input {
  border-radius: 20px;
  padding-left: 16px;
  font-size: 0.875rem;
  height: 40px;
}

.signup-filters__sort {
  flex: 0 0 auto;
  margin-left: auto;
}

.signup-filters__sort select {
  border-radius: 20px;
  font-size: 0.875rem;
  height: 40px;
  padding: 0.375rem 2rem 0.375rem 1rem;
}

.signup-filters__term {
  flex: 0 0 auto;
}

.signup-filters__term select {
  border-radius: 20px;
  font-size: 0.875rem;
  height: 40px;
  padding: 0.375rem 2rem 0.375rem 1rem;
}

.signup-filters__toggle {
  display: flex;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  overflow: hidden;
  flex: 0 0 auto;
  height: 40px;
}

.signup-filters__toggle-btn {
  background: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--signup-muted);
  font-size: 0.9rem;
  transition: background var(--signup-transition), color var(--signup-transition);
}

.signup-filters__toggle-btn:hover {
  background: var(--signup-light-bg);
}

.signup-filters__toggle-btn.active {
  background: var(--signup-brand);
  color: #fff;
}

/* --- Category filter pills --- */
.signup-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.signup-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--signup-transition);
  white-space: nowrap;
}

.signup-filter-pill:hover {
  border-color: var(--signup-brand);
  color: var(--signup-brand);
  background: rgba(45, 50, 128, 0.04);
}

.signup-filter-pill.active {
  background: var(--signup-brand);
  color: #fff;
  border-color: var(--signup-brand);
}

.signup-filter-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.7rem;
  font-weight: 600;
}

.signup-filter-pill.active .signup-filter-pill__count {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Day-of-week chips --- */
.signup-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.signup-day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--signup-transition);
}

.signup-day-chip:hover {
  border-color: var(--signup-brand);
  color: var(--signup-brand);
}

.signup-day-chip.active {
  background: var(--signup-brand);
  color: #fff;
  border-color: var(--signup-brand);
}

/* --- Card grid --- */
.signup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .signup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .signup-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .signup-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1600px) {
  .signup-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Section dividers (span full grid width) */
.signup-grid__section-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
}

.signup-grid__section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

.signup-grid__section-divider .badge {
  flex-shrink: 0;
}

/* Empty state */
.signup-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--signup-muted);
}

.signup-grid__empty i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* --- Activity card --- */
.signup-card {
  border: 1px solid #e9ecef;
  border-radius: var(--signup-card-radius);
  background: #fff;
  overflow: hidden;
  transition: transform var(--signup-transition), box-shadow var(--signup-transition);
  display: flex;
  flex-direction: column;
}

.signup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Enrolled variant */
.signup-card--enrolled {
  border-color: var(--signup-success);
  border-width: 2px;
}

/* Staff-added variant - the school placed the student, so it reads in the school's colour
   rather than the green used for a family's own registration */
.signup-card--staff-added {
  border-color: var(--signup-brand);
  border-width: 2px;
}

/* Full/no spots variant */
.signup-card--full {
  opacity: 0.65;
}

.signup-card--full:hover {
  transform: none;
  box-shadow: none;
}

/* Card image area */
.signup-card__image {
  position: relative;
  height: 170px;
  background: var(--signup-light-bg);
  overflow: hidden;
}

.signup-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signup-card__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: #ced4da;
}

/* Badges overlaid on image */
.signup-card__badge {
  position: absolute;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.signup-card__badge--category {
  top: 10px;
  left: 10px;
  background: var(--signup-brand);
}

.signup-card__badge--spots {
  top: 10px;
  right: 10px;
}

.signup-card__badge--spots-available {
  background: var(--signup-success);
}

.signup-card__badge--spots-low {
  background: var(--signup-warning);
  color: #212529;
}

.signup-card__badge--spots-full {
  background: var(--signup-danger);
}

.signup-card__badge--spots-waitlist {
  background: var(--signup-info);
}

.signup-card__badge--enrolled {
  background: var(--signup-success);
}

.signup-card__badge--payment-due,
.signup-card__badge--waitlisted {
  background: var(--signup-warning);
  color: #212529;
}

.signup-card__badge--staff-added {
  background: var(--signup-brand);
}

/* Card body */
.signup-card__body {
  padding: 14px 16px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.signup-card__name {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.signup-card__teacher {
  font-size: 0.775rem;
  color: var(--signup-muted);
  margin-bottom: 6px;
}

.signup-card__term {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--signup-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.signup-card__description {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta tags (day, time, location) */
.signup-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
  margin-top: auto;
}

.signup-card__meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--signup-light-bg);
  border-radius: 4px;
  font-size: 0.7rem;
  color: #495057;
}

.signup-card__meta-tag i {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* Card footer */
.signup-card__footer {
  border-top: 1px solid #f0f0f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signup-card__price {
  font-weight: 700;
  font-size: 0.95rem;
  color: #212529;
}

.signup-card__price--free {
  color: var(--signup-success);
  font-weight: 600;
}

.signup-card__action {
  margin-left: auto;
}

.signup-card__action .btn {
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
}

.signup-card__action .btn-success {
  background-color: var(--signup-success);
  border-color: var(--signup-success);
}

/* --- Scroll-to-top button --- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--signup-brand);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 100;
  transition: opacity var(--signup-transition);
}

.scroll-top.visible {
  display: flex;
}

/* --- List view override --- */
.signup-grid--list {
  grid-template-columns: 1fr !important;
}

.signup-grid--list .signup-card {
  flex-direction: row;
  max-height: 180px;
}

.signup-grid--list .signup-card__image {
  width: 200px;
  min-width: 200px;
  height: auto;
}

.signup-grid--list .signup-card__body {
  flex: 1;
}

.signup-grid--list .signup-card__footer {
  border-top: none;
  border-left: 1px solid #f0f0f0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  min-width: 130px;
}

@media (max-width: 575.98px) {
  .signup-grid--list .signup-card {
    flex-direction: column;
    max-height: none;
  }

  .signup-grid--list .signup-card__image {
    width: 100%;
    min-width: 100%;
    height: 170px;
  }

  .signup-grid--list .signup-card__footer {
    border-left: none;
    border-top: 1px solid #f0f0f0;
    flex-direction: row;
    min-width: auto;
  }
}

/* --- Registrations collapsible section --- */
.signup-registrations {
  margin-top: 32px;
}

.signup-registrations__header {
  padding: 14px 20px;
  background: var(--signup-light-bg);
  border: 1px solid #e9ecef;
  border-radius: var(--signup-card-radius) var(--signup-card-radius) 0 0;
}

.signup-registrations__header h5 {
  margin: 0;
  font-size: 1rem;
}

.signup-registrations__header .badge {
  font-size: 0.8rem;
}

/* Reason: the staff-added table has no receipt to offer, so the header carries a short
   explanation of why. Sized explicitly because the staff theme overrides .small to 50%. */
.signup-registrations__note {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--signup-muted);
}

.signup-registrations__body {
  border: 1px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 var(--signup-card-radius) var(--signup-card-radius);
  padding: 16px;
}

/* --- Results count --- */
.signup-results-count {
  font-size: 0.85rem;
  color: var(--signup-muted);
  margin-bottom: 16px;
}

/* --- Student selector pills --- */
.signup-student-pills {
  margin-bottom: 20px;
}

/* ============================================================
   ACTIVITY DETAIL PAGE
   ============================================================ */

/* ── Breadcrumb bar ── */
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 20px;
  margin: -20px -30px 0;
  width: calc(100% + 60px);
  flex-wrap: wrap;
  position: relative;
  z-index: 15;
  background: #fff;
  border-bottom: 1px solid var(--signup-border, #e2e4ef);
}

.detail-breadcrumb a {
  color: var(--signup-brand);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-breadcrumb a:hover {
  text-decoration: underline;
}

.detail-breadcrumb__sep {
  color: var(--signup-muted, #9b9eb5);
  font-size: 0.75rem;
}

.detail-breadcrumb__text {
  color: var(--signup-muted, #6b6f8d);
  font-size: 0.82rem;
}

/* ── Hero image ── */
.detail-hero {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  margin: -30px -30px 0;
  width: calc(100% + 60px);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 29, 84, 0) 40%, rgba(26, 29, 84, 0.6) 100%);
}

.detail-hero .hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--signup-brand-light) 0%, var(--signup-brand-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero .hero-placeholder span {
  font-size: 4rem;
  opacity: 0.3;
}

/* ── Main content area ── */
.detail-body {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 2rem;
}

/* ── Left column: main card ── */
.detail-main-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--signup-border, #e2e4ef);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.detail-title-block {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--signup-border, #e2e4ef);
}

.detail-title-block .category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  background: var(--signup-brand);
  color: #fff;
  margin-bottom: 0.65rem;
}

.detail-title-block h1 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--signup-text, #1e2040);
  line-height: 1.25;
}

.detail-title-block .term-label {
  font-size: 0.88rem;
  color: var(--signup-muted, #6b6f8d);
}

/* ── Description content ── */
.detail-content {
  padding: 1.5rem 2rem 2rem;
}

.detail-content h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--signup-text, #1e2040);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.detail-content h3:first-child {
  margin-top: 0;
}

.detail-content h3 i {
  color: var(--signup-brand-light);
  flex-shrink: 0;
}

.detail-content p {
  font-size: 0.88rem;
  color: var(--signup-muted, #6b6f8d);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.detail-content ul {
  margin: 0 0 0.75rem 0;
  padding: 0;
  list-style: none;
}

.detail-content ul li {
  font-size: 0.86rem;
  color: var(--signup-muted, #6b6f8d);
  line-height: 1.65;
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
}

.detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signup-brand-light);
  opacity: 0.5;
}

.detail-content a {
  color: var(--signup-brand);
  font-weight: 600;
}

/* ── Right column: sidebar card ── */
.detail-sidebar-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--signup-border, #e2e4ef);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 70px;
}

/* Signup CTA area */
.detail-signup-block {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--signup-border, #e2e4ef);
}

.detail-price-display {
  margin-bottom: 0.2rem;
}

.detail-price-display .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--signup-text, #1e2040);
  line-height: 1;
}

.detail-price-display .period {
  font-size: 0.85rem;
  color: var(--signup-muted, #9b9eb5);
  font-weight: 400;
}

.detail-price-note {
  font-size: 0.78rem;
  color: var(--signup-muted, #9b9eb5);
  margin-bottom: 1rem;
}

.btn-signup-large {
  display: block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--signup-brand);
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.btn-signup-large:hover {
  background: var(--signup-brand-light);
  box-shadow: 0 6px 20px rgba(45, 50, 128, 0.3);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-signup-large:active {
  transform: translateY(0);
}

.btn-signup-large.enrolled {
  background: var(--signup-success, #22a867);
}

.btn-signup-large.enrolled:hover {
  background: #1e9a5c;
  box-shadow: 0 6px 20px rgba(34, 168, 103, 0.3);
}

.btn-signup-large.waitlisted,
.btn-signup-large.payment-due {
  background: var(--signup-warning, #e5a100);
}

.btn-signup-large.full {
  background: #9b9eb5;
  cursor: not-allowed;
}

.btn-signup-large.full:hover {
  transform: none;
  box-shadow: none;
}

.detail-external-notice {
  background: #f0f4ff;
  border: 1px solid #c8d6f0;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.88rem;
  color: #4a5073;
  line-height: 1.5;
  text-align: center;
}

.detail-external-notice i {
  color: #5b7fc7;
}

.detail-spots-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-spots-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.detail-spots-indicator.available .dot {
  background: var(--signup-success, #22a867);
}

.detail-spots-indicator.available {
  color: var(--signup-success, #22a867);
}

.detail-spots-indicator.limited .dot {
  background: var(--signup-warning, #e5a100);
}

.detail-spots-indicator.limited {
  color: var(--signup-warning, #e5a100);
}

.detail-spots-indicator.waitlist-indicator .dot {
  background: var(--signup-info);
}

.detail-spots-indicator.waitlist-indicator {
  color: var(--signup-info);
}

.detail-spots-indicator.full-indicator .dot {
  background: #9b9eb5;
}

.detail-spots-indicator.full-indicator {
  color: #9b9eb5;
}

/* At-a-glance info rows */
.detail-info-section {
  padding: 0.25rem 1.5rem;
}

.detail-info-section .info-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signup-muted, #9b9eb5);
  padding: 1rem 0 0.4rem;
  margin: 0;
}

.detail-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid #f5f6fa;
}

.detail-info-row:first-of-type {
  border-top: none;
}

.detail-info-row .info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--signup-brand-light);
}

.detail-info-row .info-label {
  font-size: 0.73rem;
  color: var(--signup-muted, #9b9eb5);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.detail-info-row .info-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--signup-text, #1e2040);
  line-height: 1.3;
}

.detail-info-row .info-value small {
  font-weight: 400;
  color: var(--signup-muted, #6b6f8d);
  font-size: 0.78rem;
}

/* Cost breakdown table */
.detail-cost-table {
  width: 100%;
  margin-top: 0.25rem;
}

.detail-cost-table tr td {
  font-size: 0.84rem;
  padding: 0.4rem 0;
  color: var(--signup-muted, #6b6f8d);
}

.detail-cost-table tr td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--signup-text, #1e2040);
}

.detail-cost-table tr.total td {
  border-top: 1.5px solid var(--signup-border, #e2e4ef);
  padding-top: 0.6rem;
  font-weight: 700;
  color: var(--signup-text, #1e2040);
  font-size: 0.9rem;
}

/* Coordinator contact */
.detail-contact-block {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--signup-border, #e2e4ef);
}

.detail-contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f5f6fa;
  border-radius: 10px;
}

.detail-contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--signup-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.detail-contact-info .name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--signup-text, #1e2040);
}

.detail-contact-info .role {
  font-size: 0.75rem;
  color: var(--signup-muted, #9b9eb5);
}

.detail-contact-info a {
  font-size: 0.78rem;
  color: var(--signup-brand);
  text-decoration: none;
  font-weight: 500;
}

.detail-contact-info a:hover {
  text-decoration: underline;
}

/* Download link */
.detail-download-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #f5f6fa;
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--signup-brand);
  text-decoration: none;
  transition: background 0.15s;
}

.detail-download-link:hover {
  background: #e8e9f3;
  text-decoration: none;
  color: var(--signup-brand);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .detail-hero {
    height: 220px;
  }

  .detail-body {
    margin-top: -40px;
  }

  .detail-title-block {
    padding: 1.25rem 1.25rem 1rem;
  }

  .detail-content {
    padding: 1.25rem;
  }

  .detail-sidebar-card {
    position: static;
    margin-top: 1.25rem;
  }
}

@media (max-width: 575px) {
  .detail-hero {
    height: 180px;
  }

  .detail-title-block h1 {
    font-size: 1.3rem;
  }
}

/* ============================================================
   ACTIVITY SIGNUP / CHECKOUT PAGE
   ============================================================ */

/* ── Compact header ── */
.checkout-header {
  background: linear-gradient(135deg, var(--signup-brand) 0%, var(--signup-brand-dark) 100%);
  padding: 1.5rem 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 0 -30px;
  width: calc(100% + 60px);
}

.checkout-header::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.checkout-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.checkout-header p {
  opacity: 0.7;
  font-size: 0.88rem;
  margin: 0;
}

/* ── Checkout body ── */
.checkout-body {
  padding: 2rem 0 3rem;
}

/* ── Form card ── */
.checkout-form-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--signup-border, #e2e4ef);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.checkout-form-card__header {
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--signup-border, #e2e4ef);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkout-form-card__header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.checkout-form-card__header .header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signup-brand-light);
  flex-shrink: 0;
}

.checkout-form-card__body {
  padding: 1.5rem 1.75rem;
}

/* Submit button */
.checkout-form-card__body .btn-primary,
.checkout-form-card__body input[type="submit"].btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--signup-brand);
  color: #fff;
  margin-top: 1.25rem;
}

.checkout-form-card__body .btn-primary:hover,
.checkout-form-card__body input[type="submit"].btn-primary:hover {
  background: var(--signup-brand-light);
  box-shadow: 0 6px 24px rgba(45, 50, 128, 0.3);
  transform: translateY(-1px);
}

/* ── Enrolment summary sidebar ── */
.checkout-summary {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--signup-border, #e2e4ef);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 70px;
  overflow: hidden;
}

.checkout-summary__header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--signup-border, #e2e4ef);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkout-summary__header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.checkout-summary__header .header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signup-brand-light);
  flex-shrink: 0;
}

.checkout-summary__body {
  padding: 1.25rem 1.5rem;
}

/* Child banner */
.checkout-child-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #f5f6fa;
  border-radius: 9px;
  margin-bottom: 1.1rem;
}

.checkout-child-banner .child-avatar {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--signup-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.checkout-child-banner .child-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--signup-text, #1e2040);
}

.checkout-child-banner .child-detail {
  font-size: 0.75rem;
  color: var(--signup-muted, #9b9eb5);
}

/* Activity mini card */
.checkout-activity-mini {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--signup-border, #e2e4ef);
  margin-bottom: 1.1rem;
}

.checkout-activity-mini .mini-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.checkout-activity-mini .mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-activity-mini .mini-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--signup-brand-light) 0%, var(--signup-brand-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.checkout-activity-mini h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--signup-text, #1e2040);
  line-height: 1.3;
}

.checkout-activity-mini .mini-cat {
  font-size: 0.75rem;
  color: var(--signup-muted, #9b9eb5);
}

/* Summary info rows */
.checkout-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.84rem;
}

.checkout-info-row .label {
  color: var(--signup-muted, #6b6f8d);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkout-info-row .value {
  font-weight: 600;
  color: var(--signup-text, #1e2040);
}

.checkout-summary-divider {
  border: none;
  border-top: 1px solid var(--signup-border, #e2e4ef);
  margin: 0.75rem 0;
}

/* Cost rows */
.checkout-cost-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.84rem;
  color: var(--signup-muted, #6b6f8d);
}

.checkout-cost-row .cost-val {
  font-weight: 600;
  color: var(--signup-text, #1e2040);
}

.checkout-cost-row.total {
  border-top: 2px solid var(--signup-text, #1e2040);
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  font-weight: 700;
  color: var(--signup-text, #1e2040);
  font-size: 1rem;
}

.checkout-cost-row.total .cost-val {
  font-size: 1.1rem;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .checkout-summary {
    position: static;
    margin-top: 1.25rem;
  }

  .checkout-header h1 {
    font-size: 1.3rem;
  }
}

@media (max-width: 575px) {
  .checkout-form-card__body {
    padding: 1.25rem;
  }
}

/* ============================================================
   PUBLIC SIGNUP: ICON THUMBNAILS + READ-MORE DRAWER
   ============================================================ */

/* Activity images on the public signup cards are line-art icons rather than
   photos. "cover" crops the top/bottom of those icons on some screen sizes, so
   contain the whole icon (with a little breathing room) on the public list. */
.public-signup-page .signup-card__image {
  background: #fff;
}

.public-signup-page .signup-card__image img {
  object-fit: contain;
  padding: 12px;
}

/* "Read more" link inside the card body */
.signup-card__readmore {
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--signup-brand);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.signup-card__readmore:hover {
  text-decoration: underline;
}

/* Dim the page behind the open drawer */
.signup-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 60, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1090;
}

.signup-drawer-overlay.is-open {
  opacity: 1;
}

/* Slide-out panel (off-screen to the right until opened) */
.signup-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 480px;
  max-width: 92vw;
  background: #fff;
  box-shadow: -12px 0 40px rgba(20, 22, 60, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.signup-drawer.is-open {
  transform: translateX(0);
}

.signup-drawer__header {
  position: relative;
  flex-shrink: 0;
  padding: 1.5rem 3.25rem 1.25rem 1.75rem;
  border-bottom: 1px solid var(--signup-border);
}

.signup-drawer__badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.7rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--signup-brand);
}

.signup-drawer__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--signup-text);
}

.signup-drawer__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--signup-light-bg);
  color: var(--signup-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--signup-transition), color var(--signup-transition);
}

.signup-drawer__close:hover {
  background: #e9ecef;
  color: var(--signup-text);
}

.signup-drawer__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 1.75rem;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.6;
  /* Break long words/emails rather than forcing horizontal scroll on mobile. */
  overflow-wrap: break-word;
}

.signup-drawer__body p {
  margin-bottom: 0.85rem;
}

.signup-drawer__body ul,
.signup-drawer__body ol {
  margin: 0 0 0.85rem 1.1rem;
  padding: 0;
}

.signup-drawer__body li {
  margin-bottom: 0.3rem;
}

.signup-drawer__body a {
  color: var(--signup-brand);
  font-weight: 600;
}

.signup-drawer__body img {
  max-width: 100%;
  height: auto;
}

/* Staff descriptions are often laid out as a two-column table (see the activity
   detail content) — keep tables readable inside the narrower drawer. */
.signup-drawer__body table {
  width: 100%;
  /* Force the staff-authored table to the drawer width and wrap cell content,
     rather than overflowing (its columns may carry their own widths). */
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.signup-drawer__body th,
.signup-drawer__body td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--signup-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.signup-drawer__footer {
  flex-shrink: 0;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--signup-border);
}

.signup-drawer__footer .btn {
  width: 100%;
  padding: 0.6rem;
  border-radius: 24px;
  font-weight: 600;
}

/* Stop the page scrolling behind the open drawer */
body.signup-drawer-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .signup-drawer {
    width: 100%;
    max-width: 100%;
  }
}
