/* Events — public interface */
.ql-events-portal-shell,
.ql-events-submit,
.ql-events-directory {
    --ql-events-surface: #ffffff;
    --ql-events-surface-soft: #f4f4f4;
    --ql-events-surface-mid: #e8e8e8;
    --ql-events-border: #d1d1d1;
    --ql-events-border-strong: #7a7a7a;
    --ql-events-text: #1b1b1b;
    --ql-events-muted: #686868;
    --ql-events-button: #555555;
    --ql-events-button-hover: #393939;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ql-events-text);
}

.ql-events-portal-shell {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(280px, .95fr);
    gap: 2.15rem;
    align-items: start;
    margin: 1.2rem 0 2rem;
}

.ql-events-portal-main,
.ql-events-portal-sidebar,
.ql-events-directory,
.ql-events-submit {
    min-width: 0;
}

.ql-events-directory,
.ql-events-submit {
    margin: 0;
}

.ql-events-directory h2,
.ql-events-submit h2 {
    margin: 0;
    color: var(--ql-events-text);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .015em;
}

.ql-events-directory-header {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 0 .8rem;
    border-top: 4px solid #333333;
    border-bottom: 1px solid var(--ql-events-border);
}

.ql-events-view-tabs {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ql-events-view-tabs a {
    display: inline-block;
    padding: .34rem .68rem;
    border: 1px solid #b9b9b9;
    border-radius: 2px;
    color: #494949;
    background: var(--ql-events-surface);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.ql-events-view-tabs a:hover,
.ql-events-view-tabs a:focus {
    color: #222222;
    border-color: #777777;
    background-color: #eeeeee;
}

.ql-events-view-tabs a.is-active {
    color: #ffffff;
    border-color: var(--ql-events-button);
    background: var(--ql-events-button);
}

.ql-events-filters {
    display: grid;
    grid-template-columns: minmax(190px, 2fr) repeat(5, minmax(105px, 1fr));
    gap: .55rem;
    align-items: end;
    margin: .85rem 0 0;
    padding: .75rem;
    border: 1px solid var(--ql-events-border);
    background: var(--ql-events-surface-soft);
}

.ql-events-filter {
    display: flex;
    flex-direction: column;
    gap: .27rem;
    min-width: 0;
}

.ql-events-filter label,
.ql-events-field label {
    color: #474747;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.ql-events-filter input,
.ql-events-filter select,
.ql-events-field input,
.ql-events-field select {
    width: 100%;
    box-sizing: border-box;
    min-height: 2.35rem;
    padding: .45rem .55rem;
    border: 1px solid #bcbcbc;
    border-radius: 2px;
    outline: none;
    color: #222222;
    background-color: #ffffff;
    font: inherit;
    font-size: .83rem;
    line-height: 1.2;
}

/* Normalize filter selects across Safari, Chrome, Firefox, and Edge so they
   visually match the From/To date controls instead of using native pill UI. */
.ql-events-filters select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 2.35rem;
    padding-right: 2rem;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    background-size: 12px 8px;
}

.ql-events-filters input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    height: 2.35rem;
}

.ql-events-filter input:focus,
.ql-events-filter select:focus,
.ql-events-field input:focus,
.ql-events-field select:focus {
    border-color: #666666;
    box-shadow: 0 0 0 1px #666666;
}

.ql-events-filter-actions {
    grid-column: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: .08rem;
}

.ql-events-filter-actions button,
.ql-events-actions button {
    border: 1px solid var(--ql-events-button);
    border-radius: 2px;
    padding: .58rem .95rem;
    color: #ffffff;
    background: var(--ql-events-button);
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.ql-events-filter-actions button:hover,
.ql-events-actions button:hover,
.ql-events-filter-actions button:focus,
.ql-events-actions button:focus {
    background: var(--ql-events-button-hover);
    border-color: var(--ql-events-button-hover);
}

.ql-events-filter-actions a {
    color: #5e5e5e;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.ql-events-filter-actions a:hover {
    color: #222222;
    text-decoration: underline;
}

.ql-events-results-count {
    margin: .65rem 0 .75rem;
    color: #777777;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ql-events-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.ql-event-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) minmax(170px, 220px);
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--ql-events-border);
    background: var(--ql-events-surface);
}

.ql-event-card:first-child {
    border-top: 1px solid var(--ql-events-border);
}


.ql-event-card__lead {
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .42rem;
    width: 112px;
    min-width: 112px;
    max-width: 112px;
}

.ql-event-card__lead .ql-event-type {
    display: block;
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
}


.ql-event-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: .12rem;
}

.ql-event-share__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #777777;
    text-decoration: none;
    line-height: 1;
    transition: color .15s ease;
}

.ql-event-share__link svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.ql-event-share__link--facebook svg {
    width: 24px;
    height: 24px;
}

.ql-event-share__link:hover,
.ql-event-share__link:focus-visible {
    color: #444444;
    background: transparent;
    outline: none;
}

.ql-event-share__link:focus-visible {
    box-shadow: 0 0 0 2px #9a9a9a;
}

.ql-event-share__tooltip {
    position: absolute;
    z-index: 10;
    top: calc(100% + 3px);
    left: 50%;
    width: max-content;
    max-width: 150px;
    transform: translateX(-50%);
    padding: .18rem .3rem;
    background: #ffffff;
    color: #555555;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease, visibility .12s ease;
}

.ql-event-share__link:hover .ql-event-share__tooltip,
.ql-event-share__link:focus-visible .ql-event-share__tooltip {
    opacity: 1;
    visibility: visible;
}

.ql-event-date-tile {
    align-self: start;
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #bcbcbc;
    border-radius: 2px;
    text-align: center;
    background: #f8f8f8;
}

.ql-event-date-tile__month,
.ql-event-date-tile__day,
.ql-event-date-tile__dow {
    display: block;
}

.ql-event-date-tile__month {
    padding: .3rem .2rem .24rem;
    color: #ffffff;
    background: #666666;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ql-event-date-tile__day {
    padding: .32rem .2rem .12rem;
    color: #222222;
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 900;
}

.ql-event-date-tile__dow {
    padding: 0 .2rem .34rem;
    color: #757575;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ql-event-card__content {
    min-width: 0;
}

.ql-event-card__topline {
    display: flex;
    gap: .45rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.ql-event-type,
.ql-event-status {
    display: inline-block;
    padding: .18rem .42rem;
    border: 1px solid #b8b8b8;
    border-radius: 2px;
    color: #555555;
    background: #f2f2f2;
    font-size: .62rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.ql-event-type--online {
    color: #1f4f7a;
    background: #eaf3fb;
    border-color: #8bb3d8;
}

.ql-event-type--in-person {
    color: #285f3a;
    background: #eaf6ee;
    border-color: #8fbea0;
}


.ql-event-status--pending {
    border-style: dashed;
    color: #4a4a4a;
    background: #ededed;
}

.ql-event-card h3,
.ql-events-wrap .ql-event-card__content > h3 {
    margin: .55rem 0 .55rem !important;
    padding: 0 !important;
    color: #1d1d1d;
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 900;
}

.ql-event-card__topline + h3 {
    margin-top: .16rem !important;
}

.ql-event-details {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.05rem;
    margin: 0 0 .58rem;
}

.ql-event-details > div {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    min-width: 0;
}

.ql-event-details dt {
    color: #777777;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ql-event-details dd {
    margin: 0;
    color: #444444;
    font-size: .76rem;
}

.ql-event-more {
    display: inline-block;
    color: #4b4b4b;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .055em;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ql-event-more:hover {
    color: #111111;
}

.ql-event-preview {
    align-self: center;
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #c5c5c5;
    border-radius: 2px;
    color: #222222;
    background: #f7f7f7;
    text-decoration: none;
}

.ql-event-preview:hover {
    border-color: #8d8d8d;
    color: #111111;
}

.ql-event-preview__image-wrap {
    display: block;
    aspect-ratio: 1.91 / 1;
    overflow: hidden;
    background: #e5e5e5;
}

.ql-event-preview__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ql-event-preview__body {
    display: block;
    padding: .55rem .62rem .62rem;
}

.ql-event-preview__site,
.ql-event-preview__title,
.ql-event-preview__description {
    display: block;
}

.ql-event-preview__site {
    margin-bottom: .18rem;
    color: #777777;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.ql-event-preview__title {
    color: #222222;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.25;
}

.ql-event-preview__description {
    margin-top: .2rem;
    color: #666666;
    font-size: .62rem;
    line-height: 1.32;
}

.ql-events-pagination ul {
    list-style: none;
    display: flex;
    gap: .38rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 1rem 0 0;
}

.ql-events-pagination a,
.ql-events-pagination span {
    display: inline-block;
    padding: .34rem .55rem;
    border: 1px solid #bcbcbc;
    border-radius: 2px;
    color: #4c4c4c;
    background: #ffffff;
    font-size: .74rem;
    text-decoration: none;
}

.ql-events-pagination .current {
    color: #ffffff;
    border-color: #666666;
    background: #666666;
    font-weight: 900;
}

.ql-events-empty {
    padding: 1.25rem;
    border: 1px solid var(--ql-events-border);
    color: #686868;
    background: var(--ql-events-surface-soft);
}

/* Submission card */
.ql-events-portal-sidebar .ql-events-submit {
    position: sticky;
    top: 1.25rem;
    padding: 1.1rem 1rem 1rem;
    border-top: 4px solid #555555;
    border-right: 1px solid var(--ql-events-border);
    border-bottom: 1px solid var(--ql-events-border);
    border-left: 1px solid var(--ql-events-border);
    background: #ffffff;
}

.ql-events-submit-intro {
    margin: .55rem 0 .9rem;
    color: #666666;
    font-size: .8rem;
    line-height: 1.45;
}

.ql-events-submit .ql-events-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: .72rem;
    margin: 0;
}

.ql-events-field,
.ql-events-filter {
    min-width: 0;
}

.ql-events-field {
    display: flex;
    flex-direction: column;
    gap: .28rem;
}

.ql-events-field--wide {
    grid-column: auto;
}

.ql-events-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
}

.ql-events-actions button {
    width: 100%;
}

.ql-events-help {
    margin: 0;
    color: #777777;
    font-size: .7rem;
    line-height: 1.4;
}

.ql-events-notice {
    margin: .8rem 0 1rem;
    padding: .75rem .85rem;
    border: 1px solid #bdbdbd;
    border-left: 4px solid #666666;
    color: #333333;
    background: #f2f2f2;
}

.ql-events-notice--success {
    border-left-color: #777777;
}

.ql-events-notice--error {
    border-left-color: #444444;
}

/* Standalone shortcode presentation */
.ql-events-submit:not(.ql-events-portal-sidebar .ql-events-submit) {
    padding: 1rem;
    border-top: 4px solid #555555;
    border-right: 1px solid var(--ql-events-border);
    border-bottom: 1px solid var(--ql-events-border);
    border-left: 1px solid var(--ql-events-border);
    background: #ffffff;
}

@media (max-width: 1080px) {
    .ql-events-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ql-events-filter-actions {
        grid-column: 2;
    }

}

@media (max-width: 860px) {
    .ql-events-portal-shell {
        grid-template-columns: 1fr;
    }

    .ql-events-portal-sidebar {
        order: 2;
    }

    .ql-events-portal-sidebar .ql-events-submit {
        position: static;
    }

    .ql-events-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ql-events-filter-actions {
        grid-column: 1;
        justify-content: flex-end;
    }

}

@media (max-width: 720px) {
    .ql-event-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .ql-event-preview {
        grid-column: 2;
        width: 100%;
        max-width: 360px;
        margin-top: .2rem;
    }
}

@media (max-width: 560px) {
    .ql-events-directory-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ql-events-view-tabs {
        justify-content: flex-start;
    }

    .ql-events-filters {
        grid-template-columns: 1fr;
    }

    .ql-events-filter-actions {
        grid-column: 1;
    }

    .ql-event-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: .8rem;
    }

    .ql-event-card__lead {
        width: 96px;
        min-width: 96px;
        max-width: 96px;
    }

    .ql-event-card__lead .ql-event-type,
    .ql-event-date-tile {
        width: 96px;
        min-width: 96px;
        max-width: 96px;
    }

    .ql-event-card {
        padding: .85rem 0;
    }

    .ql-event-date-tile__day {
        font-size: 1.45rem;
    }

    .ql-event-details {
        display: block;
    }

    .ql-event-details > div {
        margin-bottom: .22rem;
    }
}

.ql-events-submit select:disabled,
.ql-events-filters select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #eeeeee;
}


.ql-events-all-day-field {
    margin-bottom: -.15rem;
}

.ql-events-checkbox-label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    cursor: pointer;
}

.ql-events-checkbox-label input[type="checkbox"] {
    width: auto;
    min-height: 0;
    margin: 0;
}

.ql-event-status--all-day {
    color: #555555;
    background: #f7f7f7;
}

/* 1.0.20: directory header Add Event action */
.ql-events-directory-header {
    align-items: center;
    justify-content: space-between;
}

.ql-events-add-button {
    display: inline-block;
    margin-left: auto;
    padding: .34rem .78rem;
    border: 1px solid var(--ql-events-button);
    border-radius: 2px;
    background: var(--ql-events-button);
    color: #ffffff !important;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.4;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.ql-events-add-button:hover,
.ql-events-add-button:focus {
    border-color: var(--ql-events-button-hover);
    background: var(--ql-events-button-hover);
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .ql-events-directory-header {
        gap: .65rem;
    }

    .ql-events-add-button {
        flex: 0 0 auto;
    }
}


/* 1.0.21: modal event submission */
.ql-events-add-button {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
}

body.ql-events-modal-open {
    overflow: hidden;
}

.ql-events-modal[hidden] {
    display: none !important;
}

.ql-events-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.ql-events-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
}

.ql-events-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    border: 1px solid #8a8a8a;
    background: #ffffff;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .28);
}

.ql-events-modal__dialog .ql-events-submit {
    margin: 0;
    padding: 0 1rem 1rem;
    border: 0 !important;
    border-top: 4px solid #555555 !important;
}

.ql-events-modal__dialog .ql-events-submit > h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ql-events-modal__close {
    position: absolute;
    z-index: 2;
    top: .55rem;
    right: .65rem;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333333;
    font: 700 1.75rem/1 Arial, sans-serif;
    cursor: pointer;
}

.ql-events-modal__close:hover,
.ql-events-modal__close:focus {
    color: #000000;
}

@media (max-width: 560px) {
    .ql-events-modal {
        align-items: center;
        justify-content: center;
        padding: .75rem;
    }

    .ql-events-modal__dialog {
        max-height: calc(100vh - 1.5rem);
    }
}


/* 1.0.24: start and end controls share a row in the submission modal */
.ql-events-datetime-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .72rem;
    min-width: 0;
}

.ql-events-datetime-row > .ql-events-field {
    min-width: 0;
}

@media (max-width: 560px) {
    .ql-events-datetime-row {
        grid-template-columns: 1fr;
    }
}


/* 1.0.25: country and state share a row in the submission modal */
.ql-events-location-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .72rem;
    min-width: 0;
}

.ql-events-location-row > .ql-events-field {
    min-width: 0;
}

@media (max-width: 560px) {
    .ql-events-location-row {
        grid-template-columns: 1fr;
    }
}


/* 1.0.42: header Search action and centered search modal */
.ql-events-header-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-left: auto;
}

.ql-events-search-button,
.ql-events-filter-toggle {
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    padding: .34rem .78rem;
    border: 1px solid #888888;
    border-radius: 2px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.ql-events-search-button:hover,
.ql-events-search-button:focus,
.ql-events-search-button.is-active,
.ql-events-filter-toggle:hover,
.ql-events-filter-toggle:focus,
.ql-events-filter-toggle.is-active {
    border-color: #555555;
    background: #eeeeee;
    color: #111111;
}

.ql-events-filter-toggle {
    display: none;
}

.ql-events-search-modal__dialog {
    width: min(560px, 100%);
}

.ql-events-search-modal__content {
    padding: 0 1.4rem 1.4rem;
}

.ql-events-search-modal__eyebrow {
    display: block;
    margin: 0 0 .4rem;
    color: #666666;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ql-events-search-modal__content h2 {
    margin: 0 2rem .55rem 0;
    color: #111111;
    font-size: 1.35rem;
    line-height: 1.2;
}

.ql-events-search-modal__content > p {
    margin: 0 0 1rem;
    color: #555555;
    font-size: .88rem;
    line-height: 1.5;
}

.ql-events-search-form label {
    display: block;
    margin: 0 0 .28rem;
    color: #333333;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ql-events-search-form input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    padding: .55rem .65rem;
    border: 1px solid #9b9b9b;
    border-radius: 2px;
    background: #ffffff;
    color: #222222;
    font: inherit;
}

.ql-events-search-modal__actions {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .85rem;
}

.ql-events-search-modal__actions button {
    padding: .56rem .9rem;
    border: 1px solid #222222;
    border-radius: 2px;
    background: #222222;
    color: #ffffff;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .03em;
    line-height: 1.3;
    text-transform: uppercase;
    cursor: pointer;
}

.ql-events-search-modal__actions a {
    color: #333333;
    font-size: .78rem;
    font-weight: 700;
}

@media (max-width: 600px) {
    .ql-events-directory-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: .55rem;
    }

    .ql-events-view-tabs {
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .ql-events-view-tabs a {
        flex: 0 0 auto;
    }

    .ql-events-header-actions {
        flex: 0 0 auto;
        gap: .35rem;
    }

    .ql-events-filter-toggle {
        display: inline-block;
    }

    .ql-events-filters {
        display: none;
    }

    .ql-events-filters.is-open {
        display: grid;
    }
}

@media (max-width: 560px) {
    .ql-events-search-modal__content {
        padding: 0 1rem 1rem;
    }
}

/* 1.0.39: direct iCalendar event details modal */
.ql-event-more--button {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
}

.ql-event-preview--button {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ql-events-ical-modal__dialog {
    width: min(620px, 100%);
}

.ql-events-ical-modal__content {
    padding: 1.4rem;
}

.ql-events-ical-modal__eyebrow {
    display: block;
    margin: 0 0 .45rem;
    color: #666666;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ql-events-ical-modal__content h2 {
    margin: 0 2rem 1rem 0;
    color: #111111;
    font-size: 1.35rem;
    line-height: 1.2;
}

.ql-events-ical-modal__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1.2rem;
    margin: 0;
    padding: 1rem 0;
    border-top: 1px solid #d5d5d5;
    border-bottom: 1px solid #d5d5d5;
}

.ql-events-ical-modal__details div {
    min-width: 0;
}

.ql-events-ical-modal__details dt {
    margin: 0 0 .15rem;
    color: #666666;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ql-events-ical-modal__details dd {
    margin: 0;
    color: #222222;
    font-size: .9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ql-events-ical-modal__body {
    margin: 1rem 0 0;
    color: #222222;
    font-size: .92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ql-events-ical-modal__body p {
    margin: 0 0 .8rem;
}

.ql-events-ical-modal__body p:last-child {
    margin-bottom: 0;
}

.ql-events-ical-modal__actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
}

.ql-events-ical-add,
.ql-events-ical-cancel {
    display: inline-block;
    box-sizing: border-box;
    padding: .58rem .9rem;
    border: 1px solid #222222;
    border-radius: 2px;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .03em;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.ql-events-ical-add {
    background: #222222;
    color: #ffffff;
}

.ql-events-ical-add:hover,
.ql-events-ical-add:focus {
    background: #000000;
    color: #ffffff;
}

.ql-events-ical-cancel {
    background: #ffffff;
    color: #222222;
}

@media (max-width: 560px) {
    .ql-events-ical-modal__content {
        padding: 1rem;
    }

    .ql-events-ical-modal__details {
        grid-template-columns: 1fr;
    }

    .ql-events-ical-modal__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ql-events-ical-add,
    .ql-events-ical-cancel {
        width: 100%;
        text-align: center;
    }
}


/* 1.0.55: iCalendar subscription action */
.ql-events-ical-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    box-sizing: border-box;
    border: 1px solid #888888;
    border-radius: 2px;
    background: #ffffff;
    color: #333333;
    text-decoration: none !important;
    flex: 0 0 auto;
}

.ql-events-ical-subscribe:hover,
.ql-events-ical-subscribe:focus {
    border-color: #555555;
    color: #111111;
    background: #f4f4f4;
}

.ql-events-ical-subscribe svg {
    display: block;
}


/* 1.0.71: mobile header uses two deliberate rows */
@media (max-width: 600px) {
    .ql-events-directory-header {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: .55rem;
    }

    .ql-events-view-tabs {
        width: 100%;
        flex: 0 0 auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .ql-events-header-actions {
        width: 100%;
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: .35rem;
    }

    .ql-events-add-button {
        margin-left: 0;
    }
}
