@use "../../../../styles/int.scss";

.calendar {
  --CalendarGroup-scroll-padding: var(--Well-padding);
}

.state-cal {
  display: flex;
  flex-direction: column;
}

.overline {
  color: int.$warmgray-70;

  @include int.overline();
}

.container {
  display: flex;
  align-items: flex-start;
  column-gap: 1rem;
  width: 100%;
  padding-bottom: 6px;
  overflow-x: auto;

  &:not(.wrap) {
    .date-card {
      width: var(--date-card-w);
    }
  }
}

.container.wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--date-card-w), 1fr));
  overflow-x: auto;
  row-gap: 1rem;
}

.scroll {
  display: flex;
  align-items: center;
  align-self: flex-end;
  column-gap: .25rem;
  margin-top: .75rem;

  > span {
    color: int.$warmgray-60;

    @include int.sans($role: "component", $size: "100")
  }
}

.date-card {
  background: #fff;
  flex: 0 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: int.$spacing-2 int.$spacing-3 int.$spacing-1;
  border-bottom: 1px solid int.$warmgray-20;
}

.month {
  color: int.$warmgray-100;
  text-transform: uppercase;
  font-weight: normal !important;

  @include int.overline($size: "200");
}

.day {
  @include int.title($size: "200", $weight: "light")
}

.election {
  padding: int.$spacing-3;

  > div {
    float: left;
    margin-top: .45rem;
    margin-right: .25rem;
    margin-left: .15rem;
  }
}

.note {
  @include int.sans($role: "component", $size: "200");
}
