:root {
  --ts-gap-above-line: 1.125rem;   
  --ts-gap-below-line: 1.125rem;  
  --ts-dot-size: 0.75rem;         
  --ts-line-thickness: 0.125rem; 
  --ts-slide-gap: 0.5em;
}

/* -------------------------------------------------- */
/* Splide layout */
.splide__track {
  margin-inline: 4rem;
  position: relative;
}

.ts-timeline {
  width: 100%;
  position: relative;
}

/* -------------------------------------------------- */
/* Slides */
.ts-timeline .splide__slide {
  display: flex;
  justify-content: center;
  position: relative;
}

/* -------------------------------------------------- */
/* Timeline card (FLEX) */
.ts-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* -------------------------------------------------- */
/* Top stack: image only */
.ts-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ts-gap-above-line);
}

/* -------------------------------------------------- */
/* Image */
.ts-image-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.ts-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

.ts-image-empty {
  width: 100%;
  min-height: 6rem;
}

/* -------------------------------------------------- */
/* Year (positioned close to dot) */
.ts-year {
    color:var(--e-global-color-secondary);
  font-weight: 400;
  font-size: 2rem;
  font-family: "castor";
  margin-top: var(--ts-gap-above-line); /* space above dot */
  z-index: 2;
}

/* -------------------------------------------------- */
/* Anchor: dot + line in each slide */
.ts-anchor {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 0 var(--ts-gap-below-line);
}

.ts-line {
  position: absolute;
  left: calc(-1 * var(--ts-slide-gap) / 2);
  right: calc(-1 * var(--ts-slide-gap) / 2);
  top: 50%;
  height: var(--ts-line-thickness);
  background: currentColor;
  opacity: 0.15;
  z-index: 1;
}

.ts-dot {
  position: relative; /* now relative so it sits on top of the line */
  width: var(--ts-dot-size);
  height: var(--ts-dot-size);
  border-radius: 50%;
  background: currentColor;
  z-index: 2;
}

/* -------------------------------------------------- */
/* Bottom content (grows downward independently) */
.ts-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.ts-title {
  font-weight: 700;
}

.ts-body {
  font-size: 0.9rem;
  line-height: 1.4;
}
