/* ==========================================================================
   FORMER PRESIDENTS — intro + timeline.
   Layout/sidebar come from main.css.
   ========================================================================== */

/* Intro */
.mase-fp-intro { margin-bottom: var(--space-12); }

.mase-fp-intro__eyebrow {
  margin-bottom: var(--space-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.mase-fp-intro__title {
  font-weight: 800;
  line-height: 1.2;
}

.mase-fp-intro__text { max-width: 720px; }

/* Timeline: year | marker | content */
.mase-fp-timeline {
  --fp-timeline-color: #6b3fe3;
  --fp-year-col: 140px;
  --fp-marker-col: 40px;
  --fp-row-top: 6px;
  margin: var(--space-10) 0 60px;
}

.mase-fp-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mase-fp-timeline__item {
  display: grid;
  grid-template-columns: var(--fp-year-col) var(--fp-marker-col) minmax(0, 1fr);
  padding-bottom: var(--space-12);
}

.mase-fp-timeline__item:last-child { padding-bottom: 0; }

.mase-fp-timeline__year {
  padding-top: var(--fp-row-top);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--fp-timeline-color);
}

.mase-fp-timeline__marker {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
}

.mase-fp-timeline__dot {
  width: 14px;
  height: 14px;
  /* vertically centred on the first line of the year */
  margin-top: calc(var(--fp-row-top) + 5px);
  border-radius: 50%;
  background: var(--fp-timeline-color);
  box-shadow: 0 0 0 4px var(--white);
  z-index: 1;
}

.mase-fp-timeline__line {
  width: 2px;
  min-height: 40px;
  margin: 4px 0 calc(-1 * var(--space-12));
  background: #e5e7eb;
}

.mase-fp-timeline__item:last-child .mase-fp-timeline__line { display: none; }

.mase-fp-timeline__content {
  min-width: 0;
  padding: var(--fp-row-top) 0 0 8px;
}

.mase-fp-timeline__media {
  width: 140px;
  aspect-ratio: 5 / 7;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--light);
}

.mase-fp-timeline__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mase-fp-timeline__media a:hover .mase-fp-timeline__image { transform: scale(1.04); }

.mase-about-content .mase-fp-timeline__name {
  margin: 2px 0 var(--space-3);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #0a1f44;
}

.mase-fp-timeline__name a { transition: color 0.2s ease; }
.mase-fp-timeline__name a:hover { color: var(--fp-timeline-color); }

.mase-fp-timeline__text { margin-top: var(--space-2); }
.mase-fp-timeline__text p { margin: 0 0 var(--space-2); }
.mase-fp-timeline__text p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .mase-fp-timeline {
    --fp-year-col: 76px;
    --fp-marker-col: 28px;
  }

  .mase-fp-timeline__year { font-size: 15px; line-height: 1.3; white-space: normal; }
  .mase-fp-timeline__dot { width: 12px; height: 12px; margin-top: calc(var(--fp-row-top) + 4px); }
  .mase-fp-timeline__media { width: 110px; }
  .mase-about-content .mase-fp-timeline__name { font-size: 16px; }
}
