/*
 * IFP EventPilot – Frontend
 * Scoped with ifp-ep-*.
 */
.ifp-ep-events {
  display: grid;
  gap: 16px;
}

.ifp-ep-events--cols-2,
.ifp-ep-events--cols-3,
.ifp-ep-events--cols-4 {
  grid-template-columns: repeat(var(--ifp-ep-cols, 1), minmax(0, 1fr));
}

.ifp-ep-events--cols-2 { --ifp-ep-cols: 2; }
.ifp-ep-events--cols-3 { --ifp-ep-cols: 3; }
.ifp-ep-events--cols-4 { --ifp-ep-cols: 4; }

.ifp-ep-event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #d9e0ea;
  border-radius: 14px;
  background: #fff;
}

.ifp-ep-event-card--compact {
  padding: 12px 14px;
  gap: 10px;
}

.ifp-ep-event-card--featured {
  border-width: 2px;
}

.ifp-ep-event-card__icon img,
.ifp-ep-event-detail__icon img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.ifp-ep-event-card--compact .ifp-ep-event-card__icon img {
  width: 48px;
  height: 48px;
}

.ifp-ep-event-card__title {
  margin: 0 0 6px;
}

.ifp-ep-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
  font-size: 0.92em;
  opacity: 0.86;
}

.ifp-ep-event-card__text {
  margin: 0 0 10px;
}

.ifp-ep-event-card__actions,
.ifp-ep-event-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ifp-ep-event-card__link,
.ifp-ep-event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.45em 0.85em;
  text-decoration: none;
  line-height: 1.2;
}

.ifp-ep-event-card__link--external,
.ifp-ep-event-button {
  font-weight: 700;
}

.ifp-ep-event-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.1em 0.55em;
  font-size: 0.86em;
  font-weight: 700;
}

.ifp-ep-event-detail {
  padding: 18px;
  border: 1px solid #d9e0ea;
  border-radius: 16px;
  background: #f8fafc;
  margin-bottom: 24px;
}

.ifp-ep-event-detail__head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ifp-ep-event-detail__date {
  font-weight: 700;
}

.ifp-ep-event-detail__location {
  margin-top: 3px;
}

.ifp-ep-event-detail__address,
.ifp-ep-event-detail__short {
  opacity: 0.85;
}

.ifp-ep-event-gallery {
  margin-top: 28px;
}

.ifp-ep-event-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.ifp-ep-event-gallery__grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .ifp-ep-events--cols-3,
  .ifp-ep-events--cols-4 {
    --ifp-ep-cols: 2;
  }
}

@media (max-width: 640px) {
  .ifp-ep-events--cols-2,
  .ifp-ep-events--cols-3,
  .ifp-ep-events--cols-4 {
    --ifp-ep-cols: 1;
  }

  .ifp-ep-event-card {
    grid-template-columns: 1fr;
  }

  .ifp-ep-event-detail__head {
    align-items: flex-start;
  }
}


/* Teaser/List layout – compact upcoming-events view similar to a sidebar module. */
.ifp-ep-events--layout-teaser {
  display: block;
  border-top: 1px solid rgba(20, 30, 20, 0.1);
}

.ifp-ep-event-teaser {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(20, 30, 20, 0.1);
}

.ifp-ep-event-teaser__date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 54px;
  border: 1px solid rgba(20, 30, 20, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.ifp-ep-event-teaser__day {
  display: block;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.ifp-ep-event-teaser__month {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b15a42;
}

.ifp-ep-event-teaser__title {
  margin: 0 0 3px;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.ifp-ep-event-teaser__title a {
  color: inherit;
  text-decoration: none;
}

.ifp-ep-event-teaser__title a:hover,
.ifp-ep-event-teaser__title a:focus {
  text-decoration: underline;
}

.ifp-ep-event-teaser__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.78rem;
  line-height: 1.25;
  opacity: 0.82;
}

.ifp-ep-event-teaser__category::before {
  content: "✽";
  margin-right: 4px;
  color: #6f7f4d;
}

.ifp-ep-event-teaser__location::before {
  content: "●";
  margin-right: 4px;
  color: #b17b6d;
  font-size: 0.78em;
}

.ifp-ep-events-archive-link {
  margin: 8px 0 0;
}

.ifp-ep-events-archive-link__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 700;
}

.ifp-ep-events-archive-link__label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.ifp-ep-events-archive-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #5c6b3e;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1;
}


.ifp-ep-events-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 500;
}



/* v1.5.0 – Shortcode styling variables */
.ifp-ep-shortcode-shell {
  --ifp-ep-max-width: 100%;
  --ifp-ep-gap: 16px;
  --ifp-ep-card-padding: 16px;
  --ifp-ep-radius: 14px;
  --ifp-ep-card-bg: #ffffff;
  --ifp-ep-card-border: #d9e0ea;
  --ifp-ep-text: inherit;
  --ifp-ep-muted: currentColor;
  --ifp-ep-accent: #5c6b3e;
  --ifp-ep-date-bg: rgba(255,255,255,.45);
  --ifp-ep-date-text: #b15a42;
  --ifp-ep-button-bg: #5c6b3e;
  --ifp-ep-button-text: #ffffff;
  --ifp-ep-title-size: 1.15rem;
  --ifp-ep-item-title-size: 1rem;
  max-width: var(--ifp-ep-max-width);
  color: var(--ifp-ep-text);
}

.ifp-ep-style-preset-minimal {
  --ifp-ep-card-bg: transparent;
  --ifp-ep-card-border: rgba(20,30,20,.12);
  --ifp-ep-date-bg: transparent;
  --ifp-ep-accent: currentColor;
}

.ifp-ep-style-preset-natural {
  --ifp-ep-card-bg: rgba(255,255,255,.45);
  --ifp-ep-card-border: rgba(20,30,20,.12);
  --ifp-ep-accent: #5c6b3e;
  --ifp-ep-date-text: #b15a42;
}

.ifp-ep-style-preset-warm {
  --ifp-ep-card-bg: #f8f1e6;
  --ifp-ep-card-border: #ead8bf;
  --ifp-ep-accent: #7a5b2e;
  --ifp-ep-date-text: #b15a42;
}

.ifp-ep-style-preset-clean {
  --ifp-ep-card-bg: #ffffff;
  --ifp-ep-card-border: #d9e0ea;
  --ifp-ep-accent: #1d4ed8;
  --ifp-ep-date-text: #1d4ed8;
}

.ifp-ep-style-preset-contrast {
  --ifp-ep-card-bg: #0f172a;
  --ifp-ep-card-border: #334155;
  --ifp-ep-text: #f8fafc;
  --ifp-ep-muted: #cbd5e1;
  --ifp-ep-accent: #93c5fd;
  --ifp-ep-date-bg: #1e293b;
  --ifp-ep-date-text: #bfdbfe;
  --ifp-ep-button-bg: #f8fafc;
  --ifp-ep-button-text: #0f172a;
}

.ifp-ep-shortcode-shell .ifp-ep-events {
  gap: var(--ifp-ep-gap);
}

.ifp-ep-shortcode-shell .ifp-ep-events-title {
  font-size: var(--ifp-ep-title-size);
  color: var(--ifp-ep-text);
}

.ifp-ep-shortcode-shell .ifp-ep-event-card,
.ifp-ep-shortcode-shell .ifp-ep-event-detail {
  padding: var(--ifp-ep-card-padding);
  border-color: var(--ifp-ep-card-border);
  border-radius: var(--ifp-ep-radius);
  background: var(--ifp-ep-card-bg);
  color: var(--ifp-ep-text);
}

.ifp-ep-shortcode-shell .ifp-ep-event-card__title,
.ifp-ep-shortcode-shell .ifp-ep-event-teaser__title {
  font-size: var(--ifp-ep-item-title-size);
}

.ifp-ep-shortcode-shell .ifp-ep-event-card__meta,
.ifp-ep-shortcode-shell .ifp-ep-event-teaser__meta,
.ifp-ep-shortcode-shell .ifp-ep-event-detail__address,
.ifp-ep-shortcode-shell .ifp-ep-event-detail__short {
  color: var(--ifp-ep-muted);
  opacity: 1;
}

.ifp-ep-shortcode-shell .ifp-ep-event-card__link,
.ifp-ep-shortcode-shell .ifp-ep-event-button {
  border-color: var(--ifp-ep-accent);
  color: var(--ifp-ep-accent);
}

.ifp-ep-shortcode-shell .ifp-ep-event-card__link--external,
.ifp-ep-shortcode-shell .ifp-ep-event-button {
  background: var(--ifp-ep-button-bg);
  border-color: var(--ifp-ep-button-bg);
  color: var(--ifp-ep-button-text);
}

.ifp-ep-shortcode-shell .ifp-ep-events--layout-teaser {
  border-top-color: var(--ifp-ep-card-border);
}

.ifp-ep-shortcode-shell .ifp-ep-event-teaser {
  gap: var(--ifp-ep-gap);
  padding: calc(var(--ifp-ep-card-padding) / 2) 0;
  border-bottom-color: var(--ifp-ep-card-border);
}

.ifp-ep-shortcode-shell .ifp-ep-event-teaser__date {
  background: var(--ifp-ep-date-bg);
  border-color: var(--ifp-ep-card-border);
  border-radius: max(4px, calc(var(--ifp-ep-radius) / 3));
}

.ifp-ep-shortcode-shell .ifp-ep-event-teaser__month,
.ifp-ep-shortcode-shell .ifp-ep-event-teaser__day {
  color: var(--ifp-ep-date-text);
}

.ifp-ep-shortcode-shell .ifp-ep-event-teaser__category::before {
  color: var(--ifp-ep-accent);
}

.ifp-ep-shortcode-shell .ifp-ep-events-archive-link__label {
  background: var(--ifp-ep-card-bg);
  border: 1px solid var(--ifp-ep-card-border);
}

.ifp-ep-shortcode-shell .ifp-ep-events-archive-link__icon {
  background: var(--ifp-ep-button-bg);
  color: var(--ifp-ep-button-text);
}


/* v1.6.0 – Archive shortcode layout inspired by an editorial event archive. */
.ifp-ep-events--layout-archive {
  display: grid;
  gap: var(--ifp-ep-gap);
}

.ifp-ep-events-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.ifp-ep-events-archive-main {
  min-width: 0;
}

.ifp-ep-archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.ifp-ep-archive-filter__item {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 15px;
  border: 1px solid var(--ifp-ep-card-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ifp-ep-card-bg) 84%, transparent);
  color: var(--ifp-ep-text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
}

.ifp-ep-archive-filter__item.is-active,
.ifp-ep-archive-filter__item:hover,
.ifp-ep-archive-filter__item:focus {
  background: var(--ifp-ep-accent);
  border-color: var(--ifp-ep-accent);
  color: var(--ifp-ep-button-text);
  text-decoration: none;
}

.ifp-ep-event-archive {
  display: grid;
  grid-template-columns: minmax(130px, 260px) 92px minmax(0, 1fr) minmax(140px, 180px);
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ifp-ep-card-border);
  border-radius: var(--ifp-ep-radius);
  background: color-mix(in srgb, var(--ifp-ep-card-bg) 82%, transparent);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.03);
}

.ifp-ep-event-archive + .ifp-ep-event-archive {
  margin-top: 12px;
}

.ifp-ep-event-archive__image {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--ifp-ep-radius) - 4px);
  min-height: 106px;
  background: rgba(20, 30, 20, 0.06);
}

.ifp-ep-event-archive__image-img,
.ifp-ep-event-archive__image img {
  display: block;
  width: 100%;
  height: 106px;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.ifp-ep-event-archive__image:hover img,
.ifp-ep-event-archive__image:focus img {
  transform: scale(1.03);
}

.ifp-ep-event-archive__date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 92px;
  padding: 9px 8px;
  border: 1px solid var(--ifp-ep-card-border);
  border-radius: calc(var(--ifp-ep-radius) - 6px);
  background: var(--ifp-ep-date-bg);
  color: var(--ifp-ep-date-text);
  text-decoration: none;
  line-height: 1;
  text-align: center;
}

.ifp-ep-event-archive__day {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.ifp-ep-event-archive__month {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ifp-ep-event-archive__time {
  display: block;
  margin-top: 9px;
  font-size: 0.75rem;
  color: var(--ifp-ep-muted);
}

.ifp-ep-event-archive__title {
  margin: 0 0 7px;
  font-size: var(--ifp-ep-item-title-size);
  line-height: 1.25;
  font-weight: 600;
}

.ifp-ep-event-archive__title a {
  color: inherit;
  text-decoration: none;
}

.ifp-ep-event-archive__title a:hover,
.ifp-ep-event-archive__title a:focus {
  text-decoration: underline;
}

.ifp-ep-event-archive__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 7px;
  color: var(--ifp-ep-muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

.ifp-ep-event-archive__location::before {
  content: "⌖";
  margin-right: 5px;
  color: var(--ifp-ep-accent);
}

.ifp-ep-event-archive__category::before {
  content: "✽";
  margin-right: 5px;
  color: var(--ifp-ep-accent);
}

.ifp-ep-event-archive__text {
  margin: 0;
  color: var(--ifp-ep-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ifp-ep-event-archive__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-self: stretch;
}

.ifp-ep-event-archive__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ifp-ep-button-bg);
  color: var(--ifp-ep-button-text);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  text-decoration: none;
}

.ifp-ep-event-archive__button:hover,
.ifp-ep-event-archive__button:focus,
.ifp-ep-archive-widget__button:hover,
.ifp-ep-archive-widget__button:focus {
  filter: brightness(0.96);
  text-decoration: none;
}

.ifp-ep-event-archive__favorite {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ifp-ep-muted);
  font-size: 0.9rem;
}

.ifp-ep-event-archive__favorite::first-letter {
  font-size: 1.4rem;
}

.ifp-ep-events-archive-sidebar {
  display: grid;
  gap: 16px;
}

.ifp-ep-archive-widget {
  padding: 20px;
  border: 1px solid var(--ifp-ep-card-border);
  border-radius: var(--ifp-ep-radius);
  background: color-mix(in srgb, var(--ifp-ep-card-bg) 82%, transparent);
}

.ifp-ep-archive-widget__title {
  margin: 0 0 12px;
  color: var(--ifp-ep-text);
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 500;
}

.ifp-ep-archive-widget__text {
  margin: 0 0 16px;
  color: var(--ifp-ep-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.ifp-ep-archive-widget__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ifp-ep-button-bg);
  color: var(--ifp-ep-button-text);
  font-weight: 700;
  text-decoration: none;
}

.ifp-ep-mini-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--ifp-ep-text);
}

.ifp-ep-mini-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.ifp-ep-mini-calendar__weekdays {
  margin-bottom: 6px;
  color: var(--ifp-ep-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.ifp-ep-mini-calendar__grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  color: var(--ifp-ep-muted);
  font-size: 0.85rem;
}

.ifp-ep-mini-calendar__grid span.has-event {
  color: var(--ifp-ep-accent);
  font-weight: 800;
  position: relative;
}

.ifp-ep-mini-calendar__grid span.has-event::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.ifp-ep-mini-calendar__grid span.is-today {
  background: var(--ifp-ep-button-bg);
  color: var(--ifp-ep-button-text);
}

@media (max-width: 1100px) {
  .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr;
  }

  .ifp-ep-events-archive-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ifp-ep-event-archive {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .ifp-ep-event-archive__image {
    grid-column: 1 / -1;
  }

  .ifp-ep-event-archive__date {
    min-width: 72px;
    min-height: 82px;
  }

  .ifp-ep-event-archive__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }

  .ifp-ep-events-archive-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ifp-ep-event-archive {
    grid-template-columns: 1fr;
  }

  .ifp-ep-event-archive__date {
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    flex-direction: row;
    gap: 8px;
  }

  .ifp-ep-event-archive__time {
    margin-top: 0;
    margin-left: auto;
  }
}


/* v1.7.0 – polished archive listing + standalone calendar shortcode. */
.ifp-ep-shortcode-shell .ifp-ep-events--layout-archive {
  gap: 10px;
}

.ifp-ep-event-archive {
  grid-template-columns: minmax(180px, 290px) 86px minmax(0, 1fr) minmax(130px, 168px);
  gap: 16px;
  padding: 10px;
  min-height: 118px;
}

.ifp-ep-event-archive--no-image {
  grid-template-columns: 86px minmax(0, 1fr) minmax(130px, 168px);
}

.ifp-ep-event-archive__image {
  min-height: 112px;
}

.ifp-ep-event-archive__image-img,
.ifp-ep-event-archive__image img {
  height: 112px;
}

.ifp-ep-event-archive__date {
  min-width: 78px;
  min-height: 88px;
}

.ifp-ep-event-archive__day {
  font-size: 1.85rem;
}

.ifp-ep-event-archive__title {
  margin-bottom: 4px;
}

.ifp-ep-event-archive__meta {
  margin-bottom: 7px;
}

.ifp-ep-event-archive__button {
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

.ifp-ep-calendar-shortcode-shell {
  max-width: var(--ifp-ep-max-width, 380px);
}

.ifp-ep-event-calendar {
  padding: var(--ifp-ep-card-padding);
  border: 1px solid var(--ifp-ep-card-border);
  border-radius: var(--ifp-ep-radius);
  background: color-mix(in srgb, var(--ifp-ep-card-bg) 86%, transparent);
  color: var(--ifp-ep-text);
}

.ifp-ep-event-calendar__title {
  margin: 0 0 12px;
  font-size: var(--ifp-ep-title-size);
  line-height: 1.25;
  font-weight: 500;
  color: var(--ifp-ep-text);
}

.ifp-ep-event-calendar__head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.ifp-ep-event-calendar__month {
  text-align: center;
  color: var(--ifp-ep-text);
  font-size: 0.98rem;
  font-weight: 700;
}

.ifp-ep-event-calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--ifp-ep-text);
  text-decoration: none;
  line-height: 1;
}

.ifp-ep-event-calendar__nav:hover,
.ifp-ep-event-calendar__nav:focus {
  background: var(--ifp-ep-date-bg);
  color: var(--ifp-ep-accent);
  text-decoration: none;
}

.ifp-ep-event-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  text-align: center;
}

.ifp-ep-event-calendar__weekdays {
  margin-bottom: 6px;
  color: var(--ifp-ep-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.ifp-ep-event-calendar__weekdays span {
  min-height: 22px;
}

.ifp-ep-event-calendar__day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  color: var(--ifp-ep-muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
}

.ifp-ep-event-calendar__day span {
  position: relative;
  z-index: 1;
}

.ifp-ep-event-calendar__day.is-muted {
  opacity: .35;
}

.ifp-ep-event-calendar__day.has-event {
  color: var(--ifp-ep-accent);
  font-weight: 800;
}

.ifp-ep-event-calendar__day.has-event::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.ifp-ep-event-calendar__day.has-event:hover,
.ifp-ep-event-calendar__day.has-event:focus {
  background: var(--ifp-ep-date-bg);
  color: var(--ifp-ep-accent);
  text-decoration: none;
}

.ifp-ep-event-calendar__day.is-today {
  background: var(--ifp-ep-button-bg);
  color: var(--ifp-ep-button-text);
  font-weight: 800;
}

.ifp-ep-event-calendar__day.is-today.has-event::after {
  background: var(--ifp-ep-button-text);
}

.ifp-ep-mini-calendar {
  display: none;
}

.ifp-ep-archive-widget--calendar .ifp-ep-event-calendar {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 820px) {
  .ifp-ep-event-archive,
  .ifp-ep-event-archive--no-image {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .ifp-ep-event-archive,
  .ifp-ep-event-archive--no-image {
    grid-template-columns: 1fr;
  }
}


/* v1.7.1 – Kalender-Ausrichtung robuster + Listing ohne Button sauber auffüllen. */
.ifp-ep-event-archive--no-actions {
  grid-template-columns: minmax(180px, 290px) 86px minmax(0, 1fr);
}

.ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
  grid-template-columns: 86px minmax(0, 1fr);
}

.ifp-ep-calendar-shortcode-shell,
.ifp-ep-calendar-shortcode-shell * {
  box-sizing: border-box;
}

.ifp-ep-calendar-shortcode-shell {
  width: 100%;
  max-width: var(--ifp-ep-max-width, 380px);
}

.ifp-ep-event-calendar {
  width: 100%;
  overflow: hidden;
}

.ifp-ep-event-calendar__head {
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  gap: 6px;
}

.ifp-ep-event-calendar__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
  justify-items: stretch;
}

.ifp-ep-event-calendar__weekdays span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 22px;
  padding: 0;
  text-align: center;
}

.ifp-ep-event-calendar__days {
  grid-auto-rows: 1fr;
}

.ifp-ep-event-calendar__day {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  display: flex;
  border: 1px solid transparent;
  border-radius: 999px;
}

.ifp-ep-event-calendar__day.is-muted {
  pointer-events: none;
  visibility: hidden;
}

.ifp-ep-event-calendar__day.has-event {
  border-color: color-mix(in srgb, var(--ifp-ep-accent) 35%, transparent);
  background: color-mix(in srgb, var(--ifp-ep-date-bg) 65%, transparent);
}

.ifp-ep-event-calendar__day.is-today {
  border-color: var(--ifp-ep-button-bg);
}

.ifp-ep-event-calendar__day.is-today.has-event {
  background: var(--ifp-ep-button-bg);
}

.ifp-ep-event-calendar__day.has-event::after {
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.ifp-ep-archive-widget--calendar .ifp-ep-event-calendar__grid {
  gap: 3px;
}

@media (max-width: 820px) {
  .ifp-ep-event-archive--no-actions,
  .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .ifp-ep-event-archive--no-actions,
  .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
    grid-template-columns: 1fr;
  }
}


/* v1.8.0 – Kalender als stabile Tabelle gegen Theme-/Elementor-Grid-Verschiebungen. */
.ifp-ep-event-calendar,
.ifp-ep-event-calendar * {
  box-sizing: border-box;
}

.ifp-ep-event-calendar {
  width: 100%;
  max-width: 100%;
  padding: var(--ifp-ep-card-padding, 18px);
  border: 1px solid var(--ifp-ep-card-border, rgba(20, 30, 20, 0.12));
  border-radius: var(--ifp-ep-radius, 16px);
  background: var(--ifp-ep-card-bg, #fbf7ef);
  color: var(--ifp-ep-text, #24251f);
  overflow: hidden;
}

.ifp-ep-event-calendar__head {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) 32px !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ifp-ep-event-calendar__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
  margin: 0;
}

.ifp-ep-event-calendar__table th,
.ifp-ep-event-calendar__table td {
  width: 14.285%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  vertical-align: middle;
}

.ifp-ep-event-calendar__table th {
  height: 24px;
  color: var(--ifp-ep-muted, #6b6f5d);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.ifp-ep-event-calendar__table td {
  position: relative;
  height: 34px;
}

.ifp-ep-event-calendar__day-link,
.ifp-ep-event-calendar__day-static,
.ifp-ep-event-calendar__day-empty {
  position: relative;
  display: inline-flex;
  width: 31px;
  height: 31px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 999px;
  color: var(--ifp-ep-muted, #6b6f5d);
  font-size: 13px;
  line-height: 1;
  text-decoration: none !important;
}

.ifp-ep-event-calendar__day-empty {
  visibility: hidden;
}

.ifp-ep-event-calendar__day-link {
  color: var(--ifp-ep-accent, #6f7f4d);
  font-weight: 800;
}

.ifp-ep-event-calendar__day-link:hover,
.ifp-ep-event-calendar__day-link:focus {
  background: var(--ifp-ep-date-bg, rgba(111, 127, 77, .13));
  color: var(--ifp-ep-accent, #6f7f4d);
  outline: 0;
}

.ifp-ep-event-calendar__dot {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.ifp-ep-event-calendar__day.is-today .ifp-ep-event-calendar__day-link,
.ifp-ep-event-calendar__day.is-today .ifp-ep-event-calendar__day-static {
  background: var(--ifp-ep-button-bg, #6f7f4d);
  color: var(--ifp-ep-button-text, #fff);
  font-weight: 800;
}

.ifp-ep-event-calendar__day.is-today .ifp-ep-event-calendar__dot {
  background: var(--ifp-ep-button-text, #fff);
}

.ifp-ep-event-calendar__day.has-event:not(.is-today) .ifp-ep-event-calendar__day-link {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ifp-ep-accent, #6f7f4d) 35%, transparent);
  background: color-mix(in srgb, var(--ifp-ep-date-bg, #eff2e5) 62%, transparent);
}

.ifp-ep-archive-widget--calendar .ifp-ep-event-calendar {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.ifp-ep-archive-widget--calendar .ifp-ep-event-calendar__table {
  border-spacing: 3px;
}

.ifp-ep-archive-widget--calendar .ifp-ep-event-calendar__day-link,
.ifp-ep-archive-widget--calendar .ifp-ep-event-calendar__day-static,
.ifp-ep-archive-widget--calendar .ifp-ep-event-calendar__day-empty {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

@media (max-width: 420px) {
  .ifp-ep-event-calendar {
    padding: 14px;
  }

  .ifp-ep-event-calendar__table {
    border-spacing: 2px;
  }

  .ifp-ep-event-calendar__day-link,
  .ifp-ep-event-calendar__day-static,
  .ifp-ep-event-calendar__day-empty {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
/* v1.8.1 – Defensive shortcode layout reset.
 * Purpose: keep EventPilot shortcodes readable in Elementor/theme columns and
 * prevent theme table/grid rules from compressing calendar and listings.
 */
.ifp-ep-shortcode-shell,
.ifp-ep-shortcode-shell *,
.ifp-ep-shortcode-shell *::before,
.ifp-ep-shortcode-shell *::after {
  box-sizing: border-box;
}

.ifp-ep-shortcode-shell {
  display: block !important;
  width: 100% !important;
  max-width: min(100%, var(--ifp-ep-max-width, 100%));
  min-width: 0 !important;
  clear: both;
  container-type: inline-size;
}

.ifp-ep-shortcode-shell .ifp-ep-events,
.ifp-ep-shortcode-shell .ifp-ep-events-archive-layout,
.ifp-ep-shortcode-shell .ifp-ep-events-archive-main,
.ifp-ep-shortcode-shell .ifp-ep-events-archive-sidebar {
  width: 100%;
  min-width: 0;
}

.ifp-ep-shortcode-shell .ifp-ep-events {
  display: grid !important;
}

.ifp-ep-shortcode-shell .ifp-ep-events--layout-cards,
.ifp-ep-shortcode-shell .ifp-ep-events--layout-compact {
  grid-template-columns: repeat(var(--ifp-ep-cols, 1), minmax(0, 1fr)) !important;
}

.ifp-ep-shortcode-shell .ifp-ep-events--layout-archive,
.ifp-ep-shortcode-shell .ifp-ep-events--layout-teaser {
  grid-template-columns: 1fr !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-card,
.ifp-ep-shortcode-shell .ifp-ep-event-teaser,
.ifp-ep-shortcode-shell .ifp-ep-event-archive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ifp-ep-shortcode-shell .ifp-ep-event-card__body,
.ifp-ep-shortcode-shell .ifp-ep-event-archive__body,
.ifp-ep-shortcode-shell .ifp-ep-event-teaser__body {
  min-width: 0;
}

.ifp-ep-shortcode-shell .ifp-ep-event-card__title,
.ifp-ep-shortcode-shell .ifp-ep-event-archive__title,
.ifp-ep-shortcode-shell .ifp-ep-event-teaser__title,
.ifp-ep-shortcode-shell .ifp-ep-event-card__text,
.ifp-ep-shortcode-shell .ifp-ep-event-archive__text {
  overflow-wrap: anywhere;
}

.ifp-ep-calendar-shortcode-shell {
  display: block !important;
  width: 100% !important;
  max-width: min(100%, var(--ifp-ep-max-width, 380px)) !important;
}

/* Very specific calendar table reset against aggressive theme/Elementor table CSS. */
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table {
  display: table !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 4px !important;
  margin: 0 !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table thead {
  display: table-header-group !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table tbody {
  display: table-row-group !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table tr {
  display: table-row !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table th,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table td {
  display: table-cell !important;
  float: none !important;
  clear: none !important;
  width: 14.285714% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-link,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-static,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-empty {
  display: inline-flex !important;
  float: none !important;
  position: relative !important;
  width: clamp(24px, 8cqw, 32px);
  height: clamp(24px, 8cqw, 32px);
  min-width: 24px;
  min-height: 24px;
  max-width: 34px;
  max-height: 34px;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  white-space: nowrap;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-number {
  display: inline-block !important;
  line-height: 1 !important;
}

@container (max-width: 760px) {
  .ifp-ep-shortcode-shell .ifp-ep-events--cols-2,
  .ifp-ep-shortcode-shell .ifp-ep-events--cols-3,
  .ifp-ep-shortcode-shell .ifp-ep-events--cols-4 {
    --ifp-ep-cols: 1;
  }

  .ifp-ep-shortcode-shell .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell .ifp-ep-event-archive--no-image {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .ifp-ep-shortcode-shell .ifp-ep-event-archive__image {
    grid-column: 1 / -1;
  }

  .ifp-ep-shortcode-shell .ifp-ep-event-archive__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
}

@container (max-width: 420px) {
  .ifp-ep-shortcode-shell .ifp-ep-event-card {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell .ifp-ep-event-teaser {
    grid-template-columns: 48px minmax(0, 1fr) !important;
  }

  .ifp-ep-shortcode-shell .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell .ifp-ep-event-archive--no-image {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell .ifp-ep-event-archive__date,
  .ifp-ep-shortcode-shell .ifp-ep-event-archive__actions {
    justify-self: start;
  }

  .ifp-ep-shortcode-shell .ifp-ep-event-calendar {
    padding: 12px !important;
  }

  .ifp-ep-shortcode-shell .ifp-ep-event-calendar__table {
    border-spacing: 2px !important;
  }
}

/* Fallback for browsers without container queries. */
@media (max-width: 700px) {
  .ifp-ep-shortcode-shell .ifp-ep-events--cols-2,
  .ifp-ep-shortcode-shell .ifp-ep-events--cols-3,
  .ifp-ep-shortcode-shell .ifp-ep-events--cols-4 {
    --ifp-ep-cols: 1;
  }

  .ifp-ep-shortcode-shell .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }
}

/* v1.8.2 – Hardening gegen extrem schmale Theme-/Elementor-Content-Flows.
 * Einige Themes geben Shortcode-Ausgaben in sehr schmalen Flows aus. Archive und Kalender
 * dürfen dann nicht auf 40–90px zusammengedrückt werden, sondern bekommen eine sinnvolle
 * Mindestbreite und brechen erst auf echten Mobile-Breiten um.
 */
.ifp-ep-shortcode-shell--events,
.ifp-ep-shortcode-shell--calendar {
  margin-left: auto !important;
  margin-right: auto !important;
}

.ifp-ep-shortcode-shell--layout-archive {
  display: block !important;
  inline-size: min(100%, var(--ifp-ep-max-width, 1100px)) !important;
  max-inline-size: min(100%, var(--ifp-ep-max-width, 1100px)) !important;
  min-inline-size: min(720px, calc(100vw - 32px)) !important;
  overflow: visible !important;
  isolation: isolate;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px) !important;
  gap: clamp(18px, 3vw, 34px) !important;
  align-items: start !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-main,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events--layout-archive {
  min-inline-size: 0 !important;
  inline-size: 100% !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-archive-filter {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  gap: 8px !important;
  inline-size: 100% !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-archive-filter__item {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive {
  display: grid !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  grid-template-columns: minmax(160px, 260px) 86px minmax(0, 1fr) minmax(130px, 168px) !important;
  gap: 16px !important;
  align-items: center !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image {
  grid-template-columns: 86px minmax(0, 1fr) minmax(130px, 168px) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions {
  grid-template-columns: minmax(160px, 260px) 86px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
  grid-template-columns: 86px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__body,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__title,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__text {
  min-inline-size: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__title {
  font-size: max(var(--ifp-ep-item-title-size, 1rem), 1rem) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__text {
  max-inline-size: 68ch;
}

.ifp-ep-calendar-shortcode-shell {
  inline-size: min(100%, var(--ifp-ep-max-width, 380px)) !important;
  max-inline-size: min(100%, var(--ifp-ep-max-width, 380px)) !important;
  min-inline-size: min(320px, calc(100vw - 32px)) !important;
  overflow: visible !important;
}

.ifp-ep-calendar-shortcode-shell .ifp-ep-event-calendar__table {
  inline-size: 100% !important;
}

.ifp-ep-calendar-shortcode-shell .ifp-ep-event-calendar__table th,
.ifp-ep-calendar-shortcode-shell .ifp-ep-event-calendar__table td {
  min-inline-size: 0 !important;
  overflow: visible !important;
}

.ifp-ep-archive-widget--calendar .ifp-ep-calendar-shortcode-shell,
.ifp-ep-archive-widget--calendar .ifp-ep-event-calendar {
  min-inline-size: 0 !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
}

.ifp-ep-shortcode-shell--force-full-width {
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  inline-size: calc(100vw - 32px) !important;
  max-inline-size: var(--ifp-ep-max-width, calc(100vw - 32px)) !important;
  margin-left: calc(-50vw + 16px) !important;
  margin-right: calc(-50vw + 16px) !important;
}

@media (max-width: 900px) {
  .ifp-ep-shortcode-shell--layout-archive {
    min-inline-size: 0 !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
    grid-column: 1 / -1 !important;
  }

  .ifp-ep-shortcode-shell--force-full-width {
    left: auto !important;
    right: auto !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 560px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-calendar-shortcode-shell {
    min-inline-size: 0 !important;
    inline-size: 100% !important;
  }
}


/* v1.8.3 – Archive layout repair for real page-builder content widths.
 * The archive should not reserve a wide action column or sidebar when the actual
 * shortcode container is not wide enough. Container queries are based on the
 * shortcode shell width, not on the browser viewport.
 */
.ifp-ep-shortcode-shell--layout-archive {
  container-type: inline-size;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-title {
  display: block !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  line-height: 1.2 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
  width: 100% !important;
  max-width: 100% !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive {
  grid-auto-flow: row !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__body {
  width: auto !important;
  max-width: none !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
  width: auto !important;
  max-width: 100% !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only {
  grid-template-columns: minmax(160px, 260px) 86px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
  grid-template-columns: 86px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions {
  grid-column: 3 / 4 !important;
  justify-self: start !important;
  align-self: end !important;
  flex-direction: row !important;
  align-items: center !important;
  min-width: 0 !important;
  padding-top: 4px !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions {
  grid-column: 2 / 3 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-button .ifp-ep-event-archive__button {
  display: none !important;
}

/* Collapse archive sidebar earlier when the shortcode is inside a normal page column.
 * This prevents a 250–330px sidebar from squeezing the event list into tiny columns.
 */
@container (max-width: 1080px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image {
    grid-template-columns: 86px minmax(0, 1fr) minmax(108px, max-content) !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
    grid-template-columns: 86px minmax(0, 1fr) !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image {
    grid-column: 1 / -1 !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions .ifp-ep-event-archive__actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions {
    grid-column: 2 / 3 !important;
    justify-self: start !important;
  }
}

@container (max-width: 780px) {
  .ifp-ep-shortcode-shell--layout-archive {
    min-inline-size: 0 !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
    grid-column: 2 / 3 !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
    justify-self: start !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__button {
    min-width: 112px !important;
  }
}

@container (max-width: 520px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__date {
    min-width: 58px !important;
    min-height: 70px !important;
    padding: 7px 5px !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__day {
    font-size: 1.35rem !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__month,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__time {
    font-size: .66rem !important;
  }
}

/* Extra fallback for browsers without container queries. */
@media (max-width: 1200px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
    grid-template-columns: 1fr;
  }
}


/* v1.9.0 – Konsolidierung nach Vorlagenprüfung:
 * - Newsletter-Ausgabe entfernt (Fallback: alte Klassen bleiben unsichtbar).
 * - Archiv mit Sidebar bleibt auf ausreichend breiten Containern nebeneinander.
 * - Kalender-Markierung ohne störenden Punkt.
 * - Alle Shortcode-Layouts bekommen sichere Wort-/Grid-Resets.
 */
.ifp-ep-shortcode-shell .ifp-ep-event-card__title,
.ifp-ep-shortcode-shell .ifp-ep-event-archive__title,
.ifp-ep-shortcode-shell .ifp-ep-event-teaser__title,
.ifp-ep-shortcode-shell .ifp-ep-event-card__text,
.ifp-ep-shortcode-shell .ifp-ep-event-archive__text,
.ifp-ep-shortcode-shell .ifp-ep-event-archive__meta,
.ifp-ep-shortcode-shell .ifp-ep-event-teaser__meta {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto;
}

.ifp-ep-archive-widget--newsletter {
  display: none !important;
}

.ifp-ep-shortcode-shell--layout-archive {
  inline-size: min(100%, var(--ifp-ep-max-width, 1280px)) !important;
  max-inline-size: min(100%, var(--ifp-ep-max-width, 1280px)) !important;
  min-inline-size: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
  gap: clamp(18px, 3vw, 34px) !important;
  align-items: start !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-main {
  min-inline-size: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
  align-self: start !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  min-inline-size: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive {
  display: grid !important;
  grid-template-columns: minmax(150px, 230px) 78px minmax(0, 1fr) minmax(120px, max-content) !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 12px !important;
  min-block-size: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image {
  grid-template-columns: 78px minmax(0, 1fr) minmax(120px, max-content) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions {
  grid-template-columns: minmax(150px, 230px) 78px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
  grid-template-columns: 78px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only {
  grid-template-columns: minmax(150px, 230px) 78px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
  grid-template-columns: 78px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image {
  min-block-size: 104px !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image-img,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image img {
  block-size: 104px !important;
  object-fit: cover !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__date {
  min-inline-size: 72px !important;
  min-block-size: 82px !important;
  padding: 8px 6px !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__body {
  min-inline-size: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
  justify-self: end !important;
  align-items: flex-end !important;
  min-inline-size: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions {
  grid-column: 3 / 4 !important;
  justify-self: start !important;
  align-self: end !important;
  flex-direction: row !important;
  padding-top: 4px !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions {
  grid-column: 2 / 3 !important;
}

/* Kalender: kein Punkt mehr; Eventtage werden nur über Fläche/Rand markiert. */
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__dot,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event::after,
.ifp-ep-shortcode-shell .ifp-ep-mini-calendar__grid span.has-event::after {
  display: none !important;
  content: none !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event:not(.is-today) .ifp-ep-event-calendar__day-link {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ifp-ep-accent, #6f7f4d) 55%, transparent) !important;
  background: color-mix(in srgb, var(--ifp-ep-date-bg, #eff2e5) 75%, transparent) !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-link,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-static,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-empty {
  text-decoration: none !important;
}

@container (max-width: 920px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
    max-inline-size: 420px !important;
  }
}

@container (max-width: 680px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
    grid-template-columns: 74px minmax(0, 1fr) !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions {
    grid-column: 2 / 3 !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
    justify-self: start !important;
    align-items: flex-start !important;
    flex-direction: row !important;
  }
}

@container (max-width: 460px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions {
    grid-column: 1 / -1 !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__date {
    justify-self: start !important;
    flex-direction: row !important;
    min-block-size: 0 !important;
    gap: 8px !important;
  }
}

/* Media fallback when container queries are not available. */
@media (min-width: 921px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
  }
}

@media (max-width: 920px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }
}

@container (min-width: 921px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
  }
}

/* v1.9.1 – Finaler Layout-Hotfix nach Frontend-Screenshots.
 * Ziel:
 * - Archiv-Shortcodes dürfen nicht vom Theme/Elementor auf schmale Textspalten zusammengedrückt werden.
 * - Listing + Kalender bleiben auf Desktop nebeneinander.
 * - Eventtage im Kalender haben keine Punktmarkierung.
 * - Newsletter bleibt entfernt; alte newsletter_* Attribute sind wirkungslos.
 */
.ifp-ep-shortcode-shell--layout-archive {
  display: block !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(calc(100vw - 40px), var(--ifp-ep-max-width, 1280px)) !important;
  max-width: min(calc(100vw - 40px), var(--ifp-ep-max-width, 1280px)) !important;
  min-width: min(100%, 320px) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  clear: both !important;
  container-type: inline-size !important;
}

@supports (width: 100dvw) {
  .ifp-ep-shortcode-shell--layout-archive {
    width: min(calc(100dvw - 40px), var(--ifp-ep-max-width, 1280px)) !important;
    max-width: min(calc(100dvw - 40px), var(--ifp-ep-max-width, 1280px)) !important;
  }
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-title {
  display: block !important;
  margin: 0 0 14px !important;
  max-width: none !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-archive-filter {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-archive-filter__item {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 27cqw, 340px) !important;
  gap: var(--ifp-ep-gap, 16px) !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-main,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events--layout-archive {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events--layout-archive {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--ifp-ep-gap, 16px) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--ifp-ep-gap, 16px) !important;
  width: 100% !important;
  max-width: 340px !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  align-self: start !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive {
  display: grid !important;
  grid-template-columns: minmax(170px, 250px) 82px minmax(240px, 1fr) minmax(118px, max-content) !important;
  gap: 14px !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 12px !important;
  overflow: hidden !important;
  contain: none !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image {
  grid-template-columns: 82px minmax(260px, 1fr) minmax(72px, max-content) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only {
  grid-template-columns: minmax(170px, 250px) 82px minmax(260px, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
  grid-template-columns: 82px minmax(260px, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__date,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__body,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
  max-width: 100% !important;
  min-width: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__body {
  width: auto !important;
  white-space: normal !important;
  overflow: visible !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__title,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__title a,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__text,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__meta,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__meta span {
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  max-width: none !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__title {
  font-size: var(--ifp-ep-item-title-size, 19px) !important;
  line-height: 1.24 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px !important;
  justify-self: end !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only .ifp-ep-event-archive__actions {
  grid-column: auto !important;
  justify-self: end !important;
  align-self: center !important;
  flex-direction: row !important;
  padding-top: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__favorite {
  white-space: nowrap !important;
}

/* Kalender-Markierung endgültig ohne Punkt. */
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event::before,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event::after,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__dot,
.ifp-ep-shortcode-shell .ifp-ep-mini-calendar__grid span.has-event::before,
.ifp-ep-shortcode-shell .ifp-ep-mini-calendar__grid span.has-event::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event:not(.is-today) .ifp-ep-event-calendar__day-link {
  border: 1.5px solid color-mix(in srgb, var(--ifp-ep-accent, #6f7f4d) 58%, transparent) !important;
  box-shadow: none !important;
  background: color-mix(in srgb, var(--ifp-ep-date-bg, #eff2e5) 78%, transparent) !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-link,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-static {
  text-decoration: none !important;
  aspect-ratio: 1 / 1 !important;
}

/* Kalender stabil in Sidebar und allein. */
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table {
  table-layout: fixed !important;
  width: 100% !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table th,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table td {
  overflow: visible !important;
}

.ifp-ep-shortcode-shell--calendar,
.ifp-ep-calendar-shortcode-shell {
  width: min(100%, var(--ifp-ep-max-width, 380px)) !important;
  max-width: min(100%, var(--ifp-ep-max-width, 380px)) !important;
  margin-inline: auto !important;
}

/* Bei mittleren Breiten lieber Listing + Kalender nebeneinander behalten. */
@media (min-width: 900px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 27cqw, 340px) !important;
  }
}

/* Erst bei echter schmaler Viewport-/Container-Situation stapeln. */
@media (max-width: 899px) {
  .ifp-ep-shortcode-shell--layout-archive {
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
    max-width: 420px !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
    grid-column: 2 / 3 !important;
    justify-self: start !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 520px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__date {
    justify-self: start !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
    grid-column: 1 / -1 !important;
  }
}



/* v1.9.2 – Finaler Frontend-Layout-Fix nach Screenshot-Test.
 * Ziel: Archiv mit Sidebar/Kalender wieder stabil nebeneinander darstellen,
 * auch wenn Theme/Elementor den Shortcode in eine schmale Inhaltsspalte setzt.
 * Diese Regeln stehen absichtlich am Dateiende und überschreiben die älteren Hotfixes.
 */
.ifp-ep-shortcode-shell,
.ifp-ep-shortcode-shell *,
.ifp-ep-shortcode-shell *::before,
.ifp-ep-shortcode-shell *::after {
  box-sizing: border-box !important;
}

.ifp-ep-shortcode-shell {
  clear: both !important;
  max-inline-size: min(100%, var(--ifp-ep-max-width, 100%)) !important;
}

/* Archiv darf sich bei gesetzter großer Breite/Sidebar an der Viewport-Mitte orientieren. */
.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide {
  display: block !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  inline-size: min(var(--ifp-ep-max-width, 1280px), calc(100vw - 40px)) !important;
  max-inline-size: min(var(--ifp-ep-max-width, 1280px), calc(100vw - 40px)) !important;
  min-inline-size: 0 !important;
  margin-left: calc(50% - min(var(--ifp-ep-max-width, 1280px), calc(100vw - 40px)) / 2) !important;
  margin-right: calc(50% - min(var(--ifp-ep-max-width, 1280px), calc(100vw - 40px)) / 2) !important;
  overflow: visible !important;
  contain: none !important;
  container-type: inline-size !important;
}

@supports (width: 100dvw) {
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide {
    inline-size: min(var(--ifp-ep-max-width, 1280px), calc(100dvw - 40px)) !important;
    max-inline-size: min(var(--ifp-ep-max-width, 1280px), calc(100dvw - 40px)) !important;
    margin-left: calc(50% - min(var(--ifp-ep-max-width, 1280px), calc(100dvw - 40px)) / 2) !important;
    margin-right: calc(50% - min(var(--ifp-ep-max-width, 1280px), calc(100dvw - 40px)) / 2) !important;
  }
}

/* Archive-Grundstruktur: Liste links, Kalender rechts. */
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-title {
  display: block !important;
  inline-size: 100% !important;
  margin: 0 0 14px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-archive-filter {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  gap: 8px !important;
  inline-size: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-archive-filter__item {
  display: inline-flex !important;
  inline-size: auto !important;
  min-inline-size: 0 !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 340px) !important;
  gap: var(--ifp-ep-gap, 16px) !important;
  align-items: start !important;
  inline-size: 100% !important;
  max-inline-size: none !important;
  min-inline-size: 0 !important;
  overflow: visible !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-main {
  display: block !important;
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: none !important;
  overflow: visible !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events--layout-archive {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--ifp-ep-gap, 16px) !important;
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: none !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
  display: block !important;
  position: static !important;
  grid-column: 2 !important;
  grid-row: auto !important;
  inline-size: 100% !important;
  max-inline-size: 340px !important;
  min-inline-size: 0 !important;
  justify-self: stretch !important;
  align-self: start !important;
  z-index: auto !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-archive-widget {
  display: block !important;
  inline-size: 100% !important;
  margin: 0 0 var(--ifp-ep-gap, 16px) !important;
}

/* Event-Zeilen: keine Silbenumbrüche, klare Spalten. */
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive {
  display: grid !important;
  inline-size: 100% !important;
  max-inline-size: none !important;
  min-inline-size: 0 !important;
  grid-template-columns: minmax(170px, 250px) 82px minmax(0, 1fr) minmax(118px, max-content) !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 12px !important;
  overflow: visible !important;
  contain: none !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image {
  grid-template-columns: 82px minmax(0, 1fr) minmax(92px, max-content) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions {
  grid-template-columns: minmax(170px, 250px) 82px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only {
  grid-template-columns: minmax(170px, 250px) 82px minmax(0, 1fr) max-content !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
  grid-template-columns: 82px minmax(0, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
  grid-template-columns: 82px minmax(0, 1fr) max-content !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__date,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__body,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__date {
  justify-self: center !important;
  inline-size: 82px !important;
  min-inline-size: 82px !important;
  max-inline-size: 82px !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__body {
  inline-size: auto !important;
  overflow: visible !important;
  white-space: normal !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__title,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__title a,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__text,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__meta,
.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__meta span {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__title {
  font-size: var(--ifp-ep-item-title-size, 19px) !important;
  line-height: 1.24 !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
  display: flex !important;
  flex-flow: column nowrap !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px !important;
  justify-self: end !important;
  white-space: nowrap !important;
}

.ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__favorite {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

/* Kalender: stabil und ohne störende Punkt-Markierung. */
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event::before,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event::after,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__dot,
.ifp-ep-shortcode-shell .ifp-ep-mini-calendar__grid span.has-event::before,
.ifp-ep-shortcode-shell .ifp-ep-mini-calendar__grid span.has-event::after {
  display: none !important;
  content: none !important;
  inline-size: 0 !important;
  block-size: 0 !important;
  opacity: 0 !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar {
  position: relative !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  overflow: hidden !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table {
  display: table !important;
  table-layout: fixed !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  border-collapse: separate !important;
  border-spacing: 4px !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table tr {
  display: table-row !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table th,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__table td {
  display: table-cell !important;
  inline-size: 14.285% !important;
  min-inline-size: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-link,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-static,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day-empty {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  inline-size: 30px !important;
  block-size: 30px !important;
  min-inline-size: 30px !important;
  min-block-size: 30px !important;
  margin: 0 auto !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event:not(.is-today) .ifp-ep-event-calendar__day-link {
  border: 1.5px solid color-mix(in srgb, var(--ifp-ep-accent, #6f7f4d) 58%, transparent) !important;
  background: color-mix(in srgb, var(--ifp-ep-date-bg, #eff2e5) 78%, transparent) !important;
  box-shadow: none !important;
}

.ifp-ep-shortcode-shell--calendar,
.ifp-ep-calendar-shortcode-shell {
  display: block !important;
  inline-size: min(100%, var(--ifp-ep-max-width, 380px)) !important;
  max-inline-size: min(100%, var(--ifp-ep-max-width, 380px)) !important;
  margin-inline: auto !important;
  left: auto !important;
  transform: none !important;
}

/* Breakpoints bewusst erst später, damit Desktop-Archive nicht zu früh stapeln. */
@media (max-width: 860px) {
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    margin-inline: auto !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-events-archive-sidebar {
    grid-column: 1 !important;
    max-inline-size: 420px !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
    grid-column: 2 / 3 !important;
    justify-self: start !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 520px) {
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__date,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive .ifp-ep-event-archive__actions {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
}


/* v1.9.3 – Hard reset for archive/full-width shortcodes after live screenshot feedback.
 * This block intentionally lives at the very end and avoids the previous narrow-container collapse.
 * Goal: archive list left + calendar right on desktop; no overlay, no word-by-word text columns.
 */
.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide {
  display: block !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(var(--ifp-ep-max-width, 1280px), calc(100vw - 32px)) !important;
  max-width: min(var(--ifp-ep-max-width, 1280px), calc(100vw - 32px)) !important;
  min-width: min(980px, calc(100vw - 32px)) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
  contain: none !important;
  text-align: left !important;
  container-type: normal !important;
}

.entry-content > .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide,
.wp-block-post-content > .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide,
.elementor-widget-container > .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide,
.elementor-shortcode > .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide {
  max-width: min(var(--ifp-ep-max-width, 1280px), calc(100vw - 32px)) !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide,
.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide * {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-events-title {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  text-align: left !important;
  line-height: 1.2 !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-archive-filter {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  gap: 8px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  list-style: none !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-archive-filter__item {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-events-archive-layout {
  display: grid !important;
  grid-template-columns: minmax(720px, 1fr) 340px !important;
  grid-auto-flow: column !important;
  align-items: start !important;
  gap: var(--ifp-ep-gap, 16px) !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-events-archive-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-events--layout-archive {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  gap: var(--ifp-ep-gap, 16px) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-events-archive-sidebar {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  position: sticky !important;
  top: 24px !important;
  width: 340px !important;
  max-width: 340px !important;
  min-width: 300px !important;
  justify-self: end !important;
  align-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1 !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-archive-widget {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* List rows: explicit columns for all variants. */
.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-template-columns: minmax(180px, 250px) 84px minmax(280px, 1fr) minmax(126px, max-content) !important;
  gap: 14px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 12px !important;
  overflow: hidden !important;
  text-align: left !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image {
  grid-template-columns: 84px minmax(360px, 1fr) minmax(126px, max-content) !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-actions {
  grid-template-columns: minmax(180px, 250px) 84px minmax(360px, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--favorite-only {
  grid-template-columns: minmax(180px, 250px) 84px minmax(320px, 1fr) max-content !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions {
  grid-template-columns: 84px minmax(520px, 1fr) !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
  grid-template-columns: 84px minmax(460px, 1fr) max-content !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__image {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__date {
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
  justify-self: center !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image .ifp-ep-event-archive__date {
  grid-column: 1 !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__body {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  text-align: left !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  justify-self: end !important;
  gap: 8px !important;
  white-space: nowrap !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__title,
.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__title a {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  text-align: left !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__meta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 5px 12px !important;
  width: 100% !important;
}

.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__text {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  text-align: left !important;
}

/* Calendar remains a contained widget, not an overlay. */
.ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-events-archive-sidebar .ifp-ep-event-calendar {
  width: 100% !important;
  max-width: 100% !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event::before,
.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event::after {
  display: none !important;
  content: none !important;
}

.ifp-ep-shortcode-shell .ifp-ep-event-calendar__day.has-event:not(.is-today) .ifp-ep-event-calendar__day-link {
  border: 1.5px solid color-mix(in srgb, var(--ifp-ep-accent, #5c6b3e) 55%, transparent) !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Responsive: only stack when there is genuinely no room. */
@media (max-width: 1040px) {
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide {
    min-width: 0 !important;
    width: min(100%, calc(100vw - 28px)) !important;
    max-width: min(100%, calc(100vw - 28px)) !important;
    left: auto !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-events-archive-layout {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-events-archive-sidebar {
    grid-column: 1 !important;
    position: static !important;
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    min-width: 0 !important;
    justify-self: start !important;
  }

  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
    grid-template-columns: 84px minmax(0, 1fr) !important;
  }

  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__actions {
    grid-column: 2 / 3 !important;
    justify-self: start !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 560px) {
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--favorite-only,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image.ifp-ep-event-archive--no-actions,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive--no-image.ifp-ep-event-archive--favorite-only {
    grid-template-columns: 1fr !important;
  }

  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__date,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__image,
  .ifp-ep-shortcode-shell--layout-archive.ifp-ep-shortcode-shell--archive-wide .ifp-ep-event-archive__actions {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
}


/* v1.10.0 – optional archive time filter (upcoming/past/all). */
.ifp-ep-shortcode-shell .ifp-ep-archive-filterbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 16px !important;
  clear: both !important;
}

.ifp-ep-shortcode-shell .ifp-ep-archive-filterbar .ifp-ep-archive-filter {
  margin: 0 !important;
}

.ifp-ep-shortcode-shell .ifp-ep-archive-filter--time {
  padding-left: 10px !important;
  border-left: 1px solid rgba(111, 127, 77, 0.22) !important;
}

@media (max-width: 720px) {
  .ifp-ep-shortcode-shell .ifp-ep-archive-filterbar {
    align-items: flex-start !important;
  }

  .ifp-ep-shortcode-shell .ifp-ep-archive-filter--time {
    width: 100% !important;
    padding-left: 0 !important;
    border-left: 0 !important;
  }
}


/* v1.11.0 – archive search, sorting and pagination controls. */
.ifp-ep-shortcode-shell .ifp-ep-archive-controls {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 12px !important;
  border: 1px solid var(--ifp-ep-card-border, rgba(111, 127, 77, 0.18)) !important;
  border-radius: var(--ifp-ep-radius, 14px) !important;
  background: color-mix(in srgb, var(--ifp-ep-card-bg, #fffaf1) 82%, transparent) !important;
  box-sizing: border-box !important;
}

.ifp-ep-shortcode-shell .ifp-ep-archive-controls__field {
  display: grid !important;
  gap: 5px !important;
  min-width: min(100%, 220px) !important;
  flex: 1 1 220px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ifp-ep-text, #243022) !important;
  box-sizing: border-box !important;
}

.ifp-ep-shortcode-shell .ifp-ep-archive-controls__field--sort {
  flex: 0 1 230px !important;
}

.ifp-ep-shortcode-shell .ifp-ep-archive-controls input[type="search"],
.ifp-ep-shortcode-shell .ifp-ep-archive-controls select {
  width: 100% !important;
  min-height: 38px !important;
  padding: 7px 10px !important;
  border: 1px solid var(--ifp-ep-card-border, rgba(111, 127, 77, 0.22)) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--ifp-ep-text, #243022) !important;
  font: inherit !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
}

.ifp-ep-shortcode-shell .ifp-ep-archive-controls__submit,
.ifp-ep-shortcode-shell .ifp-ep-archive-controls__reset {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--ifp-ep-button-bg, #5f6f3f) !important;
  background: var(--ifp-ep-button-bg, #5f6f3f) !important;
  color: var(--ifp-ep-button-text, #fff) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.ifp-ep-shortcode-shell .ifp-ep-archive-controls__reset {
  background: transparent !important;
  color: var(--ifp-ep-accent, #5f6f3f) !important;
}

.ifp-ep-shortcode-shell .ifp-ep-pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
}

.ifp-ep-shortcode-shell .ifp-ep-pagination__item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  border: 1px solid var(--ifp-ep-card-border, rgba(111, 127, 77, 0.22)) !important;
  border-radius: 999px !important;
  background: var(--ifp-ep-card-bg, #fff) !important;
  color: var(--ifp-ep-text, #243022) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.ifp-ep-shortcode-shell .ifp-ep-pagination__item.is-active {
  background: var(--ifp-ep-accent, #5f6f3f) !important;
  border-color: var(--ifp-ep-accent, #5f6f3f) !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .ifp-ep-shortcode-shell .ifp-ep-archive-controls {
    align-items: stretch !important;
  }

  .ifp-ep-shortcode-shell .ifp-ep-archive-controls__field,
  .ifp-ep-shortcode-shell .ifp-ep-archive-controls__field--sort,
  .ifp-ep-shortcode-shell .ifp-ep-archive-controls__submit,
  .ifp-ep-shortcode-shell .ifp-ep-archive-controls__reset {
    width: 100% !important;
    flex-basis: 100% !important;
  }
}


/* v1.12.0 – category media in filters/listings */
.ifp-ep-category-media {
  display: inline-block !important;
  flex: 0 0 auto;
  object-fit: cover;
  vertical-align: middle;
  background: rgba(255,255,255,.55);
}

.ifp-ep-category-media--inline {
  width: 18px !important;
  height: 18px !important;
  margin-right: 6px;
  border-radius: 999px;
}

.ifp-ep-category-media--filter {
  width: 20px !important;
  height: 20px !important;
  margin-right: 7px;
  border-radius: 999px;
}

.ifp-ep-category-media--image.ifp-ep-category-media--filter,
.ifp-ep-category-media--image.ifp-ep-category-media--inline {
  border-radius: 6px;
}

.ifp-ep-event-card__icon .ifp-ep-category-media {
  width: 64px !important;
  height: 64px !important;
  border-radius: 12px;
}

.ifp-ep-event-archive__category,
.ifp-ep-event-teaser__category,
.ifp-ep-archive-filter__item {
  align-items: center;
}

.ifp-ep-archive-filter__item {
  display: inline-flex;
}

.ifp-ep-event-archive__image-img--category-icon {
  object-fit: contain !important;
  padding: 18px;
  background: rgba(255,255,255,.72);
}


/* v1.14.1 – refreshed plugin-owned event single template */
.ifp-ep-single {
  --ifp-ep-single-accent: #246b57;
  --ifp-ep-single-accent-strong: #174f40;
  --ifp-ep-single-accent-soft: #eaf4f0;
  --ifp-ep-single-ink: #17221f;
  --ifp-ep-single-muted: #63706c;
  --ifp-ep-single-border: rgba(23, 34, 31, 0.11);
  --ifp-ep-single-surface: #ffffff;
  --ifp-ep-single-page: #f4f7f5;
  --ifp-ep-single-shadow: 0 24px 70px rgba(27, 55, 47, 0.11);
  display: block;
  width: 100%;
  max-width: none;
  min-height: 60vh;
  margin: 0;
  padding: 0;
  color: var(--ifp-ep-single-ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(111, 174, 149, 0.16), transparent 31rem),
    linear-gradient(180deg, #fbfcfb 0%, var(--ifp-ep-single-page) 100%);
  box-sizing: border-box;
  isolation: isolate;
}

.ifp-ep-single#primary {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
}

.ifp-ep-single *,
.ifp-ep-single *::before,
.ifp-ep-single *::after {
  box-sizing: border-box;
}

.ifp-ep-single__inner {
  width: min(100%, var(--ifp-ep-single-max-width, 1100px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 78px) clamp(18px, 3vw, 36px);
}

.ifp-ep-single__article {
  min-width: 0;
}

.ifp-ep-single__hero {
  display: grid;
  overflow: hidden;
  min-width: 0;
  margin: 0 0 clamp(24px, 3vw, 38px);
  border: 1px solid var(--ifp-ep-single-border);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--ifp-ep-single-surface);
  box-shadow: var(--ifp-ep-single-shadow);
}

.ifp-ep-single__hero--with-media {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  min-height: clamp(430px, 50vw, 590px);
}

.ifp-ep-single__hero--without-media {
  grid-template-columns: minmax(0, 1fr);
}

.ifp-ep-single__hero--without-media .ifp-ep-single__header {
  max-width: 900px;
}

.ifp-ep-single__hero--media-only {
  display: block;
  min-height: 0;
}

.ifp-ep-single__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: clamp(32px, 5vw, 70px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 247, 0.96));
}

.ifp-ep-single__eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--ifp-ep-single-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ifp-ep-single__eyebrow-mark {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--ifp-ep-single-accent);
}

.ifp-ep-single__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
}

.ifp-ep-single__category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(36, 107, 87, 0.17);
  border-radius: 999px;
  color: var(--ifp-ep-single-accent-strong);
  background: var(--ifp-ep-single-accent-soft);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.ifp-ep-single__category:hover,
.ifp-ep-single__category:focus-visible {
  border-color: rgba(36, 107, 87, 0.4);
  background: #deeee8;
  text-decoration: none;
  transform: translateY(-1px);
}

.ifp-ep-single__title {
  max-width: 15ch;
  margin: 0;
  color: var(--ifp-ep-single-ink);
  font-size: clamp(2.35rem, 5.3vw, 5.2rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.ifp-ep-single__featured-image {
  position: relative;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background: #dfe9e5;
}

.ifp-ep-single__featured-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 50, 42, 0.08), transparent 28%);
}

.ifp-ep-single__featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.ifp-ep-single__hero--media-only .ifp-ep-single__featured-image {
  aspect-ratio: 16 / 8;
}

.ifp-ep-single__body {
  display: grid;
  min-width: 0;
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
  margin: 0 0 clamp(30px, 5vw, 58px);
}

.ifp-ep-single__body--has-details.ifp-ep-single__body--has-content {
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
}

.ifp-ep-single__body--details-only {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.ifp-ep-single__sidebar {
  position: sticky;
  top: 32px;
  min-width: 0;
}

.admin-bar .ifp-ep-single__sidebar {
  top: 64px;
}

.ifp-ep-single__section-label {
  margin: 0 0 10px;
  padding-left: 4px;
  color: var(--ifp-ep-single-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ifp-ep-single .ifp-ep-event-detail {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--ifp-ep-single-border);
  border-radius: 24px;
  background: var(--ifp-ep-single-surface);
  box-shadow: 0 16px 42px rgba(27, 55, 47, 0.08);
}

.ifp-ep-single .ifp-ep-event-detail::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--ifp-ep-single-accent), #79ad99);
}

.ifp-ep-single .ifp-ep-event-detail__head {
  align-items: flex-start;
  gap: 16px;
}

.ifp-ep-single .ifp-ep-event-detail__head > div:last-child {
  min-width: 0;
}

.ifp-ep-single .ifp-ep-event-detail__icon {
  flex: 0 0 auto;
}

.ifp-ep-single .ifp-ep-event-detail__icon img {
  width: 70px;
  height: 70px;
  border: 1px solid var(--ifp-ep-single-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(27, 55, 47, 0.1);
}

.ifp-ep-single .ifp-ep-event-status {
  margin: 0 0 10px;
  padding: 4px 9px;
  border-width: 0;
  color: #704f00;
  background: #fff1bd;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ifp-ep-single .ifp-ep-event-status--cancelled {
  color: #8a2222;
  background: #fee3e3;
}

.ifp-ep-single .ifp-ep-event-status--sold_out {
  color: #684100;
  background: #ffedc2;
}

.ifp-ep-single .ifp-ep-event-status--postponed {
  color: #4a4380;
  background: #ece8ff;
}

.ifp-ep-single .ifp-ep-event-detail__date {
  color: var(--ifp-ep-single-ink);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 780;
  line-height: 1.35;
}

.ifp-ep-single .ifp-ep-event-detail__location {
  margin-top: 12px;
  color: var(--ifp-ep-single-ink);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.4;
}

.ifp-ep-single .ifp-ep-event-detail__address {
  margin-top: 3px;
  color: var(--ifp-ep-single-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 1;
}

.ifp-ep-single .ifp-ep-event-detail__short {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ifp-ep-single-border);
  color: #485551;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 1;
}

.ifp-ep-single .ifp-ep-event-detail__actions {
  margin: 22px 0 0;
}

.ifp-ep-single .ifp-ep-event-button {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ifp-ep-single-accent);
  border-radius: 14px;
  color: #ffffff;
  background: var(--ifp-ep-single-accent);
  box-shadow: 0 10px 24px rgba(36, 107, 87, 0.2);
  font-size: 0.95rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ifp-ep-single .ifp-ep-event-button::after {
  margin-left: 9px;
  content: "→";
  font-size: 1.1em;
}

.ifp-ep-single .ifp-ep-event-button:hover,
.ifp-ep-single .ifp-ep-event-button:focus-visible {
  color: #ffffff;
  background: var(--ifp-ep-single-accent-strong);
  box-shadow: 0 12px 30px rgba(36, 107, 87, 0.26);
  text-decoration: none;
  transform: translateY(-1px);
}

.ifp-ep-single__content-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--ifp-ep-single-border);
  border-radius: 28px;
  background: var(--ifp-ep-single-surface);
  box-shadow: 0 16px 42px rgba(27, 55, 47, 0.07);
}

.ifp-ep-single__content {
  min-width: 0;
  color: #303c38;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.78;
}

.ifp-ep-single__content > :first-child {
  margin-top: 0;
}

.ifp-ep-single__content > :last-child {
  margin-bottom: 0;
}

.ifp-ep-single__content h2,
.ifp-ep-single__content h3,
.ifp-ep-single__content h4 {
  color: var(--ifp-ep-single-ink);
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.ifp-ep-single__content h2 {
  margin-top: 1.8em;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.ifp-ep-single__content h3 {
  margin-top: 1.6em;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.ifp-ep-single__content a {
  color: var(--ifp-ep-single-accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.ifp-ep-single__content img {
  height: auto;
  border-radius: 18px;
}

.ifp-ep-single__content blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--ifp-ep-single-accent);
  color: #41504b;
  font-size: 1.08em;
}

.ifp-ep-single .ifp-ep-event-gallery {
  margin: 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--ifp-ep-single-border);
  border-radius: 28px;
  background: var(--ifp-ep-single-surface);
  box-shadow: 0 16px 42px rgba(27, 55, 47, 0.07);
}

.ifp-ep-single .ifp-ep-event-gallery__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}

.ifp-ep-single .ifp-ep-event-gallery h2 {
  margin: 0;
  color: var(--ifp-ep-single-ink);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.ifp-ep-single .ifp-ep-event-gallery__count {
  flex: 0 0 auto;
  color: var(--ifp-ep-single-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.ifp-ep-single .ifp-ep-event-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 18vw, 230px);
  gap: 12px;
}

.ifp-ep-single .ifp-ep-event-gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  border-radius: 17px;
  background: #e5ece9;
}

.ifp-ep-single .ifp-ep-event-gallery__item:first-child:nth-last-child(n+3) {
  grid-column: span 2;
  grid-row: span 2;
}

.ifp-ep-single .ifp-ep-event-gallery--count-1 .ifp-ep-event-gallery__grid {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: clamp(260px, 45vw, 560px);
}

.ifp-ep-single .ifp-ep-event-gallery--count-2 .ifp-ep-event-gallery__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 30vw, 390px);
}

.ifp-ep-single .ifp-ep-event-gallery__grid img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 260ms ease;
}

.ifp-ep-single .ifp-ep-event-gallery__item:hover img,
.ifp-ep-single .ifp-ep-event-gallery__item:focus-visible img {
  transform: scale(1.035);
}

.ifp-ep-single .ifp-ep-event-gallery__item:focus-visible,
.ifp-ep-single__category:focus-visible,
.ifp-ep-single .ifp-ep-event-button:focus-visible {
  outline: 3px solid rgba(36, 107, 87, 0.32);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .ifp-ep-single__hero--with-media {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .ifp-ep-single__header {
    padding-bottom: clamp(30px, 6vw, 52px);
  }

  .ifp-ep-single__featured-image {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .ifp-ep-single__featured-image::after {
    background: linear-gradient(180deg, rgba(20, 50, 42, 0.06), transparent 25%);
  }

  .ifp-ep-single__body--has-details.ifp-ep-single__body--has-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .ifp-ep-single__sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .ifp-ep-single__inner {
    padding: 22px 12px 38px;
  }

  .ifp-ep-single__hero {
    margin-bottom: 20px;
    border-radius: 22px;
  }

  .ifp-ep-single__header {
    padding: 28px 22px 30px;
  }

  .ifp-ep-single__eyebrow {
    margin-bottom: 14px;
  }

  .ifp-ep-single__categories {
    margin-bottom: 14px;
  }

  .ifp-ep-single__title {
    max-width: none;
    font-size: clamp(2.1rem, 12vw, 3.25rem);
    line-height: 1.02;
  }

  .ifp-ep-single__featured-image {
    aspect-ratio: 4 / 3;
  }

  .ifp-ep-single__body {
    gap: 18px;
    margin-bottom: 26px;
  }

  .ifp-ep-single .ifp-ep-event-detail,
  .ifp-ep-single__content-card,
  .ifp-ep-single .ifp-ep-event-gallery {
    padding: 21px;
    border-radius: 20px;
  }

  .ifp-ep-single .ifp-ep-event-detail__head {
    gap: 13px;
  }

  .ifp-ep-single .ifp-ep-event-detail__icon img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .ifp-ep-single .ifp-ep-event-gallery__heading {
    margin-bottom: 16px;
  }

  .ifp-ep-single .ifp-ep-event-gallery__grid,
  .ifp-ep-single .ifp-ep-event-gallery--count-2 .ifp-ep-event-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 132px;
    gap: 8px;
  }

  .ifp-ep-single .ifp-ep-event-gallery__item:first-child:nth-last-child(n+3) {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .ifp-ep-single .ifp-ep-event-gallery--count-1 .ifp-ep-event-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 260px;
  }

  .ifp-ep-single .ifp-ep-event-gallery__item {
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ifp-ep-single__category,
  .ifp-ep-single .ifp-ep-event-button,
  .ifp-ep-single .ifp-ep-event-gallery__grid img {
    transition: none;
  }
}



/* v1.15.0 – five selectable plugin-owned single layouts */

/* 1) Hero & Sidebar keeps the v1.14.1 base design intentionally. */
.ifp-ep-single--layout-hero_sidebar {
  --ifp-ep-single-layout-name: "hero-sidebar";
}

/* 2) Cover-Bühne */
.ifp-ep-single--layout-cover_stage {
  --ifp-ep-single-accent: #d58b47;
  --ifp-ep-single-accent-strong: #f0b16e;
  --ifp-ep-single-accent-soft: rgba(255,255,255,.12);
  --ifp-ep-single-ink: #f7faf8;
  --ifp-ep-single-muted: #b9c7c1;
  --ifp-ep-single-border: rgba(255,255,255,.13);
  --ifp-ep-single-surface: #17231f;
  --ifp-ep-single-page: #0c1512;
  --ifp-ep-single-shadow: 0 32px 90px rgba(0,0,0,.28);
  background:
    radial-gradient(circle at 86% 8%, rgba(213,139,71,.18), transparent 31rem),
    linear-gradient(180deg, #13201c 0%, #0b1311 100%);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__inner {
  padding-top: clamp(26px, 4vw, 58px);
  padding-bottom: clamp(44px, 6vw, 86px);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__hero {
  position: relative;
  display: block;
  min-height: clamp(500px, 66vw, 760px);
  margin-bottom: 0;
  border-color: rgba(255,255,255,.1);
  border-radius: clamp(20px, 3vw, 34px);
  background:
    radial-gradient(circle at 80% 10%, rgba(213,139,71,.26), transparent 24rem),
    linear-gradient(145deg, #29443b, #17231f);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__hero--media-only {
  min-height: clamp(420px, 58vw, 680px);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__header {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  min-height: clamp(500px, 66vw, 760px);
  max-width: 900px;
  padding: clamp(34px, 7vw, 88px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,14,12,.88) 0%, rgba(7,14,12,.58) 48%, rgba(7,14,12,.08) 100%),
    linear-gradient(0deg, rgba(7,14,12,.72), transparent 58%);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__hero--without-media .ifp-ep-single__header {
  max-width: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(213,139,71,.24), transparent 28rem),
    linear-gradient(135deg, #28453b, #101a17);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__eyebrow,
.ifp-ep-single--layout-cover_stage .ifp-ep-single__title {
  color: #fff;
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__eyebrow-mark {
  background: var(--ifp-ep-single-accent);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__category {
  border-color: rgba(255,255,255,.25);
  color: #fff;
  background: rgba(10,23,19,.46);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__category:hover,
.ifp-ep-single--layout-cover_stage .ifp-ep-single__category:focus-visible {
  border-color: rgba(255,255,255,.55);
  background: rgba(10,23,19,.72);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__title {
  max-width: 13ch;
  font-size: clamp(2.7rem, 7vw, 6.6rem);
  font-weight: 790;
  letter-spacing: -.055em;
  line-height: .94;
  text-shadow: 0 12px 35px rgba(0,0,0,.24);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__featured-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 0;
  background: #23382f;
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__featured-image::after {
  background:
    linear-gradient(90deg, rgba(7,14,12,.82) 0%, rgba(7,14,12,.34) 54%, rgba(7,14,12,.08) 100%),
    linear-gradient(0deg, rgba(7,14,12,.62), transparent 55%);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__body {
  position: relative;
  z-index: 3;
  display: grid;
  max-width: 940px;
  margin: -58px auto clamp(40px, 6vw, 72px);
  gap: clamp(24px, 4vw, 40px);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__body--has-details.ifp-ep-single__body--has-content {
  grid-template-columns: minmax(0, 1fr);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__body:not(.ifp-ep-single__body--has-details) {
  margin-top: clamp(30px, 5vw, 55px);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__sidebar {
  position: static;
  width: min(100%, 820px);
  margin: 0 auto;
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__section-label {
  color: #d7e1dd;
  text-align: center;
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-detail {
  border-color: rgba(255,255,255,.14);
  border-radius: 20px;
  color: #f7faf8;
  background: rgba(23,35,31,.94);
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-detail::before {
  background: linear-gradient(90deg, var(--ifp-ep-single-accent), #f1c28f);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-detail__date,
.ifp-ep-single--layout-cover_stage .ifp-ep-event-detail__location {
  color: #fff;
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-detail__address,
.ifp-ep-single--layout-cover_stage .ifp-ep-event-detail__short {
  color: #bac9c3;
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-detail__short {
  border-top-color: rgba(255,255,255,.12);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-button {
  border-color: var(--ifp-ep-single-accent);
  color: #17110a;
  background: var(--ifp-ep-single-accent);
  box-shadow: 0 12px 30px rgba(213,139,71,.2);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-button:hover,
.ifp-ep-single--layout-cover_stage .ifp-ep-event-button:focus-visible {
  color: #17110a;
  background: #f1b578;
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__content-card {
  max-width: 860px;
  margin: 0 auto;
  border-color: rgba(255,255,255,.1);
  border-radius: 20px;
  background: #f8faf9;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-single__content {
  color: #34413c;
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-gallery {
  border-color: rgba(255,255,255,.11);
  color: #fff;
  background: #17231f;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-gallery h2 {
  color: #fff;
}

.ifp-ep-single--layout-cover_stage .ifp-ep-event-gallery__count {
  color: #aebdb7;
}

/* 3) Editorial Split */
.ifp-ep-single--layout-editorial_split {
  --ifp-ep-single-accent: #8f4b43;
  --ifp-ep-single-accent-strong: #66332e;
  --ifp-ep-single-accent-soft: #f1ded9;
  --ifp-ep-single-ink: #302624;
  --ifp-ep-single-muted: #786a66;
  --ifp-ep-single-border: rgba(72,49,44,.16);
  --ifp-ep-single-surface: #fbf7f2;
  --ifp-ep-single-page: #f4eee7;
  --ifp-ep-single-shadow: none;
  background:
    linear-gradient(90deg, rgba(143,75,67,.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbf8f4 0%, #f4eee7 100%);
  background-size: 44px 44px, auto;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__inner {
  padding-top: clamp(44px, 7vw, 96px);
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__hero {
  overflow: visible;
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 100px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__hero--with-media {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  min-height: 0;
  gap: clamp(34px, 7vw, 92px);
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__header {
  padding: clamp(18px, 4vw, 44px) 0;
  background: transparent;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__eyebrow {
  margin-bottom: 24px;
  color: var(--ifp-ep-single-accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__eyebrow-mark {
  width: 42px;
  height: 1px;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__category {
  border: 0;
  border-bottom: 1px solid rgba(143,75,67,.35);
  border-radius: 0;
  padding: 3px 0;
  color: var(--ifp-ep-single-accent-strong);
  background: transparent;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__category:hover,
.ifp-ep-single--layout-editorial_split .ifp-ep-single__category:focus-visible {
  background: transparent;
  border-color: var(--ifp-ep-single-accent);
  transform: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__title {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6.2vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .97;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__featured-image {
  min-height: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ifp-ep-single-border);
  border-radius: 2px;
  background: #d8c8be;
  box-shadow: 22px 24px 0 rgba(143,75,67,.09);
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__featured-image::after {
  background: linear-gradient(180deg, transparent 70%, rgba(64,37,31,.13));
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__body {
  padding-top: clamp(30px, 5vw, 56px);
  border-top: 1px solid var(--ifp-ep-single-border);
  gap: clamp(38px, 7vw, 86px);
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__body--has-details.ifp-ep-single__body--has-content {
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__sidebar {
  position: static;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__section-label {
  padding-left: 0;
  color: var(--ifp-ep-single-accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .84rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-event-detail {
  overflow: visible;
  padding: 22px 0;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-event-detail::before {
  display: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-event-detail__icon img {
  border-radius: 50%;
  box-shadow: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-event-detail__date {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 600;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-event-detail__short {
  color: #665753;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-event-button {
  border-radius: 0;
  color: #fff;
  background: var(--ifp-ep-single-accent-strong);
  box-shadow: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__content-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__content {
  max-width: 760px;
  color: #493c38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.5vw, 1.16rem);
  line-height: 1.9;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-single__content h2,
.ifp-ep-single--layout-editorial_split .ifp-ep-single__content h3,
.ifp-ep-single--layout-editorial_split .ifp-ep-single__content h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-event-gallery {
  padding: clamp(30px, 5vw, 54px) 0 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ifp-ep-single--layout-editorial_split .ifp-ep-event-gallery__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 28vw, 390px);
  gap: clamp(14px, 2vw, 24px);
}

.ifp-ep-single--layout-editorial_split .ifp-ep-event-gallery__item,
.ifp-ep-single--layout-editorial_split .ifp-ep-event-gallery__item:first-child:nth-last-child(n+3) {
  grid-column: auto;
  grid-row: auto;
  border-radius: 2px;
}

/* 4) Event-Poster */
.ifp-ep-single--layout-event_poster {
  --ifp-ep-single-accent: #7b4d8f;
  --ifp-ep-single-accent-strong: #583467;
  --ifp-ep-single-accent-soft: #efe4f3;
  --ifp-ep-single-ink: #291f2d;
  --ifp-ep-single-muted: #74697a;
  --ifp-ep-single-border: rgba(64,42,72,.13);
  --ifp-ep-single-surface: #ffffff;
  --ifp-ep-single-page: #eee8f0;
  --ifp-ep-single-shadow: 0 34px 90px rgba(73,48,82,.2);
  background:
    radial-gradient(circle at 12% 10%, rgba(199,124,85,.21), transparent 27rem),
    radial-gradient(circle at 88% 16%, rgba(123,77,143,.2), transparent 28rem),
    linear-gradient(180deg, #f5f0f6 0%, #ebe4ee 100%);
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__inner {
  padding-top: clamp(38px, 6vw, 82px);
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__hero {
  display: flex;
  width: min(100%, 760px);
  min-height: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  flex-direction: column;
  border-color: rgba(77,49,87,.13);
  border-radius: clamp(24px, 4vw, 42px);
  background: #fff;
  box-shadow: var(--ifp-ep-single-shadow);
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__featured-image {
  order: 1;
  min-height: 0;
  aspect-ratio: 4 / 5;
  background: #d4c5d8;
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__featured-image::after {
  background:
    linear-gradient(180deg, transparent 62%, rgba(34,19,40,.32)),
    linear-gradient(135deg, rgba(123,77,143,.11), rgba(199,124,85,.09));
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__header {
  order: 2;
  align-items: center;
  padding: clamp(32px, 6vw, 62px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(199,124,85,.11), transparent 15rem),
    #fff;
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__eyebrow {
  align-self: center;
  color: var(--ifp-ep-single-accent-strong);
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__eyebrow-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c77c55;
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__categories {
  justify-content: center;
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__category {
  border-color: rgba(123,77,143,.18);
  color: var(--ifp-ep-single-accent-strong);
  background: #f4edf6;
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__title {
  max-width: 12ch;
  font-size: clamp(2.5rem, 6.5vw, 5.6rem);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: .95;
  text-transform: uppercase;
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__hero--without-media .ifp-ep-single__header {
  min-height: clamp(420px, 52vw, 610px);
  justify-content: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(199,124,85,.22), transparent 18rem),
    radial-gradient(circle at 85% 80%, rgba(123,77,143,.22), transparent 22rem),
    #fff;
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__body {
  position: relative;
  z-index: 3;
  display: grid;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  gap: clamp(24px, 4vw, 42px);
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__body--has-details {
  margin-top: -52px;
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__body--has-details.ifp-ep-single__body--has-content {
  grid-template-columns: minmax(0, 1fr);
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__body:not(.ifp-ep-single__body--has-details) {
  margin-top: clamp(34px, 5vw, 60px);
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__sidebar {
  position: static;
  width: min(100%, 660px);
  margin: 0 auto;
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__section-label {
  color: #5f4968;
  text-align: center;
}

.ifp-ep-single--layout-event_poster .ifp-ep-event-detail {
  border-color: rgba(75,48,85,.14);
  border-radius: 28px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 24px 58px rgba(73,48,82,.17);
}

.ifp-ep-single--layout-event_poster .ifp-ep-event-detail::before {
  height: 7px;
  background: linear-gradient(90deg, #7b4d8f, #c77c55);
}

.ifp-ep-single--layout-event_poster .ifp-ep-event-detail__head {
  justify-content: center;
}

.ifp-ep-single--layout-event_poster .ifp-ep-event-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #704383, #8e5b9f);
  box-shadow: 0 14px 30px rgba(112,67,131,.25);
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__content-card {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 32px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 52px rgba(73,48,82,.1);
}

.ifp-ep-single--layout-event_poster .ifp-ep-single__content {
  color: #44364a;
}

.ifp-ep-single--layout-event_poster .ifp-ep-event-gallery {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 34px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 52px rgba(73,48,82,.1);
}

.ifp-ep-single--layout-event_poster .ifp-ep-event-gallery__item {
  border-radius: 24px;
}

/* 5) Klar & Minimal */
.ifp-ep-single--layout-clean_minimal {
  --ifp-ep-single-accent: #202724;
  --ifp-ep-single-accent-strong: #111614;
  --ifp-ep-single-accent-soft: #f0f2f1;
  --ifp-ep-single-ink: #191e1c;
  --ifp-ep-single-muted: #68706d;
  --ifp-ep-single-border: rgba(25,30,28,.16);
  --ifp-ep-single-surface: transparent;
  --ifp-ep-single-page: #ffffff;
  --ifp-ep-single-shadow: none;
  background: #fff;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__inner {
  padding-top: clamp(42px, 7vw, 92px);
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__hero {
  display: grid;
  overflow: visible;
  min-height: 0;
  margin-bottom: clamp(42px, 7vw, 82px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__hero--with-media {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 50px);
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__header {
  max-width: 950px;
  padding: 0;
  background: transparent;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__eyebrow {
  margin-bottom: 20px;
  color: #59615e;
  font-size: .72rem;
  letter-spacing: .18em;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__eyebrow-mark {
  width: 54px;
  height: 1px;
  background: #202724;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__categories {
  margin-bottom: 20px;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__category {
  min-height: 0;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid #aeb5b2;
  border-radius: 0;
  color: #424946;
  background: transparent;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__category:hover,
.ifp-ep-single--layout-clean_minimal .ifp-ep-single__category:focus-visible {
  border-color: #202724;
  background: transparent;
  transform: none;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__title {
  max-width: 17ch;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: .98;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__featured-image {
  min-height: 0;
  aspect-ratio: 21 / 9;
  border-radius: 10px;
  background: #e3e7e5;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__featured-image::after {
  background: linear-gradient(180deg, transparent 72%, rgba(15,21,18,.08));
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__body {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  gap: clamp(38px, 6vw, 68px);
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__body--has-details.ifp-ep-single__body--has-content {
  grid-template-columns: minmax(0, 1fr);
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__sidebar {
  position: static;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__section-label {
  margin-bottom: 14px;
  padding-left: 0;
  color: #5e6763;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-event-detail {
  overflow: visible;
  padding: clamp(22px, 4vw, 34px) 0;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-event-detail::before {
  display: none;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-event-detail__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-event-detail__icon img {
  border-radius: 8px;
  box-shadow: none;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-event-detail__short {
  color: #515956;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-event-button {
  width: auto;
  border-radius: 0;
  color: #fff;
  background: #202724;
  box-shadow: none;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__content-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-single__content {
  color: #343a37;
  font-size: clamp(1.02rem, 1.35vw, 1.1rem);
  line-height: 1.85;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-event-gallery {
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  padding: clamp(28px, 5vw, 48px) 0 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-event-gallery__grid {
  gap: clamp(8px, 1.4vw, 16px);
}

.ifp-ep-single--layout-clean_minimal .ifp-ep-event-gallery__item {
  border-radius: 8px;
}

/* Layout-specific responsive adjustments */
@media (max-width: 960px) {
  .ifp-ep-single--layout-cover_stage .ifp-ep-single__hero,
  .ifp-ep-single--layout-cover_stage .ifp-ep-single__header {
    min-height: clamp(470px, 82vw, 660px);
  }

  .ifp-ep-single--layout-cover_stage .ifp-ep-single__header {
    padding: clamp(30px, 7vw, 58px);
    background:
      linear-gradient(0deg, rgba(7,14,12,.84) 0%, rgba(7,14,12,.3) 68%, rgba(7,14,12,.1) 100%);
  }

  .ifp-ep-single--layout-cover_stage .ifp-ep-single__featured-image {
    aspect-ratio: auto;
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-single__hero--with-media {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-single__featured-image {
    aspect-ratio: 16 / 10;
    width: min(100%, 820px);
    box-shadow: 14px 16px 0 rgba(143,75,67,.08);
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-single__body--has-details.ifp-ep-single__body--has-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-single__content {
    max-width: none;
  }

  .ifp-ep-single--layout-clean_minimal .ifp-ep-single__featured-image {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .ifp-ep-single--layout-cover_stage .ifp-ep-single__inner,
  .ifp-ep-single--layout-event_poster .ifp-ep-single__inner {
    padding-right: 10px;
    padding-left: 10px;
  }

  .ifp-ep-single--layout-cover_stage .ifp-ep-single__hero,
  .ifp-ep-single--layout-cover_stage .ifp-ep-single__header {
    min-height: 500px;
  }

  .ifp-ep-single--layout-cover_stage .ifp-ep-single__title {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .ifp-ep-single--layout-cover_stage .ifp-ep-single__body {
    margin-top: -34px;
  }

  .ifp-ep-single--layout-cover_stage .ifp-ep-event-detail,
  .ifp-ep-single--layout-cover_stage .ifp-ep-single__content-card,
  .ifp-ep-single--layout-cover_stage .ifp-ep-event-gallery {
    border-radius: 17px;
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-single__inner,
  .ifp-ep-single--layout-clean_minimal .ifp-ep-single__inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-single__hero {
    margin-bottom: 54px;
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-single__header {
    padding: 10px 0;
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-single__title {
    font-size: clamp(2.45rem, 14vw, 4.1rem);
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-single__featured-image {
    aspect-ratio: 4 / 3;
  }

  .ifp-ep-single--layout-editorial_split .ifp-ep-event-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 240px;
  }

  .ifp-ep-single--layout-event_poster .ifp-ep-single__hero {
    border-radius: 22px;
  }

  .ifp-ep-single--layout-event_poster .ifp-ep-single__featured-image {
    aspect-ratio: 4 / 5;
  }

  .ifp-ep-single--layout-event_poster .ifp-ep-single__header {
    padding: 32px 22px 38px;
  }

  .ifp-ep-single--layout-event_poster .ifp-ep-single__title {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
  }

  .ifp-ep-single--layout-event_poster .ifp-ep-single__body--has-details {
    margin-top: -34px;
  }

  .ifp-ep-single--layout-event_poster .ifp-ep-event-detail,
  .ifp-ep-single--layout-event_poster .ifp-ep-single__content-card,
  .ifp-ep-single--layout-event_poster .ifp-ep-event-gallery {
    border-radius: 20px;
  }

  .ifp-ep-single--layout-clean_minimal .ifp-ep-single__hero {
    margin-bottom: 44px;
  }

  .ifp-ep-single--layout-clean_minimal .ifp-ep-single__title {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
  }

  .ifp-ep-single--layout-clean_minimal .ifp-ep-single__featured-image {
    aspect-ratio: 4 / 3;
  }

  .ifp-ep-single--layout-clean_minimal .ifp-ep-event-detail__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .ifp-ep-single--layout-clean_minimal .ifp-ep-event-button {
    width: 100%;
  }
}


/* v1.16.0 – user-editable Single Template Studio values.
 * Built-in templates remain untouched. These overrides are only applied to
 * custom templates and to the unsaved live preview while editing.
 */
.ifp-ep-single--template-custom {
  color: var(--ifp-ep-single-ink);
  background: var(--ifp-ep-single-page);
  box-shadow: 0 0 0 100vmax var(--ifp-ep-single-page);
  clip-path: inset(0 -100vmax);
  font-family: var(--ifp-ep-single-font);
}

.ifp-ep-single--template-custom .ifp-ep-single__inner {
  font-family: var(--ifp-ep-single-font);
}

.ifp-ep-single--template-custom .ifp-ep-single__hero {
  border-color: var(--ifp-ep-single-border);
  border-radius: var(--ifp-ep-single-radius);
  background-color: var(--ifp-ep-single-surface);
  box-shadow: var(--ifp-ep-single-shadow);
}

.ifp-ep-single--template-custom .ifp-ep-single__hero--with-media {
  min-height: var(--ifp-ep-single-hero-height);
}

.ifp-ep-single--template-custom .ifp-ep-single__header {
  color: var(--ifp-ep-single-ink);
  background-color: var(--ifp-ep-single-surface);
}

.ifp-ep-single--template-custom .ifp-ep-single__eyebrow,
.ifp-ep-single--template-custom .ifp-ep-single__category {
  color: var(--ifp-ep-single-accent-strong);
}

.ifp-ep-single--template-custom .ifp-ep-single__category {
  border-color: var(--ifp-ep-single-border);
  background: var(--ifp-ep-single-accent-soft);
}

.ifp-ep-single--template-custom .ifp-ep-single__category:hover,
.ifp-ep-single--template-custom .ifp-ep-single__category:focus-visible {
  border-color: var(--ifp-ep-single-accent);
  color: var(--ifp-ep-single-accent-strong);
  background: var(--ifp-ep-single-accent-soft);
}

.ifp-ep-single--template-custom .ifp-ep-single__title {
  color: var(--ifp-ep-single-ink);
  font-family: var(--ifp-ep-single-font);
  font-size: var(--ifp-ep-single-title-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-single__featured-image {
  border-color: var(--ifp-ep-single-border);
  border-radius: var(--ifp-ep-single-radius);
  background-color: var(--ifp-ep-single-page);
  box-shadow: var(--ifp-ep-single-shadow);
}

.ifp-ep-single--template-custom .ifp-ep-single__featured-image img,
.ifp-ep-single--template-custom .ifp-ep-event-gallery__grid img {
  object-fit: var(--ifp-ep-single-image-fit);
}

.ifp-ep-single--template-custom .ifp-ep-single__body {
  gap: var(--ifp-ep-single-section-gap);
  margin-bottom: var(--ifp-ep-single-section-gap);
}

.ifp-ep-single--template-custom .ifp-ep-single__section-label,
.ifp-ep-single--template-custom .ifp-ep-event-detail__address,
.ifp-ep-single--template-custom .ifp-ep-event-detail__short,
.ifp-ep-single--template-custom .ifp-ep-event-gallery__count {
  color: var(--ifp-ep-single-muted);
}

.ifp-ep-single--template-custom .ifp-ep-event-detail,
.ifp-ep-single--template-custom .ifp-ep-single__content-card,
.ifp-ep-single--template-custom .ifp-ep-event-gallery {
  border-color: var(--ifp-ep-single-border);
  border-radius: var(--ifp-ep-single-radius);
  color: var(--ifp-ep-single-ink);
  background-color: var(--ifp-ep-single-surface);
  box-shadow: var(--ifp-ep-single-shadow);
}

.ifp-ep-single--template-custom .ifp-ep-event-detail::before {
  background: var(--ifp-ep-single-accent);
}

.ifp-ep-single--template-custom .ifp-ep-event-detail__date,
.ifp-ep-single--template-custom .ifp-ep-event-detail__location,
.ifp-ep-single--template-custom .ifp-ep-single__content,
.ifp-ep-single--template-custom .ifp-ep-single__content h2,
.ifp-ep-single--template-custom .ifp-ep-single__content h3,
.ifp-ep-single--template-custom .ifp-ep-single__content h4,
.ifp-ep-single--template-custom .ifp-ep-event-gallery h2 {
  color: var(--ifp-ep-single-ink);
  font-family: var(--ifp-ep-single-font);
}

.ifp-ep-single--template-custom .ifp-ep-single__content {
  font-size: var(--ifp-ep-single-body-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-single__content a {
  color: var(--ifp-ep-single-accent-strong);
}

.ifp-ep-single--template-custom .ifp-ep-single__content blockquote {
  border-left-color: var(--ifp-ep-single-accent);
  color: var(--ifp-ep-single-muted);
}

.ifp-ep-single--template-custom .ifp-ep-event-button {
  border-color: var(--ifp-ep-single-button-bg);
  border-radius: max(8px, calc(var(--ifp-ep-single-radius) * .55));
  color: var(--ifp-ep-single-button-text);
  background: var(--ifp-ep-single-button-bg);
  box-shadow: var(--ifp-ep-single-shadow);
}

.ifp-ep-single--template-custom .ifp-ep-event-button:hover,
.ifp-ep-single--template-custom .ifp-ep-event-button:focus-visible {
  border-color: var(--ifp-ep-single-accent-strong);
  color: var(--ifp-ep-single-button-text);
  background: var(--ifp-ep-single-accent-strong);
}

.ifp-ep-single--template-custom .ifp-ep-event-gallery__item {
  border-radius: max(4px, calc(var(--ifp-ep-single-radius) * .65));
  background-color: var(--ifp-ep-single-page);
}

.ifp-ep-single--template-custom.ifp-ep-single--align-center .ifp-ep-single__header {
  align-items: center;
  text-align: center;
}

.ifp-ep-single--template-custom.ifp-ep-single--align-center .ifp-ep-single__eyebrow {
  align-self: center;
}

.ifp-ep-single--template-custom.ifp-ep-single--align-center .ifp-ep-single__categories {
  justify-content: center;
}

.ifp-ep-single--template-custom.ifp-ep-single--align-center .ifp-ep-single__title {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.ifp-ep-single--template-custom.ifp-ep-single--align-center .ifp-ep-single__section-label,
.ifp-ep-single--template-custom.ifp-ep-single--align-center .ifp-ep-single__content,
.ifp-ep-single--template-custom.ifp-ep-single--align-center .ifp-ep-event-gallery__heading {
  text-align: center;
}

.ifp-ep-single--template-custom.ifp-ep-single--align-center .ifp-ep-event-gallery__heading {
  justify-content: center;
}

.ifp-ep-single--template-custom.ifp-ep-single--font-editorial .ifp-ep-single__title,
.ifp-ep-single--template-custom.ifp-ep-single--font-editorial .ifp-ep-single__content h2,
.ifp-ep-single--template-custom.ifp-ep-single--font-editorial .ifp-ep-single__content h3,
.ifp-ep-single--template-custom.ifp-ep-single--font-editorial .ifp-ep-event-gallery h2 {
  font-weight: 500;
  letter-spacing: -.035em;
}

@media (max-width: 640px) {
  .ifp-ep-single--template-custom .ifp-ep-single__hero,
  .ifp-ep-single--template-custom .ifp-ep-event-detail,
  .ifp-ep-single--template-custom .ifp-ep-single__content-card,
  .ifp-ep-single--template-custom .ifp-ep-event-gallery {
    border-radius: min(20px, var(--ifp-ep-single-radius));
  }

  .ifp-ep-single--template-custom .ifp-ep-single__title {
    font-size: var(--ifp-ep-single-title-size) !important;
  }
}


/* v1.17.1 – lossless, directly editable typography scale.
 * Values are applied directly instead of being used only as clamp() maxima.
 * The scoped !important declarations intentionally win against theme and
 * Gutenberg typography rules inside plugin-owned custom Single Templates.
 */
.ifp-ep-single--template-custom .ifp-ep-single__eyebrow {
  font-size: var(--ifp-ep-single-eyebrow-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-single__category {
  font-size: var(--ifp-ep-single-category-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-single__section-label {
  font-size: var(--ifp-ep-single-details-heading-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-event-status {
  font-size: var(--ifp-ep-single-status-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-event-detail__date {
  font-size: var(--ifp-ep-single-date-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-event-detail__location {
  font-size: var(--ifp-ep-single-location-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-event-detail__address {
  font-size: var(--ifp-ep-single-address-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-event-detail__short {
  font-size: var(--ifp-ep-single-teaser-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-event-button {
  font-size: var(--ifp-ep-single-button-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-single__content :where(
  p,
  li,
  dt,
  dd,
  figcaption,
  blockquote,
  table,
  th,
  td,
  pre,
  code,
  .wp-block-button__link,
  .wp-element-button
) {
  font-size: var(--ifp-ep-single-body-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-single__content h1 {
  font-size: var(--ifp-ep-single-content-h1-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-single__content h2 {
  font-size: var(--ifp-ep-single-content-h2-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-single__content h3 {
  font-size: var(--ifp-ep-single-content-h3-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-single__content h4,
.ifp-ep-single--template-custom .ifp-ep-single__content h5,
.ifp-ep-single--template-custom .ifp-ep-single__content h6 {
  font-size: var(--ifp-ep-single-content-h4-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-event-gallery__heading h2 {
  font-size: var(--ifp-ep-single-gallery-heading-size) !important;
}

.ifp-ep-single--template-custom .ifp-ep-event-gallery__count {
  font-size: var(--ifp-ep-single-gallery-count-size) !important;
}


/* v1.17.2 – the saved page background is authoritative for custom templates.
 * The full-bleed root covers theme content gutters without changing header,
 * footer, Theme mode or Elementor-owned layouts.
 */
.ifp-ep-single--template-custom#ifp-ep-single,
.ifp-ep-single--template-custom#primary,
.ifp-ep-single--template-custom {
  background-color: var(--ifp-ep-single-page) !important;
  background-image: none !important;
}
