/* aromet calendar - admin only, so it borrows the projects modal styling
   rather than pulling the whole projects stylesheet in. */

.cal-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.cal-toolbar .spacer { flex: 1; }
.month-nav { display: flex; gap: 8px; align-items: center; }
.month-nav h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.02em; min-width: 190px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.filters button:hover { border-color: var(--plum); color: var(--plum); }
.filters button[aria-pressed='true'] { background: var(--plum); border-color: var(--plum); color: #fff; }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 860px) { .cal-layout { grid-template-columns: minmax(0, 1fr); } }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.cal-head {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 2px;
}
.cal-day {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 96px;
  padding: 6px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.cal-day:hover { border-color: var(--plum); }
.cal-day.other { opacity: 0.45; }
.cal-day.today { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.cal-day[aria-pressed='true'] { background: var(--plum-soft); border-color: var(--plum); }
.cal-day .num { font-size: 0.82rem; font-weight: 800; color: var(--ink-soft); }
.cal-day.today .num { color: var(--plum); }

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 7px;
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip.more { background: none; color: var(--ink-soft); padding-left: 2px; }

.chip.scouts, .key.scouts { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber); }
.chip.taekwondo, .key.taekwondo { background: color-mix(in srgb, var(--teal) 20%, transparent); color: var(--teal); }
.chip.music, .key.music { background: color-mix(in srgb, var(--rose) 18%, transparent); color: var(--rose); }
.chip.school, .key.school { background: color-mix(in srgb, var(--plum) 18%, transparent); color: var(--plum); }
.chip.family, .key.family { background: color-mix(in srgb, var(--ink-soft) 16%, transparent); color: var(--ink-soft); }

.legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.key { font-size: 0.75rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; }

.day-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
}
.day-panel h3 { margin: 0 0 12px; font-size: 1.05rem; letter-spacing: -0.01em; }
.day-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.day-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.day-list .when { font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); }
.day-list .what { font-weight: 700; margin: 2px 0; }
.day-list .meta { font-size: 0.8rem; color: var(--ink-soft); }
.day-list .acts { display: flex; gap: 8px; margin-top: 8px; }
.day-list .acts button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--plum);
  cursor: pointer;
}
.day-list .acts button.danger { color: var(--rose); }

.empty-msg { text-align: center; color: var(--ink-soft); padding: 24px 10px; font-weight: 600; }
.hint { font-size: 0.8rem; color: var(--ink-soft); margin: 8px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* ---- modal, same shape as the projects editor ---- */
.detail {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 26, 0.55);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.detail[hidden] { display: none; }
.detail-shell {
  background: var(--paper);
  border-radius: 20px;
  width: min(680px, 100%);
  max-height: min(90vh, 940px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.detail-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
  display: flex;
  gap: 14px;
  align-items: center;
}
.detail-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.detail-body { padding: 20px 22px 26px; overflow-y: auto; flex: 1; }
.detail-body .row .spacer { flex: 1; }
.icon-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.btn.danger { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 40%, transparent); }
