/* REQ-216.9: the requirement page's Timeline tab (public/timelineTabView.js).
   Pablo's m1 v6, "Timeline in columns": when, type, who, what and the message
   on a wide screen, the day as a heading row, meetings tinted, Steven's own
   entries marked with a diamond and his name. At 600 px and less the time sits
   above each line. Colours are the base tokens; --you is REQ-216.12's token
   for Steven's own items, with the needs colour until it lands. */
.tt { gap: 12px; }
.tt-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-f { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 600 13px/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tt-f:hover { background: var(--accent-soft); }
.tt-f.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tt-f:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tt-n { font: 600 11px/1 var(--font-mono); opacity: .8; }
.tt-loading { margin: 0; color: var(--mute); font-size: 13px; }

.tt-days, .tt-list { list-style: none; margin: 0; padding: 0; }
.tt-days { display: flex; flex-direction: column; gap: 14px; }
.tt-dh { margin: 0 0 4px; padding: 6px 4px; border-bottom: 1px solid var(--line); font: 700 12px/1.3 var(--font-mono); letter-spacing: .06em; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.tt-date { font-weight: 500; color: var(--mute); letter-spacing: 0; }

.tt-ev {
  display: grid; grid-template-columns: 3.5rem 7rem minmax(7rem, 9rem) minmax(6rem, 11rem) minmax(0, 1fr);
  grid-template-areas: "at ty who what msg" ". . . . note" ". . . . extra";
  column-gap: 12px; row-gap: 2px; align-items: baseline;
  padding: 8px 4px 8px 8px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); font-size: 13.5px; min-width: 0;
}
.tt-ev:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tt-at { grid-area: at; font: 600 12px/1.6 var(--font-mono); color: var(--mute); }
.tt-ty { grid-area: ty; font: 600 12px/1.6 var(--font-mono); color: var(--ink); white-space: nowrap; }
.tt-ic { display: inline-block; width: 1.3em; text-align: center; }
.tt-who { grid-area: who; min-width: 0; overflow-wrap: anywhere; }
.tt-what { grid-area: what; min-width: 0; color: var(--mute); overflow-wrap: anywhere; }
.tt-msg { grid-area: msg; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.tt-note { grid-area: note; min-width: 0; color: var(--mute); font-size: 12.5px; overflow-wrap: anywhere; }
.tt-extra { grid-area: extra; }
.tt-link { color: var(--accent); }
.tt-nobody { color: var(--faint); }
.tt-mstate, .tt-flag { display: inline-block; margin-left: 8px; font: 600 11px/1.6 var(--font-mono); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.tt-flag.needs { border-color: currentColor; color: var(--needs); }

/* Kinds: words and shapes carry the meaning; colour only adds to it. */
.tt-ev.t-meeting { background: var(--meeting-soft); }
.tt-ev.k-uat-fail .tt-ty { color: var(--blocked); }
.tt-ev.k-uat-pass .tt-ty { color: var(--done); }
.tt-ev.muted .tt-m { font-style: italic; color: var(--mute); }

/* 216.9.4: Steven's own entry: a diamond and his name, and an edge. */
.tt-ev.steven { border-left-color: var(--you); }
.tt-you { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--ink); padding: 0 8px; border: 1.5px solid var(--you); border-radius: 4px; }
.tt-you > span { color: var(--you); }

/* 216.9.5: 'Show 20 earlier', one full-width ghost button: the shared .more-btn (REQ-216.10, css/requirements.css). */
.tt-mtg-all { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }

/* 216.9.6: on a phone the time sits above each line. */
@media (max-width: 600px) {
  .tt-ev {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "at at" "ty who" "what what" "msg msg" "note note" "extra extra";
    column-gap: 10px; padding-left: 6px;
  }
  .tt-at { line-height: 1.3; }
  .tt-what:empty { display: none; }
  .tt-mtg-all { align-self: stretch; justify-content: center; }
}
