.rad-presidents-page .rad-reading {
  max-width: none;
  padding-top: 0;
}

.rad-presidents-page .rad-presidents__list {
  --rad-presidents-year-width: 20%;
  --rad-presidents-rule: #d8c6e7;
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--rad-panel);
}

/* The axis and ruler span the whole list, including rows with wrapped text. */
.rad-presidents-page .rad-presidents__list::before,
.rad-presidents-page .rad-presidents__list::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.rad-presidents-page .rad-presidents__list::before {
  left: var(--rad-presidents-year-width);
  width: 2px;
  background: var(--rad-primary);
  transform: translateX(-50%);
}

.rad-presidents-page .rad-presidents__list::after {
  left: calc(var(--rad-presidents-year-width) + 12px);
  width: 10px;
  background: repeating-linear-gradient(to bottom, transparent 0 15px, var(--rad-presidents-rule) 15px 16px);
}

.rad-presidents-page .rad-presidents__entry {
  display: grid;
  grid-template-columns: var(--rad-presidents-year-width) minmax(0, 1fr);
  min-height: 112px;
  border-bottom: 1px solid var(--rad-presidents-rule);
}

.rad-presidents-page .rad-presidents__year {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: #f2e8f7;
  color: var(--rad-purple);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.rad-presidents-page .rad-presidents__year::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--rad-primary);
  border-radius: 50%;
  background: var(--rad-panel);
  transform: translate(50%, -50%);
  pointer-events: none;
}

.rad-presidents-page .rad-presidents__person {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 20px 32px 20px 60px;
}

.rad-presidents-page .rad-presidents__person h2 {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: pretty;
}

.rad-presidents-page .rad-presidents__person p {
  font-size: 22px;
  line-height: 1.4;
  text-align: left;
}

.rad-presidents-page .rad-presidents__person p.rad-presidents__role {
  margin-top: 8px;
  color: var(--rad-primary);
  font-weight: 500;
}

.rad-presidents-page .rad-reading-heading__intro {
  text-align: left;
}

@media (max-width: 1023px) {
  .rad-presidents-page .rad-presidents__list {
    --rad-presidents-year-width: 128px;
  }

  .rad-presidents-page .rad-presidents__year {
    font-size: 36px;
  }

  .rad-presidents-page .rad-presidents__person {
    padding-inline: 48px 24px;
  }

  .rad-presidents-page .rad-presidents__person h2 {
    font-size: 26px;
  }

  .rad-presidents-page .rad-presidents__person p {
    font-size: 18px;
  }
}

@media (max-width: 599px) {
  .rad-presidents-page .rad-presidents__list {
    --rad-presidents-year-width: 80px;
  }

  .rad-presidents-page .rad-presidents__list::after {
    left: calc(var(--rad-presidents-year-width) + 6px);
    width: 6px;
    background: repeating-linear-gradient(to bottom, transparent 0 11px, var(--rad-presidents-rule) 11px 12px);
  }

  .rad-presidents-page .rad-presidents__year {
    padding-inline: 8px;
    font-size: 24px;
  }

  .rad-presidents-page .rad-presidents__year::after {
    width: 14px;
    height: 14px;
  }

  .rad-presidents-page .rad-presidents__person {
    padding-inline: 24px 12px;
  }

  .rad-presidents-page .rad-presidents__person h2 {
    font-size: 20px;
    line-height: 1.4;
  }

  .rad-presidents-page .rad-presidents__person p {
    font-size: 16px;
    line-height: 1.5;
  }
}
