/*
 * PREV / TODAY / NEXT, the range title, and the view switch.
 *
 * The title takes the slack and ellipses; the two control groups hold their
 * size, so a long month name never squeezes the buttons out of the band.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-calendar-toolbar {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--lotics-space-12);
    padding-inline: var(--lotics-space-12);
    padding-block: var(--lotics-space-10);
  }

  .lotics-calendar-toolbar__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--lotics-space-6);
  }

  .lotics-calendar-toolbar__title {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    text-align: center;
  }

  .lotics-calendar-toolbar__trailing {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: var(--lotics-space-8);
  }
}
