/* ── Calendar shell ─────────────────────────────────────────── */
.cal-shell {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-6);
  padding: var(--sp-6) 0 var(--sp-8);
  align-items: flex-start;
}

/* ── Month nav ──────────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}
.cal-nav h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--bwe-orange);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}
.cal-arrow {
  background: var(--bwe-paper);
  border: var(--border);
  border-radius: var(--r-pill);
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-fast);
  flex-shrink: 0;
}
.cal-arrow:hover { background: var(--bwe-umber); color: var(--bwe-paper); box-shadow: none; }
.cal-arrows { display: flex; gap: var(--sp-2); }

/* ── Grid ───────────────────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bwe-umber);
  gap: 1px;
}
.cal-dow {
  background: var(--bwe-umber);
  color: var(--bwe-paper);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 10px 4px;
}
.cal-cell {
  background: white;
  min-height: 80px;
  padding: 8px;
  cursor: default;
  position: relative;
  transition: background var(--dur-fast);
}
.cal-cell.empty { background: var(--bwe-paper); opacity: 0.5; cursor: default; }
.cal-cell.has-events { cursor: pointer; }
.cal-cell.has-events:hover { background: var(--bwe-featured-bg); }
.cal-cell.selected { background: var(--bwe-blue) !important; }
.cal-cell.today .cal-day-num {
  background: var(--bwe-orange);
  color: var(--bwe-cream);
  border-radius: var(--r-pill);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cal-day-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--bwe-umber);
  line-height: 1;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.cal-cell.empty .cal-day-num { color: var(--bwe-umber-soft); }
.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}
.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bwe-orange);
  flex-shrink: 0;
}
.cal-dot.featured { background: var(--bwe-umber); }
.cal-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--bwe-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
  line-height: 1;
}

/* ── Day panel (right column) ───────────────────────────────── */
.day-panel {
  position: sticky;
  top: 80px;
}
.day-panel-head {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--bwe-orange);
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}
.day-panel-empty {
  font-size: var(--fs-small);
  color: var(--bwe-umber-soft);
  padding: var(--sp-6) 0;
  text-align: center;
  border: 2px dashed var(--bwe-umber-soft);
  border-radius: var(--r-card);
  line-height: 1.6;
}
.day-event {
  background: white;
  border: var(--border);
  border-radius: var(--r-card);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-fast), transform var(--dur-fast);
  cursor: pointer;
}
.day-event:hover { box-shadow: var(--shadow); transform: translate(-1px,-1px); }
.day-event.featured { border-color: var(--bwe-orange); background: var(--bwe-featured-bg); }
.day-event h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.day-event .meta { font-size: 12px; color: var(--bwe-umber-soft); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.day-event .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.day-event .tags span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bwe-blue); color: var(--bwe-umber); border: 1px solid var(--bwe-umber); border-radius: var(--r-pill); padding: 1px 8px; }
.day-event .rsvp-link { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bwe-orange); text-decoration: underline; }

/* ── Loading ────────────────────────────────────────────────── */
.cal-loading { text-align: center; padding: var(--sp-8) 0; font-family: var(--font-display); font-style: italic; font-size: 28px; color: var(--bwe-umber-soft); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cal-shell { grid-template-columns: 1fr; }
  .day-panel { position: static; }
  .cal-cell { min-height: 60px; }
}
@media (max-width: 560px) {
  .cal-cell { min-height: 44px; padding: 4px; }
  .cal-count { display: none; }
}
