.rm-calendar-toolbar,.rm-calendar-month,.rm-calendar-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.rm-calendar-month h2{margin:0;font-size:22px}.rm-calendar-tools{padding:12px 20px;border-bottom:1px solid var(--border);font-size:12px;color:var(--ink-mid)}.rm-calendar-scroll{overflow:auto}.rm-calendar-week,.rm-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:650px}.rm-calendar-week>div{padding:10px;text-align:center;color:var(--ink-mid);font-size:12px}.rm-calendar-day{min-height:115px;border-top:1px solid var(--border);border-right:1px solid var(--border);padding:6px;min-width:0}.rm-calendar-day:nth-child(7n){border-right:0}.rm-calendar-day.is-outside{background:var(--bg);color:var(--ink-mid)}.rm-calendar-day.is-today{box-shadow:inset 0 0 0 2px var(--green)}.rm-day-number{border:0;background:none;color:inherit;border-radius:50%;width:28px;height:28px;padding:0;text-align:center}.rm-calendar-event{display:block;text-align:left;width:100%;padding:5px 7px;margin:4px 0;border:0;border-left:3px solid var(--green);border-radius:4px;background:var(--green-lt,#e8f3ed);color:var(--green);overflow-wrap:anywhere;font-size:11px}.rm-calendar-event strong,.rm-calendar-event small{display:block}.rm-calendar-event.is-cancelled{text-decoration:line-through;opacity:.55}.rm-event-list-item{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;border:0;border-bottom:1px solid var(--border);background:none;padding:16px;color:inherit}.rm-event-list-item p{margin:6px 0}.rm-event-dialog{width:min(720px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #0004}.rm-event-dialog::backdrop{background:#10241dcc}.rm-event-dialog header,.rm-event-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:20px 24px;background:var(--surface);position:sticky;z-index:2}.rm-event-dialog header{top:0;border-bottom:1px solid var(--border)}.rm-event-dialog footer{bottom:0;border-top:1px solid var(--border)}.rm-event-dialog h2{margin:0}.rm-event-form{display:grid;gap:18px;padding:24px}.rm-event-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rm-event-form .form-label{margin:0;display:grid;gap:7px}.rm-event-form small{font-weight:400;color:var(--ink-mid)}.rm-event-checks{display:grid;gap:12px}.rm-event-description{white-space:pre-wrap;overflow-wrap:anywhere}.rm-event-album{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.rm-event-album img{width:100%;height:120px;object-fit:cover;border-radius:8px}.rm-event-post{padding:16px 0;border-bottom:1px solid var(--border)}.rm-event-post .btn-link{padding:0;white-space:normal;text-align:left}.rm-event-form [data-event-error]{color:#a82020}.rm-events-public{max-width:1400px;margin:auto;padding:24px}.rm-events-public>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}@media(max-width:600px){.rm-event-form-grid{grid-template-columns:1fr}.rm-event-dialog header,.rm-event-dialog footer,.rm-event-form{padding:16px}.rm-calendar-toolbar{padding:16px}.rm-calendar-month h2{font-size:18px}.rm-events-public{padding:12px}}@media print{.rm-management-sidebar,.rm-topbar,.rm-footer,.rm-calendar-tools,.rm-calendar-toolbar .btn,.rm-page-actions,dialog{display:none!important}.admin-page .page-wrapper{margin:0!important}.rm-calendar-scroll{overflow:visible}.rm-calendar-day{break-inside:avoid}}

.rm-event-form [hidden]{display:none!important}

/* Keep the close control beside long titles in both event dialogs. */
.rm-event-dialog header { display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:start; }
.rm-event-dialog header>:first-child { min-width:0; overflow-wrap:anywhere; }
.rm-event-dialog .rm-event-close {
 display:inline-flex; align-items:center; justify-content:center;
 width:44px; height:44px; padding:0; margin:0;
 color:#fff; background:var(--coral); border-color:var(--coral);
}
.rm-event-dialog .rm-event-close:hover,.rm-event-dialog .rm-event-close:active { color:#fff; background:#b72c31; border-color:#b72c31; }
.rm-event-dialog .rm-event-close svg { width:20px; height:20px; margin:0; }
.rm-event-dialog h2[tabindex="-1"]:focus { outline:none; }

/* Detail actions: the destructive action stands apart; the primary action ends the row. */
.rm-event-dialog footer.rm-event-actions { display:flex; justify-content:flex-end; gap:8px; }
.rm-event-dialog footer.rm-event-actions>* { margin:0; }
.rm-event-dialog footer.rm-event-actions .rm-event-cancel { margin-right:auto; }
@media(max-width:600px){
 .rm-event-dialog footer.rm-event-actions { display:grid; grid-template-columns:1fr 1fr; padding-block:12px; }
 .rm-event-dialog footer.rm-event-actions .btn { width:100%; min-height:44px; padding-inline:8px; white-space:normal; }
 .rm-event-dialog footer.rm-event-actions .rm-event-cancel { order:1; }
 .rm-event-dialog footer.rm-event-actions .btn-primary { order:2; grid-column:1/-1; }
 .rm-event-dialog footer.rm-event-actions .btn:only-child { grid-column:1/-1; }
}

/* Signed-out visitors get a clear way in instead of an empty calendar. */
.rm-events-signin { max-width:480px; margin:24px auto; }
.rm-events-signin .card-body { display:grid; gap:12px; padding:28px; }
.rm-events-signin h2 { margin:0; font-size:22px; color:var(--ink); }
.rm-events-signin p { margin:0; color:var(--ink-mid); }
.rm-events-signin-form { display:grid; gap:6px; }
.rm-events-signin-form .form-label { margin:10px 0 0; font-weight:600; color:var(--ink); }
.rm-events-signin-form .form-control { min-height:46px; font-size:16px; }
.rm-events-signin-form .btn { min-height:46px; margin-top:16px; }
.rm-events-signin-help { font-size:13px; }
.rm-events-signin-help a { color:var(--green); font-weight:600; }
.rm-events-footer { max-width:1400px; margin:0 auto; padding:0 24px 24px; }
.rm-events-footer a { color:var(--green); }
@media(max-width:600px){ .rm-events-signin .card-body { padding:20px; } .rm-events-footer { padding:0 16px 16px; } }

/* The month and its controls scroll away together, leaving the agenda unobstructed. */
.rm-calendar.is-mobile { border:0; background:transparent; box-shadow:none; overflow:visible; }
.rm-calendar.is-mobile .rm-calendar-toolbar { position:static; padding:12px; background:var(--surface); border:1px solid var(--border); border-radius:18px; gap:10px; }
.rm-calendar.is-mobile .rm-calendar-month { width:100%; display:grid; grid-template-columns:36px minmax(0,1fr) 36px auto; gap:8px; }
.rm-calendar.is-mobile .rm-calendar-month h2 { text-align:center; font-size:clamp(16px,4vw,22px); }
.rm-calendar.is-mobile .rm-calendar-month .btn { min-height:40px; padding:6px 9px; }
.rm-calendar.is-mobile .rm-calendar-toolbar > .btn-list { width:100%; flex-wrap:wrap; margin:0; }
.rm-calendar.is-mobile .rm-calendar-toolbar .form-select { flex:1 1 120px; min-width:0; max-width:100%; font-size:16px; }
.rm-calendar.is-mobile .rm-calendar-tools { padding:10px 4px; gap:8px; border:0; }
.rm-calendar.is-mobile .rm-calendar-tools .btn-list { flex-wrap:wrap; }
.rm-calendar.is-mobile .rm-calendar-tools .btn { white-space:normal; }
.rm-calendar.is-mobile .rm-calendar-scroll { overflow:visible; }
.rm-calendar.is-mobile .rm-calendar-week,.rm-calendar.is-mobile .rm-calendar-grid { min-width:0; width:100%; }
.rm-calendar.is-mobile .rm-calendar-week>div { padding:10px 0; font-size:12px; }
.rm-calendar.is-mobile .rm-calendar-day { min-height:52px; padding:3px 0; border:0; background:transparent; text-align:center; box-shadow:none; }
.rm-calendar.is-mobile .rm-calendar-day:nth-child(7n) { color:#b83b32; }
.rm-calendar.is-mobile .rm-calendar-day.is-outside { opacity:.4; }
.rm-calendar.is-mobile .rm-day-number { width:36px; height:36px; font-size:16px; }
.rm-calendar.is-mobile .is-today .rm-day-number { background:var(--green); color:white; font-weight:700; }
.rm-calendar.is-mobile .is-selected .rm-day-number { outline:2px solid var(--green); outline-offset:1px; }
.rm-calendar.is-mobile .rm-day-dots { display:flex; justify-content:center; gap:3px; height:7px; padding-top:3px; }
.rm-day-dots i { display:block; width:4px; height:4px; border-radius:50%; background:var(--green); }
.rm-agenda-handle { width:32px; height:4px; border-radius:4px; background:var(--border); margin:16px auto 22px; }
.rm-mobile-agenda { display:grid; gap:20px; min-width:0; padding-bottom:24px; }
.rm-agenda-day { scroll-margin-top:16px; min-width:0; }
.rm-agenda-day h3 { font-size:17px; color:var(--green); margin:0 0 10px; }
.rm-agenda-event { display:flex; flex-direction:column; gap:8px; width:100%; text-align:left; margin-bottom:10px; padding:18px; background:var(--surface); border:1px solid var(--border); border-left:4px solid var(--green); border-radius:18px; color:var(--ink-mid); font-size:13px; overflow-wrap:anywhere; }
.rm-agenda-event strong { font-size:17px; color:var(--ink); line-height:1.4; }
.rm-agenda-event .rm-agenda-venue { font-weight:600; color:var(--green); }
.rm-agenda-event .rm-agenda-status { border-top:1px solid var(--border); padding-top:10px; color:var(--green); }
.rm-agenda-event.is-cancelled { opacity:.6; }
.rm-agenda-event.is-cancelled strong { text-decoration:line-through; }
.rm-agenda-empty { padding:16px; background:var(--surface); border-radius:16px; }
@media print { .rm-calendar.is-mobile .rm-calendar-toolbar { position:static; } }

/* The mobile Events page has the same stationary brand and navigation as Home. */
.rm-events-brand { display:none; }
#rm-events-shell,.rm-events-content { display:contents; }
@media(max-width:1024px) {
 html.rm-mobile-layout body:has(#rm-events-shell) { height:100vh!important; height:100dvh!important; min-height:0!important; padding-bottom:0; overflow:hidden!important; }
 html.rm-mobile-layout #rm-events-shell { display:flex; flex-direction:column; height:100vh; height:100dvh; min-height:0; overflow:hidden; }
 html.rm-mobile-layout #rm-events-shell>.rm-events-brand { display:block; flex:0 0 auto; z-index:25; border-radius:0; }
 html.rm-mobile-layout #rm-events-shell>.rm-events-content { display:block; flex:1 1 0; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain; padding-bottom:24px; background:var(--bg); }
 html.rm-mobile-layout #rm-events-shell>.rm-mobile-nav { position:relative; inset:auto; flex:0 0 auto; z-index:30; }
 html.rm-mobile-layout .rm-events-public { margin:0 auto; width:100%; }
 html.rm-mobile-layout .rm-events-public>header { margin-bottom:16px; }
 html.rm-mobile-layout .rm-events-public>header>a { display:none; }
 html.rm-mobile-layout .rm-events-public h1 { margin:0; font-size:24px; }
 html.rm-mobile-layout body:has(.rm-mobile-camera:not([hidden])) #rm-events-shell>.rm-mobile-nav { visibility:hidden; }
}
@media print { #rm-events-shell>.rm-events-brand,#rm-events-shell>.rm-mobile-nav { display:none!important; } }
