/* ============================================================
   TRIBECA LISBOA — EVENT DETAIL (responsive)
   Extends the design system + reuses the responsive homepage
   tokens (--gut, --maxw, .r-wrap, .r-band) and the homepage
   event card (.r-ecard) for Related. Mobile → tablet → desktop.
   ============================================================ */
*{ box-sizing:border-box; }
.ed{ position:relative; background:#000; color:#fff; font-family:var(--font-text); -webkit-font-smoothing:antialiased; }
.ed img{ display:block; }

/* shared full-bleed rail padding so the FIRST card aligns to the
   centered content column at every width (same as homepage rails) */
.ed-bleedpad{
  padding-left:  max(var(--gut), calc((100% - var(--maxw)) / 2 + var(--gut)));
  padding-right: max(var(--gut), calc((100% - var(--maxw)) / 2 + var(--gut)));
}

/* reveal */
.ed-rev{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.ed-rev.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .ed-rev{ opacity:1; transform:none; transition:none; } }

/* ===================== HERO ===================== */
.ed-hero{ position:relative; min-height:62vh; overflow:hidden; background:#111; }
.ed-hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ed-hero-grad{ position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.86) 88%, #000 100%); }
.ed-hero-body{ position:absolute; left:0; right:0; bottom:0; padding-bottom:32px; }
.ed-hero-col{ display:flex; flex-direction:column; }
.ed-back{ display:inline-flex; align-items:center; gap:7px; align-self:flex-start; margin-bottom:18px;
  color:#fff; text-decoration:none; font-family:var(--font-text); font-weight:700; font-size:13px;
  text-transform:uppercase; letter-spacing:.04em; opacity:.85; transition:opacity .15s, gap .15s; }
.ed-back:hover{ opacity:1; gap:11px; }
.ed-back svg{ width:15px; height:15px; }
.ed-hero-row{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.ed-kicker{ color:#fff; font-family:var(--font-text); font-weight:700; font-size:13px;
  text-transform:uppercase; letter-spacing:.06em; opacity:.92; margin-bottom:12px; }
.ed-hero-title{ margin:0; color:#fff; font-family:var(--font-display-cond); font-weight:900;
  text-transform:uppercase; font-size:78px; line-height:.84; letter-spacing:.005em; }

/* tag pill + status badge */
.ed-tag{ display:inline-block; border-radius:var(--radius-pill); padding:5px 12px;
  font-family:var(--font-text); font-weight:700; font-size:13px; }
.ed-badge{ border-radius:var(--radius-xs); padding:4px 9px; color:#fff;
  font-family:var(--font-text); font-weight:700; font-size:12px; letter-spacing:.03em; }

@media (min-width:768px){
  .ed-hero{ min-height:68vh; }
  .ed-hero-body{ padding-bottom:44px; }
  .ed-hero-col{ max-width:760px; }
  .ed-hero-title{ font-size:104px; }
}
@media (min-width:1024px){
  .ed-hero{ min-height:74vh; }
  .ed-hero-title{ font-size:128px; }
  .ed-hero-col{ max-width:900px; }
}
@media (min-width:1440px){ .ed-hero-title{ font-size:150px; } }

/* ===================== INFO STRIP ===================== */
.ed-info{ padding-top:32px; }
.ed-info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line-dark); border:1px solid var(--line-dark); }
.ed-info-cell{ background:#000; padding:16px; }
.ed-info-cell.full{ grid-column:1 / -1; }
.ed-info-k{ color:var(--fg-3); font-family:var(--font-text); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px; }
.ed-info-v{ color:#fff; font-family:var(--font-text); font-size:16px; line-height:1.2; }
.ed-info-v .pin{ display:inline-flex; vertical-align:-2px; margin-right:4px; }
.ed-actions{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.ed-act{ display:flex; align-items:center; justify-content:center; gap:8px; height:48px; cursor:pointer;
  background:transparent; border:1px solid #fff; color:#fff;
  font-family:var(--font-text); font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:.02em;
  transition:background .15s, color .15s; }
.ed-act:hover{ background:#fff; color:#000; }
.ed-act svg{ width:17px; height:17px; }
@media (min-width:768px){
  .ed-info-grid{ grid-template-columns:1fr 1fr 1.5fr; }
  .ed-info-cell.full{ grid-column:auto; }
  .ed-info-cell{ padding:20px; }
  .ed-info-v{ font-size:18px; }
  .ed-actions{ grid-template-columns:auto auto; justify-content:start; gap:14px; margin-top:20px; }
  .ed-act{ padding:0 22px; }
}

/* ===================== SECTION CHROME ===================== */
.ed-sec{ padding-top:var(--band-y); }
.ed-eyebrow{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.ed-eyebrow .ln{ height:1px; flex:1; background:var(--line-dark); }
.ed-eyebrow .tx{ color:var(--fg-3); font-family:var(--font-text); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.14em; white-space:nowrap; }
.ed-h{ margin:0; color:#fff; font-family:var(--font-display); font-weight:800; text-transform:uppercase;
  font-size:clamp(48px,6vw,88px); line-height:.9; letter-spacing:-.01em; }

/* ===================== DESCRIPTION ===================== */
.ed-lead{ margin:0 0 16px; color:#fff; font-family:var(--font-text); font-weight:700; font-size:21px; line-height:1.25; max-width:60ch; text-wrap:pretty; }
.ed-body{ margin:0; color:var(--fg-3); font-family:var(--font-text); font-size:16px; line-height:1.5; max-width:64ch; text-wrap:pretty; }
@media (min-width:1024px){ .ed-lead{ font-size:26px; } .ed-body{ font-size:18px; } }

/* ===================== PROGRAM ===================== */
.ed-prog{ }
.ed-prog-row{ position:relative; display:grid; grid-template-columns:58px 1fr; gap:16px; padding:18px 0; border-top:1px solid var(--line-dark); max-width:900px; }
.ed-prog-row:first-child{ border-top:none; }
.ed-prog-time{ color:#fff; font-family:var(--font-display); font-weight:800; font-size:20px; line-height:1; padding-top:2px; }
.ed-prog-main{ border-left:1px solid var(--line-dark); padding-left:18px; position:relative; }
.ed-prog-dot{ position:absolute; left:-4.5px; top:4px; width:8px; height:8px; background:var(--film-bg); }
.ed-prog-title{ color:#fff; font-family:var(--font-text); font-weight:700; font-size:18px; line-height:1.15; }
.ed-prog-note{ color:var(--fg-3); font-family:var(--font-text); font-size:14px; line-height:1.35; margin-top:5px; }
@media (min-width:1024px){
  .ed-prog-row{ grid-template-columns:120px 1fr; padding:24px 0; align-items:start; }
  .ed-prog-time{ font-size:26px; }
  .ed-prog-title{ font-size:22px; }
  .ed-prog-note{ font-size:15px; margin-top:7px; }
}

/* ===================== GUESTS (editorial rail) ===================== */
/* first card aligns to the content grid via .ed-bleedpad */
.ed-grail{ display:flex; gap:14px; overflow-x:auto; padding-top:4px; padding-bottom:var(--band-y); }
.ed-grail::-webkit-scrollbar{ display:none; }
/* confirmed guests: the card element is the <a>; placeholders stay a div */
.ed-gcard{ width:172px; flex:none; cursor:pointer; color:inherit; text-decoration:none; }
a.ed-gcard:focus-visible{ outline:2px solid var(--pink); outline-offset:2px; }
.ed-gcard-imgwrap{ position:relative; width:100%; aspect-ratio:3/4; overflow:hidden; background:#111; }
.ed-gcard-img{ width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.16,1,.3,1); }
.ed-gcard:hover .ed-gcard-img{ transform:scale(1.05); }
.ed-gcard-arrow{ position:absolute; right:0; bottom:0; width:34px; height:34px; background:#000; color:#fff;
  display:flex; align-items:center; justify-content:center; transition:background .15s, color .15s; }
.ed-gcard:hover .ed-gcard-arrow{ background:var(--pink); color:#000; }      /* hover = system pink accent */
.ed-gcard-arrow svg{ width:15px; height:15px; }
.ed-gcard-role{ color:var(--fg-3); font-family:var(--font-text); font-weight:400;
  font-size:var(--caption-size); line-height:var(--caption-lh); margin:12px 0 3px; }  /* caption text style */
.ed-gcard-name{ color:#fff; font-family:var(--font-text); font-weight:700; font-size:18px; line-height:1.1; }
@media (min-width:768px){ .ed-gcard{ width:200px; } }
@media (min-width:1024px){ .ed-gcard{ width:230px; } .ed-gcard-name{ font-size:20px; } }

/* ===================== RELATED ===================== */
/* uses homepage .r-rail + .r-ecard (loaded from responsive.css) — first card aligns to grid */

/* tail spacing so content clears the sticky CTA */
.ed-tail{ height:120px; }
@media (min-width:1024px){ .ed-tail{ height:128px; } }

/* ===================== STICKY CTA (no pricing) ===================== */
.ed-cta{ position:sticky; bottom:0; z-index:45; background:#000; border-top:1px solid var(--line-dark); }
.ed-cta-inner{ display:flex; align-items:center; gap:16px; padding-top:14px; padding-bottom:16px; }
.ed-cta-avail{ flex:none; display:flex; align-items:center; gap:8px; color:#fff;
  font-family:var(--font-text); font-weight:700; font-size:13px; }
.ed-cta-avail .dot{ width:8px; height:8px; border-radius:50%; background:var(--pink); flex:none; }
.ed-cta-btn{ flex:1; height:52px; border:none; cursor:pointer; background:#fff; color:#000;
  font-family:var(--font-text); font-weight:700; font-size:15px; text-transform:uppercase; letter-spacing:.02em;
  display:flex; align-items:center; justify-content:center; gap:8px; transition:background .15s, color .15s; }
.ed-cta-btn:hover{ background:var(--pink); color:#fff; }
.ed-cta-btn svg{ width:18px; height:18px; }
@media (min-width:768px){
  .ed-cta-inner{ justify-content:space-between; }
  .ed-cta-avail{ font-size:14px; }
  .ed-cta-btn{ flex:none; min-width:320px; }
}

/* ===================== TOAST + SHARE SHEET ===================== */
.ed-toast{ position:fixed; left:50%; bottom:96px; transform:translateX(-50%) translateY(12px);
  background:#fff; color:#000; padding:12px 18px; font-family:var(--font-text); font-weight:700; font-size:14px;
  display:flex; align-items:center; gap:8px; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; z-index:120; white-space:nowrap; }
.ed-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.ed-toast svg{ width:16px; height:16px; }

.ed-sheet{ position:fixed; inset:0; z-index:130; display:flex; align-items:flex-end; justify-content:center; pointer-events:none; }
.ed-sheet-scrim{ position:absolute; inset:0; background:rgba(0,0,0,.6); opacity:0; transition:opacity .28s; }
.ed-sheet.open{ pointer-events:auto; }
.ed-sheet.open .ed-sheet-scrim{ opacity:1; }
.ed-sheet-panel{ position:relative; width:100%; max-width:560px; background:#000; border:1px solid var(--line-dark);
  padding:20px var(--gut) calc(20px + 8px); transform:translateY(100%); transition:transform .3s cubic-bezier(.16,1,.3,1); }
.ed-sheet.open .ed-sheet-panel{ transform:none; }
.ed-sheet-title{ color:#fff; font-family:var(--font-display); font-weight:800; text-transform:uppercase; font-size:26px; margin:0; }
.ed-sheet-x{ background:transparent; border:1px solid var(--line-dark); color:#fff; width:40px; height:40px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.ed-sheet-x svg{ width:18px; height:18px; }
.ed-sheet-row{ display:flex; gap:12px; margin-top:16px; }
.ed-share-btn{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 6px; cursor:pointer;
  background:transparent; border:1px solid var(--line-dark); color:#fff;
  font-family:var(--font-text); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.02em;
  transition:background .15s, border-color .15s; }
.ed-share-btn:hover{ background:rgba(255,255,255,.08); border-color:#fff; }
.ed-share-btn svg{ width:22px; height:22px; }
