/* Happenings page and Art Basel popup. Separate file so style.css (and its ?v= on
   every page) stays untouched. Reads the site tokens, including the one --gutter.
   2026-11-25: page styling reverted to the green pre-v3 look (Andy); v3 info kept
   (per-act dates and times). The popup section below is the v3 flyer popup. */

/* ---------- Happenings hero ---------- */
.hap-hero{position:relative;padding:7.5rem var(--gutter) clamp(2.5rem,6vw,4rem);background:radial-gradient(ellipse 70% 60% at 70% 40%,rgba(120,50,36,.22),transparent 70%),var(--emerald-950,#101a12)}
.hap-hero__in{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr;gap:2.25rem;align-items:center}
.hap-hero__txt{text-align:center}
.hap-hero .display{color:var(--cream);font-size:clamp(2rem,5.5vw,3.6rem)}
.hap-script{display:block;font-family:var(--font-serif);font-style:italic;font-weight:400;color:var(--gold-bright);font-size:1.15em;letter-spacing:0;margin-top:.2rem}
.hap-dates{font-family:var(--font-display);letter-spacing:.2em;text-transform:uppercase;color:var(--gold-bright);font-size:.9rem;margin:1.25rem 0 1rem}
.hap-lede{font-family:var(--font-serif);font-size:clamp(1.2rem,2.2vw,1.5rem);line-height:1.55;color:var(--cream-dim);max-width:34rem;margin:0 auto 1.75rem}
.hap-cta{display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center}
.hap-hero__art img{display:block;width:100%;max-width:420px;height:auto;margin:0 auto;border:1px solid rgba(201,168,106,.25);box-shadow:0 20px 60px rgba(0,0,0,.5)}
@media(min-width:860px){
  .hap-hero__in{grid-template-columns:1.1fr .9fr;gap:3.5rem}
  .hap-hero__txt{text-align:left}
  .hap-lede{margin-left:0}
  .hap-cta{justify-content:flex-start}
}

/* ---------- Sections ---------- */
.hap-sec{padding:clamp(3.5rem,8vw,6rem) 0}
.hap-head{text-align:center;max-width:44rem;margin:0 auto clamp(2.5rem,6vw,4rem)}
.hap-grid{display:flex;flex-direction:column;gap:clamp(2.5rem,6vw,4.5rem);max-width:1100px;margin:0 auto}
.hap-card{display:grid;grid-template-columns:1fr;gap:1.5rem;align-items:center;background:none;border:0}
.hap-card img{display:block;width:100%;max-width:420px;height:auto;margin:0 auto;border:1px solid rgba(201,168,106,.22);box-shadow:0 18px 50px rgba(0,0,0,.45)}
.hap-card__b{padding:0;max-width:60ch;margin:0 auto;text-align:center}
.hap-card h3{font-size:clamp(1.5rem,3vw,2rem);color:var(--cream);margin:.4rem 0 .8rem}
.hap-card p{font-size:1rem;line-height:1.7;color:var(--cream-dim);margin:0}
.hap-card .hap-card__b p{margin-bottom:1.4rem}
.hap-card__cta{padding:.8rem 1.5rem}
@media(min-width:760px){
.hap-card{grid-template-columns:minmax(0,40%) minmax(0,1fr);gap:clamp(2rem,5vw,4rem)}
.hap-card:nth-child(even){grid-template-columns:minmax(0,1fr) minmax(0,40%)}
.hap-card:nth-child(even) img{order:2}
.hap-card img{max-width:420px;margin:0}
.hap-card:nth-child(even) img{margin-left:auto}
.hap-card__b{text-align:left;margin:0}
}
.hap-tag{display:inline-block;font-family:var(--font-display);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-bright);margin:0}
.hap-violin{display:grid;grid-template-columns:1fr;gap:1.5rem;align-items:center;max-width:1100px;margin:0 auto;border-top:1px solid rgba(201,168,106,.22);text-align:center}
.hap-violin__txt{max-width:60ch;margin:0 auto}
.hap-violin__img img{display:block;width:100%;max-width:420px;height:auto;margin:0 auto;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.hap-violin__txt p{color:var(--cream-dim);line-height:1.7}
.hap-when{margin-top:1.25rem;color:var(--cream)}
.hap-when strong{font-family:var(--font-display);letter-spacing:.08em;color:var(--gold-bright)}
.hap-card .hap-when{color:var(--cream)}
.hap-violin__txt .btn{margin-top:1.25rem}
.hap-violin__txt .hap-addr{margin:1rem 0 0;font-size:.85rem;letter-spacing:.04em;color:var(--cream-dim);opacity:.75}
@media(min-width:760px){.hap-violin{grid-template-columns:minmax(0,40%) minmax(0,1fr);gap:clamp(2rem,5vw,4rem);text-align:left}.hap-violin{grid-template-columns:minmax(0,1fr) minmax(0,40%)}.hap-violin__img{order:2}.hap-violin__img img{margin:0 0 0 auto}.hap-violin__txt{margin:0}}
.hap-card img{transition:transform .5s ease}
@media(hover:hover){.hap-card:hover img,.hap-violin__img:hover img{transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.hap-card img{transition:none}.hap-card:hover img{transform:none}}

/* Polish pass: larger lineup type, content always visible without the reveal animation. */
.hap-grid{gap:clamp(2.5rem,6.7vw,6rem)}
.hap-card.reveal,.hap-violin.reveal,.hap-head.reveal{opacity:1;transform:none;transition:none}
.hap-card .hap-tag{font-size:.8rem}
.hap-card h3{font-size:clamp(1.75rem,3.2vw,2.25rem);line-height:1.15}
.hap-card p{font-size:1.1rem;line-height:1.7}
.hap-card__cta{padding:1rem 1.9rem;font-size:.8rem}
@media(min-width:760px){
.hap-card{grid-template-columns:minmax(0,40%) minmax(0,52%);justify-content:space-between}
.hap-card:nth-child(even){grid-template-columns:minmax(0,52%) minmax(0,40%)}
.hap-card__b{max-width:none}
}

/* ---------- Art Basel popup: the flyer is the card ---------- */
.ab-pop[hidden]{display:none}
/* 2026-11-25 (Andy: "shrink + deploy"): card capped at 440px desktop, 90vw phone, and
   never wider than the flyer can be at the viewport's height, so flyer and button
   always share one screen with no scroll. --ab-room = overlay padding + card padding,
   gap, button and border. .5586 = flyer aspect 720/1289. */
.ab-pop{--ab-room:calc(2*var(--gutter) + 6rem);position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:var(--gutter);background:rgba(8,12,9,.72)}
.ab-pop__card{position:relative;display:flex;flex-direction:column;align-items:center;gap:.9rem;width:min(440px,90vw,calc((100vh - var(--ab-room))*.5586 + 1.5rem + 2px));width:min(440px,90vw,calc((100dvh - var(--ab-room))*.5586 + 1.5rem + 2px));max-width:100%;padding:.75rem;background:var(--emerald-950,#101a12);border:1px solid rgba(201,168,106,.45);box-shadow:0 24px 70px rgba(0,0,0,.6)}
.ab-pop__card img{display:block;width:100%;max-width:100%;height:auto;max-height:calc(100vh - var(--ab-room));max-height:calc(100dvh - var(--ab-room));object-fit:contain}
.ab-pop__card .btn{align-self:center;flex:none}
.ab-pop__x{position:absolute;top:1.1rem;right:1.1rem;z-index:1;width:44px;height:44px;border-radius:50%;background:rgba(11,17,12,.78);border:1px solid rgba(230,205,146,.55);color:var(--cream);font-size:1.7rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0 0 .12rem}
.ab-pop__x:hover{background:rgba(11,17,12,.95)}
.ab-pop__x:focus-visible,.ab-pop .btn:focus-visible{outline:2px solid var(--gold-bright);outline-offset:2px}
