/* ===========================================================================
 * Public Upcoming Events carousel + calendar modal.
 * =========================================================================== */

.mrfc-events {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mrfc-events__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.mrfc-events__header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.mrfc-events__viewport {
  position: relative;
  overflow: hidden;
}
.mrfc-events__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.mrfc-events__track::-webkit-scrollbar { height: 6px; }
.mrfc-events__track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }
.mrfc-events__skeleton,
.mrfc-events__empty {
  flex: 1 0 100%;
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,0.6);
}

/* Card */
.mrfc-event-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #111418;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: #f5f5f5;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mrfc-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.2);
}
@media (min-width: 768px) {
  .mrfc-event-card { flex-basis: 360px; }
}
.mrfc-event-card__media {
  aspect-ratio: 16 / 9;
  background: #1a1d21;
  overflow: hidden;
}
.mrfc-event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mrfc-event-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.mrfc-event-card__date {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.mrfc-event-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}
.mrfc-event-card__meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.mrfc-event-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding-top: 0.5rem;
}

/* Modal (dark theme) */
.mrfc-cal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: #f5f5f5;
}
.mrfc-cal-modal[hidden] { display: none; }
.mrfc-cal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.mrfc-cal-modal__panel {
  position: relative;
  background: #0f1115;
  color: #f5f5f5;
  width: min(960px, 100%);
  max-height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
@media (min-width: 768px) {
  .mrfc-cal-modal__panel { max-height: 90vh; }
}
.mrfc-cal-modal__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mrfc-cal-modal__title {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.mrfc-cal-modal__nav,
.mrfc-cal-modal__close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #f5f5f5;
}
.mrfc-cal-modal__nav:hover,
.mrfc-cal-modal__close:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}
.mrfc-cal-modal__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  overflow: auto;
  padding: 1rem 1.25rem 1.5rem;
}
@media (min-width: 768px) {
  .mrfc-cal-modal__body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

/* Calendar grid */
.mrfc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.mrfc-cal-grid__dow {
  background: #15181d;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  padding: 0.5rem 0;
}
.mrfc-cal-grid__day {
  background: #15181d;
  color: #f5f5f5;
  min-height: 64px;
  padding: 0.35rem 0.4rem;
  font-size: 0.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mrfc-cal-grid__day--other {
  color: rgba(255,255,255,0.25);
  background: #101216;
}
.mrfc-cal-grid__day--today .mrfc-cal-grid__day-num {
  background: #fff; color: #0f1115; border-radius: 999px;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
}
.mrfc-cal-grid__day-num { font-weight: 600; }
.mrfc-cal-grid__dot {
  width: 6px; height: 6px; border-radius: 999px; background: #60a5fa; display: inline-block;
}

/* List */
.mrfc-cal-list {
  display: flex; flex-direction: column; gap: 0.85rem;
  min-width: 0;
}
.mrfc-cal-list__empty {
  color: rgba(255,255,255,0.55); font-size: 0.9rem; padding: 0.5rem 0;
}
.mrfc-cal-list__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: #15181d;
  text-decoration: none;
  color: #f5f5f5;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mrfc-cal-list__item:hover {
  background: #1b1f25;
  border-color: rgba(255,255,255,0.2);
}
.mrfc-cal-list__date {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 0.85rem;
}
.mrfc-cal-list__date-month {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55);
}
.mrfc-cal-list__date-day {
  font-size: 1.4rem; font-weight: 700; line-height: 1; color: #fff;
}
.mrfc-cal-list__title { font-weight: 600; margin: 0; line-height: 1.25; color: #fff; }
.mrfc-cal-list__meta { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin: 0.15rem 0 0; }

body.mrfc-cal-open { overflow: hidden; }

/* ===========================================================================
 * Guides modal (dark, reuses .mrfc-cal-modal layout primitives but standalone)
 * =========================================================================== */
.mrfc-guides-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: #f5f5f5;
}
.mrfc-guides-modal[hidden] { display: none; }
.mrfc-guides-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.mrfc-guides-modal__panel {
  position: relative;
  background: #0f1115;
  color: #f5f5f5;
  width: min(640px, 100%);
  max-height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
@media (min-width: 768px) {
  .mrfc-guides-modal__panel { max-height: 90vh; }
}
.mrfc-guides-modal__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mrfc-guides-modal__title {
  flex: 1;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin: 0;
}
.mrfc-guides-modal__close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #f5f5f5;
}
.mrfc-guides-modal__close:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}
.mrfc-guides-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: auto;
  padding: 1.25rem;
}
.mrfc-guide-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: #15181d;
}
.mrfc-guide-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}
.mrfc-guide-item__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #fff;
  color: #0f1115;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid #fff;
  transition: background 0.15s ease, color 0.15s ease;
}
.mrfc-guide-item__btn:hover {
  background: transparent;
  color: #fff;
}
body.mrfc-guides-open { overflow: hidden; }
