.timeline-section { margin-top: 4rem; }
.timeline-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.25rem; }
.timeline-heading h2 { margin: 0; }
.timeline-heading p { max-width: 560px; margin: .4rem 0 0; color: #42627e; }
.timeline-controls { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.timeline-controls button { width: 2.2rem; height: 2.2rem; margin: 0; padding: 0; background: transparent; border: 1px solid var(--ink); color: var(--ink); font-size: 1.3rem; }
.timeline-controls button:hover { background: var(--ink); color: #fff; }
.timeline-controls span { min-width: 3.5rem; text-align: center; color: var(--ink); font-size: .85rem; font-weight: 700; }
.vertical-timeline { --timeline-scale: 1; position: relative; width: min(100%, 880px); margin: 0 auto; padding: 1rem 0 3rem; transform: scale(var(--timeline-scale)); transform-origin: top center; transition: transform .2s ease, margin-bottom .2s ease; }
.vertical-timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; background: linear-gradient(to bottom, #7ba9ce, var(--blue) 12%, var(--blue) 88%, #7ba9ce); transform: translateX(-50%); }
.timeline-entry, .timeline-year { position: relative; display: grid; grid-template-columns: 1fr 92px 1fr; align-items: center; }
.timeline-entry { min-height: 185px; }
.timeline-dot { grid-column: 2; grid-row: 1; z-index: 1; justify-self: center; width: 32px; height: 32px; border: 6px solid var(--paper); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue); }
.timeline-event { display: block; width: calc(100% - 2.3rem); padding: 1.25rem 1.35rem; background: #fff; color: inherit; text-decoration: none; border-top: 4px solid var(--blue); transition: transform .15s, box-shadow .15s; }
.timeline-event:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(16, 47, 87, .12); }
.timeline-entry.timeline-focus .timeline-event { outline: 5px solid var(--warm); outline-offset: 5px; box-shadow: 0 0 0 10px rgba(231,138,47,.18); }
.timeline-entry.event-left .timeline-event { grid-column: 1; grid-row: 1; justify-self: end; }
.timeline-entry.event-right .timeline-event { grid-column: 3; grid-row: 1; justify-self: start; }
.timeline-event time, .open-event { color: var(--blue); font-size: .85rem; font-weight: 700; }
.timeline-event p { font-size: .93rem; }
.open-event { display: block; margin-top: 1rem; }
.timeline-year { min-height: 90px; }
.timeline-year span { grid-column: 2; z-index: 1; justify-self: center; padding: .35rem .55rem; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.gap-small { margin-top: 24px; }
.gap-medium { margin-top: 68px; }
.gap-large { margin-top: 150px; }
.gap-very-large { margin-top: 240px; }
@media (max-width: 600px) {
  .timeline-heading { align-items: flex-start; flex-direction: column; }
  .vertical-timeline { margin-left: 0; padding-left: 3.1rem; transform-origin: top left; }
  .vertical-timeline::before { left: 14px; transform: none; }
  .timeline-entry { display: block; min-height: auto; padding-bottom: 1.7rem; }
  .timeline-dot { position: absolute; top: 1.4rem; left: 0; width: 28px; height: 28px; }
  .timeline-event, .timeline-entry.event-left .timeline-event, .timeline-entry.event-right .timeline-event { width: 100%; }
  .timeline-year { display: block; min-height: 86px; }
  .timeline-year span { position: absolute; top: 50%; left: -3.1rem; transform: translateY(-50%); font-size: .72rem; }
  .gap-small { margin-top: 18px; }
  .gap-medium { margin-top: 48px; }
  .gap-large { margin-top: 115px; }
  .gap-very-large { margin-top: 175px; }
}
