/* Event calendar, following Anastasia's Figma: a full-width sky-blue band,
   white rounded day cells, events as soft pills with an orange arrow button. */
.cal-band { background: var(--surface); padding-block: 28px 56px; }
.cal-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 18px; }
.cal-head h1 { font-family: var(--body); font-weight: 700; font-size: 22px; text-align: center; color: var(--ink); }
.cal-today { display: block; margin: -8px auto 14px; background: none; border: 0; color: var(--purple); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-week { margin-bottom: 8px; }
.cal-week span { text-align: center; font-size: 14px; font-weight: 500; color: var(--ink); }
.cal-cell { background: var(--paper); border-radius: 12px; min-height: 120px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-cell.blank { background: transparent; }
.cal-cell.past { opacity: .55; }
.cal-num { font-weight: 700; font-size: 18px; line-height: 1.1; padding: 2px 2px 4px; }
.cal-cell.today .cal-num { color: var(--orange); }

.cal-ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; background: var(--surface); border-radius: 10px; padding: 7px 7px 7px 9px; text-decoration: none; color: var(--ink); transition: background .15s; }
.cal-ev:hover { background: var(--surface-deep); }
.cal-ev__name { font-size: 14px; font-weight: 500; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.cal-ev__time { font-size: 11px; color: #3b3f45; display: block; margin-top: 3px; font-variant-numeric: tabular-nums; }
.cal-ev__go { width: 22px; height: 22px; border-radius: 50%; background: var(--cta); color: #fff; display: grid; place-items: center; flex: none; }
.cal-ev__go svg { width: 12px; height: 12px; }
.cal-ev.full { background: #EEF0F3; color: var(--muted); pointer-events: none; }
.cal-ev.full .cal-ev__go { background: var(--muted); }
.cal-ev.off { pointer-events: none; opacity: .6; }
.cal-ev.cx .cal-ev__name { text-decoration: line-through; }

/* Phones: a list of days instead of the grid */
.cal-list { display: none; }
.cal-day { background: var(--paper); border-radius: 14px; padding: 12px; display: grid; gap: 8px; margin-bottom: 10px; }
.cal-day h2 { font-family: var(--body); font-size: 16px; font-weight: 700; }
.cal-day.today h2 { color: var(--orange); }
.cal-day .cal-ev__name { font-size: 16px; white-space: normal; }
.cal-day .cal-ev__time { font-size: 13px; }
.cal-day .cal-ev__go { width: 32px; height: 32px; }
.cal-day .cal-ev__go svg { width: 15px; height: 15px; }
.cal-empty { background: var(--paper); border-radius: 14px; padding: 18px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .cal-week, .cal-grid { display: none; }
  .cal-list { display: block; }
  .cal-band { padding-block: 20px 40px; }
}
