/* Date variations -- "Multiple day event" / "Event repeats other days" (added 2026-09-20).
   Shared by the public "Suggest an Event" form and the admin Events editor: both pages define the same theme
   variables (--accent, --border, --bg-dark-2, --text-light, --text-muted), with fallbacks here just in case. */
.dv-block { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
/* !important on flex-direction/colour/size: both the public form (label { flex-direction: column }) and the admin editor
   (#event-form label { ... }) style every <label> as a stacked field, which would otherwise win over these switch rows. */
.dv-switch-row {
  flex-direction: row !important; color: var(--text-light, #eee8f0) !important; font-size: 0.9rem !important;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
  padding: 10px 12px; border: 1px solid var(--border, #33334f); border-radius: 10px; background: var(--bg-dark-2, #22223a);
}
.dv-switch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv-switch-text strong { font-size: 0.95rem; }
.dv-switch-text small { color: var(--text-muted, #a9a6c0); font-size: 0.8rem; line-height: 1.35; }
.dv-switch-row.dv-on { border-color: var(--accent, #f1ae29); }
.dv-body { display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 4px; }
.dv-row { display: flex; gap: 10px; }
.dv-row > label { flex: 1; min-width: 0; }
.dv-notice {
  margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 0.85rem; line-height: 1.45;
  background: rgba(241, 174, 41, 0.12); border: 1px solid rgba(241, 174, 41, 0.45); color: var(--text-light, #eee8f0);
}
.dv-hint { margin: 0; font-size: 0.78rem; color: var(--text-muted, #a9a6c0); }
.dv-error { margin: 0; font-size: 0.85rem; color: #ff8d8d; }
.dv-hidden { display: none !important; }

/* the month calendar */
.rp { border: 1px solid var(--border, #33334f); border-radius: 10px; padding: 12px; background: var(--bg-dark, #1a1a2e); }
.rp-orig { font-size: 0.88rem; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rp-orig-missing { color: var(--text-muted, #a9a6c0); }
.rp-tag {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; border: 1px dashed var(--accent, #f1ae29); color: var(--accent, #f1ae29);
}
.rp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; min-height: 30px; }
.rp-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 16px; font-size: 0.82rem;
  background: rgba(241, 174, 41, 0.16); border: 1px solid var(--accent, #f1ae29);
}
.rp-chip-x {
  appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; width: 26px; height: 26px;
  border-radius: 50%; font-size: 0.8rem; line-height: 1; padding: 0;
}
.rp-chip-x:hover { background: rgba(255, 255, 255, 0.15); }
.rp-count { font-size: 0.78rem; color: var(--text-muted, #a9a6c0); margin-left: auto; }
.rp-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rp-title { font-weight: 600; font-size: 0.92rem; }
.rp-nav-btn {
  appearance: none; width: 40px; height: 36px; border-radius: 8px; border: 1px solid var(--border, #33334f);
  background: transparent; color: var(--text-light, #eee8f0); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0;
}
.rp-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.rp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rp-dow { text-align: center; font-size: 0.7rem; color: var(--text-muted, #a9a6c0); padding: 2px 0 4px; }
.rp-pad { min-height: 40px; }
.rp-day {
  appearance: none; min-height: 40px; padding: 0; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--text-light, #eee8f0); font: inherit; font-size: 0.9rem; cursor: pointer;
}
.rp-day:hover:not(:disabled) { border-color: var(--accent, #f1ae29); }
.rp-day.rp-today { text-decoration: underline; }
.rp-day.rp-selected { background: var(--accent, #f1ae29); color: #1a1a2e; font-weight: 700; }
.rp-day.rp-original { border: 2px dashed var(--accent, #f1ae29); color: var(--accent, #f1ae29); font-weight: 700; opacity: 1; }
.rp-day:disabled { opacity: 0.32; cursor: not-allowed; }
.rp-day.rp-original:disabled { opacity: 1; cursor: default; }
.rp-day.rp-full:disabled { opacity: 0.22; }
.rp-day:focus-visible, .rp-nav-btn:focus-visible, .rp-chip-x:focus-visible { outline: 2px solid var(--accent, #f1ae29); outline-offset: 2px; }
.rp-msg { margin: 8px 0 0; min-height: 1.1em; font-size: 0.8rem; color: #ffd27a; }
