.sandra-timeline {
  --stl-year-width: 4.75rem;
  --stl-column-gap: 1.125rem;
  --stl-year-gap: 0.45rem;
  --stl-event-gap: 0;
  --stl-content-width: 100%;
  --stl-marker-size: 12px;
  --stl-marker-color: #a66d3f;
  --stl-marker-border-color: #a66d3f;
  --stl-marker-border-width: 1px;
  --stl-marker-halo: #fbfaf7;
  --stl-line-color: #d6c9ba;
  --stl-line-width: 1px;
  --stl-panel-background: #f5f1e9;
  --stl-panel-border: #e5d9cb;
  --stl-panel-accent: rgba(166, 109, 63, 0.22);
  --stl-panel-accent-width: 3px;
  --stl-event-separator: rgba(166, 109, 63, 0.18);
  --stl-event-separator-width: 1px;
  --stl-secondary-marker: #a66d3f;
  --stl-secondary-marker-size: 5px;
  --stl-note-border: rgba(166, 109, 63, 0.48);
  --stl-highlight: #a66d3f;
  box-sizing: border-box;
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  color: #172433;
}

.sandra-timeline *,
.sandra-timeline *::before,
.sandra-timeline *::after {
  box-sizing: border-box;
}

.sandra-timeline__header {
  margin-bottom: 1.25rem;
}

.sandra-timeline__title {
  margin: 0;
  color: #172433;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  font-weight: 500;
  line-height: 1.08;
}

.sandra-timeline__intro {
  max-width: 62ch;
  margin-top: 0.75rem;
  color: #65717d;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.sandra-timeline__intro > :first-child { margin-top: 0; }
.sandra-timeline__intro > :last-child { margin-bottom: 0; }

.sandra-timeline__list,
.sandra-timeline__events {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sandra-timeline__list {
  position: relative;
  overflow: hidden;
  transition: height var(--stl-animation-duration, 400ms) cubic-bezier(.22, 1, .36, 1);
}

.sandra-timeline__list::before {
  position: absolute;
  z-index: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  left: calc(var(--stl-year-width) + var(--stl-column-gap) + (var(--stl-marker-size) / 2) - (var(--stl-line-width) / 2));
  width: var(--stl-line-width);
  background: var(--stl-line-color);
  content: "";
  pointer-events: none;
}

.sandra-timeline__year-group {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, var(--stl-year-width)) var(--stl-marker-size) minmax(0, 1fr);
  align-items: start;
  padding-bottom: var(--stl-year-gap);
  column-gap: var(--stl-column-gap);
}

.sandra-timeline__year-group:last-child { padding-bottom: 0; }

.sandra-timeline__year {
  grid-column: 1;
  display: block;
  margin-top: 0;
  padding-top: 18px;
  color: #172433;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: right;
}

.sandra-timeline__marker {
  grid-column: 2;
  z-index: 2;
  display: block;
  width: var(--stl-marker-size);
  height: var(--stl-marker-size);
  margin-top: 20px;
  border: var(--stl-marker-border-width) solid var(--stl-marker-border-color);
  background: var(--stl-marker-color);
  box-shadow: 0 0 0 5px var(--stl-marker-halo);
}

.sandra-timeline.marker-circle .sandra-timeline__marker { border-radius: 50%; }
.sandra-timeline.marker-square .sandra-timeline__marker { border-radius: 0; }
.sandra-timeline.marker-diamond .sandra-timeline__marker { transform: rotate(45deg) scale(.82); border-radius: 0; }

.sandra-timeline__events {
  grid-column: 3;
  position: relative;
  display: block;
  width: min(100%, var(--stl-content-width));
  min-width: 0;
  padding: 16px 24px;
  border-color: var(--stl-panel-border);
  border-style: solid;
  border-width: 1px 1px 1px 0;
  border-radius: 2px;
  background-color: var(--stl-panel-background);
  background-image: linear-gradient(90deg, var(--stl-panel-accent) 0 var(--stl-panel-accent-width), transparent var(--stl-panel-accent-width));
}

.sandra-timeline__event {
  position: relative;
}

.sandra-timeline__event + .sandra-timeline__event {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: var(--stl-event-separator-width) solid var(--stl-event-separator);
}

.sandra-timeline__event + .sandra-timeline__event::before {
  position: absolute;
  top: calc((var(--stl-secondary-marker-size) / -2) - (var(--stl-event-separator-width) / 2));
  left: 0;
  width: var(--stl-secondary-marker-size);
  height: var(--stl-secondary-marker-size);
  border-radius: 50%;
  background: var(--stl-secondary-marker);
  content: "";
}

.sandra-timeline__event-card,
.sandra-timeline__event:last-child .sandra-timeline__event-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.65rem;
  row-gap: 0.2rem;
  min-width: 0;
  padding: 0;
  border: 0 solid transparent;
  background: transparent;
}

.sandra-timeline__event-title {
  margin: 0;
  margin-bottom: 0 !important;
  display: inline;
  color: #172433;
  font-family: Inter, Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600 !important;
  line-height: 1.35;
}

.sandra-timeline__event-title a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.sandra-timeline__event-title a:hover,
.sandra-timeline__event-title a:focus-visible {
  color: var(--stl-highlight);
  text-decoration-color: currentColor;
}

.sandra-timeline__meta,
.sandra-timeline__details {
  margin: 0;
  margin-block: 0 !important;
  margin-block-end: 0 !important;
  font-family: Inter, Arial, sans-serif;
}

.sandra-timeline__meta {
  margin: 0;
  margin-block: 0 !important;
  margin-block-end: 0 !important;
  display: inline;
  color: #65717d;
  font-size: 1rem;
  line-height: 1.35;
}

.sandra-timeline__institution {
  color: inherit;
  font-weight: 500;
}

.sandra-timeline__location {
  color: #8c572e;
  font-weight: 500;
}

.sandra-timeline__details:not(.is-badge) {
  flex-basis: 100%;
  margin-top: 0.25rem;
  color: #8c572e;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.4;
}

.sandra-timeline__details.is-note {
  padding-left: 0.6rem;
  border-left: 2px solid var(--stl-note-border);
}

.sandra-timeline__details.is-badge {
  flex-basis: auto;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block: 0 !important;
  margin-left: auto;
  align-self: center;
  display: inline-flex;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 1.35rem;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border: 1px solid rgba(166, 109, 63, 0.3);
  border-radius: 999px;
  background: rgba(166, 109, 63, 0.08);
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.sandra-timeline__details.is-plain {
  color: #65717d;
  font-weight: 400;
  letter-spacing: normal;
}

.sandra-timeline__event.is-highlighted .sandra-timeline__event-card {
  padding: 0.6rem 0.75rem;
  border-left-color: var(--stl-highlight);
  border-left-width: 2px;
  background: rgba(166, 109, 63, 0.055);
}

.sandra-timeline__year-group:has(.sandra-timeline__event.is-highlighted) .sandra-timeline__marker {
  border-color: var(--stl-highlight);
  background: var(--stl-highlight);
}

.sandra-timeline__toggle-wrap {
  display: flex;
  width: min(var(--stl-content-width), calc(100% - var(--stl-year-width) - var(--stl-marker-size) - (var(--stl-column-gap) * 2)));
  justify-content: flex-start;
  margin-top: 0.75rem;
  margin-left: calc(var(--stl-year-width) + var(--stl-marker-size) + (var(--stl-column-gap) * 2));
}

.sandra-timeline__toggle {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 1px solid #a66d3f;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #8c572e;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.sandra-timeline__toggle:hover,
.sandra-timeline__toggle:focus-visible {
  border-color: #a66d3f;
  background: transparent;
  color: #a66d3f;
}

.sandra-timeline__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.sandra-timeline__toggle-icon {
  position: relative;
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.125rem) rotate(45deg);
  transition: transform 180ms ease;
}

.sandra-timeline.is-expanded .sandra-timeline__toggle-icon { transform: translateY(0.125rem) rotate(225deg); }

.sandra-timeline__toggle-wrap[hidden],
.sandra-timeline__year-group[hidden],
.sandra-timeline__event[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .sandra-timeline {
    --stl-year-width: 4.25rem;
    --stl-column-gap: 0.875rem;
    --stl-year-gap: 0.45rem;
  }
}

@media (max-width: 767px) {
  .sandra-timeline {
    --stl-year-width: 3.1rem;
    --stl-column-gap: 0.6rem;
    --stl-year-gap: 0.45rem;
    --stl-marker-size: 9px;
  }

  .sandra-timeline__list::before {
    top: 1.15rem;
    bottom: 1.15rem;
  }

  .sandra-timeline__year {
    padding-top: 10px;
    font-size: 1.35rem;
  }

  .sandra-timeline__marker {
    margin-top: 15px;
    box-shadow: 0 0 0 4px var(--stl-marker-halo);
  }

  .sandra-timeline__events {
    padding: 12px 16px;
  }

  .sandra-timeline__event-title {
    font-size: 0.955rem;
    overflow-wrap: anywhere;
  }

  .sandra-timeline__meta { font-size: 0.8125rem; }
  .sandra-timeline__separator,
  .sandra-timeline__institution,
  .sandra-timeline__location { display: inline; }

  .sandra-timeline__toggle-wrap {
    margin-left: calc(var(--stl-year-width) + var(--stl-marker-size) + (var(--stl-column-gap) * 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sandra-timeline__list,
  .sandra-timeline__toggle,
  .sandra-timeline__toggle-icon,
  .sandra-timeline__event-card,
  .sandra-timeline__event-title a {
    transition-duration: 0.01ms !important;
  }
}
