/*
 * THE REPEATING PATTERN. The register is a `Table`; what lives here is the AXIS
 * — the positions named ONCE above a column of strips, so twenty-eight cells
 * carry seven labels between them rather than one each.
 *
 * The axis sits on the STRIP's geometry, and the two numbers arrive from the
 * strip's own exports as properties: a second copy of the cell width here would
 * put every label half a cell off the marks it names.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-timetable {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  .lotics-timetable__axis {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: var(--lotics-timetable-cell-gap);
  }

  .lotics-timetable__slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: var(--lotics-timetable-cell);
    padding-block: var(--lotics-space-2);
    border-radius: calc(var(--lotics-radius-control) - var(--lotics-space-4));
  }

  /* Today's position, tinted in the header the same neutral the grid under it
     uses — the column the reader is standing in. */
  .lotics-timetable__slot[data-current] {
    background: var(--lotics-wash-selected);
  }
}
