/* ── Week summary ──────────────────────────── */
.week-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 0;
  padding: 4px;
  background: none;
  border: none;
  box-shadow: none;
  /* Stretch each summary to fill an equal share of the column so it aligns
     with the matching calendar week row (parent align-items: stretch + equal
     row-gap on both columns makes each summary the same height as a day
     tile). */
  flex: 1;
}

/* Compact pill: solid white (dark text) so it reads over the animated background. */
.week-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Same size for every week, regardless of the text inside. */
  width: 120px;
  max-width: 100%;
  justify-content: center;
  white-space: nowrap;
  padding: 0 10px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  /* Glass: dark-tinted translucent fill + blur keeps white text readable over
     both the blue and the pink ends of the background. */
  background: rgba(36, 20, 66, 0.38);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  backdrop-filter: blur(8px) saturate(1.3);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-extrabold);
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.week-pill:hover { background: rgba(36, 20, 66, 0.52); border-color: rgba(255, 255, 255, 0.6); }
.week-pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.week-pill.is-met { background: rgba(30, 130, 60, 0.6); border-color: rgba(190, 255, 205, 0.6); }
.week-pill.is-met:hover { background: rgba(30, 130, 60, 0.75); }
.week-pill.is-empty { opacity: 0.85; }
.week-pill.is-empty:hover { opacity: 1; }
.week-pill__icon { flex: none; }
/* Dot = this week already has accomplishments or a journal entry. */
.week-pill.has-notes { position: relative; }
.week-pill.has-notes::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc933;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.week-summaries {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  /* Matches .calendar-grid row-gap so each summary (flex: 1) aligns vertically
     with its calendar week row. */
  gap: 28px;
  flex-shrink: 0;
  width: 128px;
  min-width: 0;
}

.week-summaries[hidden] { display: none; }


/* ── Weekly accomplishments tooltip (js/week-wins.js) ── */
.week-wins-tt {
  margin: 4px 0 0;
  padding-left: 18px;
}
