.bz-event-single {
    --bz-event-text: #202329;
    --bz-event-muted: #666b73;
    --bz-event-border: #e3e5e8;
    --bz-event-surface: #ffffff;
    --bz-event-soft: #f5f6f7;
    --bz-event-accent: #22252a;
    color: var(--bz-event-text);
    padding-left: 40px;
    padding-right: 40px;
}

.bz-event-single__article {
    width: 100%;
    max-width: none;
    margin: 0;
}

.bz-event-single__shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 64px 0 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 440px);
    gap: clamp(48px, 5vw, 72px);
    align-items: start;
}

.bz-event-single__main {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.bz-event-single__back {
    margin-bottom: 18px;
}

.bz-event-single__back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bz-event-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.bz-event-single__back-link:hover,
.bz-event-single__back-link:focus {
    color: var(--bz-event-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bz-event-single__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.bz-event-single__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--bz-event-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .025em;
}

.bz-event-single__badge.has-dance-color {
    border-color: var(--bz-dance-border);
    background: var(--bz-dance-soft);
    color: var(--bz-event-text);
}

.bz-event-single__badge.has-dance-color::before {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--bz-dance-color);
    content: "";
}

.bz-event-single__header {
    margin: 0 0 26px;
}

.bz-event-single__title {
    margin: 0;
    font-size: clamp(38px, 5.2vw, 50px);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.bz-event-single__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0;
    margin-top: 18px;
    color: var(--bz-event-muted);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

.bz-event-single__summary-item {
    display: inline-flex;
    align-items: center;
}

.bz-event-single__summary-item:not(:last-child)::after {
    content: "•";
    margin: 0 12px;
    opacity: .55;
}

.bz-event-single__description {
    font-size: 18px;
    line-height: 1.72;
}

.bz-event-single__description > :first-child {
    margin-top: 0;
}

.bz-event-single__description > :last-child {
    margin-bottom: 0;
}

.bz-event-single__description p,
.bz-event-single__description ul,
.bz-event-single__description ol {
    margin-bottom: 1.25em;
}

.bz-event-single__more-info {
    margin-top: 36px;
}

.bz-event-single__more-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.bz-event-single__more-info-link:hover,
.bz-event-single__more-info-link:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.bz-event-single__more-info-link.bz-event-single__more-info-link--fallback,
.bz-event-single__more-info-link.bz-event-single__more-info-link--fallback:hover,
.bz-event-single__more-info-link.bz-event-single__more-info-link--fallback:focus {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.bz-event-single__calendar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.bz-event-single__description + .bz-event-single__calendar-actions {
    margin-top: 30px;
}

.bz-event-single__calendar-button {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bz-event-border);
    border-radius: 4px;
    background: var(--bz-event-surface);
    color: var(--bz-event-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.bz-event-single__calendar-button:hover,
.bz-event-single__calendar-button:focus {
    border-color: var(--bz-event-accent);
    background: var(--bz-event-soft);
    color: var(--bz-event-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.bz-event-single__organizer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--bz-event-border);
}

.bz-event-single__organizer-heading {
    margin: 0 0 10px;
    color: var(--bz-event-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bz-event-single__organizer-title a {
    color: inherit;
    text-decoration: none;
}

.bz-event-single__organizer-title a:hover,
.bz-event-single__organizer-title a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bz-event-single__organizer-title {
    margin: 0 0 24px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.bz-event-single__organizer-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 34px;
}

.bz-event-single__organizer-detail {
    display: grid;
    gap: 4px;
}

.bz-event-single__organizer-label {
    color: var(--bz-event-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.bz-event-single__organizer-value,
.bz-event-single__organizer-link {
    color: var(--bz-event-text);
    font-size: 16px;
    line-height: 1.5;
}

.bz-event-single__organizer-link {
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bz-event-single__sidebar {
    position: sticky;
    top: 34px;
}

.admin-bar .bz-event-single__sidebar {
    top: 66px;
}

.bz-event-single.has-dance-color .bz-event-single__details-card {
    box-shadow: inset 3px 0 0 var(--bz-dance-color);
}

.bz-event-single__details-card {
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--bz-event-border);
    background: var(--bz-event-surface);
    box-shadow: 0 18px 50px rgba(26, 29, 33, .08);
}

.bz-event-single__details-image-wrap {
    margin: -30px -30px 30px;
    overflow: hidden;
}

.bz-event-single__details-image {
    box-sizing: border-box;
    padding: 10px;
    display: block;
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    margin: 20px auto;
    border-radius: 12px;
    border: solid 1px #eee;
    object-position: center;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.bz-event-single__schedule {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 34px;
    margin: 0 0 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--bz-event-border);
}

.bz-event-single__date-tile {
    border-radius: 16px;
    width: 112px;
    min-height: 126px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bz-event-border);
    background: var(--bz-event-soft);
    text-align: center;
}

.bz-event-single__date-month {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bz-event-single__date-day {
    margin-top: 9px;
    font-size: 50px;
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.04em;
}

.bz-event-single__schedule-time {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}

.bz-event-single__schedule-value {
    color: var(--bz-event-text);
    font-size: 16px;
    line-height: 1.55;
}

.bz-event-single__details-list {
    display: grid;
    gap: 22px;
}

.bz-event-single__detail {
    display: grid;
    gap: 5px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bz-event-border);
}

.bz-event-single__detail:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.bz-event-single__detail-label {
    color: var(--bz-event-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bz-event-single__detail-value,
.bz-event-single__detail-link {
    color: var(--bz-event-text);
    font-size: 16px;
    line-height: 1.55;
}

.bz-event-single__detail-value {
    display: grid;
    gap: 3px;
}

.bz-event-single__detail-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bz-event-single__venue-address {
    color: var(--bz-event-muted);
}

.bz-event-single__button {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    margin-top: 28px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bz-event-accent);
    background: var(--bz-event-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.bz-event-single__button:hover,
.bz-event-single__button:focus-visible {
    background: transparent;
    color: var(--bz-event-accent);
    transform: translateY(-1px);
}


.bz-event-single__related {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 0 80px;
    border-top: 1px solid var(--bz-event-border);
}

.bz-event-single__related-heading {
    margin: 0 0 34px;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.bz-event-single__related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.bz-event-single__related-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--bz-event-border);
    background: #fff;
    text-align: left;
    transition: transform .16s ease, box-shadow .16s ease;
}

.bz-event-single__related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(25, 32, 40, .08);
}

.bz-event-single__related-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f5;
    text-decoration: none;
}

.bz-event-single__related-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.bz-event-single__related-card:hover .bz-event-single__related-image,
.bz-event-single__related-image-link:focus .bz-event-single__related-image {
    transform: scale(1.02);
}

.bz-event-single__related-content {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
}

.bz-event-single__related-date-tile {
    display: flex;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bz-event-border);
    background: #f7f8f9;
    line-height: 1;
}

.bz-event-single__related-month {
    color: var(--bz-event-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.bz-event-single__related-day {
    margin-top: 4px;
    color: var(--bz-event-text);
    font-size: 23px;
    font-weight: 700;
}

.bz-event-single__related-copy {
    min-width: 0;
}

.bz-event-single__related-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.bz-event-single__related-title a {
    color: var(--bz-event-text);
    text-decoration: none;
}

.bz-event-single__related-title a:hover,
.bz-event-single__related-title a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bz-event-single__related-meta {
    display: grid;
    gap: 2px;
    margin-top: 8px;
    color: var(--bz-event-muted);
    font-size: 12px;
    line-height: 1.4;
}

.bz-event-single__related-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.bz-event-single__related-term {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid var(--bz-event-border);
    border-radius: 999px;
    background: #f7f8f9;
    color: var(--bz-event-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.bz-event-single__related-term.has-color {
    border-color: var(--bz-dance-border);
    background: var(--bz-dance-soft);
}

.bz-event-single__related-term-dot {
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--bz-dance-color);
}

@media (max-width: 1100px) {
    .bz-event-single__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .bz-event-single__shell {
        width: 100%;
        padding: 44px 0 60px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .bz-event-single__sidebar,
    .admin-bar .bz-event-single__sidebar {
        position: static;
        width: 100%;
    }

    .bz-event-single__details-card {
        display: block;
        width: 100%;
    }

    .bz-event-single__details-image-wrap {
        width: auto;
    }

    .bz-event-single__schedule {
        width: 100%;
    }

    .bz-event-single__details-list,
    .bz-event-single__button {
        width: 100%;
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .bz-event-single {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bz-event-single__shell {
        width: 100%;
        padding-top: 32px;
    }

    .bz-event-single__title {
        font-size: clamp(34px, 11vw, 48px);
    }

    .bz-event-single__description {
        font-size: 17px;
    }

    .bz-event-single__organizer {
        margin-top: 36px;
        padding-top: 26px;
    }

    .bz-event-single__organizer-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bz-event-single__details-card {
        display: block;
        padding: 24px;
    }

    .bz-event-single__details-image-wrap {
        margin: -24px -24px 24px;
    }

    .bz-event-single__date-tile {
        margin-bottom: 24px;
    }

    .bz-event-single__button {
        margin-top: 24px;
    }
}

@media (max-width: 600px) {
    .bz-event-single__related-content {
        grid-template-columns: 80px minmax(0, 1fr);
    }


    .bz-event-single__related {
        padding-bottom: 60px;
    }

    .bz-event-single__related-heading {
        margin-bottom: 24px;
    }

    .bz-event-single__related-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 520px) {
    .bz-event-single__schedule {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 22px;
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--bz-event-border);
    }

    .bz-event-single__date-tile {
        width: 96px;
        min-height: 108px;
    }

    .bz-event-single__date-day {
        font-size: 44px;
    }


    .bz-event-single__summary {
        display: grid;
        gap: 4px;
    }

    .bz-event-single__summary-item:not(:last-child)::after {
        content: none;
    }

    .bz-event-single__more-info-link {
        width: 100%;
        text-align: center;
    }

    .bz-event-single__calendar-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bz-event-single__calendar-button {
        width: 100%;
    }
}

/* Keep both dates in one calendar tile, with the time beside it. */
.bz-event-single__schedule.bz-event-single__schedule--multiday {
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.bz-event-single__date-tile.bz-event-single__date-tile--range {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    flex: 0 0 58%;
    width: auto;
    min-width: 0;
    min-height: 126px;
    padding: 20px 16px;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    background: var(--bz-date-background, #3B82F6);
    color: var(--bz-date-text, #000000);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
}

.bz-event-single__date-part {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bz-event-single__date-tile--range .bz-event-single__date-month {
    color: inherit;
    font-size: 14px;
}

.bz-event-single__date-tile--range .bz-event-single__date-day {
    color: inherit;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1;
}

.bz-event-single__date-tile--range .bz-event-single__date-separator {
    align-self: center;
    padding-bottom: 0;
    font-size: 30px;
    line-height: 1;
}

@media (max-width: 380px) {
    .bz-event-single__schedule.bz-event-single__schedule--multiday {
        gap: 14px;
    }
    .bz-event-single__date-tile.bz-event-single__date-tile--range {
        padding: 16px 8px;
        gap: 4px;
    }
    .bz-event-single__date-tile--range .bz-event-single__date-month {
        font-size: 12px;
    }
}

/* Apply the resolved event/category palette to both date tile layouts. */
.bz-event-single__date-tile {
    background: var(--bz-date-background, #3B82F6);
    color: var(--bz-date-text, #000000);
    border-color: var(--bz-date-background, #3B82F6);
}
.bz-event-single__date-tile .bz-event-single__date-month,
.bz-event-single__date-tile .bz-event-single__date-day,
.bz-event-single__date-tile .bz-event-single__date-separator {
    color: inherit;
}
