/* Staging: mobile-first vertical overview; the desktop chronology is unchanged. */
.mobile-career-timeline { display: none; }
@media (max-width: 900px) {
  html body.version-editorial.calendar-record-page .calendar-record {
    padding-top: 35px;
    padding-bottom: 54px;
  }
  html body.version-editorial.calendar-record-page .calendar-scroll {
    display: none !important;
  }
  html body.version-editorial.calendar-record-page .mobile-career-timeline {
    display: block;
    position: relative;
    width: 100%;
    padding: 14px 0 0 30px;
    margin: 20px 0 0;
    list-style: none;
    border-left: 1px solid #7896a6;
    overflow: visible;
  }
  .mobile-career-timeline .mobile-career-role {
    position: relative;
    padding: 0 0 34px;
    margin: 0;
    max-width: 100%;
  }
  .mobile-career-timeline .mobile-career-role:last-child { padding-bottom: 0; }
  .mobile-career-timeline .mobile-career-role::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid var(--blue);
    background: var(--paper);
  }
  .mobile-career-timeline a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-decoration: none;
    color: var(--ink);
    scroll-margin-top: 100px;
  }
  .mobile-career-timeline a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
  .mobile-career-timeline time {
    display: block;
    margin-bottom: 4px;
    font: 600 11px/1.5 var(--mono);
    letter-spacing: .055em;
    color: var(--blue);
  }
  .mobile-career-timeline strong {
    font-size: clamp(20px, 5.4vw, 29px);
    line-height: 1.14;
    letter-spacing: -.035em;
    font-weight: 590;
  }
  .mobile-career-timeline a > span {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
  }
  .mobile-career-placements {
    padding: 13px 0 0 17px;
    margin: 14px 0 0;
    list-style: none;
    border-left: 2px solid #b8ccd6;
  }
  .mobile-career-placements li { margin: 0; padding: 0 0 18px; }
  .mobile-career-placements li:last-child { padding-bottom: 0; }
  .mobile-career-placements strong { font-size: clamp(17px, 4.5vw, 22px); }
  .mobile-career-placements time { font-size: 10px; }
}

/* CHLI-only nested disclosure, matching the desktop square plus/minus control. */
.mobile-career-placements[hidden] { display: none !important; }
@media (max-width: 900px) {
  .mobile-career-fellowship-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) 36px;
    gap: 10px;
    align-items: start;
  }
  .mobile-career-fellowship-head > a { min-width: 0; }
  .mobile-career-disclosure {
    appearance: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin-top: 24px;
    border: 1px solid var(--blue);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 24px/1 var(--body);
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
  }
  .mobile-career-disclosure:hover,
  .mobile-career-disclosure[aria-expanded="true"] {
    background: var(--ink);
    color: #fff;
  }
  .mobile-career-disclosure:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
}
@media (min-width: 901px) {
  .mobile-career-disclosure { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-career-disclosure { transition: none; }
}
