/* --------------------------------

Accessible responsive timeline layout

-------------------------------- */
.svt-cd-container {
  width: min(100% - 1.5rem, 1100px);
  margin-inline: auto;
}

.svt-cd-timeline {
  --svt-line-color: #cbd5e1;
  --svt-card-border: #d0d7de;
  --svt-card-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --svt-axis-offset: 1.95rem;
  position: relative;
  padding-block: 1rem;
}

.svt-cd-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--svt-axis-offset);
  width: 3px;
  background: var(--svt-line-color);
  border-radius: 999px;
}

.svt-cd-timeline-block {
  position: relative;
  margin: 0 0 1.75rem;
  padding-left: 4.25rem;
}

.svt-cd-timeline-anchor {
  position: absolute;
  top: -72px;
}

.svt-cd-timeline-img {
  position: absolute;
  top: 0.8rem;
  left: calc(var(--svt-axis-offset) - 1.4rem);
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 0 4px #fff, 0 0 0 1px #cbd5e1;
}

.svt-cd-timeline-img img,
.svt-cd-timeline-img .svt-bi {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1.35rem;
  line-height: 1.35rem;
  color: currentColor;
}

.svt-cd-timeline-img.svt-cd-yellow .svt-bi {
  color: #111827;
}

.svt-cd-timeline-img.svt-cd-blue { background: #1d4ed8; }
.svt-cd-timeline-img.svt-cd-red { background: #b91c1c; }
.svt-cd-timeline-img.svt-cd-white { background: #fff; }
.svt-cd-timeline-img.svt-cd-green { background: #15803d; }
.svt-cd-timeline-img.svt-cd-yellow { background: #facc15; }

.svt-cd-timeline-content {
  position: relative;
  background: #fff;
  border: 1px solid var(--svt-card-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--svt-card-shadow);
}

.svt-cd-timeline-content::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  right: 100%;
  border: 0.55rem solid transparent;
  border-right-color: var(--svt-card-border);
}

.svt-cd-timeline-content::after {
  content: '';
  position: absolute;
  top: 1.25rem;
  right: calc(100% - 1px);
  border: 0.55rem solid transparent;
  border-right-color: #fff;
}

.svt-cd-timeline-content h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.35;
}

.svt-cd-timeline-content p {
  margin: 0.8rem 0;
  color: #1f2937;
  line-height: 1.65;
}

.svt-cd-timeline-content ul,
.svt-cd-timeline-content ol {
  margin: 0.8rem 0;
  padding-left: 1.2rem;
}

.svt-cd-timeline-content .svt-cd-timeline-content-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.svt-cd-timeline-content .svt-cd-date {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.35;
}

.svt-cd-timeline-content .svt-cd-date-subtitle {
  margin: 0.3rem 0 0.65rem;
}

.svt-cd-timeline-content .svt-cd-read-more {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.svt-cd-timeline-content .svt-cd-timeline-content-body > :first-child {
  margin-top: 0.6rem;
}

.svt-cd-timeline-content .svt-cd-timeline-content-body > :last-child {
  margin-bottom: 0;
}

.svt-cd-timeline-content .svt-cd-timeline-content-btm-more {
  margin: 0;
  display: inline-flex;
}

.svt-powered-by {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.svt-cd-timeline-content .svt-cd-read-more:hover {
  background: #1d4ed8;
}

.svt-cd-timeline-content .svt-cd-read-more:focus-visible,
.svt-cd-timeline a:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

@media (min-width: 860px) {
  .svt-cd-timeline {
    --svt-axis-offset: 50%;
  }

  .svt-cd-timeline-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.8rem minmax(0, 1fr);
    align-items: start;
    gap: 0;
    padding-left: 0;
    margin-bottom: 2.25rem;
  }

  .svt-cd-timeline-img {
    left: 50%;
    transform: translateX(-50%);
    top: 0.9rem;
    width: 3.2rem;
    height: 3.2rem;
  }

  .svt-cd-timeline-content {
    grid-column: 1;
  }

  .svt-cd-timeline-content::before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: var(--svt-card-border);
  }

  .svt-cd-timeline-content::after {
    right: auto;
    left: calc(100% - 1px);
    border-right-color: transparent;
    border-left-color: #fff;
  }

  .svt-cd-timeline-block:nth-child(even) .svt-cd-timeline-content {
    grid-column: 3;
  }

  .svt-cd-timeline-block:nth-child(even) .svt-cd-timeline-content::before {
    left: auto;
    right: 100%;
    border-left-color: transparent;
    border-right-color: var(--svt-card-border);
  }

  .svt-cd-timeline-block:nth-child(even) .svt-cd-timeline-content::after {
    left: auto;
    right: calc(100% - 1px);
    border-left-color: transparent;
    border-right-color: #fff;
  }


}

@media (prefers-reduced-motion: reduce) {
  .svt-cd-timeline * {
    animation: none !important;
    transition: none !important;
  }
}

