/* ======================================
  EVENT CARD VARIABLES
====================================== */
.content-pages-show-calendar-wide {
  max-width: 1400px;
}

/* ======================================
   EVENTS LISTING BACKGROUND
   (events grid on the calendar pages)
====================================== */
[data-event-grid] .row {
  align-items: stretch; }

@media (400px <= width <= 767.98px) {
  [data-event-grid] .event-col {
    flex: 0 0 50%;
    max-width: 50%; } }

/* ======================================
   EVENT CARD
====================================== */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: #ffffff;
  color: inherit;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgb(var(--secondary-rgb) / 8%);
  font-family: "Manrope", sans-serif;
  text-align: left;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .event-card:hover, .event-card:focus {
    color: inherit;
    text-decoration: none; }
  .event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgb(var(--secondary-rgb) / 14%); }
  .event-card:focus-visible {
    outline: 3px solid var(--brand-purple);
    outline-offset: 4px; }

/* ======================================
   FEATURED IMAGE
====================================== */
.event-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--brand-teal); }

.event-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--brand-teal); }
  .event-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center; }

.event-card__image--placeholder {
  background-color: var(--brand-teal);
  background-repeat: repeat;
  background-size: 90px 90px; }

/* ======================================
   SHARED BODY LAYOUT
====================================== */
.event-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 0.25rem; }

.event-card__meta {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-top: 1.25rem; }

/* ======================================
   DATE TAG
====================================== */
.event-card__date-tag {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 5rem;
  min-height: 5rem;
  padding: 0.65rem 0.75rem;
  background: var(--brand-teal);
  color: #ffffff;
  text-align: center; }

.event-card__date-day {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin: 0; }

.event-card__date-month {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  margin: 0; }

/* ======================================
   TITLE
====================================== */
.event-card__title {
  margin: 0;
  color: var(--brand-purple);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: break-word; }

/* ======================================
   PILLS
====================================== */
.event-card__pill-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0; }
  .event-card__pill-wrapper p {
    width: fit-content;
    margin: 0;
    padding: 0.5rem 0.6rem;
    background: var(--brand-pale);
    color: var(--brand-purple);
    font-size: 14px;
    font-weight: 600;
    line-height: 1; }

.event-card__location {
  overflow-wrap: break-word; }

.event-card__time {
  white-space: nowrap; }

/* ======================================
   EVENT STATUS
====================================== */
.event-card__status {
  display: inline-block;
  width: fit-content;
  padding: 0.5rem 0.65rem;
  margin: 0 0 1rem;
  background: var(--brand-purple);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase; }

/* ======================================
   FEATURED EXCERPT
====================================== */
.event-card__excerpt {
  display: -webkit-box;
  padding: 0 0.25rem;
  margin: 0 0 0.5rem;
  overflow: hidden;
  color: var(--brand-purple);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; }

.event-card--compact {
  height: auto;
  min-height: auto;
  padding: 16px; }

@media (width >= 768px) {
  .event-card__title {
    font-size: 28px;
    line-height: 1.2; } }

@media (prefers-reduced-motion: reduce) {
  .event-card {
    transition: none; }
  .event-card:hover {
    transform: none; } }

/* Event header */
.event-header-container {
  margin-top: 20px; }

body.page-type-event #page-features.carousel {
  margin-bottom: 0; }

body.page-type-event .page-shell:has(#page-features) .event-header-container {
  margin-top: 0; }

.event-feature-image {
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0; }
  .event-feature-image img {
    display: block;
    width: 100%;
    height: auto; }

.event-header {
  background-color: var(--brand-purple);
  border-radius: 0 0 0.5rem 0.5rem;
  margin-bottom: 40px; }
  .event-header .event-header-column-headline {
    border-color: rgb(255 255 255 / 75%); }
  .event-header a {
    color: #fff; }
    .event-header a:hover {
      color: #fff;
      text-decoration: underline; }

