/* Calendar and agenda share the left column; selection details live on the right. */
.workspace {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}
.calendar-column { min-width: 0; }
.months { align-items: stretch; }
.month, .month + .month { padding: 16px 12px; }
.month-title { margin-bottom: 12px; }
.month-title h3 b { font-size: 26px; }
.weekdays span { margin-bottom: 8px; }
.days { grid-auto-rows: 52px; gap: 3px 4px; }
.days > .date-cell { height: 100%; padding: 3px 1px; gap: 2px; border-radius: 9px; }
.date-cell .number { width: 22px; height: 22px; font-size: 14px; line-height: 22px; }
.date-dots { height: 7px; }
.activity-count { font-size: 9px; line-height: 13px; min-width: 26px; }
.activity-count-spacer { height: 13px; }
.calendar-caption { margin-bottom: 22px; }
.agenda { min-height: 0; padding: 20px; }
.agenda-head { margin-bottom: 16px; padding-bottom: 16px; }
.agenda-head h2 { font-size: 22px; }
#day-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.event-mini { margin: 0; position: relative; }
.event-mini.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #087b6c;
  background: #fbfff5;
}
.event-mini-top { flex-wrap: wrap; }
.event-mini-bottom { flex-wrap: wrap; row-gap: 8px; }
.event-mini h3 { min-height: 44px; }
.mini-location { line-height: 1.8; }
.event-details {
  position: sticky;
  top: 20px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bdd8bb transparent;
  overscroll-behavior: contain;
  background: white;
  border: 2px solid #dce7d2;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 5px 0 #e9eedb;
  scroll-margin-top: 20px;
}
.details-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.details-heading .eyebrow { font-size: 9px; margin-bottom: 8px; }
.details-heading h2 { font-weight: 800; font-size: 22px; }
.details-heading > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #ffdf65;
  color: #70541a;
  font-size: 21px;
}
.detail-empty { text-align: center; padding: 30px 0 20px; }
.detail-sun {
  display: inline-grid;
  place-items: center;
  background: #fff4bd;
  color: #ed8732;
  width: 105px;
  height: 105px;
  font-size: 70px;
  border-radius: 28px;
  transform: rotate(-9deg);
  margin-bottom: 18px;
}
.detail-empty h3 { font-size: 25px; line-height: 1.5; margin: 0 0 15px; }
.detail-empty p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.detail-empty ol { text-align: left; list-style: none; padding: 18px 0; margin: 16px 0 0; }
.detail-empty li { display: flex; gap: 12px; align-items: center; font-size: 12px; padding: 11px 0; }
.detail-empty li span { background: #eff7df; color: #53803d; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.detail-empty small { display: block; border-top: 1px dashed var(--line); padding-top: 20px; font-size: 11px; color: var(--muted); }
.detail-category { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; margin-top: 16px; }
.detail-category .dot { width: 8px; height: 8px; }
#event-title { font-size: 23px; line-height: 1.5; margin: 10px 0 17px; font-weight: 800; }
.event-details .dialog-art .artwork { height: 145px; }
.event-details .event-facts { background: #f2f7e8; padding: 14px; gap: 16px 12px; }
.event-details .event-facts dd { line-height: 1.8; font-size: 11px; }
.event-details .description { font-size: 12px; }
.event-details .notice { font-size: 10px; }
.event-details .form-row { grid-template-columns: minmax(0, 1.7fr) minmax(80px, 1fr); }
.event-details .registration h3 { font-size: 16px; }
.event-details .muted { font-size: 11px; }
.event-details .success { font-size: 12px; }
.event-details .success strong { font-size: 16px; }
.upcoming { margin-top: 36px; }
@media (min-width: 1280px) {
  #day-events { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .days { grid-auto-rows: 52px; }
  .event-details { padding: 18px; }
  .agenda { padding: 18px; }
  .agenda .event-mini { padding: 12px; }
  #event-title { font-size: 20px; }
}
@media (max-width: 850px) {
  .workspace { grid-template-columns: 1fr; gap: 24px; }
  .days { grid-auto-rows: 52px; }
  .event-details { position: static; max-height: none; overflow: visible; padding: 22px; }
  .detail-empty { padding-top: 14px; }
  .detail-empty ol { max-width: 290px; margin: 16px auto 0; }
  .detail-empty h3 br, .detail-empty p br { display: none; }
  .detail-empty li { padding: 8px 0; }
  .event-details .dialog-art .artwork { height: 200px; }
  #event-title { font-size: 24px; }
  .event-details .event-facts dd, .event-details .description { font-size: 13px; }
}
@media (max-width: 560px) {
  .days { grid-auto-rows: 48px; }
  .month, .month + .month { padding: 14px 10px; }
  .month-title { margin-bottom: 10px; }
  .days > .date-cell { padding: 2px 1px; }
  .date-cell .number { font-size: 14px; }
  .date-dots, .date-dots .dot { height: 6px; }
  .date-dots .dot { width: 6px; }
  #day-events { grid-template-columns: 1fr; }
  .agenda .event-mini { padding: 15px; }
  .event-mini h3 { min-height: 0; }
  .agenda { padding: 20px 15px; }
  .calendar-caption { margin-bottom: 20px; }
  .event-details { padding: 20px 16px; }
  #event-title { font-size: 21px; }
  .event-details .dialog-art .artwork { height: 145px; }
  .event-details .event-facts dd { font-size: 11px; }
  .detail-empty h3 { font-size: 21px; }
}
