/* Shared by the mobile next-event card and the organizer preview. */
.m-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #203b3f;
  background: #f0f3ef;
  border: 1px solid #203b3f12;
  box-shadow: 0 8px 24px -20px #203b3f40;
}
.m-next-top,
.m-next-foot,
.m-next > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.m-next-top {
  font-size: 12px;
  color: #40565a;
}
.m-next-top > span:last-child {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fffdf9db;
}
.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fffdf9cc;
  color: #203b3f;
  font-size: 12px;
  font-weight: 600;
}
.m-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8d60;
}
.m-next-when {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.m-next-when b {
  font-family: var(--num);
  font-size: 40px;
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.m-next-when span {
  display: grid;
  padding-bottom: 2px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #40565a;
}
.m-next-when strong {
  font-size: 14px;
  font-weight: 600;
  color: #203b3f;
}
.m-next h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.m-next > p {
  margin: 0;
  justify-content: flex-start;
  font-size: 13px;
  color: #40565a;
}
.m-next > p span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}
.m-next > p .icon {
  width: 15px;
  height: 15px;
}
.m-next-foot {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #203b3f24;
}
.m-next-foot b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
.m-next-foot small {
  font-size: 12px;
  color: #40565a;
}
.m-next-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-height: 44px;
  text-align: center;
  line-height: 1.4;
  padding: 8px 16px;
  border-radius: 999px;
  background: #bd4d2d;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}
.m-next-go .icon {
  width: 16px;
  height: 16px;
}
.m-next--empty h2 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.m-next--empty p {
  font-size: 13.5px;
  color: #40565a;
}
/* The original photo stays intact; only its presentation is softened. */
.m-next-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(.65);
}
.m-next::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, #f9f8f1f5 0%, #f9f8f1dc 40%, #f9f8f199 100%),
    linear-gradient(0deg, #f9f8f1f5 0%, #f9f8f1b3 30%, #f9f8f100 75%);
}
.m-next:not(:has(.m-next-photo))::before { display: none; }
.m-next-foot > span:first-child { min-width: 0; }
.m-next-foot small { display: block; overflow-wrap: anywhere; }
.m-next-go .icon { flex-shrink: 0; }
.event-cover-editor { min-width: 0; }
.event-cover-editor .m-next { margin: 0; width: 100%; }
.event-cover-editor figure { margin: 12px 0 0; max-width: 390px; }
.event-cover-editor figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.event-cover-editor input[type="file"] { width: 100%; min-height: 50px; }
.event-cover-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.event-cover-actions [data-event-cover-remove] { min-height: 44px; padding: 8px 12px; color: var(--lake); text-decoration: underline; }
.event-cover-error { color: #9b341c; font-size: 14px; margin-top: 8px; }
.event-cover-editor [hidden] { display: none !important; }
