/**
 * Timeline souvenirs V1.1
 */

.cdsp-wrap--timeline {
  max-width: 46rem;
}

.cdsp-wrap--density-compact .cdsp-wall-list {
  gap: 0.65rem;
}

.cdsp-script {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cdsp-empty--script {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: 1.15rem;
  line-height: 1.45;
}

.cdsp-timeline {
  position: relative;
  margin: 0.75rem 0 2rem;
}

.cdsp-wrap--timeline .cdsp-header {
  margin-bottom: 1.25rem;
}

.cdsp-timeline__rail {
  position: absolute;
  left: 0.45rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(232, 74, 127, 0.35), rgba(30, 58, 95, 0.12));
}

.cdsp-timeline__body {
  margin-left: 1.35rem;
}

.cdsp-timeline-year {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.35rem;
  color: var(--cdsp-navy);
}

.cdsp-timeline-month {
  margin: 0 0 2.1rem;
}

.cdsp-timeline-month__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cdsp-navy);
}

.cdsp-timeline-month__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cdsp-pink);
  box-shadow: 0 0 0 3px rgba(232, 74, 127, 0.15);
  flex-shrink: 0;
}

.cdsp-timeline-month__content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.cdsp-timeline-event {
  padding: 0.65rem 0.75rem 0.25rem;
  border-radius: 12px;
  background: rgba(252, 232, 240, 0.35);
  border: 1px dashed rgba(30, 58, 95, 0.1);
}

.cdsp-timeline-event__head {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--cdsp-muted);
}

.cdsp-timeline-event__label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  margin-right: 0.35rem;
}

.cdsp-timeline-event__date {
  font-weight: 400;
}

.cdsp-timeline-archives {
  margin: 1.5rem 0 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(30, 58, 95, 0.08);
}

.cdsp-timeline-archives__summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cdsp-navy);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.cdsp-timeline-archive-intro {
  margin: 0 0 1rem;
}

.cdsp-card--cream .cdsp-card__inner {
  background: #fffdf8;
}

.cdsp-card--peach .cdsp-card__inner {
  background: #fff5ef;
}

.cdsp-card--lavender .cdsp-card__inner {
  background: #f7f4ff;
}

.cdsp-card--mint .cdsp-card__inner {
  background: #f2fbf7;
}

.cdsp-wrap--timeline .cdsp-card__inner {
  background-image:
    radial-gradient(rgba(30, 58, 95, 0.03) 1px, transparent 1px);
  background-size: 6px 6px;
  box-shadow: 0 2px 10px rgba(30, 58, 95, 0.05);
  border-color: rgba(30, 58, 95, 0.06);
}

.cdsp-card--recent .cdsp-card__inner {
  box-shadow: 0 3px 14px rgba(232, 74, 127, 0.08);
}

@media (max-width: 480px) {
  .cdsp-wrap--timeline {
    padding-bottom: 1.5rem;
  }

  .cdsp-timeline {
    margin-bottom: 2.25rem;
  }

  .cdsp-timeline__body {
    margin-left: 1rem;
  }

  .cdsp-timeline-month__title {
    font-size: 1rem;
    min-height: 44px;
    align-items: center;
  }

  .cdsp-timeline-month__content {
    gap: 1.15rem;
  }

  .cdsp-timeline-event {
    padding: 0.55rem 0.6rem 0.2rem;
  }

  .cdsp-timeline-archives__summary {
    padding: 0.35rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdsp-card {
    transform: none !important;
  }
}
