.event-archive-page,
.event-single-page {
    --event-teal: #0799a6;
    --event-teal-dark: #087d87;
    --event-gold: #cba75e;
    --event-cream: #fbf8f0;
    --event-ink: #29343a;
    --event-muted: #737a7b;
    width: min(1180px, calc(100% - 36px));
    margin: 38px auto 76px;
    color: var(--event-ink);
}

.event-calendar-shell,
.event-single-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(203, 167, 94, .64);
    border-bottom: 3px solid var(--event-teal);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff 0%, #fff 68%, #fcfaf4 100%);
    box-shadow: 0 16px 42px rgba(39, 45, 48, .09);
}

.event-calendar-shell::before,
.event-single-card::before {
    position: absolute;
    top: -150px;
    left: -110px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(203, 167, 94, .14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.event-calendar-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 36px 25px;
    border-bottom: 1px solid #ece9e0;
}

.event-calendar-kicker,
.event-list-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #a78645;
    font-size: 12px;
    font-weight: 700;
}

.event-calendar-title-wrap h1 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0;
    color: #28383c;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
}

.event-calendar-title-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(203, 167, 94, .44);
    border-radius: 15px;
    background: var(--event-cream);
}

.event-calendar-title-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: var(--event-teal);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.event-calendar-title-wrap p {
    margin: 9px 0 0 61px;
    color: var(--event-muted);
    font-size: 14px;
}

.event-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.event-month-arrow {
    display: inline-grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid #e8ddc5;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(52, 48, 36, .06);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.event-month-arrow:hover {
    transform: translateY(-2px);
    border-color: var(--event-teal);
    background: #f1fbfa;
}

.event-month-arrow svg,
.event-item-open svg,
.event-back-link svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: var(--event-teal-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.event-month-current {
    display: flex;
    min-width: 142px;
    flex-direction: column;
    align-items: center;
    color: #9c7b3c;
    line-height: 1.4;
}

.event-month-current span {
    font-size: 13px;
}

.event-month-current strong {
    color: #303b3f;
    font-size: 21px;
}

.event-today-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid rgba(7, 153, 166, .3);
    border-radius: 20px;
    color: var(--event-teal-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    direction: rtl;
    transition: background .2s ease;
}

.event-today-link:hover {
    background: #edf9f8;
}

.event-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    margin: 25px 28px 0;
    overflow: hidden;
    border: 1px solid #eee8db;
    border-radius: 15px;
    background: #eee8db;
}

.event-calendar-weekday {
    display: grid;
    min-height: 43px;
    place-items: center;
    background: #f4f1e9;
    color: #8e7544;
    font-size: 12px;
    font-weight: 800;
}

.event-calendar-cell,
.event-calendar-blank {
    min-width: 0;
    min-height: 122px;
    background: #fff;
}

.event-calendar-day {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 122px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow: hidden;
    padding: 10px 11px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--event-ink);
    text-align: right;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease;
}

.event-calendar-day:hover {
    z-index: 1;
    background: #fbf8ef;
    box-shadow: inset 0 0 0 1px rgba(203, 167, 94, .52);
}

.event-calendar-day.is-selected {
    z-index: 1;
    background: #edf8f7;
    box-shadow: inset 0 0 0 2px var(--event-teal);
}

.event-calendar-day-number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #435054;
    font-size: 14px;
    font-weight: 700;
}

.event-calendar-day.is-today .event-calendar-day-number {
    border-color: var(--event-gold);
    color: #906f30;
}

.event-calendar-day.is-selected .event-calendar-day-number {
    background: var(--event-teal);
    color: #fff;
}

.event-calendar-day-events {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9a7b42;
    font-size: 10px;
    font-weight: 700;
}

.event-calendar-event-dots {
    display: inline-flex;
    gap: 3px;
}

.event-calendar-event-dots i,
.event-legend-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--event-teal);
}

.event-calendar-mini-events {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 3px;
}

.event-calendar-mini-events span {
    display: block;
    overflow: hidden;
    max-width: 100%;
    padding: 3px 6px;
    border-right: 2px solid var(--event-gold);
    border-radius: 4px;
    background: #fbf8ef;
    color: #596164;
    font-size: 10px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-calendar-legend {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 12px 32px 22px;
    color: #8a8d8b;
    font-size: 11px;
}

.event-legend-today {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 10px;
    border: 1px solid var(--event-gold);
    border-radius: 50%;
}

.event-calendar-list {
    position: relative;
    margin: 0 28px 32px;
    padding: 23px 25px 26px;
    border: 1px solid #eee8db;
    border-radius: 17px;
    background: linear-gradient(135deg, #fff 0%, #fdfbf6 100%);
}

.event-list-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.event-list-heading-row h2 {
    margin: 0;
    color: #303b3f;
    font-size: 19px;
}

.event-list-total {
    padding: 7px 12px;
    border-radius: 20px;
    background: #f5f0e4;
    color: #98793f;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.event-calendar-items {
    display: grid;
    gap: 11px;
}

.event-calendar-item {
    display: grid;
    grid-template-columns: 61px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid #eee9dd;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(41, 52, 58, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.event-calendar-item:hover {
    transform: translateY(-2px);
    border-color: rgba(7, 153, 166, .44);
    box-shadow: 0 10px 22px rgba(41, 52, 58, .075);
}

.event-item-date {
    display: flex;
    width: 58px;
    min-height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--event-cream);
    color: #9a7b42;
}

.event-item-date strong {
    color: var(--event-teal-dark);
    font-size: 22px;
    line-height: 1.2;
}

.event-item-date span {
    font-size: 10px;
    font-weight: 700;
}

.event-item-copy {
    min-width: 0;
}

.event-item-date-full {
    color: #9b804e;
    font-size: 11px;
    font-weight: 700;
}

.event-item-copy h3 {
    margin: 3px 0 4px;
    font-size: 16px;
    line-height: 1.7;
}

.event-item-copy h3 a {
    color: #303b3f;
    text-decoration: none;
}

.event-item-copy h3 a:hover {
    color: var(--event-teal-dark);
}

.event-item-copy p {
    margin: 0 0 7px;
    color: var(--event-muted);
    font-size: 12px;
    line-height: 1.9;
}

.event-item-meta,
.event-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.event-item-meta span,
.event-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #727b7d;
    font-size: 11px;
}

.event-item-meta svg,
.event-single-meta svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--event-gold);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.event-item-open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--event-teal-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.event-calendar-empty {
    display: grid;
    min-height: 190px;
    align-content: center;
    justify-items: center;
    padding: 24px;
    border: 1px dashed #dfd4bc;
    border-radius: 13px;
    background: #fffefa;
    text-align: center;
}

.event-empty-icon {
    display: grid;
    width: 43px;
    height: 43px;
    margin-bottom: 9px;
    place-items: center;
    border-radius: 50%;
    background: #f6efdf;
    color: var(--event-gold);
    font-size: 22px;
}

.event-calendar-empty strong {
    color: #465154;
    font-size: 15px;
}

.event-calendar-empty p,
.event-calendar-day-empty {
    margin: 5px 0 0;
    color: var(--event-muted);
    font-size: 12px;
}

.event-calendar-shell.is-enhanced .event-calendar-item[hidden],
.event-calendar-day-empty[hidden] {
    display: none !important;
}

/* Event detail page */
.event-single-card {
    padding: clamp(24px, 5vw, 54px);
}

.event-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 32px;
    color: var(--event-teal-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.event-single-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a17f3e;
    font-size: 13px;
    font-weight: 700;
}

.event-single-kicker-icon {
    display: inline-grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: #f5eedf;
    color: var(--event-gold);
}

.event-single-card h1 {
    max-width: 850px;
    margin: 12px 0 17px;
    color: #29383c;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.65;
}

.event-single-meta {
    gap: 11px 22px;
    padding: 14px 17px;
    border: 1px solid #eee7d8;
    border-radius: 12px;
    background: #fdfbf6;
}

.event-single-meta span {
    font-size: 13px;
}

.event-single-meta svg {
    width: 19px;
    height: 19px;
}

.event-single-image {
    overflow: hidden;
    margin-top: 24px;
    border-radius: 16px;
}

.event-single-image img {
    display: block;
    width: 100%;
    max-height: 540px;
    object-fit: contain;
    object-position: center;
    background: #f7f4ec;
}

.event-single-content {
    max-width: 850px;
    margin-top: 26px;
    color: #4e585b;
    font-size: 16px;
    line-height: 2.2;
}

.event-address-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    padding: 10px 16px;
    border-radius: 24px;
    background: var(--event-teal);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.event-address-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

@media (max-width: 760px) {
    .event-archive-page,
    .event-single-page {
        width: calc(100% - 20px);
        margin: 22px auto 42px;
    }

    .event-calendar-shell,
    .event-single-card {
        border-radius: 16px;
    }

    .event-calendar-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        padding: 22px 17px 18px;
    }

    .event-calendar-title-wrap h1 {
        gap: 9px;
        font-size: 25px;
    }

    .event-calendar-title-icon {
        width: 41px;
        height: 41px;
        border-radius: 12px;
    }

    .event-calendar-title-wrap p {
        margin: 7px 0 0;
        font-size: 12px;
        line-height: 1.9;
    }

    .event-calendar-navigation {
        width: 100%;
        justify-content: space-between;
        gap: 7px;
    }

    .event-month-arrow {
        width: 38px;
        height: 38px;
    }

    .event-month-current {
        min-width: 98px;
    }

    .event-month-current strong {
        font-size: 18px;
    }

    .event-calendar-grid {
        margin: 15px 10px 0;
        border-radius: 11px;
    }

    .event-calendar-weekday {
        min-height: 34px;
        padding: 0 1px;
        font-size: clamp(9px, 2.7vw, 11px);
    }

    .event-calendar-cell,
    .event-calendar-blank {
        min-height: 57px;
    }

    .event-calendar-day {
        min-height: 57px;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        padding: 4px 1px;
    }

    .event-calendar-day-number {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }

    .event-calendar-day-events {
        justify-content: center;
        min-height: 7px;
    }

    .event-calendar-event-count,
    .event-calendar-mini-events {
        display: none;
    }

    .event-calendar-event-dots i {
        width: 5px;
        height: 5px;
    }

    .event-calendar-legend {
        margin: 9px 13px 15px;
        font-size: 10px;
    }

    .event-calendar-list {
        margin: 0 10px 17px;
        padding: 17px 12px 15px;
        border-radius: 13px;
    }

    .event-list-heading-row {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .event-list-heading-row h2 {
        font-size: 16px;
        line-height: 1.6;
    }

    .event-calendar-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 11px 10px;
    }

    .event-item-date {
        width: 46px;
        min-height: 53px;
    }

    .event-item-date strong {
        font-size: 19px;
    }

    .event-item-copy h3 {
        font-size: 14px;
        line-height: 1.8;
    }

    .event-item-copy p {
        font-size: 11px;
    }

    .event-item-meta {
        gap: 6px 11px;
    }

    .event-item-open {
        grid-column: 2;
        justify-self: start;
        margin-top: -3px;
    }

    .event-single-card {
        padding: 22px 18px;
    }

    .event-back-link {
        margin-bottom: 25px;
        font-size: 12px;
    }

    .event-single-card h1 {
        font-size: 25px;
    }

    .event-single-meta {
        flex-direction: column;
        gap: 10px;
    }

    .event-single-content {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-calendar-day,
    .event-calendar-item,
    .event-month-arrow {
        transition: none;
    }
}
