/* ARETÉ · event detail compatibility
   Editorial event-detail layer shared by SSR and client-rendered event pages. */

html:has(.event-detail-shell){
  --event-ink:#f1ece5;
  --event-muted:#a79da8;
  --event-amber:#d4a04e;
  --event-violet:#a84fc8;
  --event-line:rgba(241,232,219,.09);
}

html:has(.event-detail-shell) body{
  color:var(--event-ink);
}

html:has(.event-detail-shell) .event-hero,
html:has(.event-detail-shell) .event-info-card,
html:has(.event-detail-shell) .event-long-copy{
  border-color:var(--event-line);
}

html:has(.event-detail-shell) .event-hero{
  border-radius:20px;
  box-shadow:0 26px 76px rgba(0,0,0,.4);
}

html:has(.event-detail-shell) .event-hero-media{
  background-size:contain!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-color:#050407!important;
}

html:has(.event-detail-shell) .event-hero h1{
  font-size:clamp(2.4rem,3.55vw,3.7rem);
}

html:has(.event-detail-shell) .event-stamp{
  display:none!important;
}

html:has(.event-detail-shell) .event-access-copy{
  width:100%;
}

/* The description is editorial copy, not a teaser. Show it instead of clipping it. */
html:has(.event-detail-shell) .event-description{
  display:block!important;
  overflow:visible!important;
  -webkit-line-clamp:unset!important;
  max-width:55ch;
  color:#c8c0c8;
  line-height:1.62;
}

html:has(.event-detail-shell) .event-info-grid{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr);
  gap:10px;
  margin-top:12px;
}

html:has(.event-detail-shell) .event-info-card{
  min-width:0;
  padding:19px 21px;
  border-radius:14px;
  background:linear-gradient(145deg,rgba(13,9,16,.84),rgba(6,5,8,.92));
}

/* Madrid is already present in the hero and venue address; a third full card was visual repetition. */
html:has(.event-detail-shell) .event-info-grid>.event-info-card:nth-child(3){
  display:none;
}

html:has(.event-detail-shell) .event-info-card small{
  margin-bottom:7px;
  color:#bc78ce;
  font-size:.56rem;
  letter-spacing:.16em;
}

html:has(.event-detail-shell) .event-info-card strong{
  font-size:1.08rem;
  line-height:1.25;
}

html:has(.event-detail-shell) .event-seo-address{
  display:block;
  margin-top:8px;
  color:#928794;
  font-family:Inter,Arial,sans-serif;
  font-size:.59rem;
  line-height:1.35;
  letter-spacing:.075em;
  text-transform:uppercase;
}

html:has(.event-detail-shell) .event-detail-actions a,
html:has(.event-detail-shell) .event-access-pending{
  min-height:44px;
  border-radius:10px;
}

html:has(.event-detail-shell) .event-chips span{
  border-radius:999px;
}

/* Artist cards are the real line-up UI. Keep the textual SEO fallback only if artist cards fail to load. */
html:has(.event-resident-lineup) .event-seo-lineup{
  display:none!important;
}

/* Turn the SEO discovery block into a quiet footer, not another oversized content card. */
html:has(.event-detail-shell) aside.event-detail-shell{
  padding-top:0;
}

html:has(.event-detail-shell) .event-topic-links{
  margin-top:8px;
  padding:19px 3px 3px;
  border:0!important;
  border-top:1px solid rgba(241,232,219,.07)!important;
  border-radius:0!important;
  background:none!important;
}

html:has(.event-detail-shell) .event-topic-links h2{
  margin:0 0 10px;
  color:#756d78;
  font-family:Inter,Arial,sans-serif;
  font-size:.57rem;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.16em;
  text-transform:uppercase;
}

html:has(.event-detail-shell) .event-topic-links p{
  display:flex;
  flex-wrap:wrap;
  gap:7px 16px;
  margin:0;
  color:#8f8691;
  font-size:.7rem;
  line-height:1.5;
}

html:has(.event-detail-shell) .event-topic-links .event-venue-link{
  color:#9c929e;
  text-decoration-color:rgba(212,160,78,.35);
}

html:has(.event-detail-shell) a:focus-visible,
html:has(.event-detail-shell) button:focus-visible{
  outline:2px solid #edbd6b!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 4px rgba(237,189,107,.18)!important;
}

@media(max-width:720px){
  html:has(.event-detail-shell) body{
    padding-bottom:0!important;
  }

  html:has(.event-detail-shell) .event-detail-shell{
    width:min(1120px,calc(100% - 24px));
    padding-top:14px;
    padding-bottom:calc(34px + env(safe-area-inset-bottom));
  }

  html:has(.event-detail-shell) .event-hero{
    border-radius:16px;
  }

  /* Event artwork is artwork, never a cropped photo. */
  html:has(.event-detail-shell) .event-hero-media{
    width:100%;
    min-height:0!important;
    aspect-ratio:16/9;
    background-size:contain!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-color:#050407!important;
  }

  html:has(.event-detail-shell) .event-hero-media::after{
    background:linear-gradient(180deg,transparent 78%,rgba(6,4,7,.24))!important;
  }

  html:has(.event-detail-shell) .event-hero-copy{
    padding:21px 18px 24px!important;
    justify-content:flex-start;
  }

  html:has(.event-detail-shell) .event-hero-copy .eyebrow{
    font-size:.56rem;
    line-height:1.45;
    letter-spacing:.16em;
  }

  html:has(.event-detail-shell) .event-hero h1{
    max-width:12ch;
    margin:9px 0 14px!important;
    font-size:clamp(1.9rem,8.5vw,2.55rem)!important;
    line-height:.98!important;
    letter-spacing:-.032em;
    text-wrap:balance;
    overflow-wrap:normal;
    word-break:normal;
  }

  html:has(.event-detail-shell) .event-description{
    max-width:none;
    margin-bottom:0;
    font-size:.88rem;
    line-height:1.62;
  }

  html:has(.event-detail-shell) .event-chips{
    margin-top:15px;
  }

  html:has(.event-detail-shell) .event-info-grid{
    grid-template-columns:1fr;
    gap:9px;
    margin-top:9px;
  }

  html:has(.event-detail-shell) .event-info-card{
    padding:16px 17px;
  }

  html:has(.event-detail-shell) .event-info-card strong{
    font-size:1rem;
  }

  html:has(.event-detail-shell) .event-topic-links{
    margin-top:2px;
    padding:16px 2px 0;
  }

  html:has(.event-detail-shell) .event-topic-links h2{
    margin-bottom:8px;
    font-size:.53rem;
  }

  html:has(.event-detail-shell) .event-topic-links p{
    gap:6px 13px;
    font-size:.66rem;
  }

  html:has(.event-detail-shell) .lang button{
    min-width:44px;
    min-height:44px;
  }
}

@media(max-width:390px){
  html:has(.event-detail-shell) .event-hero-copy{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  html:has(.event-detail-shell) .event-hero h1{
    max-width:11.5ch;
    font-size:clamp(1.82rem,8vw,2.2rem)!important;
  }
}

@media(prefers-reduced-motion:reduce){
  html:has(.event-detail-shell),
  html:has(.event-detail-shell) *{
    scroll-behavior:auto!important;
  }

  html:has(.event-detail-shell) *,
  html:has(.event-detail-shell) *::before,
  html:has(.event-detail-shell) *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    transition-delay:0ms!important;
  }
}

/* chapter-v-guest-list-live-retry */
