/* ==========================================================================
   Event detail — "program bill on the atmospheric stage"

   The canonical detail design, served on every /event URL:

     • the program BILL (photo beside a typeset
       title/category/date-stamp/when-where program + go-now actions), set into
     • a full-width ATMOSPHERIC hero (blurred image band), with the bill riding
       on its own parchment surface so copy stays crisp and high-contrast —
       never low-contrast text over the blur, and
     • a comfortable below-fold: an About content card, a two-column main /
       info-sidebar, the unboxed Google map, and the related EVENT-CARD grid
       (shared partial).

   Loaded on the detail page after app.css, fully scoped to .event-hybrid /
   .eh-* so nothing leaks to home, cards or header. Reuses the Garnet & Chalk
   tokens + Fraunces/Inter from app.css. Never 100vw — width:100% + a centered
   inner so there's no horizontal overflow.
   ========================================================================== */

.event-hybrid {
    background: var(--bg);
    color: var(--text);
}

/* ==========================================================================
   Atmospheric hero band staging the program bill
   ========================================================================== */
.event-hybrid .eh-hero {
    position: relative;
    width: 100%;
    overflow: hidden;              /* clip the oversized blurred backdrop locally */
    background-color: var(--slate);
    display: flex;
    justify-content: center;
}
.event-hybrid .eh-hero.no-img {
    background-image: linear-gradient(125deg, #22201F 0%, #7A1F2B 100%);
}
.event-hybrid .eh-hero-ambient {
    position: absolute;
    inset: -40px;
    pointer-events: none;
    background-color: var(--slate);
    background-size: cover;
    background-position: center;
    filter: blur(38px) saturate(1.05) brightness(.72);
    transform: translateZ(0);
}
.event-hybrid .eh-hero-ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(34,32,31,.42) 0%, rgba(34,32,31,.3) 45%, rgba(34,32,31,.55) 100%);
}
.event-hybrid .eh-hero-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 90% at 50% 0%, rgba(34,32,31,.1) 0%, rgba(34,32,31,.35) 100%);
}
.event-hybrid .eh-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1020px;
    padding: clamp(40px, 6vw, 72px) 32px clamp(44px, 6vw, 76px);
}

/* The bill: a contained parchment card floating on the blurred stage, so the
   typeset program keeps dark-on-chalk contrast (no overlay-on-blur text). */
.event-hybrid .eh-bill {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(24px, 3.4vw, 48px);
    align-items: center;
    padding: clamp(20px, 2.6vw, 34px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px -18px rgba(7, 10, 18, .5), 0 0 0 1px rgba(250,249,246,.04);
}
.event-hybrid .eh-bill--noimg {
    grid-template-columns: minmax(0, 1fr);
    max-width: 48ch;
}

/* crisp, contained art — portrait posters letterbox instead of cropping */
.event-hybrid .eh-media {
    margin: 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.event-hybrid .eh-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    object-position: center;
}

/* marquee: the typeset program */
.event-hybrid .eh-marquee {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
/* category: brand idiom — sage text over a 2px sage rule (never a pill) */
.event-hybrid .eh-cat {
    margin: 0 0 12px;
    padding-top: 9px;
    border-top: 2px solid var(--sage);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sage);
}
.event-hybrid .eh-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    /* compact, not a monument */
    font-size: clamp(1.7rem, 1.1rem + 2.1vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

/* schedule: garnet date-stamp anchoring a hairline-ruled when/where list */
.event-hybrid .eh-sched {
    display: flex;
    gap: 18px;
    align-items: stretch;
    margin-top: 22px;
    width: 100%;
}
.event-hybrid .eh-stamp {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    padding: 12px 6px;
    margin: 0;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
}
.event-hybrid .eh-stamp-mon {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sage);
}
.event-hybrid .eh-stamp-day {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: var(--accent);
}
.event-hybrid .eh-sched-list {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    align-self: center;
}
.event-hybrid .eh-sched-row { padding: 10px 0; }
.event-hybrid .eh-sched-row + .eh-sched-row { border-top: 1px solid var(--border); }
.event-hybrid .eh-sched-row dt {
    margin: 0 0 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-2);
}
.event-hybrid .eh-sched-row dd {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.32;
    color: var(--text);
    overflow-wrap: anywhere;
}
.event-hybrid .eh-sched-sub {
    display: block;
    margin-top: 2px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text-2);
}

/* go-now actions */
.event-hybrid .eh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.event-hybrid .eh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: .9375rem;
    font-weight: 650;
    line-height: 1;
}
.event-hybrid .eh-btn svg { width: 18px; height: 18px; }
.event-hybrid .eh-btn--primary { background: var(--accent); color: var(--accent-text); }
.event-hybrid .eh-btn--primary:hover { background: var(--accent-hover); text-decoration: none; }
.event-hybrid .eh-btn--ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.event-hybrid .eh-btn--ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ==========================================================================
   Comfortable reading body
   ========================================================================== */
.event-hybrid .eh-wrap {
    max-width: 1020px;
    margin: 0 auto;
    padding: 28px 32px 72px;
}
.event-hybrid .eh-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}
.event-hybrid .eh-back:hover { color: var(--accent); text-decoration: none; }

/* share: shared partial, placed high near the event content */
.event-hybrid .eh-share-row { margin: 6px 0 8px; }
.event-hybrid .eh-share-row .event-share { margin: 4px 0 18px; }
.event-hybrid .eh-share-row .share-btn:not([hidden]) { min-height: 44px; }
.event-hybrid .eh-share-row .share-feedback {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.event-hybrid .eh-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}
.event-hybrid .eh-main { min-width: 0; }

/* About content card */
.event-hybrid .eh-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    box-shadow: var(--shadow-card);
}
.event-hybrid .eh-h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 4px 0 14px;
    color: var(--text);
    text-wrap: balance;
}
.event-hybrid .eh-desc {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    overflow-wrap: anywhere;
}

/* map: unboxed — the embed sits directly on the page, no card frame */
.event-hybrid .eh-map { margin-top: 28px; }
.event-hybrid .eh-map-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.event-hybrid .eh-map-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 16px 0;
    font-size: .95rem;
    color: var(--text-2);
}
.event-hybrid .eh-map-empty svg { width: 20px; height: 20px; flex-shrink: 0; }
.event-hybrid .eh-map-venue {
    margin: 14px 0 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-2);
}

/* info sidebar cards */
.event-hybrid .eh-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.event-hybrid .eh-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}
.event-hybrid .eh-card h3 {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-2);
}
.event-hybrid .eh-card p { margin: 0; font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }

.event-hybrid .eh-hours {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 14.5px;
}
.event-hybrid .eh-hours li { display: flex; justify-content: space-between; gap: 16px; }
.event-hybrid .eh-hours-day { font-weight: 600; color: var(--text); }
.event-hybrid .eh-hours-val { color: var(--text-2); text-align: right; }
.event-hybrid .eh-hours-note { color: var(--text-2); }

.event-hybrid .eh-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14.5px;
}
.event-hybrid .eh-detail-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.event-hybrid .eh-detail-ico { flex-shrink: 0; color: var(--text-3); margin-top: 1px; }
.event-hybrid .eh-detail-ico svg { width: 18px; height: 18px; display: block; }
.event-hybrid .eh-detail-list a {
    display: inline-block;
    min-height: 44px;
    padding: 4px 0;
    color: var(--accent);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.event-hybrid .eh-detail-list a:hover { color: var(--accent-hover); }
.event-hybrid .eh-source-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--accent);
}
.event-hybrid .eh-source-link:hover { color: var(--accent-hover); text-decoration: none; }

/* related: reuse the shared .event-card partial in a quiet grid */
.event-hybrid .eh-related { margin-top: 52px; }
.event-hybrid .eh-related-head {
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 24px;
}
.event-hybrid .eh-section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}
.event-hybrid .eh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.event-hybrid .eh-foot { margin-top: 40px; }

/* focus: visible, palette-tinted */
.event-hybrid a:focus-visible,
.event-hybrid .eh-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .event-hybrid .eh-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .event-hybrid .eh-bill {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .event-hybrid .eh-bill--noimg { max-width: none; }
    .event-hybrid .eh-media img { max-height: 380px; }
}

@media (max-width: 800px) {
    .event-hybrid .eh-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
    .event-hybrid .eh-hero-inner { padding: 32px 16px 36px; }
    .event-hybrid .eh-wrap { padding: 24px 16px 56px; }
    .event-hybrid .eh-related-grid { grid-template-columns: 1fr; }
    .event-hybrid .eh-sched { gap: 14px; }
    .event-hybrid .eh-stamp { width: 62px; padding: 10px 6px; }
    .event-hybrid .eh-stamp-day { font-size: 1.8rem; }
    .event-hybrid .eh-actions { width: 100%; }
    .event-hybrid .eh-btn { flex: 1 1 auto; }
}
