/*
 * THE AGENDA — days as headings, their events as rows.
 *
 * A day heading is separated by SPACE and weight, never a rule: the rule was a
 * second statement of a boundary the gap already makes.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-agenda-view {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: var(--lotics-space-16);
    background-color: var(--card);
  }

  /* Nothing to list is not an empty scroller: the answer sits in the middle of
     the space the days would have filled. */
  .lotics-agenda-view[data-empty] {
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
    padding: var(--lotics-space-24);
  }

  .lotics-agenda-view__group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
    padding-inline: var(--lotics-space-8);
  }

  .lotics-agenda-view__heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--lotics-space-6);
    padding-inline: var(--lotics-space-12);
    padding-top: var(--lotics-space-16);
    padding-bottom: var(--lotics-space-6);
  }

  .lotics-agenda-view__today {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: var(--lotics-radius-full);
    background-color: var(--lotics-accent);
  }

  .lotics-agenda-view__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--lotics-radius-card);
    background-color: var(--muted);
  }

  /* A dot, not a bar down the row's left edge: an edge is a border, and the
     row's own wash already states where it begins. */
  .lotics-agenda-view__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: var(--lotics-radius-full);
    background-color: var(--lotics-agenda-view-dot);
  }
}
