/* EKL Events v0.4 - deliberately photo-light, typography-first discovery UI. */
.ekl-events-page {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    align-self: stretch;
    font-family: var(--e-global-typography-text-font-family, "Nunito", sans-serif);
}

.ekl-events-discovery {
    margin: 0 0 2.25rem;
    border-top: 1px solid rgba(20, 28, 34, .18);
    border-bottom: 1px solid rgba(20, 28, 34, .18);
}

.ekl-events-quickdates {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid rgba(20, 28, 34, .18);
}

.ekl-events-quickdates button {
    appearance: none;
    border: 0;
    border-right: 1px solid rgba(20, 28, 34, .18);
    background: transparent;
    padding: 1rem .75rem;
    font: 700 .78rem/1.1 var(--e-global-typography-text-font-family, "Nunito", sans-serif);
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.ekl-events-quickdates button:last-child { border-right: 0; }
.ekl-events-quickdates button:hover,
.ekl-events-quickdates button.is-active { background: var(--e-global-color-primary, #1f5e7a); color: #fff; }

.ekl-events-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(160px, .8fr) minmax(180px, .9fr) auto;
    gap: .75rem;
    padding: 1rem 0;
    align-items: stretch;
}

.ekl-events-field input,
.ekl-events-field select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(20, 28, 34, .2);
    border-radius: 0;
    background: rgba(255,255,255,.74);
    padding: 0 .85rem;
    color: inherit;
    font: inherit;
}

.ekl-events-reset {
    border: 0;
    background: transparent;
    padding: 0 .5rem;
    font: 700 .78rem/1 var(--e-global-typography-text-font-family, "Nunito", sans-serif);
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ekl-events-summary {
    padding: 0 0 .9rem;
    color: rgba(20, 28, 34, .65);
    font-size: .88rem;
}

.ekl-events-results {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    transition: opacity .15s ease;
}

/* Elementor can size a Shortcode widget from its current intrinsic content width.
   Keep the Events results widget stretched even after AJAX swaps in a smaller result set. */
.elementor-widget-shortcode:has(.ekl-events-page),
.elementor-widget-shortcode:has(.ekl-events-page) > .elementor-widget-container,
.elementor-widget-shortcode:has(.ekl-events-page) .elementor-shortcode {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    align-self: stretch !important;
}

.ekl-events-page.is-loading .ekl-events-results { opacity: .45; }

.ekl-events-day {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    border-top: 1px solid rgba(20, 28, 34, .22);
}

.ekl-events-day:last-child { border-bottom: 1px solid rgba(20, 28, 34, .22); }

.ekl-events-day__header {
    padding: 1.6rem 1rem 1.6rem 0;
    border-right: 1px solid rgba(20, 28, 34, .18);
}

.ekl-events-day__weekday {
    font: 700 .76rem/1.1 var(--e-global-typography-text-font-family, "Nunito", sans-serif);
    letter-spacing: .11em;
    color: rgba(20, 28, 34, .58);
}

.ekl-events-day__date {
    margin-top: .3rem;
    font: 600 1.65rem/1 var(--e-global-typography-primary-font-family, "Oswald", sans-serif);
    letter-spacing: -.01em;
}

.ekl-events-day__list {
    width: 100%;
    min-width: 0;
}

.ekl-event-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 1rem;
    align-items: center;
    padding: 1.4rem 0 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(20, 28, 34, .12);
}
.ekl-event-row:last-child { border-bottom: 0; }

.ekl-event-row__main {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
}


.ekl-event-row__time {
    margin-bottom: .28rem;
    color: rgba(20, 28, 34, .62);
    font-size: .86rem;
    font-weight: 700;
}

.ekl-event-row__title {
    margin: 0;
    font: 600 clamp(1.35rem, 2vw, 1.8rem)/1.15 var(--e-global-typography-primary-font-family, "Oswald", sans-serif);
}

.ekl-event-row__title a { color: inherit; text-decoration: none; }
.ekl-event-row__title a:hover { text-decoration: underline; text-underline-offset: 4px; }

.ekl-event-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-top: .45rem;
    color: rgba(20, 28, 34, .68);
    font-size: .9rem;
}

.ekl-event-row__arrow {
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    color: inherit;
    border-left: 1px solid rgba(20, 28, 34, .16);
    text-decoration: none;
    font-size: 1.35rem;
    transition: transform .18s ease;
}
.ekl-event-row__arrow:hover { transform: translateX(3px); }

.ekl-events-empty {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(20, 28, 34, .2);
    border-bottom: 1px solid rgba(20, 28, 34, .2);
}
.ekl-events-empty span { color: rgba(20, 28, 34, .65); }

.ekl-event-website-link,
.ekl-event-directions-link {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .ekl-events-filters { grid-template-columns: 1fr 1fr; }
    .ekl-events-field--search { grid-column: 1 / -1; }
    .ekl-events-day { grid-template-columns: 120px minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .ekl-events-quickdates { grid-template-columns: 1fr 1fr; }
    .ekl-events-quickdates button:nth-child(2) { border-right: 0; }
    .ekl-events-quickdates button:nth-child(-n+2) { border-bottom: 1px solid rgba(20, 28, 34, .18); }
    .ekl-events-filters { grid-template-columns: 1fr; }
    .ekl-events-field--search { grid-column: auto; }
    .ekl-events-day { display: block; }
    .ekl-events-day__header { padding: 1.25rem 0 .85rem; border-right: 0; }
    .ekl-events-day__weekday, .ekl-events-day__date { display: inline; }
    .ekl-events-day__date { margin-left: .4rem; font-size: 1.2rem; }
    .ekl-event-row { padding: 1.15rem 0; }
    .ekl-event-row { grid-template-columns: minmax(0, 1fr) 38px; }
    .ekl-event-row__arrow { min-width: 38px; height: 38px; }
}

/* EKL Events v0.4 - rail control center */
.ekl-event-controls {
    width: 100%;
    font-family: var(--e-global-typography-text-font-family, "Nunito", sans-serif);
}

.ekl-event-control-group {
    margin: 0;
    padding: 1.7rem 0 1.1rem;
    border-bottom: 1px solid rgba(20, 28, 34, .16);
}

.ekl-event-control-group--when {
    padding-top: 0;
    padding-bottom: 1.15rem;
}

.ekl-event-control-group__heading {
    width: 100%;
    margin: 0 0 .7rem;
    padding: 0;
    font: 600 1.05rem/1.1 var(--e-global-typography-primary-font-family, "Oswald", sans-serif);
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ekl-event-control-when,
.ekl-event-control-options {
    display: grid;
}

.ekl-event-control-when { gap: .42rem; }
.ekl-event-control-options { gap: .12rem; }

.ekl-event-control-pill,
.ekl-event-control-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
    cursor: pointer;
    user-select: none;
}

.ekl-event-control-pill { min-height: 38px; }
.ekl-event-control-option {
    min-height: 30px;
    padding: .08rem 0;
}

.ekl-event-control-pill input,
.ekl-event-control-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ekl-event-control-pill span {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: .45rem .65rem;
    border: 1px solid rgba(20, 28, 34, .16);
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.ekl-event-control-pill:hover span { transform: translateX(2px); }
.ekl-event-control-pill input:checked + span {
    background: rgba(20, 28, 34, .09);
    border-color: rgba(20, 28, 34, .5);
    font-weight: 800;
}

.ekl-event-control-option__box {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(20, 28, 34, .38);
}

.ekl-event-control-option input:checked + .ekl-event-control-option__box {
    background: currentColor;
    border-color: currentColor;
}

.ekl-event-control-option input:checked + .ekl-event-control-option__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ekl-event-control-option input:checked ~ span:last-child { font-weight: 800; }

.ekl-event-control-date {
    display: grid;
    gap: .35rem;
    margin-top: .25rem;
    font-size: .82rem;
    font-weight: 800;
}

.ekl-event-control-date input {
    width: 100%;
    min-height: 42px;
    padding: .45rem .6rem;
    border: 1px solid rgba(20, 28, 34, .2);
    border-radius: 0;
    background: rgba(255,255,255,.72);
    color: inherit;
    font: inherit;
}

.ekl-event-controls__apply,
.ekl-event-controls__clear {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100%;
    min-height: 42px;
    margin-top: 1rem;
    padding: .7rem .8rem !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
    cursor: pointer;
    font: 800 .78rem/1 var(--e-global-typography-text-font-family, "Nunito", sans-serif) !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ekl-event-controls__apply {
    border: 1px solid currentColor !important;
    background: transparent !important;
    color: inherit !important;
}

/* JavaScript applies filters immediately. Keep submit only as a no-JS fallback. */
.ekl-event-controls.is-enhanced .ekl-event-controls__apply {
    display: none !important;
}

.ekl-event-controls__clear {
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ekl-event-controls__clear:hover { transform: translateX(2px); }

/* EKL Events v0.6 - controlled progressive loading */
.ekl-events-load-more-wrap {
    width: 100% !important;
    padding: 1.75rem 0 .5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.ekl-events-load-more-wrap[hidden] {
    display: none !important;
}

/* Deliberately reset Elementor/global button rules before styling this control. */
.ekl-events-page .ekl-events-load-more {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px !important;
    min-height: 46px !important;
    padding: .8rem 1.25rem !important;
    border: 1px solid currentColor !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: inherit !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font: 800 .78rem/1 var(--e-global-typography-text-font-family, "Nunito", sans-serif) !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: transform .15s ease, background-color .15s ease !important;
}

.ekl-events-page .ekl-events-load-more:hover,
.ekl-events-page .ekl-events-load-more:focus-visible {
    transform: translateY(-1px) !important;
    background: rgba(20, 28, 34, .05) !important;
}

.ekl-events-page .ekl-events-load-more:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 3px !important;
}

.ekl-events-page .ekl-events-load-more:disabled {
    opacity: .55 !important;
    cursor: wait !important;
    transform: none !important;
}


/* EKL Events v0.9 - complete event detail presentation */
.ekl-event-detail {
    width: 100%;
    max-width: 100%;
    color: #243940;
    font-family: var(--e-global-typography-text-font-family, "Nunito", sans-serif);
}

.ekl-event-detail__header {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(20, 28, 34, .20);
}

.ekl-event-detail__title {
    margin: 0;
    color: #0d5363;
    font-family: var(--e-global-typography-primary-font-family, "Oswald", sans-serif);
    font-size: clamp(2.25rem, 3vw, 3.45rem);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.025em;
}

.ekl-event-detail__script {
    font-family: "Satisfy", cursive;
    color: #c89931;
    line-height: 1.15;
}

.ekl-event-detail__tag {
    margin-top: .65rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.ekl-event-detail__meta {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 2rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.ekl-event-detail__meta-item,
.ekl-event-detail__location {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
}

.ekl-event-detail__meta-item { flex: 0 0 auto; }

.ekl-event-detail__location {
    margin-top: 1.2rem;
    font-size: 1rem;
    font-weight: 700;
}

.ekl-event-detail__icon {
    display: inline-flex;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: #0d5363;
}

.ekl-event-detail__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ekl-event-detail__description {
    padding: 2rem 0 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.ekl-event-detail__description > :first-child { margin-top: 0; }
.ekl-event-detail__description > :last-child { margin-bottom: 0; }

.ekl-event-detail__details {
    margin-top: 2rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: rgba(238, 233, 223, .72);
    border-top: 1px solid rgba(20, 28, 34, .16);
    border-bottom: 1px solid rgba(20, 28, 34, .16);
}

.ekl-event-detail__details-kicker {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.ekl-event-detail__details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
}

.ekl-event-detail__detail-heading {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .65rem;
    color: #0d5363;
    font-family: var(--e-global-typography-primary-font-family, "Oswald", sans-serif);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ekl-event-detail__detail-heading .ekl-event-detail__icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
}

.ekl-event-detail__detail-primary { font-weight: 700; }

.ekl-event-detail__detail-block--links {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.ekl-event-detail__action {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: inherit;
    text-decoration: none !important;
}

.ekl-event-detail__action strong,
.ekl-event-detail__action small { display: block; }
.ekl-event-detail__action strong {
    color: #0d5363;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.ekl-event-detail__action small { margin-top: .1rem; font-size: .9rem; }
.ekl-event-detail__action:hover strong,
.ekl-event-detail__action:hover small { text-decoration: underline; text-underline-offset: 3px; }

.ekl-event-detail__back {
    display: inline-flex;
    gap: .55rem;
    margin-top: 2rem;
    color: #9b6d0e;
    font-weight: 700;
    text-decoration: none !important;
}
.ekl-event-detail__back:hover { text-decoration: underline !important; text-underline-offset: 3px; }

.ekl-event-detail-empty {
    padding: 2rem 0;
    border-top: 1px solid rgba(20, 28, 34, .20);
    border-bottom: 1px solid rgba(20, 28, 34, .20);
}

@media (max-width: 700px) {
    .ekl-event-detail__title { font-size: clamp(1.9rem, 8vw, 2.65rem); line-height: 1.03; }
    .ekl-event-detail__tag { font-size: clamp(1.35rem, 6vw, 1.75rem); }
    .ekl-event-detail__meta { gap: 1.25rem 2.5rem; align-items: center; }
    .ekl-event-detail__meta-item { flex: 0 0 auto !important; }
    .ekl-event-detail__details-grid { grid-template-columns: 1fr; }
}


/* EKL Events 1.6 - Homepage event cards */
.ekl-home-events {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    font-family: "Nunito Sans", sans-serif;
}

.ekl-home-event-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 12px 12px 13px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(13,83,99,.10);
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(20,28,34,.05);
    font-family: "Nunito Sans", sans-serif;
}

.ekl-home-event-card__top {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    min-height: 80px;
}

.ekl-home-event-card__date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
    width: 72px;
    min-height: 80px;
    padding: 8px 5px 9px;
    border-radius: 0;
    background: #dfa02b;
    color: #fff;
    text-align: center;
    line-height: 1;
}

.ekl-home-event-card__month {
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .065em;
}

.ekl-home-event-card__day {
    margin-top: 3px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: .95;
}

.ekl-home-event-card__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 80px;
    color: #002856;
    overflow: visible;
    text-align: center;
}

.ekl-home-event-card__icon-art {
    display: block;
    width: 78px;
    height: 78px;
    max-width: 78px;
    object-fit: contain;
    object-position: center center;
}

.ekl-home-event-card__body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 10px;
}

.ekl-home-event-card__title {
    margin: 0 !important;
    color: #002856 !important;
    font-family: "Manrope", sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

.ekl-home-event-card__title a {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    text-decoration: none;
}

.ekl-home-event-card__title a:hover,
.ekl-home-event-card__title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ekl-home-event-card__location {
    margin-top: 6px;
    color: #54595f;
    font-family: "Nunito Sans", sans-serif;
    font-size: .79rem;
    font-weight: 500;
    line-height: 1.3;
}

.ekl-home-event-card__description {
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    color: #54595f;
    font-family: "Nunito Sans", sans-serif;
    font-size: .83rem;
    font-weight: 400;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.ekl-home-event-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 36px;
    margin-top: 13px;
    padding: 7px 10px;
    border: 1px solid #002856;
    border-radius: 0;
    color: #002856 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
}

.ekl-home-event-card__link:hover,
.ekl-home-event-card__link:focus-visible {
    background: rgba(13,83,99,.06) !important;
}

.ekl-home-events-empty {
    padding: 1rem 0;
    color: #54595f;
    font-family: "Nunito Sans", sans-serif;
}

@media (max-width: 1024px) {
    .ekl-home-events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .ekl-home-events {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ekl-home-event-card {
        padding: 12px;
    }

    .ekl-home-event-card__top {
        grid-template-columns: 64px minmax(0, 1fr);
        min-height: 70px;
    }

    .ekl-home-event-card__date {
        width: 64px;
        min-height: 70px;
    }

    .ekl-home-event-card__icon {
        height: 70px;
    }

    .ekl-home-event-card__icon-art {
        width: 68px;
        height: 68px;
        max-width: 68px;
    }

   .ekl-home-event-card__title {
        font-size: 18px !important;
    }
}
