/* A meeting's date in a block (the canvas's Meetings tab and its page):
   weekday, day, month — the small words in the label voice (labels.css) —
   straw while the meeting is near (HANSHI 09: straw is for near dates). */
@layer components {
  /* A place that sets it smaller retunes its width, padding and number
     (--event-date-*): a phone's agenda day, a Schedule's dock card. */
  .event-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    inline-size: var(--event-date-width, 3rem);
    padding-block: var(--event-date-padding, 0.375rem);
    border-radius: var(--border-radius-float);
    background: var(--color-surface);
    line-height: 1.1;

    > strong {
      font-size: var(--event-date-number, var(--text-large));
      font-weight: 600;
    }
  }

  /* Its words take straw from due-dates.css, which lists them. */
  .event-date--near {
    background: var(--color-highlight);
  }

  /* Today, in the agenda (calendars/_day): ink, as the grid's today disc
     is, the feed's date chip's exception (HANSHI, Deviations). */
  .event-date--today {
    color: var(--color-canvas);
    background: var(--color-ink);

    > .label {
      color: var(--color-canvas);
    }
  }
}
