.timeline {
  --timeline-focus-y: 0vh;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}
.timeline-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.timeline-aside {
  position: sticky;
  top: 20vh;
  height: fit-content;
  z-index: 12;
}
.timeline-rail {
  position: relative;
}
.timeline-nav {
  list-style: none;
  margin-top: 6rem;
  padding: 0;
  position: relative;
}
.timeline-nav::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: #000;
  opacity: 1;
}
.timeline-nav-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  line-height: 1.4;
}
.timeline-nav-item.is-active .timeline-nav-dot {
  transform: scale(1.15);
}
.timeline-nav-item.is-active .timeline-nav-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  padding: 0.7rem;
  border: 1px solid #a78e75; /* or var(--brown) if preferred */
  border-radius: 50px;
  transform: translate(-50%, -50%);
}
.timeline-nav-item.is-active .timeline-nav-year {
  opacity: 1;
  pointer-events: auto;
}
.timeline-nav-item .timeline-nav-year {
  opacity: 0;
  transition: 200ms ease all;
}
.timeline-nav-item:hover .timeline-nav-year {
  opacity: 1;
}
.timeline-nav-dot {
  position: relative; /* needed for ::after ring */
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brown);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
  /* keep keyboard focus behavior consistent */
}
.timeline-nav-dot:focus-visible {
  outline: none;
}
.timeline-nav-year-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
}
.timeline-nav-year-link:hover .timeline-nav-year, .timeline-nav-year-link:focus-visible .timeline-nav-year {
  text-decoration: underline;
}
.timeline-nav-year {
  font-size: 18px;
  color: #bc4c01;
  line-height: unset;
  font-weight: 800;
}
.timeline-body {
  display: grid;
  gap: 32px;
}
.timeline-section {
  position: relative;
  z-index: 0;
  scroll-margin-top: var(--timeline-focus-y, 0vh);
  border-radius: 0;
  padding: 6rem 0;
}
.timeline-section:last-child {
  margin-bottom: 0;
}
.timeline-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(calc(-50% - 120px));
  width: 100vw;
  z-index: -1;
}
.timeline-section.is-odd::before {
  background: #f7f6f2;
}
.timeline-section.is-even::before {
  background: #bed0ce;
}
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3rem;
  margin-left: 2rem;
}
.timeline-block {
  border-radius: 10px;
  padding: 0 2rem 3rem 2rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  background: var(--brown-light);
}
.timeline-block.is-active {
  background: white;
  transform: translateY(-1px);
}
.timeline-block-year-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.timeline-block-year {
  display: inline-block;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue);
  color: white;
  padding: 6px 10px;
  margin-bottom: 2rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.timeline-block.is-active .timeline-block-year {
  background: var(--rust);
  color: #fff;
}
.timeline-block-title {
  line-height: 1.15;
  margin: 4px 0 6px;
  font-weight: 500;
  color: #19324b;
  font-size: var(--step-4);
}
.timeline-block-divider {
  margin: 1rem 0;
  background: var(--brown);
  width: 100%;
  max-width: 56px;
  height: 3px;
  border: none;
}
.timeline-block-desc {
  margin: 0;
  color: #2d3a45;
  font-size: 20px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .timeline-grid {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .timeline-list {
    margin-left: 0;
  }
  .timeline-section::before {
    transform: translateX(calc(-50% - 50px));
  }
  .timeline-nav-year-link {
    margin-left: 0;
  }
  .timeline-nav-year {
    font-size: 14px;
  }
}
