@layer components {
  /* ——— A trail's day divider ———
     The date leads, one rule runs out from it, and the day's datum closes the
     line (user, 2026-08-13). The whole line is one whisper, the date
     included: the filled ink chip the feed wore outweighed every row it
     headed and in dark turned paper-white (owner, 2026-11-04, the feeds'
     review). Its weight is said here, so a divider that IS an <h2> and one
     that holds an <h2> whisper alike, neither in the browser's bold. */
  .day-divider {
    display: flex;
    align-items: center;
    gap: var(--inline-space);
    font-size: var(--text-x-small);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* Still the whisper, in the ink small words can be read in: faint is
       4.1 : 1 on paper, below 4.5 : 1 (the Overview's redesign, 2026-10-20). */
    color: var(--color-ink-subtle);

    > h2 {
      font: inherit;
    }

    /* Generated last but ordered second: the rule belongs between the date and
       the datum, and `order` is the only way to say that without giving the
       hairline an element of its own. With no datum it simply runs to the edge,
       which is the same line with nothing on the end of it. */
    &::after {
      content: "";
      order: 1;
      flex: 1;
      block-size: var(--border-size);
      background-color: var(--color-line);
    }
  }

  /* A day in a trail stands well apart from the one above and holds its
     lines close under its divider — a feed's and a record's timeline alike,
     one grammar. A feed's first day needs no room above it. */
  .day > .day-divider,
  .record-timeline .day-divider {
    margin-block: var(--block-space-double) var(--block-space-half);
  }

  .day:first-of-type > .day-divider {
    margin-block-start: 0;
  }

  /* The chat's day (HANSHI sheet 10): the same voice, centred between two
     rules — nothing closes that line, so nothing leads it either. */
  .day-divider--centred::before {
    content: "";
    flex: 1;
    block-size: var(--border-size);
    background-color: var(--color-line);
  }

  /* The day's datum — how many moved, and their faces at the inline size
     (avatars/_stack: apart up to three, else a stack that opens). */
  .day-divider__datum {
    --avatar-size: 1.25rem;

    order: 2;
  }

  /* A meeting on its own timeline (ruling 15): the same line, led by a dot.
     What came after its start stands above it. Near, its words wear straw
     (due-dates.css) and the dot follows them. */
  .day-divider--hinge::before {
    content: "";
    inline-size: 0.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: currentColor;
  }

  .day-divider--hinge:has(.due--near)::before {
    background-color: var(--color-warning-ink);
  }
}
