/* ── calendar.css — global monthly calendar (Sessions page, Calendar tab) ── */

.cal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cal-month-label {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--text);
  min-width: 160px;
}
.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cal-nav-btn:hover { background: var(--border); }
.cal-today-btn {
  margin-left: auto;
  border: 0.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cal-today-btn:hover { background: var(--border); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cal-dow-hdr {
  background: var(--surface);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  text-align: center;
}
.cal-day {
  background: var(--surface);
  min-height: 88px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-day-outside { background: var(--border); opacity: 0.5; }
.cal-day-today .cal-day-num {
  background: var(--navy-mid);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.cal-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.cal-pill {
  font-size: 10.5px;
  line-height: 1.3;
  padding: 2px 6px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-pill:hover { filter: brightness(0.95); }
.cal-pill-cancelled { text-decoration: line-through; opacity: 0.55; }

/* Erg pills get a distinct treatment from squad-coloured water session pills —
   dashed border rather than a solid fill so they read as "not a water outing"
   at a glance, matching the border-left accent convention weekBoard.css uses
   for erg cards (.cp-agenda-card--erg-joined). */
.cal-pill-erg {
  background: transparent;
  border: 1px dashed var(--navy-mid);
  color: var(--navy-mid);
  font-weight: 600;
}

@media (max-width: 640px) {
  .cal-day { min-height: 64px; padding: 4px; }
  .cal-month-label { font-size: 15px; min-width: 120px; }
  .cal-pill { font-size: 9.5px; padding: 1px 4px; }
}
