/* JHCS26 promo: top banner and exit popup.
   Uses the site's own fonts (Fraunces, Hanken Grotesk) and tokens from /css/site.css.
   Event palette (plum + gold) matches the concert flyer. Remove after November 21, 2026. */

:root {
  --jh26-plum: #1A0C1E;
  --jh26-plum-2: #2A1230;
  --jh26-gold: #E6C670;
  --jh26-gold-soft: #F1E3BD;
  --jh26-cream: #F4ECDC;
}

/* ---------- Top banner (first child of .site-header, so it stays with the sticky header) ---------- */
.jh26-bar {
  background: linear-gradient(90deg, var(--jh26-plum) 0%, var(--jh26-plum-2) 50%, var(--jh26-plum) 100%);
  color: var(--jh26-cream);
  border-bottom: 1px solid rgba(230, 198, 112, .35);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
}
.jh26-bar__inner {
  max-width: 1320px; margin: 0 auto; padding: 9px 28px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: .9rem; line-height: 1.3; text-align: center;
}
.jh26-bar__title { font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--jh26-gold); font-size: 1.02rem; }
.jh26-bar__sep { color: rgba(230, 198, 112, .55); }
.jh26-bar__meta { color: var(--jh26-gold-soft); letter-spacing: .02em; }
.jh26-bar__cta {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px;
  background: var(--jh26-gold); color: var(--jh26-plum);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.jh26-bar__cta:hover, .jh26-bar__cta:focus-visible { background: #F3D98C; transform: translateY(-1px); }
.jh26-bar__cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.jh26-bar__short { display: none; }
@media (max-width: 860px) {
  .jh26-bar__inner { padding: 8px 16px; gap: 12px; font-size: .84rem; }
  .jh26-bar__long { display: none; }
  .jh26-bar__short { display: inline; }
}

/* ---------- Exit popup ---------- */
.jh26-pop[hidden] { display: none; }
.jh26-pop {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(14, 6, 16, .62); backdrop-filter: blur(3px);
  animation: jh26-fade .25s ease;
}
.jh26-pop__card {
  position: relative; width: min(1000px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  display: grid; grid-template-columns: minmax(300px, 42%) 1fr;
  background: radial-gradient(ellipse 90% 70% at 70% 30%, var(--jh26-plum-2) 0, var(--jh26-plum) 70%);
  color: var(--jh26-cream); border: 1px solid rgba(230, 198, 112, .45); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  animation: jh26-rise .35s cubic-bezier(.2, .7, .2, 1);
}
.jh26-pop__media { margin: 0; }
.jh26-pop__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 17px 0 0 17px; }
.jh26-pop__body { padding: 52px 56px 46px; display: flex; flex-direction: column; justify-content: center; font-family: "Hanken Grotesk", system-ui, sans-serif; }
.jh26-pop__eyebrow { margin: 0 0 14px; font-size: .84rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--jh26-gold); }
.jh26-pop__title { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 3rem; line-height: 1.08; color: #fff; }
.jh26-pop__title em { color: var(--jh26-gold); }
.jh26-pop__text { margin: 18px 0 0; font-size: 1.2rem; line-height: 1.55; color: var(--jh26-gold-soft); }
.jh26-pop__when { margin: 20px 0 0; font-size: 1.1rem; font-weight: 600; letter-spacing: .02em; color: #fff; }
.jh26-pop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.jh26-pop__cta {
  display: inline-flex; align-items: center; gap: .5rem; padding: 16px 32px; border-radius: 999px;
  background: var(--jh26-gold); color: var(--jh26-plum); font-weight: 700; font-size: 1.1rem; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.jh26-pop__cta:hover, .jh26-pop__cta:focus-visible { background: #F3D98C; transform: translateY(-1px); }
.jh26-pop__link { color: var(--jh26-gold-soft); font-size: 1.05rem; text-decoration: underline; text-underline-offset: 3px; }
.jh26-pop__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(230, 198, 112, .4); background: rgba(26, 12, 30, .7); color: var(--jh26-cream);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.jh26-pop__close:hover { background: var(--jh26-plum-2); }
.jh26-pop a:focus-visible, .jh26-pop button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1100px) {
  .jh26-pop__body { padding: 40px 40px 36px; }
  .jh26-pop__title { font-size: 2.5rem; }
  .jh26-pop__text { font-size: 1.1rem; }
}
@media (max-width: 680px) {
  .jh26-pop__card { grid-template-columns: 1fr; width: min(420px, 100%); }
  .jh26-pop__media { max-height: 300px; overflow: hidden; }
  .jh26-pop__media img { border-radius: 17px 17px 0 0; object-position: 50% 30%; }
  .jh26-pop__body { padding: 24px 22px 24px; }
  .jh26-pop__eyebrow { font-size: .74rem; margin-bottom: 10px; }
  .jh26-pop__title { font-size: 1.75rem; }
  .jh26-pop__text { font-size: 1.02rem; margin-top: 14px; }
  .jh26-pop__when { font-size: .95rem; margin-top: 16px; }
  .jh26-pop__actions { gap: 14px; margin-top: 24px; }
  .jh26-pop__cta { padding: 13px 24px; font-size: 1rem; }
  .jh26-pop__link { font-size: .95rem; }
}
@keyframes jh26-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jh26-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jh26-pop, .jh26-pop__card { animation: none; } }
