/* Project timeline (DOC-103): reading line, legend, quick ranges, grouped list and row detail.
   Loaded after app.css; the timeline still works without it. */
.timeline-howto { color: var(--graphite); font-size: .88rem; max-width: 75ch; }
.timeline-segment { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-key { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 20px 0 14px; font-size: .78rem; color: var(--muted); }
.timeline-key li { display: flex; align-items: center; gap: 8px; }
.timeline-key-sample { flex: none; }
.timeline-warning { padding: 12px 16px; border-left: 4px solid #a15c07; border-radius: 8px; background: #fff6e8; color: var(--graphite); }
.timeline-chart g[role="button"] { cursor: pointer; }
/* Focus ring on the row or group band. The module also draws it on focus, for when this file is not loaded. */
.timeline-chart g[role="button"]:focus { outline: none; }
.timeline-chart g[role="button"]:focus-visible > .timeline-row-hit,
.timeline-chart g[role="button"]:focus-visible > .timeline-lane-band { stroke: #1d4ed8; stroke-width: 2px; }
.timeline-list { display: grid; gap: 14px; margin: 16px 0; }
.timeline-group { border: 1px solid var(--line); border-radius: 14px; background: #ffffffb8; overflow: hidden; }
/* Beats `.workflow-module h3` of app.css (section rule above every h3). */
.project-timeline .timeline-group-heading { margin: 0; padding: 0; border: 0; font-size: .95rem; }
.project-timeline .timeline-group-button { display: flex; justify-content: flex-start; width: 100%; padding: 12px 16px; border-radius: 0; text-align: left; font-weight: 650; background: #e4e9f5; }
.timeline-list-rows { list-style: none; margin: 0; padding: 0; }
.timeline-list-row { padding: 10px 16px; }
.timeline-list-row + .timeline-list-row { border-top: 1px solid var(--line); }
.timeline-list-row--child { padding-left: 36px; }
/* Beats `.workflow-module button:not(.button)` of app.css: the name reads as a link-like control. */
.project-timeline .timeline-list button.timeline-row-button { display: inline-block; min-height: 24px; padding: 2px 0; border: 0; border-radius: 4px; background: none; color: var(--ink); font: inherit; font-weight: 650; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.project-timeline .timeline-list button.timeline-row-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.timeline-row-state, .timeline-row-dates { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.timeline-table th[scope="rowgroup"] { text-align: left; background: #e4e9f5; }
.timeline-facts { display: grid; grid-template-columns: minmax(130px, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 12px 0; }
.timeline-facts dt { font-weight: 650; }
.timeline-facts dd { margin: 0; }
@media (max-width: 640px) {
  .timeline-segment { width: 100%; }
  .timeline-segment .button { flex: 1 1 auto; }
  .timeline-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .timeline-facts dd { margin-bottom: 8px; }
}
