/* Career timeline. Every selector starts with .timeline: this file loads on every page. */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline .timeline-entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

/* Line to the next entry, fading from this entry's color to the next one's */
.timeline > .timeline-entry::before {
  background: linear-gradient(var(--c), var(--n));
  bottom: 0;
  content: '';
  left: 29px;
  position: absolute;
  top: 64px;
  width: 6px;
}
.timeline > .timeline-entry:last-child::before {
  display: none;
}

.timeline .timeline-badge {
  align-items: center;
  background: #fff;
  border: 3px solid var(--c);
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}
.timeline .timeline-badge img {
  border: 0;
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.timeline .timeline-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline .timeline-company {
  font-weight: bold;
  margin: 0;
}
.timeline .timeline-company::before {
  content: none;
}

.timeline .timeline-meta {
  color: #686875;
  font-size: 13px;
}
@media (prefers-color-scheme: dark) {
  .timeline .timeline-meta {
    color: #aaaab5;
  }
}

.timeline .timeline-highlight {
  font-family: 'Fira Sans', sans-serif;
  margin: 8px 0 0;
}

.timeline .timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.timeline .timeline-tags li {
  border: 1px solid var(--c);
  border-left-width: 6px;
  color: inherit;
  font-size: 12px;
  padding: 0 8px;
  text-indent: 0;
  white-space: normal;
}
.timeline .timeline-tags li::before {
  content: none;
}
