/* ── Timeline CSS: only what Bootstrap utilities cannot express ── */

/* Left-side vertical rule */
.timeline::before {
  content: "";
  background-color: black;
  position: absolute;
  top: 0;
  left: 2em;
  width: 2px;
  height: 99.5%;
  margin-top: 20px;
  margin-left: -1px;
}

/* Diamond icon — rotated square with hover transition */
.timeline-event-icon {
  transform: rotate(45deg);
  transition: transform 0.2s ease-in;
  outline: 10px solid white;
  position: absolute;
  top: 0;
  left: 2em;
  width: 1em;
  height: 1em;
  margin: 0.5em 0.5em 0.5em -0.5em;
}
.timeline-event:hover .timeline-event-icon {
  transform: rotate(-45deg);
  background-color: #fe0000 !important;
}

/* Date pill — animated fill on hover */
.timeline-event-thumbnail {
  transition: box-shadow 0.5s ease-in 0.1s;
  box-shadow: inset 0 0 0 0 #ff4040;
  font-size: 0.8em;
  padding: 0.25em 1em 0.2em;
}
.timeline-event:hover .timeline-event-thumbnail {
  box-shadow: inset 40em 0 0 0 #fe0000;
}

/* Copy block offset — aligns text past the icon and line */
.timeline-event-copy {
  position: relative;
  top: -1.875em;
  left: 4em;
  width: 100%;
  padding: 2em 2em 0;
}
.timeline-event-copy h3 { font-size: 1.75em; }
.timeline-event-copy h4 { font-size: 1.2em; margin-bottom: 1.2em; }
.timeline-event-copy p:not(.timeline-event-thumbnail) { padding-bottom: 0; }

/* Mobile: collapse left-rail layout */
@media (max-width: 576px) {
  .timeline::before    { display: none; }
  .timeline-event-icon { display: none; }
  .timeline-event-copy { 
      left: 0; 
      padding: 1rem 1rem 0;
      margin-bottom: .25rem;
      border-bottom: 1px solid var(--bs-border-color);
 }
}