@layer components {
  /* ——— The feed's day ———
     A heading and whatever is under it: sentences in Timeline, bands of things
     in Projects. The group exists so that hiding rows can hide what was
     heading them — the text filter takes rows down one by one, and a date or a
     band label left standing over nothing reads as a bug, the same complaint
     the gap row answers from the other side. The day, a project in it and a
     band each say `data-filter-group`, and one rule in utilities.css takes an
     emptied one down: "the thing the filter hides" is exactly what it keys
     on, and :has() rather than a count kept in JavaScript, because the filter
     already says what it hid.

     The feed's type size is set here, once, for the same reason the group
     exists: it is a fact about the day and not about how you are reading it
     (user, 2026-08-14). Also what makes `lh` below resolve in the row's own
     type rather than the page's. */
  .day {
    font-size: var(--text-small);
  }

  /* ——— The trail ———
     A day's lines in one grammar with a record's timeline (owner, 2026-11-04,
     the feeds' review): the kind's glyph in a gutter at the start, the
     sentence, the time closing its first line (events.css). The borrowed
     rail and its clock column are gone — a line down the start edge
     separated nothing, and space already does. `--event-rule` turns off the hairline
     events.css draws between rows, so nothing is restated here. */
  .trail {
    --trail-gutter: 1.75rem;
    --event-rule: none;

    padding-inline-start: var(--trail-gutter);
  }

  .trail .event {
    position: relative;
  }

  /* One line tall at the start of the gutter, so the mark meets the middle of
     the first line however the line wraps. `1lh` resolves against the row's
     own type. Its colour is its kind's (marks.css). */
  .trail__glyph {
    position: absolute;
    inset-block-start: var(--block-space-half);
    inset-inline-start: calc(var(--trail-gutter) * -1);
    display: grid;
    place-items: center;
    inline-size: 1lh;
    block-size: 1lh;
  }

  /* ——— Under a day's divider ———
     The time is what o'clock, in a box of one width, so the applause can wait
     beside it. A line nobody has applauded keeps the room for its + before
     the time, so the words never run under it and nothing moves when the
     pointer brings it; once someone has, the pills and the + stand under the
     words, as events.css draws them. Where nothing hovers it always shows. */
  .trail--timed {
    --trail-clock: 5ch;
    --event-boost-room: 0;
    --event-boost-end: calc(var(--trail-clock) + var(--inline-space));
    --event-boost-top: calc(var(--block-space-half) + 0.5lh);

    .event__time {
      min-inline-size: var(--trail-clock);
      text-align: end;
    }

    /* Nobody has applauded — no pill in the list, as events.css says it. */
    .event:has(.boosts):not(:has(.boosts__list .boost)) .event__time {
      margin-inline-start: calc(var(--btn-size, 1.75rem) + var(--inline-space-double));
    }

    @media (any-hover: hover) {
      .event:not(:hover, :focus-within) .boosts__trigger {
        opacity: 0;
      }
    }
  }
}
