/* Optional host + single-venue sections. No changes to the working Osmo rail. */
.he-events .he-event-organizer,
.he-events .he-event-location {
    scroll-margin-top: calc(var(--he-site-header-offset, 96px) + 24px);
    container-type: inline-size;
}
.he-events .he-event-host {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    background: var(--he-surface, #fff);
    border: 1px solid var(--he-line, #e5dfdc);
    border-radius: var(--he-radius, 18px);
    overflow: clip;
}
.he-events .he-event-host__visual { margin: 0; min-width: 0; min-height: 360px; position: relative; }
.he-events .he-event-host__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.he-events .he-event-host__body { min-width: 0; padding: clamp(24px, 3.3vw, 48px); }
.he-events .he-event-host__heading .he-section-title { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.06; max-width: 18ch; margin-bottom: 26px; }
.he-events .he-event-host.no-image { display: block; }
.he-events .he-event-host.no-image .he-event-host__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); }
.he-events .he-event-host__identity { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 20px; min-width: 0; }
.he-events .he-event-host__identity > strong { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.he-events .he-event-host__logo { width: 120px; max-width: 100%; flex: 0 1 120px; }
.he-events .he-event-host__logo img { width: 100%; height: 70px; object-fit: contain; object-position: left center; }
.he-events .he-event-host__description { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.65; }
.he-events .he-event-host__contact { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--he-line, #e5dfdc); padding-top: 22px; margin-top: 24px; font-size: 15px; }
.he-events .he-event-detail-label { color: var(--he-muted, #5f5b58); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; margin-bottom: 4px; }
.he-events .he-experience-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 24px; }
.he-events .he-experience-actions > * { max-width: 100%; }
.he-events .he-experience-link { display: inline-flex; gap: 8px; align-items: center; width: fit-content; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.he-events .he-experience-link svg,
.he-events .he-experience-actions .he-button svg { width: 17px; height: 17px; flex: 0 0 17px; }
body .he-events .he-experience-link,
body .he-events .he-experience-link:visited { color: var(--he-text, #0d0d0f) !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
body .he-events .he-experience-link:hover,
body .he-events .he-experience-link:focus-visible { color: var(--he-accent, #fc441a) !important; text-decoration: underline !important; }
.he-events .he-event-location > .he-container > .he-section-header { margin-bottom: 28px; }
.he-events .he-event-location .he-section-intro { font-size: 17px; line-height: 1.65; max-width: 52ch; }
.he-events .he-event-location .he-section-title { max-width: 20ch; }
.he-events .he-event-venue { --he-venue-height: clamp(380px, 37vw, 520px); border: 1px solid var(--he-line, #e5dfdc); border-radius: var(--he-radius, 18px); background: var(--he-surface, #fff); overflow: clip; }
.he-events .he-event-venue__inner { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.he-events .he-event-venue__side { min-width: 0; padding: clamp(24px, 3vw, 40px); }
.he-events .he-event-venue__eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--he-accent, #fc441a); font-size: 11px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.he-events .he-event-venue__eyebrow svg { width: 19px; height: 23px; flex: none; }
.he-events .he-event-venue__details h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -.035em; margin-bottom: 16px; overflow-wrap: anywhere; }
.he-events .he-event-venue__address { font-size: 16px; line-height: 1.65; font-style: normal; color: var(--he-muted, #5f5b58); }
.he-events .he-event-venue__practical { display: grid; gap: 18px; margin: 28px 0 0; }
.he-events .he-event-venue__practical:empty { display: none; }
.he-events .he-event-venue__practical > div { border-top: 1px solid var(--he-line, #e5dfdc); padding-top: 18px; }
.he-events .he-event-venue__practical dt { font-size: 13px; font-weight: 800; margin-bottom: 5px; }
.he-events .he-event-venue__practical dd { font-size: 15px; line-height: 1.65; color: var(--he-muted, #5f5b58); margin: 0; overflow-wrap: anywhere; }
.he-events .he-event-venue__main { position: relative; isolation: isolate; background: var(--he-bg, #fff5f2); min-width: 0; min-height: var(--he-venue-height); }
.he-events .he-event-venue__map { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--he-bg, #fff5f2); z-index: 1; }
.he-events .he-event-venue__poster { position: absolute; inset: 0; margin: 0; }
.he-events .he-event-venue__poster img { width: 100%; height: 100%; object-fit: cover; }
.he-events .he-event-venue__gate { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; padding: 32px; text-align: center; background: var(--he-bg, #fff5f2); }
.he-events .he-event-venue__main.has-image .he-event-venue__gate { inset: auto 24px 24px; background: rgba(255,255,255,.97); border: 1px solid var(--he-line, #e5dfdc); border-radius: var(--he-small-radius, 12px); padding: 24px; }
.he-events .he-event-venue__gate > strong { font-size: 23px; line-height: 1.2; color: var(--he-text, #0d0d0f); }
.he-events .he-event-venue__gate p { max-width: 36ch; font-size: 14px; line-height: 1.6; color: var(--he-muted, #5f5b58); margin: 0; }
.he-events .he-event-venue__gate-icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid var(--he-line, #e5dfdc); border-radius: 50%; color: var(--he-accent, #fc441a); }
.he-events .he-event-venue__gate-icon svg { width: 24px; height: 24px; }
.he-events .he-event-venue__main.has-image .he-event-venue__gate-icon { display: none; }
.he-events .he-event-venue__tools { position: absolute; top: 12px; left: 12px; right: 55px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 3; pointer-events: none; }
body .he-events .he-event-venue .he-venue-map-button { display: inline-flex; align-items: center; justify-content: center; background: #fff !important; color: var(--he-text, #0d0d0f) !important; border: 1px solid var(--he-line, #e5dfdc) !important; border-radius: 6px !important; min-height: 36px; padding: 8px 11px !important; font-family: inherit !important; font-size: 11px !important; font-weight: 700 !important; line-height: 1.3 !important; cursor: pointer; pointer-events: auto; text-transform: none !important; box-shadow: none !important; }
body .he-events .he-event-venue .he-venue-map-button:hover,
body .he-events .he-event-venue .he-venue-map-button:focus-visible { background: var(--he-text, #0d0d0f) !important; color: #fff !important; border-color: var(--he-text, #0d0d0f) !important; }
.he-events .he-event-venue [hidden] { display: none !important; }
/* Keep Mapbox controls scoped; do NOT carry over the demo's attribution hiding. */
body .he-events .he-event-venue button.he-event-venue__marker { width: 46px !important; height: 46px !important; padding: 11px !important; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; border: 2px solid #fff !important; background: var(--he-accent, #fc441a) !important; color: #fff !important; cursor: pointer; font-size: 16px; box-shadow: none !important; }
.he-events .he-event-venue__marker svg { width: 24px; height: 24px; pointer-events: none; }
body .he-events .he-event-venue button.he-event-venue__marker:hover,
body .he-events .he-event-venue button.he-event-venue__marker:focus-visible { background: var(--he-text, #0d0d0f) !important; outline: 2px solid var(--he-accent, #fc441a) !important; outline-offset: 3px; }
body .he-events .he-event-venue .mapboxgl-ctrl-group { background: #fff; }
body .he-events .he-event-venue .mapboxgl-ctrl-group button { width: 34px !important; height: 34px !important; min-height: 34px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background-color: #fff !important; color: #111 !important; }
body .he-events .he-event-venue .mapboxgl-ctrl-group button:hover { background-color: #f2f2f2 !important; }
body .he-events .he-event-venue .mapboxgl-ctrl-group button + button { border-top: 1px solid #ddd !important; }
body .he-events .he-event-venue .mapboxgl-ctrl-logo { display: block !important; visibility: visible !important; opacity: 1 !important; }
body .he-events .he-event-venue .mapboxgl-ctrl-attrib { display: block !important; visibility: visible !important; color: #333 !important; background-color: rgba(255,255,255,.9) !important; font-family: Arial,sans-serif !important; font-size: 12px !important; }
body .he-events .he-event-venue .mapboxgl-ctrl-attrib a { color: #333 !important; text-decoration: none !important; }
body .he-events .he-event-venue .mapboxgl-ctrl-attrib-button { width: 24px !important; height: 24px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background-color: #fff !important; color: #111 !important; }
.he-events .he-event-venue__static { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; gap: 18px; text-align: center; }
.he-events .he-event-venue__static-icon { width: 64px; height: 64px; color: var(--he-accent, #fc441a); }
.he-events .he-event-venue__static-icon svg { width: 100%; height: 100%; }
.he-events .he-event-venue__static strong { font-size: 22px; }
.he-events .he-event-venue__static p { font-size: 14px; color: var(--he-muted, #5f5b58); max-width: 30ch; margin: 0; }
.he-events .he-event-venue-private { display: flex; align-items: center; gap: 24px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--he-line, #e5dfdc); border-radius: var(--he-radius, 18px); background: var(--he-surface, #fff); }
.he-events .he-event-venue-private__icon { width: 36px; height: 36px; flex: none; color: var(--he-accent, #fc441a); }
.he-events .he-event-venue-private__icon svg { width: 100%; height: 100%; }
.he-events .he-event-venue-private strong { font-size: 20px; }
.he-events .he-event-venue-private p { font-size: 16px; color: var(--he-muted, #5f5b58); margin: 8px 0 0; }
@media (max-width: 767px) {
    .he-events .he-event-host,
    .he-events .he-event-host.no-image .he-event-host__body,
    .he-events .he-event-venue__inner { grid-template-columns: minmax(0, 1fr); }
    .he-events .he-event-host__visual { min-height: 0; aspect-ratio: 4 / 3; }
    .he-events .he-event-host__body { padding: 24px; }
    .he-events .he-event-venue { --he-venue-height: 380px; }
    .he-events .he-event-venue__side { padding: 24px; }
    .he-events .he-event-venue__main.has-image .he-event-venue__gate { inset: auto 16px 16px; padding: 20px; }
    .he-events .he-event-venue-private { align-items: flex-start; gap: 16px; }
}
@container (max-width: 760px) {
    .he-events .he-event-host,
    .he-events .he-event-host.no-image .he-event-host__body,
    .he-events .he-event-venue__inner { grid-template-columns: minmax(0, 1fr); }
    .he-events .he-event-host__visual { min-height: 0; aspect-ratio: 4 / 3; }
    .he-events .he-event-venue { --he-venue-height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
    .he-events .he-event-host *,
    .he-events .he-event-venue * { animation: none !important; transition: none !important; }
}


/* 1.2.9 — Venue layout + Mapbox visibility patch.
 * Keep the location summary compact, move practical information into a full-width
 * grid and keep the interactive-map affordance visible above the fold.
 */
.he-events .he-event-location > .he-container > .he-section-header--with-copy {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: end;
}
.he-events .he-event-location .he-section-title {
    max-width: 13ch;
}
.he-events .he-event-location .he-section-intro {
    max-width: 46ch;
    margin-left: auto;
}
.he-events .he-event-venue {
    --he-venue-panel-height: clamp(390px, 34vw, 500px);
}
.he-events .he-event-venue__inner {
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    align-items: stretch;
}
.he-events .he-event-venue__side {
    display: flex;
    align-items: center;
}
.he-events .he-event-venue__details {
    width: 100%;
}
.he-events .he-event-venue__details h3 {
    max-width: 18ch;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
}
.he-events .he-event-venue__main {
    height: var(--he-venue-panel-height);
    min-height: 0;
}
.he-events .he-event-venue__practical {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--he-line, #e5dfdc);
}
.he-events .he-event-venue__practical > div {
    min-width: 0;
    padding: 24px clamp(20px, 2.2vw, 30px) 28px;
    border-top: 0;
    border-right: 1px solid var(--he-line, #e5dfdc);
}
.he-events .he-event-venue__practical > div:last-child {
    border-right: 0;
}
.he-events .he-event-venue__practical dt {
    margin-bottom: 8px;
}
.he-events .he-event-venue__practical dd {
    font-size: 14px;
    line-height: 1.6;
}
.he-events .he-event-venue__gate,
.he-events .he-event-venue__main.has-image .he-event-venue__gate {
    inset: 0;
    z-index: 2;
    justify-content: flex-end;
    align-items: flex-start;
    padding: clamp(18px, 2.5vw, 28px);
    text-align: left;
    background:
        linear-gradient(180deg, rgba(13,13,15,.02) 25%, rgba(13,13,15,.56) 100%);
    border: 0;
    border-radius: 0;
}
.he-events .he-event-venue__main:not(.has-image) .he-event-venue__gate {
    justify-content: center;
    align-items: center;
    background: var(--he-bg, #fff5f2);
}
.he-events .he-event-venue__gate-card {
    width: min(100%, 370px);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(229,223,220,.95);
    border-radius: var(--he-small-radius, 12px);
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 30px rgba(13,13,15,.10);
    backdrop-filter: blur(8px);
}
.he-events .he-event-venue__gate-card > div {
    min-width: 0;
}
.he-events .he-event-venue__gate-card > div > strong {
    display: block;
    margin-bottom: 4px;
    color: var(--he-text, #0d0d0f);
    font-size: 16px;
    line-height: 1.25;
}
.he-events .he-event-venue__gate-card p {
    margin: 0;
    max-width: none;
    font-size: 12px;
    line-height: 1.45;
}
.he-events .he-event-venue__gate-card .he-event-venue__activate {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
    margin: 0;
}
.he-events .he-event-venue__gate-icon,
.he-events .he-event-venue__main.has-image .he-event-venue__gate-icon {
    display: flex;
    width: 42px;
    height: 42px;
}
.he-events .he-event-venue__admin-note {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 4;
    padding: 11px 13px;
    border: 1px solid rgba(252,68,26,.45);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    color: var(--he-text, #0d0d0f);
    font-size: 12px;
    line-height: 1.5;
}
@media (max-width: 1080px) {
    .he-events .he-event-venue__practical {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .he-events .he-event-venue__practical > div:nth-child(2n) {
        border-right: 0;
    }
    .he-events .he-event-venue__practical > div:nth-child(n+3) {
        border-top: 1px solid var(--he-line, #e5dfdc);
    }
}
@media (max-width: 991px) {
    .he-events .he-event-location > .he-container > .he-section-header--with-copy {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .he-events .he-event-location .he-section-intro {
        max-width: 58ch;
        margin-left: 0;
    }
    .he-events .he-event-venue__inner {
        grid-template-columns: 1fr;
    }
    .he-events .he-event-venue__side {
        padding-bottom: 28px;
    }
    .he-events .he-event-venue__main {
        height: clamp(360px, 62vw, 500px);
    }
}
@media (max-width: 620px) {
    .he-events .he-event-venue__practical {
        grid-template-columns: 1fr;
    }
    .he-events .he-event-venue__practical > div,
    .he-events .he-event-venue__practical > div:nth-child(2n),
    .he-events .he-event-venue__practical > div:nth-child(n+3) {
        border-right: 0;
        border-top: 1px solid var(--he-line, #e5dfdc);
        padding: 20px 24px 22px;
    }
    .he-events .he-event-venue__practical > div:first-child {
        border-top: 0;
    }
    .he-events .he-event-venue__main {
        height: 360px;
    }
    .he-events .he-event-venue__gate,
    .he-events .he-event-venue__main.has-image .he-event-venue__gate {
        padding: 16px;
    }
    .he-events .he-event-venue__gate-card {
        width: 100%;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 15px;
    }
    .he-events .he-event-venue__gate-icon,
    .he-events .he-event-venue__main.has-image .he-event-venue__gate-icon {
        width: 38px;
        height: 38px;
    }
}
