/* Event schedule styles */
.event-schedule {
    padding: 40px 0 120px;
    position: relative;
    z-index: 1;
}

/* Wider container when showing all 7 days so the grid fits without overflow */
.event-schedule--fit-all-days .container {
    max-width: 1600px;
}

.event-schedule--fit-all-days .social-section-header {
    display: none;
}

/* Narrower day columns on calendar page */
.event-schedule--fit-all-days .event-schedule-grid {
    --event-schedule-day-width: 140px;
}

.event-schedule-week-range {
    display: none;
}

.event-schedule .social-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.event-schedule .social-section-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    margin: 0 0 8px;
}

.event-schedule .social-section-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: var(--text-secondary);
    margin: 0;
}

/* Use full container width — max-content + child width:100% caused cyclic sizing: first paint
   often stayed narrow (hero-sized) until scroll/reflow expanded the schedule "slider". */
.event-schedule-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: var(--bg-secondary);
    border: 1px solid var(--alfa-grey-1);
    border-radius: 16px;
    padding: 24px;
}

.event-schedule-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.event-schedule-filter {
    position: relative;
    width: 300px;
    flex-shrink: 0;
    margin-left: auto;
}

.event-schedule-filter.is-disabled .event-schedule-filter-trigger {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.event-schedule-filter.is-disabled .event-schedule-filter-trigger .fa-angle-down {
    opacity: 0.5;
}

.event-schedule-filter-trigger {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s, border-color 0.3s, background-color 0.3s;
}

.event-schedule-filter-trigger:hover,
.event-schedule-filter-trigger:active,
.event-schedule-filter-trigger:focus-visible {
    color: var(--white-100);
    border-color: var(--white-100);
    background-color: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 10px rgba(22, 223, 253, 0.85), 0 0 22px rgba(22, 223, 253, 0.6), 0 0 36px rgba(22, 223, 253, 0.4);
}

.event-schedule-filter-trigger:hover .event-schedule-filter-label,
.event-schedule-filter-trigger:hover .event-schedule-filter-value,
.event-schedule-filter-trigger:active .event-schedule-filter-label,
.event-schedule-filter-trigger:active .event-schedule-filter-value,
.event-schedule-filter-trigger:focus-visible .event-schedule-filter-label,
.event-schedule-filter-trigger:focus-visible .event-schedule-filter-value {
    color: var(--white-100);
}

.event-schedule-filter-trigger:hover .fa-angle-down,
.event-schedule-filter-trigger:active .fa-angle-down,
.event-schedule-filter-trigger:focus-visible .fa-angle-down {
    color: var(--white-100);
}

.event-schedule-filter-label {
    font-size: 14px;
}

.event-schedule-filter-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-left: auto;
    margin-right: 4px;
}

.event-schedule-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 5;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.event-schedule-filter-menu.is-open {
    display: block;
}

.event-schedule-filter-option {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: left;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.event-schedule-filter-option:hover,
.event-schedule-filter-option.is-active {
    background-color: rgba(18, 30, 54, 0.9);
    color: var(--text-primary);
}

.event-schedule-year {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.event-schedule-year-label {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: var(--text-secondary);
}

.event-schedule-year-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Year control reuses event-type trigger + menu; narrow trigger (not full row width) */
.event-schedule-year-trigger {
    width: auto;
    min-width: 80px;
}

.event-schedule-year-trigger .event-schedule-filter-value {
    margin-left: 0;
    font-size: 20px;
    line-height: 28px;
}

.event-schedule-year-menu {
    min-width: 100%;
}

.event-schedule-month {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.event-schedule-month-label {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 120px;
    text-align: center;
}

.event-schedule-month-nav {
    width: 60px;
    height: 60px;
    border: none;
    background-color: transparent;
    color: white;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.event-schedule-month-nav .icon-btn-icon {
    width: 24px;
    height: 24px;
}

.event-schedule-month-nav .icon-angle-left,
.event-schedule-month-nav .icon-angle-right {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s, opacity 0.3s;
}

.event-schedule-month-nav:disabled {
    opacity: 0.4;
    cursor: pointer;
}

.event-schedule-month-nav:disabled .icon-angle-left,
.event-schedule-month-nav:disabled .icon-angle-right {
    opacity: 0.6;
}

.event-schedule-month-nav:not(:disabled):hover .icon-angle-left,
.event-schedule-month-nav:not(:disabled):hover .icon-angle-right,
.event-schedule-month-nav:not(:disabled):active .icon-angle-left,
.event-schedule-month-nav:not(:disabled):active .icon-angle-right {
    transform: scale(1.25);
}

.event-schedule-today-btn {
    margin-left: 8px;
    padding: 8px 20px;
    font-size: 20px;
    line-height: 28px;
    transition: color 0.3s, text-shadow 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Same hover / press as header nav links + header outline button */
.event-schedule-today-btn.social-btn-secondary:hover,
.event-schedule-today-btn.social-btn-secondary:active,
.event-schedule-today-btn.social-btn-secondary:focus-visible {
    color: var(--white-100);
    border-color: var(--white-100);
    background-color: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 10px rgba(22, 223, 253, 0.85), 0 0 22px rgba(22, 223, 253, 0.6), 0 0 36px rgba(22, 223, 253, 0.4);
}

.event-schedule-grid-wrapper {
    overflow: visible;
    width: 100%;
    position: relative;
}

.event-schedule-grid {
    display: grid;
    width: 100%;
    grid-template-columns: 100px repeat(var(--event-schedule-day-count, 2), minmax(var(--event-schedule-day-width, 164px), 1fr));
    grid-template-rows: minmax(58px, auto);
    grid-auto-rows: minmax(115px, auto);
    gap: 0;
    position: relative;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.event-schedule-cell {
    border-right: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    padding: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    box-sizing: border-box;
    background-color: rgba(18, 30, 54, 0.9);
}

.event-schedule-cell.is-last-column {
    border-right: none;
}

.event-schedule-header-cell {
    font-weight: 500;
    color: var(--text-primary);
    background-color: rgba(18, 30, 54, 1);
}

.event-schedule--compact-day-headers .event-schedule-day-label--short {
    display: none;
}

.event-schedule-week-cell {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    color: var(--text-primary);
}

.event-schedule-week-range {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.event-schedule-day-cell {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}

.event-schedule-date {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    width: 100%;
    text-align: right;
}

.event-schedule-events {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-schedule-event {
    position: relative;
    z-index: 1;
    padding: 8px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    border: 2px solid transparent;
}

.event-schedule-event-label,
.event-schedule-week-title,
.event-schedule-week-range {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-schedule-event-time {
    font-weight: 500;
    color: var(--text-secondary);
}

.event-schedule-event-blue {
    background-color: var(--schedule-event-course-bg);
    border-color: var(--schedule-event-course-border);
}

.event-schedule-event-teal {
    background-color: rgba(42, 54, 75, 0.8);
    border-color: rgba(60, 180, 120, 0.8);
}

.event-schedule-event-purple {
    background-color: rgba(42, 54, 75, 0.8);
    border-color: rgba(255, 21, 151, 0.7);
}

.event-schedule-event[data-event-type*="party"] {
    border-color: #ff1597;
}

.event-schedule-event-neutral {
    background-color: rgba(42, 54, 75, 0.8);
    border-color: rgba(129, 133, 149, 0.6);
}

.event-schedule-event.is-hidden {
    display: none;
}

.event-schedule-cell.is-hidden,
.event-schedule-cell.is-month-hidden,
.event-schedule-cell.is-day-hidden {
    display: none;
}

.event-schedule-day-cell.is-adjacent-month .event-schedule-date {
    color: var(--text-secondary);
    opacity: 0.85;
}

.event-schedule-day-cell.is-adjacent-month {
    background-color: rgba(129, 133, 149, 0.06);
}

.event-schedule-day-cell.is-today {
    background-color: rgba(22, 223, 253, 0.08);
    outline: 2px solid rgba(22, 223, 253, 0.6);
    outline-offset: -2px;
    box-shadow: 0 0 12px rgba(22, 223, 253, 0.25);
}

.event-schedule-day-cell.is-today .event-schedule-date {
    color: var(--neon-500);
}

.event-schedule-day-cell.is-past {
    opacity: 0.5;
    background-color: rgba(18, 30, 54, 0.6);
}

.event-schedule-day-cell.is-past .event-schedule-date,
.event-schedule-day-cell.is-past .event-schedule-event {
    color: var(--text-secondary);
}

.event-schedule-day-cell.is-past .event-schedule-event {
    border-color: rgba(129, 133, 149, 0.4);
}

/* Days outside the selected month (previous or next): match light adjacent background; don’t apply heavy is-past treatment */
.event-schedule-day-cell.is-adjacent-month.is-past {
    opacity: 1;
    background-color: rgba(129, 133, 149, 0.06);
}

.event-schedule-empty {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin: 12px 0 0;
}

/* Event popup (calendar page) */
.event-schedule-event[data-event-clickable="1"] {
    cursor: pointer;
}

.event-schedule-event[data-event-clickable="1"]:hover {
    filter: brightness(1.1);
}

.event-schedule-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.event-schedule-popup-overlay.active {
    display: flex;
}

.event-schedule-popup {
    background-color: var(--bg-secondary);
    border: 1px solid var(--alfa-grey-1);
    border-radius: 16px;
    padding: 32px;
    max-width: min(560px, 100%);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Scrolls title + details + CTA; ::before radial stays on .event-schedule-popup (does not scroll). */
.event-schedule-popup-scroll {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
}

.event-schedule-popup::before {
    content: '';
    position: absolute;
    right: -180px;
    bottom: -200px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(60, 150, 255, 0.16) 0%, rgba(5, 18, 43, 0) 70%);
    pointer-events: none;
    z-index: 0;
}


.event-schedule-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.event-schedule-popup-close:hover {
    color: var(--text-primary);
}

.event-schedule-popup-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding-right: 40px;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-schedule-popup-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-schedule-popup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
    color: var(--text-primary);
}

.event-schedule-popup-location-wrap {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.event-schedule-popup-location-wrap .event-schedule-popup-text {
    min-width: 0;
    overflow-wrap: break-word;
    /* Do not let shared copy-location JS set nowrap/margin — it breaks the grid and overlaps the icon. */
    white-space: normal !important;
    margin-right: 0 !important;
}

.event-schedule-popup-location-wrap .event-schedule-popup-copy {
    grid-column: 2;
}

.event-schedule-popup-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-schedule-popup-icon .icon-calendar,
.event-schedule-popup-icon .icon-clock-small,
.event-schedule-popup-icon .icon-location-pin,
.event-schedule-popup-icon .icon-drop,
.event-schedule-popup-icon .icon-price {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-schedule-popup-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.event-schedule-popup-copy {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.event-schedule-popup-copy .icon-btn-icon {
    width: 20px;
    height: 20px;
}

.event-schedule-popup-copy .icon-default,
.event-schedule-popup-copy .icon-pressed {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-schedule-popup-btn {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .event-schedule--compact-day-headers .event-schedule-day-label--full {
        display: none;
    }

    .event-schedule--compact-day-headers .event-schedule-day-label--short {
        display: inline;
    }

    /* Course packages / course page: keep full weekday in header so it can wrap in narrow columns */
    .event-schedule--course.event-schedule--compact-day-headers:not(.event-schedule--fit-all-days) .event-schedule-day-label--full {
        display: block;
    }

    .event-schedule--course.event-schedule--compact-day-headers:not(.event-schedule--fit-all-days) .event-schedule-day-label--short {
        display: none;
    }

    .event-schedule {
        padding: 32px 0 72px;
    }

    .event-schedule .social-section-header {
        margin-bottom: 24px;
    }

    .event-schedule .social-section-title {
        font-size: 32px;
        line-height: 40px;
    }

    .event-schedule .social-section-subtitle {
        font-size: 18px;
        line-height: 26px;
    }

    .event-schedule-card {
        width: 100%;
        max-width: 100%;
        padding: 16px 12px;
        box-sizing: border-box;
    }

    .event-schedule-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 10px;
    }

    .event-schedule-filter {
        width: 100%;
        max-width: none;
        margin-left: 0;
        order: 0;
    }

    .event-schedule-filter .event-schedule-filter-trigger {
        padding: 10px 12px;
        gap: 8px;
    }

    .event-schedule-filter .event-schedule-filter-label {
        font-size: 12px;
    }

    .event-schedule-filter .event-schedule-filter-value {
        font-size: 14px;
        margin-right: 2px;
    }

    .event-schedule-filter .event-schedule-filter-option {
        font-size: 13px;
        line-height: 18px;
        padding: 6px 10px;
    }

    .event-schedule-year {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .event-schedule-month {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        row-gap: 8px;
    }

    /* Keep month name content-sized so prev/next sit beside the label, not at row edges */
    .event-schedule-month-label {
        min-width: 0;
        flex: 0 1 auto;
        max-width: 100%;
        font-size: 15px;
        line-height: 20px;
    }

    .event-schedule-year-label {
        font-size: 15px;
        line-height: 20px;
    }

    .event-schedule-year-trigger {
        padding: 10px 12px;
        min-width: 72px;
    }

    .event-schedule-year-trigger .event-schedule-filter-value {
        font-size: 15px;
        line-height: 20px;
    }

    .event-schedule-year-menu .event-schedule-filter-option {
        font-size: 13px;
        line-height: 18px;
        padding: 6px 10px;
    }

    .event-schedule-today-btn {
        margin-left: 0;
        align-self: center;
        width: 100%;
        max-width: 152px;
        justify-content: center;
        min-height: 40px;
        padding: 6px 14px;
        font-size: 15px;
        line-height: 20px;
    }

    .event-schedule-month .event-schedule-today-btn {
        margin-left: 12px;
    }

    .event-schedule-grid-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
        /* Overrides inline width from filter transitions so the grid can scroll horizontally */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        touch-action: pan-x pan-y;
    }

    /* Full calendar: no week column, narrow day columns, dots instead of cards — see block below */

    .event-schedule-grid {
        grid-template-columns: 76px repeat(var(--event-schedule-day-count, 2), minmax(var(--event-schedule-day-width, 132px), max-content));
        grid-template-rows: minmax(44px, auto);
        grid-auto-rows: minmax(72px, auto);
        min-width: min-content;
        width: max-content;
        max-width: none;
    }

    /* Course / course-packages: equal share day width, headers wrap (avoid max-content wide columns) */
    .event-schedule--course:not(.event-schedule--fit-all-days) .event-schedule-grid {
        grid-template-columns: 56px repeat(var(--event-schedule-day-count, 2), minmax(0, 1fr));
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .event-schedule--course:not(.event-schedule--fit-all-days) .event-schedule-header-cell {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 11px;
        line-height: 14px;
        white-space: normal;
        text-align: center;
        align-items: center;
        justify-content: center;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .event-schedule--fit-all-days .event-schedule-grid-wrapper {
        overflow-x: visible;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100% !important;
    }

    .event-schedule--fit-all-days .event-schedule-grid {
        --event-schedule-day-width: 0px;
        grid-template-columns: repeat(var(--event-schedule-day-count, 7), minmax(0, 1fr));
        grid-template-rows: minmax(40px, auto);
        grid-auto-rows: minmax(56px, auto);
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .event-schedule--fit-all-days .event-schedule-header-cell:first-child,
    .event-schedule--fit-all-days .event-schedule-week-cell {
        display: none !important;
    }

    .event-schedule--fit-all-days .event-schedule-day-cell {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-date {
        text-align: center;
        font-size: 13px;
        line-height: 16px;
    }

    .event-schedule--fit-all-days .event-schedule-day-cell.is-mobile-day-selected {
        outline: 2px solid rgba(22, 223, 253, 0.75);
        outline-offset: -2px;
        z-index: 1;
    }

    .event-schedule--fit-all-days .event-schedule-events {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        gap: 5px;
        min-height: 20px;
    }

    .event-schedule-mobile-detail {
        margin-top: 12px;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid var(--border-primary);
        background-color: rgba(18, 30, 54, 0.95);
        box-sizing: border-box;
    }

    .event-schedule-mobile-detail:not([hidden]) {
        display: block;
    }

    .event-schedule-mobile-detail-title {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 10px;
    }

    .event-schedule-mobile-detail-events {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .event-schedule-mobile-detail-events .event-schedule-event {
        cursor: default;
        pointer-events: auto;
        width: auto;
        height: auto;
        min-height: 0;
        padding: 8px;
        border-radius: 6px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        position: relative;
    }

    .event-schedule-mobile-detail-events .event-schedule-event-label,
    .event-schedule-mobile-detail-events .event-schedule-event-time {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .event-schedule-mobile-detail-location {
        display: block;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 400;
        line-height: 18px;
        color: var(--text-secondary);
        margin-top: 4px;
    }

    .event-schedule-mobile-detail-block {
        margin-bottom: 12px;
    }

    .event-schedule-mobile-detail-block:last-child {
        margin-bottom: 0;
    }

    .event-schedule-mobile-detail-card--tap {
        cursor: pointer;
        transition: filter 0.2s ease;
    }

    .event-schedule-mobile-detail-card--tap:active {
        filter: brightness(1.08);
    }

    .event-schedule-mobile-detail-empty {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: var(--text-secondary);
        margin: 0;
    }

    .event-schedule-cell {
        padding: 6px;
        font-size: 12px;
        line-height: 16px;
    }

    .event-schedule-day-cell {
        gap: 4px;
    }

    .event-schedule-events {
        gap: 4px;
    }

    .event-schedule-date {
        font-size: 14px;
        line-height: 18px;
    }

    .event-schedule-event {
        font-size: 12px;
        line-height: 16px;
        padding: 4px 5px;
        gap: 2px;
        border-radius: 4px;
        border-width: 1px;
    }

    .event-schedule-event-time {
        font-size: 11px;
        line-height: 14px;
    }

    /* Dot cells: must follow general .event-schedule-event mobile rules so padding/size win */
    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event {
        width: 9px;
        height: 9px;
        min-height: 0;
        padding: 0;
        border-radius: 50%;
        flex-shrink: 0;
        position: relative;
        justify-content: center;
        align-items: center;
        border-width: 0;
        box-sizing: border-box;
        font-size: 0;
        line-height: 0;
        gap: 0;
        opacity: 0.8;
    }

    /* Solid filled dots (accent = fill, not ring on dark background) */
    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event-blue {
        background-color: rgba(60, 150, 255, 0.95);
    }

    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event-teal {
        background-color: rgba(60, 180, 120, 0.95);
    }

    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event-purple {
        background-color: rgba(255, 21, 151, 0.92);
    }

    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event-neutral {
        background-color: rgba(129, 133, 149, 0.9);
    }

    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event[data-event-type*="party"] {
        background-color: #ff1597;
    }

    .event-schedule--fit-all-days .event-schedule-day-cell.is-past .event-schedule-event {
        background-color: rgba(129, 133, 149, 0.5);
    }

    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event-label,
    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event-time {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event[data-event-clickable="1"] {
        cursor: default;
        pointer-events: none;
    }

    .event-schedule-month-nav {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .event-schedule-month-nav .icon-btn-icon {
        width: 18px;
        height: 18px;
    }

    .event-schedule-month-nav .icon-angle-left,
    .event-schedule-month-nav .icon-angle-right {
        width: 18px;
        height: 18px;
    }

    .event-schedule-popup-overlay {
        padding: max(12px, env(safe-area-inset-top, 0px))
            max(12px, env(safe-area-inset-right, 0px))
            max(12px, env(safe-area-inset-bottom, 0px))
            max(12px, env(safe-area-inset-left, 0px));
        box-sizing: border-box;
    }

    .event-schedule-popup {
        padding: 20px 16px;
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        max-height: min(90vh, 100dvh);
    }

    .event-schedule-popup-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .event-schedule-popup::before {
        width: 260px;
        height: 260px;
        right: -72px;
        bottom: -88px;
        opacity: 0.95;
    }

    .event-schedule-popup-title {
        font-size: 22px;
        line-height: 28px;
        padding-right: 36px;
    }

    .event-schedule-popup-list {
        gap: 12px;
    }

    .event-schedule-popup-item {
        font-size: 15px;
        line-height: 22px;
        gap: 10px;
    }

    .event-schedule-popup-icon {
        width: 20px;
        height: 20px;
    }

    .event-schedule-popup-location-wrap {
        gap: 8px;
    }

    .event-schedule-popup-btn.social-btn {
        font-size: 14px;
        line-height: 20px;
        padding: 10px 18px;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .event-schedule {
        padding: 24px 0 56px;
    }

    .event-schedule-card {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .event-schedule-controls {
        gap: 6px;
        margin-bottom: 8px;
    }

    .event-schedule-filter .event-schedule-filter-trigger {
        padding: 8px 10px;
        gap: 6px;
    }

    .event-schedule-filter .event-schedule-filter-label {
        font-size: 11px;
    }

    .event-schedule-filter .event-schedule-filter-value {
        font-size: 13px;
    }

    .event-schedule-filter .event-schedule-filter-option {
        font-size: 12px;
        line-height: 16px;
        padding: 6px 8px;
    }

    .event-schedule-year {
        gap: 4px;
    }

    .event-schedule-month {
        gap: 10px;
        row-gap: 6px;
    }

    .event-schedule-month-nav {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .event-schedule-month-nav .icon-btn-icon {
        width: 16px;
        height: 16px;
    }

    .event-schedule-month-nav .icon-angle-left,
    .event-schedule-month-nav .icon-angle-right {
        width: 16px;
        height: 16px;
    }

    .event-schedule-today-btn {
        max-width: 136px;
        min-height: 38px;
        padding: 5px 12px;
        font-size: 14px;
        line-height: 18px;
    }

    .event-schedule-year-label {
        font-size: 14px;
        line-height: 18px;
    }

    .event-schedule-year-trigger {
        padding: 8px 10px;
        min-width: 64px;
    }

    .event-schedule-year-trigger .event-schedule-filter-value {
        font-size: 14px;
        line-height: 18px;
    }

    .event-schedule-year-menu .event-schedule-filter-option {
        font-size: 12px;
        line-height: 16px;
        padding: 6px 8px;
    }

    .event-schedule-month-label {
        font-size: 14px;
        line-height: 18px;
    }

    .event-schedule--fit-all-days .event-schedule-grid {
        --event-schedule-day-width: 0px;
        grid-template-columns: repeat(var(--event-schedule-day-count, 7), minmax(0, 1fr));
        grid-template-rows: minmax(36px, auto);
        grid-auto-rows: minmax(52px, auto);
    }

    .event-schedule-grid {
        grid-template-columns: 68px repeat(var(--event-schedule-day-count, 2), minmax(var(--event-schedule-day-width, 120px), max-content));
        grid-template-rows: minmax(40px, auto);
        grid-auto-rows: minmax(64px, auto);
    }

    .event-schedule--course:not(.event-schedule--fit-all-days) .event-schedule-grid {
        grid-template-columns: 48px repeat(var(--event-schedule-day-count, 2), minmax(0, 1fr));
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .event-schedule-grid-wrapper {
        margin-left: -8px;
        margin-right: -8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .event-schedule--fit-all-days .event-schedule-grid-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .event-schedule-cell {
        padding: 5px;
        font-size: 11px;
        line-height: 15px;
    }

    .event-schedule--course:not(.event-schedule--fit-all-days) .event-schedule-header-cell {
        font-size: 10px;
        line-height: 13px;
        white-space: normal;
        text-align: center;
    }

    .event-schedule-day-cell {
        gap: 3px;
    }

    .event-schedule-events {
        gap: 3px;
    }

    .event-schedule-date {
        font-size: 13px;
        line-height: 16px;
    }

    .event-schedule-event {
        font-size: 11px;
        line-height: 14px;
        padding: 3px 4px;
        gap: 1px;
        border-radius: 3px;
    }

    .event-schedule-event-time {
        font-size: 10px;
        line-height: 13px;
    }

    .event-schedule--fit-all-days .event-schedule-day-cell .event-schedule-event {
        width: 8px;
        height: 8px;
        padding: 0;
        gap: 0;
        font-size: 0;
        line-height: 0;
    }

    .event-schedule-popup {
        padding: 16px 12px;
    }

    .event-schedule-popup-scroll {
        gap: 16px;
    }

    .event-schedule-popup::before {
        width: 220px;
        height: 220px;
        right: -56px;
        bottom: -72px;
    }

    .event-schedule-popup-title {
        font-size: 18px;
        line-height: 24px;
        padding-right: 32px;
    }

    .event-schedule-popup-item {
        font-size: 14px;
        line-height: 20px;
    }

    .event-schedule-popup-close {
        top: 12px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .event-schedule-popup-btn.social-btn {
        font-size: 13px;
        padding: 9px 14px;
    }
}
