/* Project history and personnel files share compact steps without shortening stored evidence. */
.personnel-timeline-scroll { max-height: min(670px, calc(100vh - 330px)); overflow-y: auto; padding: 12px 20px 16px; scrollbar-gutter: stable; }
.personnel-timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.personnel-timeline::before { position: absolute; top: 14px; bottom: 14px; left: 13px; width: 2px; background: linear-gradient(var(--blue-500), #dce6ed); content: ""; }
.personnel-timeline-event { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 0 0 8px; }
.personnel-timeline-event:last-child { padding-bottom: 0; }
.personnel-timeline-marker { z-index: 1; display: grid; width: 28px; height: 28px; box-sizing: border-box; border: 3px solid #fff; border-radius: 9px; background: var(--blue-700); color: #fff; box-shadow: var(--shadow-small); place-items: center; }
.personnel-timeline-marker svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.personnel-timeline-event:is(.is-role, .is-status_update) .personnel-timeline-marker { background: var(--accent); }
.personnel-timeline-event:is(.is-employment, .is-created) .personnel-timeline-marker { background: var(--success); }
.personnel-timeline-event > article { min-width: 0; padding: 8px 10px; border: 1px solid var(--interface-border); border-radius: var(--interface-tile-radius); background: var(--interface-view-card-surface); box-shadow: none; font-size: var(--interface-label-size); font-weight: 450; line-height: 1.35; }
.personnel-timeline-event time { display: block; margin: 0; color: var(--blue-700); font-size: var(--interface-helper-size); font-weight: 750; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; }
.personnel-timeline-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 2px; color: var(--muted); font-size: var(--interface-helper-size); font-weight: 500; line-height: 1.4; }
.personnel-timeline-event h3 { margin: 0; color: var(--navy-900); font-size: var(--interface-value-size); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.personnel-timeline-event p { margin: 2px 0 0; color: var(--muted); font-size: var(--interface-label-size); font-weight: 450; line-height: 1.35; overflow-wrap: anywhere; }

/* Clickable CRM and project entries keep summaries independent of bold button defaults. */
.personnel-timeline-title { color: var(--navy-900); font-size: var(--interface-value-size); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.personnel-timeline-summary { color: var(--muted); font-size: var(--interface-label-size); font-weight: 450; line-height: 1.35; overflow-wrap: anywhere; }

/* Empty timelines have no spine or reserved step height. */
.personnel-timeline:not(:has(> .personnel-timeline-event))::before { display: none; }
.personnel-timeline-scroll:not(:has(.personnel-timeline-event)) { max-height: none; }

/* Report actions remain text links, including hover and keyboard interaction. */
button.personnel-report-button,
a.personnel-report-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    margin-top: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--blue-700);
    font-size: var(--interface-label-size);
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    transform: none;
    cursor: pointer;
}
button.personnel-report-button:is(:hover, :focus-visible, :active),
a.personnel-report-button:is(:hover, :focus-visible) {
    background: none;
    color: var(--navy-900);
    box-shadow: none;
    transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.personnel-report-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Narrow timelines retain the same step sizes while reducing their outer gutter. */
@media (max-width: 650px) {
    .personnel-timeline-scroll { padding: 12px 14px 16px; }
    .personnel-timeline-event { gap: 8px; }
}
