/* show.php */
.content-box {
  white-space: pre-wrap;
  line-height: 1.5;
}

.timeline {
  position: relative;
  margin-left: 0.5rem;
  padding-left: 1rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bs-border-color);
}
.timeline-item {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.15rem;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--bs-primary);
}
.timeline-meta {
  margin-bottom: 0.25rem;
}
.timeline-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}
/* fin show.php */

/* Timeline siempre con scroll; colapsado = altura menor, expandido = altura mayor */
.timeline-wrapper { position: relative; }

.timeline-wrapper .timeline {
  max-height: 320px;   /* altura en colapsado */
  overflow: auto;      /* scroll SIEMPRE */
}

/* expandido: más alto, sigue con scroll si hace falta */
.timeline-wrapper:not(.is-collapsed) .timeline {
  max-height: 560px;   /* ajusta a gusto */
}

/* Fade solo cuando está colapsado para sugerir que hay más */
.timeline-fade { display: none; }
.timeline-wrapper.is-collapsed .timeline-fade {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 46px;
  height: 60px;
  pointer-events: none;
}
