/* Shared weekday/date capsules. The app renders at a logical 390px width;
   the hero uses the same geometry scaled to its phone-screen container. */
.hero-week,
.today-week,
.week-strip {
  --calendar-pill-unit: 1px;
  --calendar-pill-width: calc(38 * var(--calendar-pill-unit));
  --calendar-pill-height: calc(56 * var(--calendar-pill-unit));
  --calendar-pill-weekday-size: calc(10 * var(--calendar-pill-unit));
  --calendar-pill-date-size: calc(15 * var(--calendar-pill-unit));
  --calendar-pill-gap: calc(4 * var(--calendar-pill-unit));
}

.hero-week {
  --calendar-pill-unit: calc(100cqw / 390);
}

.today-week,
.week-strip {
  justify-items: center;
}

/* The embedded selector also wins over the short-screen 51px override. */
.hero-week > span,
.today-week .day-button,
.embedded-preview .today-week .day-button,
.week-strip .day-button {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--calendar-pill-width);
  max-width: 100%;
  min-width: 0;
  height: var(--calendar-pill-height);
  min-height: var(--calendar-pill-height);
  padding: 0;
  gap: var(--calendar-pill-gap);
  border-radius: 999px;
  font-size: var(--calendar-pill-weekday-size);
  line-height: 1.3;
  text-align: center;
}

.today-week .day-button > span:first-child,
.embedded-preview .today-week .day-button > span:first-child,
.week-strip .day-button > span:first-child {
  font-size: var(--calendar-pill-weekday-size);
  line-height: 1.3;
}

.hero-week > span > small,
.today-week .day-button > strong,
.week-strip .day-button > strong {
  margin: 0;
  font-size: var(--calendar-pill-date-size);
  line-height: 1.3;
}

/* Month cells contain one date: keep their existing compact height. */
.calendar-month > button,
.calendar-month .day-button {
  border-radius: 999px;
}
