.timeline {
    position: absolute;
    top: 2500px;
    left: 50%;
    margin-left: -660px;
    width: 420px;
}

.tls,
.tls *,
.tls *::before,
.tls *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.tls {
  /*min-height: 100vh;*/
  width: 100%;

  --tl-accent: white;
  --tl-line: red;
  --tl-ink: white;
  --tl-mut: #8a7f96;

  display: grid;
  place-items: top;
}

.tls__wrap {
  width: min(700px, 100%);
}

/* Heading */
.tls__h {
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 800;
  color: var(--tl-ink);
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

/* Timeline list */
.tls__list {
  list-style: none;
}

/* Individual timeline item */
.tls__item {
  position: relative;
  padding-left: 190px;
  margin-left: -70px;
}

/* Vertical timeline line */
.tls__item::before {
  content: '';
  position: absolute;
  left: 164px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tl-line);
}

/* Shorten line above first marker */
.tls__item:first-child::before {
  top: 24px;
}

/* Shorten line below last marker */
.tls__item:last-child::before {
  bottom: calc(100% - 24px);
}

/* Timeline dots */
.tls__item::after {
  content: '';
  position: absolute;
  left: 161px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  /* border: 3px solid var(--tl-mut); */
  box-shadow: 0 0 0 6px red;
  transition: border-color .2s, scale .2s;
}

/* Highlight active dot */
.tls__item:has(.tls__d[open])::after {
  border-color: var(--tl-accent);
  scale: 1.25;
}

/* Summary / clickable header */

.tls__sum {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  cursor: pointer;
  padding: 14px 6px;
  user-select: none;
}

.tls__sum::-webkit-details-marker {
  display: none;
}

.tls__ti:hover {
  text-shadow:
    -1px -1px 0 red,
    1px -1px 0 red,
    -1px  1px 0 red,
    1px  1px 0 red;      
}

/* Active title */
.tls__d[open] .tls__sum .tls__ti {
  color: var(--tl-accent);
}

/* Left side: label + year */
.tls__date {
  position: absolute;
  left: 0;
  top: 10px;
  width: 145px;

  display: flex;
  flex-direction: column;
  gap: 0px;

  text-align: right;
}

.tls__meta {
  font-size: 20px;
  font-weight: 700; 
  color: #7ee702;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tls__yr {
  font-family:  ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;      
}

/* Right side: title */
.tls__ti {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--tl-ink);
  letter-spacing: -.01em;

  transition: color .2s;
  text-wrap: pretty;
}

/* Plus / minus indicator */
.tls__pm {
  flex: none;
  position: relative;
  width: 14px;
  height: 14px;
  align-self: center;
}

.tls__pm::before,
.tls__pm::after {
  content: '';
  position: absolute;
  background: var(--tl-mut);
  border-radius: 1px;

  transition: transform .25s, background .2s;
}

/* Horizontal line */
.tls__pm::before {
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
}

/* Vertical line */
.tls__pm::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
}

/* Turn plus into minus */
.tls__d[open] .tls__pm::after {
  transform: rotate(90deg);
}

/* Active icon color */
.tls__d[open] .tls__pm::before,
.tls__d[open] .tls__pm::after {
  background: var(--tl-accent);
}

/* Expandable content */
.tls__reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.tls__d[open] .tls__reveal {
  grid-template-rows: 1fr;
}

.tls__panel {
  font-family:  Tahoma, Arial, Verdana, sans-serif;
  font-size: 12px;
  line-height: 1.65;
  color: lightgray;

  padding: 2px 6px 18px;
  max-width: 56ch;
  text-wrap: pretty;
}

/* Responsive layout */

@media (max-width: 600px) {
  .tls {
    padding: 36px 16px;
  }

  .tls__item {
    padding-left: 130px;
  }

  .tls__item::before {
    left: 108px;
  }

  .tls__item::after {
    left: 103px;
  }

  .tls__date {
    width: 90px;
  }

  .tls__meta {
    font-size: 10px;
  }

  .tls__yr {
    font-size: 13px;
  }

  .tls__sum {
    gap: 8px;
  }

  .tls__ti {
    font-size: 14px;
  }
}

/* Extra-small screens */
@media (max-width: 380px) {
  .tls__item {
    padding-left: 112px;
  }

  .tls__item::before {
    left: 92px;
  }

  .tls__item::after {
    left: 87px;
  }

  .tls__date {
    width: 76px;
  }

  .tls__meta {
    font-size: 9px;
  }

  .tls__sum {
    padding-left: 2px;
    padding-right: 2px;
  }
}