.timeline-legend {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: inherit;
  line-height: inherit;
  opacity: 0.8;
}

.legend-dot {
  display: inline-block;
  margin-right: 0.35rem;
  margin-left: 0.15rem;
  vertical-align: middle;
  font-size: 0.75em;
  line-height: 1;
}

.timeline-legend .legend-dot-conf {
  border-radius: 50%;
}

.timeline-legend .legend-dot-journal {
  border-radius: 2px;
}

.timeline-legend .legend-dot-conf {
  color: #0f766e !important;
}

.timeline-legend .legend-dot-journal {
  color: #b45309 !important;
}

[data-theme="light"] .timeline-legend .legend-dot-conf {
  color: #0f766e !important;
}

[data-theme="light"] .timeline-legend .legend-dot-journal {
  color: #b45309 !important;
}

[data-theme="dark"] .timeline-legend .legend-dot-conf {
  color: #5eead4 !important;
}

[data-theme="dark"] .timeline-legend .legend-dot-journal {
  color: #fbbf24 !important;
}

.timeline {
  margin: 1.5rem 0;
  padding-left: 0;
  color: inherit;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: -1.5rem;
  width: 2px;
  background: #78716c;
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #78716c;
  border: 2px solid #faf7f2;
  z-index: 2;
}

.timeline-year {
  font-weight: 700;
  color: #1c1917;
  font-size: 1rem;
  padding-left: 1.25rem;
  margin-bottom: 0.25rem;
}

.timeline-body {
  margin-top: 0.35rem;
  color: #44403c;
  line-height: 1.6;
}

.timeline-entry {
  margin: 0.35rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  padding-left: 1.25rem;
}

.timeline-entry::before {
  display: none;
}

.timeline-entry::after {
  content: "";
  position: absolute;
  left: 0px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #78716c;
  border: 2px solid #faf7f2;
  z-index: 2;
}

.timeline-entry[data-type="Conf"]::after,
.timeline-entry[data-type="Conference"]::after {
  background: #0f766e;
}

.timeline-entry[data-type="Journal"]::after,
.timeline-entry[data-type="Journals"]::after {
  background: #b45309;
  border-radius: 2px;
}

.timeline-entry .tag {
  display: none;
}

.timeline-entry .text {
  color: #292524;
}

.timeline-entry .text a {
  color: inherit;
}

.timeline-entry .text a:hover {
  color: inherit;
}


[data-theme="light"] .timeline::before {
  background: #78716c;
}

[data-theme="light"] .timeline-item::before {
  background: #78716c;
  border-color: #faf7f2;
}

[data-theme="light"] .timeline-year {
  color: #1c1917;
}

[data-theme="light"] .timeline-body {
  color: #44403c;
}


[data-theme="light"] .timeline-entry .text {
  color: #292524;
}

[data-theme="light"] .timeline-entry .text a {
  color: inherit;
}

[data-theme="light"] .timeline-entry .text a:hover {
  color: inherit;
}


[data-theme="light"] .timeline-entry::after {
  border-color: #faf7f2;
}

[data-theme="light"] .timeline-entry[data-type="Conf"]::after,
[data-theme="light"] .timeline-entry[data-type="Conference"]::after {
  background: #0f766e;
}

[data-theme="light"] .timeline-entry[data-type="Journal"]::after,
[data-theme="light"] .timeline-entry[data-type="Journals"]::after {
  background: #b45309;
  border-radius: 2px;
}


[data-theme="dark"] .timeline::before {
  background: #6b6560;
}

[data-theme="dark"] .timeline-item::before {
  background: #6b6560;
  border-color: #1c1a17;
}

[data-theme="dark"] .timeline-year {
  color: #e8e4dc;
}

[data-theme="dark"] .timeline-body {
  color: #e8e4dc;
}


[data-theme="dark"] .timeline-entry .text {
  color: #e8e4dc;
}


[data-theme="dark"] .timeline-entry::after {
  border-color: #1c1a17;
}

[data-theme="dark"] .timeline-entry[data-type="Conf"]::after,
[data-theme="dark"] .timeline-entry[data-type="Conference"]::after {
  background: #5eead4;
}

[data-theme="dark"] .timeline-entry[data-type="Journal"]::after,
[data-theme="dark"] .timeline-entry[data-type="Journals"]::after {
  background: #fbbf24;
  border-radius: 2px;
}

[data-theme="dark"] .timeline-entry .text a {
  color: #e8e4dc;
}

[data-theme="dark"] .timeline-entry .text a:hover {
  color: #eab08a;
}

@media (max-width: 640px) {
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 4px;
    width: 2px;
  }

  .timeline-item::before {
    left: -1px;
    width: 12px;
    height: 12px;
  }

  .timeline-entry::after {
    left: 0px;
    width: 10px;
    height: 10px;
  }

  .timeline-year {
    font-size: 0.95rem;
    padding-left: 1rem;
  }
}
