/* Career journey: keep the company rail visible beside the selected detail. */
.journey-grid {
  display: block;
}

.journey-heading {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  column-gap: 8%;
  align-items: end;
  margin-bottom: 44px;
}

.journey-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.journey-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.journey-heading > p:last-child {
  max-width: 390px;
  margin-bottom: 7px;
}

.timeline {
  position: relative;
  border-top: 1px solid var(--line);
  transition: padding-right .45s cubic-bezier(.2, .7, .2, 1), min-height .25s ease;
}

.timeline.has-selection,
.timeline:has(details[open]) {
  padding-right: calc(57% + 30px);
}

.timeline details {
  border-bottom: 1px solid var(--line);
}

.timeline summary {
  grid-template-columns: 92px minmax(0, 1fr) 22px;
  gap: 14px;
  padding: 17px 3px;
  transition: padding .35s ease, background .35s ease;
}

.timeline details[open] summary {
  padding-left: 12px;
  background: #edf4ed;
}

.timeline summary strong {
  font-size: 1.08rem;
}

.timeline-teaser {
  display: block;
  margin-top: 10px;
  color: #314e4b;
  font: 700 .82rem/1.48 Manrope, 'DM Sans', sans-serif;
  letter-spacing: -.018em;
}

.timeline-detail {
  position: absolute;
  top: 0;
  right: 0;
  width: 57%;
  padding: 27px 33px 31px;
  background: #f3f7f2;
  border: 1px solid #d9e6da;
  box-shadow: 0 15px 35px #18352b12;
  animation: journey-panel-in .42s cubic-bezier(.2, .7, .2, 1) both;
}

.timeline-group:first-child {
  padding-top: 0;
  border-top: 0;
}

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

.timeline-group h4 {
  font-size: .72rem;
}

.timeline-group li {
  padding-block: 4px;
}

@keyframes journey-panel-in {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1050px) and (min-width: 701px) {
  .timeline summary {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 4px 10px;
  }

  .timeline-year {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline summary > span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .timeline summary .plus {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  .journey-heading {
    display: block;
  }

  .journey-heading h2 {
    max-width: 640px;
    margin-bottom: 16px;
  }

  .journey-heading > p:last-child {
    max-width: 550px;
  }

  .timeline.has-selection,
  .timeline:has(details[open]) {
    padding-right: 0;
  }

  .timeline-detail {
    position: static;
    width: 100%;
    margin: 0 0 16px;
    padding: 23px 26px;
  }

  .timeline summary { grid-template-columns: 100px minmax(0, 1fr) 22px; }
}

@media (max-width: 480px) {
  .timeline summary {
    grid-template-columns: 75px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .timeline-teaser {
    font-size: .77rem;
  }

  .timeline-detail {
    padding: 20px 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline,
  .timeline summary {
    transition: none;
  }

  .timeline-detail {
    animation: none;
  }
}
