/* ==========================================================================
   WP Events Engine - Premium Front-end Design System
   ========================================================================== */

:root {
    --wee-primary: #002741;
    --wee-primary-soft: #0f3d5e;
    --wee-accent: #f28b23;
    --wee-accent-soft: #ffdcc3;
    --wee-success: #0f766e;
    --wee-success-soft: #dff7f2;
    --wee-danger: #ba1a1a;
    --wee-danger-soft: #ffdad6;
    --wee-ink: #0b1c30;
    --wee-ink-soft: #42566d;
    --wee-muted: #5d7086;
    --wee-surface: #f8f9ff;
    --wee-surface-low: #eff4ff;
    --wee-surface-mid: #e5eeff;
    --wee-surface-high: #dce9ff;
    --wee-shell-bg: #c0dcef;
    --wee-shell-bg-soft: rgba(192, 220, 239, 0.6);
    --wee-shell-bg-strong: rgba(192, 220, 239, 0.6);
    --wee-shell-glow: rgba(255, 255, 255, 0.42);
    --wee-white: #ffffff;
    --wee-outline: rgba(114, 119, 126, 0.18);
    --wee-outline-strong: rgba(15, 61, 94, 0.16);
    --wee-shadow-sm: 0 10px 20px rgba(0, 29, 51, 0.06);
    --wee-shadow-md: 0 24px 50px rgba(0, 29, 51, 0.09);
    --wee-shadow-lg: 0 36px 80px rgba(0, 29, 51, 0.12);
    --wee-radius-sm: 14px;
    --wee-radius: 24px;
    --wee-radius-lg: 34px;
    --wee-transition: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --wee-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --wee-columns: 3;
}

.wee-template-horizon {
    --wee-primary: #002741;
    --wee-primary-soft: #0f3d5e;
    --wee-accent: #f28b23;
    --wee-accent-soft: #ffdcc3;
    --wee-surface: #f8f9ff;
    --wee-surface-low: #eff4ff;
    --wee-surface-mid: #e5eeff;
    --wee-surface-high: #dce9ff;
    --wee-shell-bg: #c0dcef;
    --wee-shell-bg-soft: rgba(192, 220, 239, 0.6);
    --wee-shell-bg-strong: rgba(192, 220, 239, 0.6);
    --wee-shell-glow: rgba(255, 255, 255, 0.42);
}

.wee-template-museum {
    --wee-accent: #f28b23;
    --wee-accent-soft: #ffdcc3;
}

.wee-template-club {
    --wee-accent: #0f766e;
    --wee-accent-soft: #dff7f2;
}

.wee-template-festival {
    --wee-accent: #c2410c;
    --wee-accent-soft: #ffedd5;
}

.wee-template-modern {
    --wee-accent: #1d4ed8;
    --wee-accent-soft: #dbeafe;
}

.wee-events-wrapper,
.wee-calendar-wrapper,
.wee-single-event,
.wee-upcoming-events,
.wee-event-categories,
.wee-booking-section {
    font-family: var(--wee-font);
    color: var(--wee-ink);
}

.wee-events-wrapper *,
.wee-calendar-wrapper *,
.wee-single-event *,
.wee-upcoming-events *,
.wee-event-categories *,
.wee-booking-section * {
    box-sizing: border-box;
}

.wee-events-wrapper .screen-reader-text,
.wee-calendar-wrapper .screen-reader-text,
.wee-single-event .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wee-kicker,
.wee-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
    color: var(--wee-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wee-kicker::before,
.wee-panel-kicker::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wee-accent) 0%, #f7b067 100%);
}

.wee-section-title {
    margin: 0 0 1.2rem;
    color: var(--wee-primary);
    font-size: clamp(1.3rem, 1.6vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.wee-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wee-badge-category {
    background: var(--wee-accent-soft);
    color: var(--wee-primary);
    text-decoration: none;
}

.wee-badge-category:hover,
.wee-badge-category:focus-visible {
    filter: brightness(0.97);
}

.wee-badge-recurring {
    background: #f2f6fb;
    color: var(--wee-primary-soft);
}

.wee-badge-cancelled {
    background: var(--wee-danger-soft);
    color: var(--wee-danger);
}

.wee-button,
.wee-card-cta,
.wee-calendar-sidebar-cta,
.wee-widget-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1;
    text-decoration: none;
    transition: transform var(--wee-transition), background var(--wee-transition), box-shadow var(--wee-transition), color var(--wee-transition), border-color var(--wee-transition);
    cursor: pointer;
}

.wee-button:hover,
.wee-button:focus-visible,
.wee-card-cta:hover,
.wee-card-cta:focus-visible,
.wee-calendar-sidebar-cta:hover,
.wee-calendar-sidebar-cta:focus-visible,
.wee-widget-all-link:hover,
.wee-widget-all-link:focus-visible {
    transform: translateY(-1px);
}

.wee-button-primary,
.wee-card-cta-primary,
.wee-calendar-sidebar-cta {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 16px 30px rgba(15, 61, 94, 0.18);
}

.wee-button-primary:hover,
.wee-button-primary:focus-visible,
.wee-card-cta-primary:hover,
.wee-card-cta-primary:focus-visible,
.wee-calendar-sidebar-cta:hover,
.wee-calendar-sidebar-cta:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    color: var(--wee-primary);
    box-shadow:
        inset 0 0 0 1px rgba(15, 61, 94, 0.16),
        0 14px 26px rgba(15, 61, 94, 0.1);
}

.wee-button-secondary,
.wee-card-cta-secondary {
    background: rgba(255, 255, 255, 0.84);
    color: var(--wee-primary);
    box-shadow:
        inset 0 0 0 1px rgba(15, 61, 94, 0.08),
        0 10px 18px rgba(15, 61, 94, 0.08);
}

.wee-button-secondary:hover,
.wee-button-secondary:focus-visible,
.wee-card-cta-secondary:hover,
.wee-card-cta-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.98);
    color: var(--wee-primary);
    box-shadow:
        inset 0 0 0 1px rgba(15, 61, 94, 0.14),
        0 14px 24px rgba(15, 61, 94, 0.1);
    outline: none;
}

.wee-card-cta.is-disabled {
    background: #f7d3ce;
    color: #b94032;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.wee-card-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.68rem;
    height: 1.68rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 12px 22px rgba(15, 61, 94, 0.18);
    font-size: 0;
    line-height: 0;
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), background var(--wee-transition), color var(--wee-transition);
}

.wee-card-link-icon svg {
    display: block;
    width: 55%;
    height: 55%;
}

.wee-card-cta-secondary:hover .wee-card-link-icon,
.wee-card-cta-secondary:focus-visible .wee-card-link-icon {
    background: rgba(255, 255, 255, 0.98);
    color: var(--wee-primary);
    box-shadow:
        inset 0 0 0 1px rgba(15, 61, 94, 0.14),
        0 12px 20px rgba(15, 61, 94, 0.12);
    transform: scale(1.05);
}

.wee-card-cta-secondary:focus-visible .wee-card-link-icon {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        0 0 0 6px rgba(47, 96, 130, 0.2),
        inset 0 0 0 1px rgba(15, 61, 94, 0.14),
        0 12px 22px rgba(15, 61, 94, 0.16);
}

.wee-error {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--wee-radius-sm);
    background: var(--wee-danger-soft);
    color: var(--wee-danger);
    font-size: 0.95rem;
    font-weight: 700;
}

.wee-loading {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.4rem;
    opacity: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.24) 42%, rgba(255, 255, 255, 0) 72%);
    backdrop-filter: blur(6px);
    transition: opacity var(--wee-transition);
}

.wee-loading.active {
    opacity: 1;
}

.wee-spinner {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: conic-gradient(from -90deg, rgba(242, 139, 35, 0.18) 0deg, rgba(242, 139, 35, 0.98) 95deg, rgba(15, 61, 94, 0.98) 250deg, rgba(15, 61, 94, 0.08) 360deg);
    box-shadow: 0 18px 34px rgba(15, 61, 94, 0.16);
    animation: wee-spin 1s linear infinite;
}

.wee-spinner::before,
.wee-spinner::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.wee-spinner::before {
    inset: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.08);
}

.wee-spinner::after {
    inset: -4px;
    border: 1px dashed rgba(255, 255, 255, 0.72);
    opacity: 0.85;
}

.wee-loading-copy {
    display: grid;
    gap: 0.18rem;
}

.wee-loading-title {
    color: var(--wee-primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wee-loading-subtitle {
    color: var(--wee-primary-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes wee-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Archive
   ========================================================================== */

.wee-archive-events {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(206, 229, 255, 0.9) 0%, rgba(206, 229, 255, 0) 32%),
        radial-gradient(circle at bottom right, rgba(255, 220, 195, 0.6) 0%, rgba(255, 220, 195, 0) 30%),
        var(--wee-surface);
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.wee-archive-shell {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.wee-archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.wee-archive-copy,
.wee-archive-highlight-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--wee-radius-lg);
    box-shadow: var(--wee-shadow-md);
}

.wee-archive-copy {
    padding: clamp(1.8rem, 4vw, 3.1rem);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(135deg, #ffffff 0%, #eff4ff 58%, #dae3ed 100%);
}

.wee-archive-title {
    margin: 0;
    color: var(--wee-primary);
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.wee-archive-description {
    max-width: 52ch;
    margin: 1.2rem 0 0;
    color: var(--wee-ink-soft);
    font-size: 1.08rem;
    line-height: 1.7;
}

.wee-archive-highlight-card {
    height: 100%;
    padding: 1.8rem;
    color: var(--wee-white);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(145deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
}

.wee-archive-highlight-label {
    display: inline-flex;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wee-archive-highlight-month {
    margin-bottom: 1.5rem;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.1;
}

.wee-archive-highlight-stat {
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
}

.wee-archive-highlight-copy {
    max-width: 28ch;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

/* ==========================================================================
   Event Listing Shell
   ========================================================================== */

.wee-events-wrapper {
    position: relative;
    width: 100%;
    padding: clamp(1rem, 2vw, 1.6rem);
    border-radius: var(--wee-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(180deg, var(--wee-shell-bg-soft) 0%, var(--wee-shell-bg-strong) 100%);
    box-shadow: var(--wee-shadow-sm);
}

.wee-events-wrapper::before {
    content: "";
    position: absolute;
    inset: 22px 14px auto;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--wee-shell-glow) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(18px);
    pointer-events: none;
}

.wee-events-wrapper > * {
    position: relative;
    z-index: 1;
}

.wee-event-list-heading {
    margin: 0 0 1.2rem;
    color: var(--wee-primary);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.wee-top-banner {
    box-shadow: var(--wee-shadow-sm);
}

.wee-events-topbar {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.wee-events-nav-shell {
    display: flex;
    justify-content: center;
}

.wee-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.4rem;
    margin-bottom: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wee-filters-left,
.wee-filters-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
    align-items: flex-end;
}

.wee-filters-right {
    margin-left: auto;
    justify-content: flex-end;
}

.wee-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: min(100%, 220px);
}

.wee-field-label,
.wee-filter-summary-label {
    color: var(--wee-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wee-input,
.wee-select {
    width: 100%;
    min-height: 52px;
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--wee-ink);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.08);
    font: inherit;
}

.wee-input::placeholder {
    color: #8a99aa;
}

.wee-input:focus-visible,
.wee-select:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(242, 139, 35, 0.6), 0 0 0 4px rgba(242, 139, 35, 0.12);
}

.wee-view-toggle {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}

.wee-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--wee-muted);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background var(--wee-transition), color var(--wee-transition), transform var(--wee-transition);
}

.wee-view-btn svg,
.wee-view-btn span {
    color: inherit;
    transition: color var(--wee-transition);
}

.wee-view-btn:hover,
.wee-view-btn:focus-visible {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 14px 24px rgba(15, 61, 94, 0.2);
    transform: translateY(-1px);
}

.wee-view-btn.active,
.wee-view-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 14px 24px rgba(15, 61, 94, 0.2);
}

.wee-events-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 1.4vw, 1rem);
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.wee-events-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.wee-events-month {
    flex: 0 1 auto;
    color: var(--wee-primary);
    font-size: 1em;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-align: center;
    text-transform: uppercase;
}

.wee-events-nav .wee-events-month-btn,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow,
.wee-calendar-nav .wee-cal-prev,
.wee-calendar-nav .wee-cal-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--wee-primary);
    cursor: pointer;
    transition: transform var(--wee-transition), opacity var(--wee-transition);
}

.wee-events-nav .wee-events-month-btn:hover,
.wee-events-nav .wee-events-month-btn:focus-visible,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow:hover:not(.is-disabled),
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow:focus-visible:not(.is-disabled),
.wee-calendar-nav .wee-cal-prev:hover,
.wee-calendar-nav .wee-cal-prev:focus-visible,
.wee-calendar-nav .wee-cal-next:hover,
.wee-calendar-nav .wee-cal-next:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.wee-pagination-btn.is-disabled,
.wee-pagination-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.wee-events-nav .wee-pagination-btn-icon,
.wee-calendar-nav .wee-month-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.68rem;
    height: 1.68rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 12px 22px rgba(15, 61, 94, 0.18);
    font-size: 0;
    line-height: 0;
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), background var(--wee-transition), opacity var(--wee-transition);
}

.wee-events-nav .wee-pagination-btn-icon svg,
.wee-calendar-nav .wee-month-nav-icon svg {
    display: block;
    width: 55%;
    height: 55%;
}

.wee-events-nav .wee-events-month-btn:hover .wee-pagination-btn-icon,
.wee-events-nav .wee-events-month-btn:focus-visible .wee-pagination-btn-icon,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow:hover:not(.is-disabled) .wee-pagination-btn-icon,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow:focus-visible:not(.is-disabled) .wee-pagination-btn-icon,
.wee-calendar-nav .wee-cal-prev:hover .wee-month-nav-icon,
.wee-calendar-nav .wee-cal-prev:focus-visible .wee-month-nav-icon,
.wee-calendar-nav .wee-cal-next:hover .wee-month-nav-icon,
.wee-calendar-nav .wee-cal-next:focus-visible .wee-month-nav-icon {
    background: rgba(255, 255, 255, 0.98);
    color: var(--wee-primary);
    box-shadow:
        inset 0 0 0 1px rgba(15, 61, 94, 0.14),
        0 12px 20px rgba(15, 61, 94, 0.12);
    transform: scale(1.05);
}

.wee-events-nav .wee-events-month-btn:focus-visible .wee-pagination-btn-icon,
.wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow:focus-visible:not(.is-disabled) .wee-pagination-btn-icon,
.wee-calendar-nav .wee-cal-prev:focus-visible .wee-month-nav-icon,
.wee-calendar-nav .wee-cal-next:focus-visible .wee-month-nav-icon {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        0 0 0 6px rgba(47, 96, 130, 0.2),
        inset 0 0 0 1px rgba(15, 61, 94, 0.14),
        0 12px 22px rgba(15, 61, 94, 0.16);
}

.wee-events-nav .wee-pagination-btn.is-disabled .wee-pagination-btn-icon,
.wee-events-nav .wee-pagination-btn:disabled .wee-pagination-btn-icon {
    background: rgba(15, 61, 94, 0.26);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    transform: none;
}

.wee-events-container {
    display: grid;
    grid-template-columns: repeat(var(--wee-columns), minmax(0, 1fr));
    gap: 1.5rem;
}

.wee-events-display {
    display: grid;
    position: relative;
    gap: 0;
}

.wee-events-panel.is-hidden,
.wee-events-calendar-panel.is-hidden {
    display: none;
}

.wee-events-panel,
.wee-events-calendar-panel {
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease, filter 320ms ease;
}

.wee-events-wrapper.is-transitioning .wee-events-panel:not(.is-hidden),
.wee-events-wrapper.is-transitioning .wee-events-calendar-panel:not(.is-hidden) {
    opacity: 0.24;
    filter: blur(5px);
    transform: translate3d(var(--wee-panel-shift, 0), 0, 0) scale(0.985);
}

.wee-events-wrapper.is-loading-prev {
    --wee-panel-shift: 28px;
}

.wee-events-wrapper.is-loading-next {
    --wee-panel-shift: -28px;
}

.wee-events-wrapper.is-transitioning .wee-events-month-btn {
    pointer-events: none;
}

.wee-no-events {
    grid-column: 1 / -1;
    margin: 0;
    padding: 3rem 1.5rem;
    border-radius: var(--wee-radius);
    text-align: center;
    color: var(--wee-ink-soft);
    background: linear-gradient(135deg, rgba(192, 220, 239, 0.45) 0%, rgba(192, 220, 239, 0.62) 100%);
}

.wee-events-wrapper[data-fixed-view="true"] .wee-events-container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ==========================================================================
   Event Card
   ========================================================================== */

.wee-event-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: calc(var(--wee-radius) + 4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 254, 255, 0.98) 100%);
    box-shadow: var(--wee-shadow-sm);
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), filter var(--wee-transition);
}

.wee-event-card:hover,
.wee-event-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--wee-shadow-md);
}

.wee-card-media {
    position: relative;
    min-width: 0;
}

.wee-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    text-decoration: none;
}

.wee-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 29, 49, 0.05) 0%, rgba(8, 29, 49, 0) 40%, rgba(8, 29, 49, 0.24) 100%);
    pointer-events: none;
}

.wee-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wee-event-card:hover .wee-card-image img,
.wee-event-card:focus-within .wee-card-image img {
    transform: scale(1.06);
}

.wee-card-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.8rem 0.9rem;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    text-align: center;
    box-shadow: 0 18px 36px rgba(15, 61, 94, 0.24);
}

.wee-card-date-day {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.wee-card-date-month {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wee-card-date-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.wee-card-date-rail {
    display: none;
}

.wee-card-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wee-card-status-soldout {
    background: rgba(186, 26, 26, 0.94);
    color: var(--wee-white);
}

.wee-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.45rem;
}

.wee-card-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.wee-card-category-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--wee-accent-soft);
    color: var(--wee-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wee-card-title {
    margin: 0;
    color: var(--wee-primary);
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.wee-card-title a {
    color: inherit;
    text-decoration: none;
}

.wee-card-title a:hover,
.wee-card-title a:focus-visible {
    color: var(--wee-primary-soft);
}

.wee-card-excerpt {
    margin: 0;
    color: var(--wee-ink-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.wee-card-topline:empty,
.wee-card-meta:empty {
    display: none;
}

.wee-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.wee-card-meta > span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    background: rgba(239, 244, 255, 0.96);
    color: var(--wee-primary-soft);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
}

.wee-card-price {
    background: rgba(255, 220, 195, 0.72);
}

.wee-card-capacity {
    background: rgba(223, 247, 242, 0.86);
    color: var(--wee-success);
}

.wee-event-card.is-sold-out .wee-card-capacity {
    background: var(--wee-danger-soft);
    color: var(--wee-danger);
}

.wee-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.wee-card-footer .wee-card-cta-secondary {
    margin-left: auto;
}

.wee-view-list {
    grid-template-columns: 1fr !important;
}

.wee-view-list .wee-event-card {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    height: var(--wee-event-list-max-height, 250px);
}

.wee-view-list .wee-card-media {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: stretch;
    height: 100%;
}

.wee-view-list .wee-card-date-rail {
    display: inline-flex;
    min-height: 100%;
    border-radius: 0;
    border-top-left-radius: calc(var(--wee-radius) + 4px);
    border-bottom-left-radius: calc(var(--wee-radius) + 4px);
}

.wee-view-list .wee-card-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
}

.wee-view-list .wee-card-date-overlay {
    display: none;
}

.wee-view-list .wee-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "topline topline"
        "title title"
        "excerpt excerpt"
        "meta footer";
    align-content: stretch;
    gap: 0.5rem 1rem;
    padding: 1.15rem 1.3rem;
    height: 100%;
    overflow: hidden;
}

.wee-view-list .wee-card-topline {
    grid-area: topline;
}

.wee-view-list .wee-card-title {
    grid-area: title;
    font-size: clamp(1.2rem, 1.6vw, 1.7rem);
}

.wee-view-list .wee-card-title a {
    display: block;
    overflow: hidden;
    max-height: calc(1.18em * 2.1);
}

.wee-view-list .wee-card-excerpt {
    grid-area: excerpt;
    display: block;
    overflow: hidden;
    max-height: calc(1.58em * 3.1);
    line-height: 1.58;
}

.wee-view-list .wee-card-excerpt,
.wee-view-catalogue .wee-card-excerpt {
    max-width: 62ch;
}

.wee-view-list .wee-card-excerpt {
    margin-bottom: 0;
}

.wee-view-list .wee-card-meta {
    grid-area: meta;
    align-self: end;
    margin-top: 0;
}

.wee-view-list .wee-card-footer {
    grid-area: footer;
    align-self: end;
    justify-self: end;
    margin-top: 0;
    gap: 0.55rem;
}

.wee-view-list .wee-card-meta > span,
.wee-view-catalogue .wee-card-meta > span {
    font-size: 1rem;
}

.wee-view-list .wee-card-meta > span {
    min-height: 36px;
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
}

.wee-view-list .wee-card-cta {
    min-height: 42px;
    padding: 0.75rem 1.1rem;
    font-size: 0.82rem;
}

.wee-view-list .wee-card-footer .wee-card-cta-secondary {
    margin-left: 0;
}

.wee-view-catalogue {
    grid-template-columns: 1fr !important;
}

.wee-view-catalogue .wee-event-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    align-items: stretch;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.98) 55%, rgba(206, 229, 255, 0.32) 100%);
    box-shadow: 0 24px 48px rgba(15, 61, 94, 0.12);
}

.wee-view-catalogue .wee-card-media {
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 39, 65, 0.05) 0%, rgba(15, 61, 94, 0.12) 100%);
}

.wee-view-catalogue .wee-card-image {
    height: 100%;
    min-height: 100%;
    border-radius: calc(var(--wee-radius) + 4px);
}

.wee-view-catalogue .wee-card-date-rail {
    display: none;
}

.wee-view-catalogue .wee-card-body {
    justify-content: center;
    padding: 1.8rem 1.9rem;
}

.wee-view-catalogue .wee-card-title {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.wee-view-catalogue .wee-card-excerpt {
    max-width: 58ch;
    font-size: 1rem;
}

.wee-view-catalogue .wee-card-footer .wee-card-cta-secondary {
    margin-left: 0;
}

.wee-view-grid .wee-event-card.no-image .wee-card-media,
.wee-events-wrapper[data-fixed-view="true"] .wee-event-card.no-image .wee-card-media {
    padding: 1rem 1rem 0;
}

.wee-view-grid .wee-event-card.no-image .wee-card-date-rail,
.wee-events-wrapper[data-fixed-view="true"] .wee-event-card.no-image .wee-card-date-rail {
    display: inline-flex;
}

/* ==========================================================================
   Calendar
   ========================================================================== */

.wee-calendar-wrapper {
    position: relative;
}

.wee-calendar-shell {
    padding: clamp(1rem, 2vw, 1.35rem);
    border-radius: var(--wee-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background:
        radial-gradient(circle at top left, var(--wee-shell-glow) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, var(--wee-shell-bg-soft) 0%, var(--wee-shell-bg-strong) 100%);
    box-shadow: var(--wee-shadow-sm);
}

.wee-events-wrapper .wee-events-calendar-panel .wee-calendar-nav {
    display: none;
}

.wee-events-wrapper .wee-events-calendar-panel .wee-calendar-toolbar {
    justify-content: flex-start;
}

.wee-calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: calc(var(--wee-radius) + 2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(234, 245, 255, 0.84) 100%);
    box-shadow: inset 0 0 0 1px rgba(47, 96, 130, 0.08);
}

.wee-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.05rem;
    align-items: center;
}

.wee-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wee-primary);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wee-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7);
}

.wee-legend-dot-primary {
    background: linear-gradient(135deg, var(--wee-primary) 0%, var(--wee-primary-soft) 100%);
    box-shadow: 0 0 0 5px rgba(15, 61, 94, 0.16);
}

.wee-legend-dot-today {
    background: #8bb8d8;
    box-shadow: 0 0 0 5px rgba(139, 184, 216, 0.26);
}

.wee-legend-dot-selected {
    background: #2f6082;
    box-shadow: 0 0 0 5px rgba(47, 96, 130, 0.24);
}

.wee-calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}

.wee-cal-month-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--wee-primary);
    font-size: 1em;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wee-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
}

.wee-calendar-board,
.wee-calendar-selection {
    padding: 1rem;
    border-radius: calc(var(--wee-radius) + 2px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.06);
}

.wee-calendar-selection {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 246, 255, 0.94) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(47, 96, 130, 0.14),
        0 18px 34px rgba(15, 61, 94, 0.08);
}

.wee-calendar-selection .wee-kicker {
    color: var(--wee-primary-soft);
}

.wee-calendar-selection .wee-kicker::before {
    background: linear-gradient(135deg, #2f6082 0%, #8bb8d8 100%);
}

.wee-calendar-header,
.wee-calendar-body {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

.wee-calendar-header {
    margin-bottom: 0.7rem;
}

.wee-calendar-header > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--wee-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wee-cal-day {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 0.8rem;
    min-height: 124px;
    padding: 0.85rem 0.8rem 0.8rem;
    border: 1px solid rgba(15, 61, 94, 0.06);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 253, 255, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    color: var(--wee-primary);
}

.wee-cal-empty {
    background: transparent;
    box-shadow: none;
}

.wee-cal-has-events {
    cursor: pointer;
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), background var(--wee-transition);
}

.wee-cal-has-events:hover,
.wee-cal-has-events:focus-visible {
    z-index: 2;
    transform: translateY(-2px);
    border-color: rgba(47, 96, 130, 0.2);
    box-shadow: 0 14px 26px rgba(15, 61, 94, 0.1);
}

.wee-cal-day.is-selected {
    z-index: 2;
    border-color: rgba(15, 61, 94, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 242, 251, 0.98) 100%);
    box-shadow:
        0 18px 28px rgba(15, 61, 94, 0.12),
        inset 0 0 0 1px rgba(47, 96, 130, 0.18);
}

.wee-cal-today {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 244, 254, 0.92) 100%);
}

.wee-cal-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(139, 184, 216, 0.88);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(232, 244, 254, 0.96) 0%, rgba(244, 250, 255, 0.96) 100%);
    color: var(--wee-primary-soft);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wee-cal-today .wee-cal-day-num {
    border-color: rgba(139, 184, 216, 0.96);
    background: linear-gradient(180deg, rgba(192, 220, 239, 0.95) 0%, rgba(232, 244, 254, 0.98) 100%);
    color: var(--wee-primary);
}

.wee-cal-day.is-selected .wee-cal-day-num {
    border-color: rgba(0, 39, 65, 0.96);
    background: linear-gradient(180deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow:
        0 12px 20px rgba(15, 61, 94, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wee-cal-markers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.wee-cal-marker {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 10px 16px rgba(15, 61, 94, 0.12);
    transition: transform var(--wee-transition), box-shadow var(--wee-transition), filter var(--wee-transition);
}

.wee-cal-marker:hover {
    transform: translateY(-2px) scale(1.12);
    box-shadow: 0 16px 24px rgba(15, 61, 94, 0.18);
    filter: saturate(1.04);
}

.wee-cal-marker::before,
.wee-cal-marker::after {
    position: absolute;
    left: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--wee-transition), transform var(--wee-transition);
}

.wee-cal-marker::before {
    content: "";
    bottom: calc(100% + 6px);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(47, 96, 130, 0.16);
    border-bottom: 1px solid rgba(47, 96, 130, 0.16);
    transform: translate(-50%, 10px) rotate(45deg);
    box-shadow: 0 14px 26px rgba(15, 61, 94, 0.1);
    z-index: 3;
}

.wee-cal-marker::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 12px);
    min-width: 108px;
    max-width: 160px;
    padding: 0.62rem 0.78rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(47, 96, 130, 0.16);
    color: var(--wee-primary);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    transform: translate(-50%, 12px);
    box-shadow: 0 20px 36px rgba(15, 61, 94, 0.14);
    z-index: 4;
}

.wee-cal-marker:hover::before {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
}

.wee-cal-marker:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.wee-cal-marker-1 {
    background: linear-gradient(135deg, var(--wee-primary) 0%, var(--wee-primary-soft) 100%);
}

.wee-cal-marker-2 {
    background: linear-gradient(135deg, #2f6082 0%, #447aa0 100%);
}

.wee-cal-marker-3 {
    background: linear-gradient(135deg, #6ea7cd 0%, #8bb8d8 100%);
}

.wee-cal-marker-4 {
    background: linear-gradient(135deg, #c0dcef 0%, #e4f1fb 100%);
}

.wee-cal-day.is-selected .wee-cal-marker {
    box-shadow: 0 14px 20px rgba(15, 61, 94, 0.16);
}

.wee-calendar-selected-date {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.2rem;
}

.wee-calendar-selected-day-number {
    color: var(--wee-primary);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.wee-calendar-selected-label {
    color: var(--wee-primary-soft);
    font-size: 1.05rem;
    font-weight: 700;
}

.wee-calendar-sidebar-body {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.wee-calendar-side-event {
    padding-left: 1.05rem;
    border-left: 3px solid rgba(47, 96, 130, 0.28);
}

.wee-calendar-side-event.is-cancelled {
    opacity: 0.72;
}

.wee-calendar-side-time {
    margin: 0 0 0.25rem;
    color: var(--wee-primary-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wee-calendar-side-title {
    margin: 0 0 0.3rem;
    color: var(--wee-primary);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
}

.wee-calendar-side-category,
.wee-calendar-side-venue {
    margin: 0.15rem 0 0;
    color: var(--wee-ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.wee-calendar-side-note {
    margin-top: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(232, 244, 254, 0.96) 0%, rgba(239, 244, 255, 0.92) 100%);
    color: var(--wee-primary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.wee-calendar-empty {
    margin: 0;
    color: var(--wee-ink-soft);
    line-height: 1.65;
}

.wee-calendar-help-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(238, 247, 255, 0.98) 0%, rgba(220, 233, 255, 0.88) 100%);
    box-shadow: inset 0 0 0 1px rgba(47, 96, 130, 0.12);
}

.wee-calendar-help-card h3 {
    margin: 0 0 0.35rem;
    color: var(--wee-primary);
    font-size: 1rem;
}

.wee-calendar-help-card p {
    margin: 0;
    color: var(--wee-ink-soft);
    line-height: 1.6;
}

.wee-calendar-sidebar-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
}

/* ==========================================================================
   Single Event
   ========================================================================== */

.wee-single-event {
    background:
        radial-gradient(circle at top left, rgba(206, 229, 255, 0.88) 0%, rgba(206, 229, 255, 0) 28%),
        radial-gradient(circle at bottom right, rgba(255, 220, 195, 0.5) 0%, rgba(255, 220, 195, 0) 22%),
        var(--wee-surface);
    padding: clamp(1.2rem, 3vw, 2.4rem);
}

.wee-single-shell {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.wee-single-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    margin-bottom: 1.6rem;
}

.wee-single-hero-copy,
.wee-single-hero-media,
.wee-content-panel {
    border-radius: var(--wee-radius-lg);
    box-shadow: var(--wee-shadow-sm);
}

.wee-single-hero-copy {
    padding: clamp(1.8rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 244, 255, 0.98) 100%);
}

.wee-event-title {
    margin: 0;
    color: var(--wee-primary);
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.wee-event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.wee-event-intro {
    max-width: 50ch;
    margin: 1.1rem 0 0;
    color: var(--wee-ink-soft);
    font-size: 1.08rem;
    line-height: 1.75;
}

.wee-event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.35rem;
}

.wee-hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(239, 244, 255, 0.95);
    color: var(--wee-primary-soft);
    font-size: 0.85rem;
    font-weight: 700;
}

.wee-hero-pill-accent {
    background: var(--wee-accent-soft);
    color: #8a4a11;
}

.wee-event-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.45rem;
}

.wee-single-hero-media {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(220, 233, 255, 0.98) 100%);
}

.wee-event-hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--wee-radius) + 4px);
    min-height: 100%;
}

.wee-event-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.wee-event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wee-single-date-card {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 102px;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(11, 28, 48, 0.82);
    color: var(--wee-white);
    backdrop-filter: blur(14px);
}

.wee-single-date-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.wee-single-date-month {
    margin-top: 0.25rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wee-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.2rem;
}

.wee-single-main,
.wee-single-sidebar {
    display: grid;
    gap: 1.2rem;
}

.wee-content-panel {
    padding: clamp(1.3rem, 3vw, 1.8rem);
    background: rgba(255, 255, 255, 0.94);
}

.wee-event-description {
    color: var(--wee-ink);
    font-size: 1rem;
    line-height: 1.86;
}

.wee-event-description > *:first-child {
    margin-top: 0;
}

.wee-event-description > *:last-child {
    margin-bottom: 0;
}

.wee-event-meta {
    display: grid;
    gap: 0.95rem;
}

.wee-meta-item {
    display: grid;
    gap: 0.25rem;
}

.wee-meta-item strong {
    color: var(--wee-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wee-meta-item span,
.wee-meta-item a {
    color: var(--wee-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
    text-decoration: none;
}

.wee-meta-item a:hover,
.wee-meta-item a:focus-visible {
    color: var(--wee-primary-soft);
}

.wee-dates-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wee-date-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(239, 244, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.wee-date-item-main,
.wee-date-item-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.wee-date-day {
    color: var(--wee-primary);
    font-size: 0.96rem;
    font-weight: 800;
}

.wee-date-time,
.wee-date-note {
    color: var(--wee-ink-soft);
    font-size: 0.9rem;
}

.wee-date-cancelled {
    opacity: 0.72;
}

.wee-event-map .acf-map {
    width: 100%;
    min-height: 360px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(220, 233, 255, 0.94) 0%, rgba(239, 244, 255, 1) 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.08);
}

/* ==========================================================================
   Booking
   ========================================================================== */

.wee-booking-section {
    padding: clamp(1.3rem, 3vw, 1.8rem);
    border-radius: var(--wee-radius-lg);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(145deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: var(--wee-shadow-md);
}

.wee-booking-section .wee-panel-kicker,
.wee-booking-section .wee-panel-kicker::before,
.wee-booking-section .wee-section-title,
.wee-booking-section .wee-booking-label,
.wee-booking-section .wee-price-caption,
.wee-booking-section .wee-availability,
.wee-booking-section .wee-booking-empty,
.wee-booking-section .wee-booking-empty p {
    color: var(--wee-white);
}

.wee-booking-section .wee-panel-kicker::before {
    background: rgba(255, 255, 255, 0.82);
}

.wee-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.wee-price-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.wee-price-caption {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wee-availability {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    width: fit-content;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.84rem;
    font-weight: 800;
}

.wee-booking-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.wee-booking-field {
    display: grid;
    gap: 0.45rem;
}

.wee-booking-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wee-booking-form input {
    width: 100%;
    min-height: 52px;
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--wee-ink);
    font: inherit;
}

.wee-book-button {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: var(--wee-white);
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform var(--wee-transition), filter var(--wee-transition);
}

.wee-book-button:hover,
.wee-book-button:focus-visible {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.wee-booking-empty {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
}

.wee-booking-empty-title {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 800;
}

/* ==========================================================================
   Widgets / Upcoming / Categories / Messages
   ========================================================================== */

.wee-widget-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wee-widget-item {
    padding: 0;
}

.wee-widget-link {
    display: flex;
    gap: 0.9rem;
    padding: 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--wee-primary);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.06);
    transition: transform var(--wee-transition), box-shadow var(--wee-transition);
}

.wee-widget-link:hover,
.wee-widget-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--wee-shadow-sm);
}

.wee-widget-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
}

.wee-widget-info {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.wee-widget-title {
    color: var(--wee-primary);
    font-weight: 800;
    line-height: 1.35;
}

.wee-widget-date,
.wee-widget-empty {
    color: var(--wee-ink-soft);
    font-size: 0.84rem;
}

.wee-widget-all-link {
    margin-top: 0.85rem;
    background: rgba(239, 244, 255, 0.96);
    color: var(--wee-primary);
}

.wee-upcoming-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wee-upcoming-item {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.06);
}

.wee-upcoming-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 72px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
}

.wee-upcoming-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.wee-upcoming-month {
    margin-top: 0.18rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wee-upcoming-content h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 800;
}

.wee-upcoming-content h4 a {
    color: var(--wee-primary);
    text-decoration: none;
}

.wee-upcoming-content h4 a:hover,
.wee-upcoming-content h4 a:focus-visible {
    color: var(--wee-primary-soft);
}

.wee-upcoming-time {
    color: var(--wee-ink-soft);
    font-size: 0.86rem;
}

.wee-event-categories.wee-category-buttons,
.wee-event-categories.wee-category-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wee-category-button,
.wee-event-categories.wee-category-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--wee-primary);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.08);
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform var(--wee-transition), background var(--wee-transition), color var(--wee-transition);
}

.wee-category-button:hover,
.wee-category-button:focus-visible,
.wee-event-categories.wee-category-list a:hover,
.wee-event-categories.wee-category-list a:focus-visible {
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    transform: translateY(-1px);
}

.wee-message {
    z-index: 10000;
}

.wee-message-success {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: min(92vw, 360px);
    border-radius: 20px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: var(--wee-white);
    box-shadow: var(--wee-shadow-lg);
}

.wee-message-error {
    margin-top: 0.85rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--wee-white);
}

.wee-message-inner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
}

.wee-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.wee-ai-shell {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

.wee-ai-recommendations {
    display: none;
    width: min(92vw, 380px);
}

.wee-ai-panel {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--wee-shadow-lg);
    border: 1px solid rgba(15, 61, 94, 0.08);
}

.wee-ai-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
}

.wee-ai-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.wee-ai-header p {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
    line-height: 1.5;
}

.wee-ai-events {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.wee-ai-event-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 244, 255, 0.86) 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 61, 94, 0.06);
}

.wee-ai-event-card h4 {
    margin: 0;
    color: var(--wee-primary);
    font-size: 1rem;
    font-weight: 800;
}

.wee-ai-insight {
    color: var(--wee-ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.wee-ai-event-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.wee-ai-match {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.88);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
}

.wee-ai-event-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wee-accent) 0%, #d97706 100%);
    color: var(--wee-white);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.wee-ai-event-link:hover,
.wee-ai-event-link:focus-visible {
    transform: translateY(-1px);
}

.wee-ai-recommend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wee-primary-soft) 0%, var(--wee-primary) 100%);
    color: var(--wee-white);
    box-shadow: 0 16px 30px rgba(15, 61, 94, 0.24);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.wee-ai-recommend-btn:hover,
.wee-ai-recommend-btn:focus-visible {
    transform: translateY(-1px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

    .wee-calendar-layout,
    .wee-single-layout {
        grid-template-columns: 1fr;
    }

    .wee-calendar-sidebar,
    .wee-single-sidebar {
        order: 2;
    }
}

@media (max-width: 899px) {
    .wee-archive-hero,
    .wee-single-hero {
        grid-template-columns: 1fr;
    }

    .wee-view-list .wee-event-card,
    .wee-view-catalogue .wee-event-card {
        grid-template-columns: 1fr;
    }

    .wee-view-list .wee-card-media {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .wee-view-list .wee-card-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topline"
            "title"
            "excerpt"
            "meta"
            "footer";
    }

    .wee-view-list .wee-card-footer {
        justify-self: stretch;
    }

    .wee-view-catalogue .wee-card-media {
        padding: 0;
        background: transparent;
    }

    .wee-events-container {
        grid-template-columns: 1fr;
    }

    .wee-filters {
        padding: 1rem;
    }

    .wee-filters-right {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 699px) {
    .wee-archive-events,
    .wee-single-event {
        padding: 1rem;
    }

    .wee-events-wrapper,
    .wee-calendar-shell,
    .wee-content-panel,
    .wee-booking-section,
    .wee-single-hero-copy,
    .wee-single-hero-media {
        border-radius: 24px;
    }

    .wee-archive-title,
    .wee-event-title {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .wee-ai-shell {
        right: 16px;
        bottom: 16px;
        left: 16px;
        align-items: stretch;
    }

    .wee-ai-recommendations {
        width: 100%;
    }

    .wee-ai-recommend-btn {
        align-self: flex-end;
    }

    .wee-filters-left,
    .wee-filters-right,
    .wee-calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wee-events-nav {
        justify-content: center;
        align-items: center;
        gap: 0.65rem;
    }

    .wee-events-nav-shell {
        width: 100%;
    }

    .wee-events-month {
        font-size: clamp(1.15rem, 6vw, 1.4rem);
    }

    .wee-events-nav .wee-events-month-btn,
    .wee-events-nav .wee-pagination-btn.wee-pagination-btn-arrow,
    .wee-calendar-nav .wee-cal-prev,
    .wee-calendar-nav .wee-cal-next {
        width: 2.25rem;
        height: 2.25rem;
        flex: 0 0 2.25rem;
    }

    .wee-view-toggle,
    .wee-calendar-nav {
        width: 100%;
        justify-content: space-between;
    }

    .wee-view-btn {
        flex: 1;
        justify-content: center;
    }

    .wee-view-list .wee-card-media,
    .wee-view-list .wee-event-card,
    .wee-view-catalogue .wee-event-card {
        grid-template-columns: 1fr;
    }

    .wee-view-list .wee-card-date-rail {
        display: none;
    }

    .wee-view-list .wee-card-date-overlay {
        display: inline-flex;
    }

    .wee-view-list .wee-event-card {
        height: auto;
    }

    .wee-view-list .wee-card-media,
    .wee-view-list .wee-card-body,
    .wee-view-list .wee-card-image {
        height: auto;
        overflow: visible;
    }

    .wee-card-body,
    .wee-content-panel,
    .wee-booking-section {
        padding: 1.15rem;
    }

    .wee-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .wee-card-footer .wee-card-cta-secondary {
        margin-left: 0;
    }

    .wee-calendar-header,
    .wee-calendar-body {
        gap: 0.35rem;
    }

    .wee-cal-day {
        min-height: 92px;
        padding: 0.7rem 0.55rem;
        border-radius: 18px;
    }

    .wee-cal-day-num {
        min-width: 2rem;
        min-height: 2rem;
        padding-inline: 0.7rem;
        font-size: 0.9rem;
    }

    .wee-cal-markers {
        gap: 0.35rem;
    }

    .wee-cal-marker {
        width: 10px;
        height: 10px;
    }

    .wee-cal-marker::after {
        min-width: 94px;
        max-width: 122px;
        padding: 0.5rem 0.62rem;
        font-size: 0.64rem;
    }

    .wee-event-image {
        min-height: 280px;
    }

    .wee-single-date-card {
        min-width: 86px;
        padding: 0.8rem;
    }

    .wee-calendar-selected-day-number {
        font-size: 2.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wee-event-card,
    .wee-card-image img,
    .wee-button,
    .wee-card-cta,
    .wee-view-btn,
    .wee-pagination-btn,
    .wee-cal-has-events,
    .wee-book-button,
    .wee-widget-link,
    .wee-calendar-sidebar-cta,
    .wee-category-button,
    .wee-event-categories.wee-category-list a {
        transition: none !important;
    }

    .wee-spinner {
        animation-duration: 1.5s;
    }
}
