/* ============================================================
   VividCharts — On-demand Webinar (reusable template)
   Inherits tokens + nav/footer/buttons from styles.css.
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.crumb a { color: var(--ink-3); transition: color .18s var(--ease); }
.crumb a:hover { color: var(--brand-strong); }
.crumb .sep { color: var(--line-strong); }
.crumb .here { color: var(--ink); }

/* ============================================================
   WEBINAR HERO
   ============================================================ */
.wb-hero { position: relative; padding: 32px 0 8px; overflow: hidden; }
.wb-hero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wb-hero .hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 72%);
  opacity: .5;
}
body.bg-plain .wb-hero .hero-bg .grid { display: none; }
.wb-hero .wrap { position: relative; z-index: 1; }

.wb-head { max-width: 880px; margin: 22px auto 0; text-align: center; }
.wb-tags { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.wb-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--brand-tint); color: var(--brand-strong);
}
.wb-badge.ondemand { background: var(--ink); color: var(--white); }
.wb-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.wb-meta-txt { font-size: 13.5px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.wb-meta-txt svg { width: 15px; height: 15px; }
.wb-title { font-size: clamp(30px, 4.4vw, 52px); margin-top: 22px; max-width: 20ch; margin-left: auto; margin-right: auto; }
.wb-dek { font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.5; margin: 20px auto 0; max-width: 64ch; }

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.video-stage { max-width: 980px; margin: 40px auto 0; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--dark-blue);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.video-frame .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
/* image-slot fills the frame; its own empty-state caption sits behind the scrim/play button */
.video-frame .video-poster::part(empty) { background: var(--dark-blue); }

.video-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(35,34,45,.35) 0%, rgba(35,34,45,0) 30%, rgba(35,34,45,0) 55%, rgba(35,34,45,.55) 100%);
  transition: opacity .4s var(--ease);
}
.video-overlay { position: absolute; inset: 0; }
.video-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(35,34,45,.55); border: 1px solid rgba(255,255,255,.18);
  padding: 6px 11px; border-radius: var(--r-sm); backdrop-filter: blur(4px);
}
.video-tag .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(63,193,199,.6); animation: pulse 2s infinite; }
.video-dur {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(35,34,45,.55); border: 1px solid rgba(255,255,255,.18);
  padding: 6px 11px; border-radius: var(--r-sm); backdrop-filter: blur(4px);
  font-variant-numeric: tabular-nums;
}
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: 84px; height: 84px; border-radius: 50%;
  border: 0; cursor: pointer; padding: 0;
  background: var(--brand); color: var(--brand-fg);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3), 0 0 0 0 rgba(63,193,199,.45);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .3s var(--ease);
}
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--brand-strong); box-shadow: 0 14px 38px rgba(0,0,0,.36); }
.video-title-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px 20px; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  transition: opacity .4s var(--ease);
}
.video-title-strip small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 3px; }

/* playing state */
.video-frame.playing .video-scrim,
.video-frame.playing .video-play,
.video-frame.playing .video-title-strip,
.video-frame.playing .video-tag { opacity: 0; pointer-events: none; }
.video-frame.playing .video-poster { filter: brightness(.5) saturate(.8); }

.video-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, rgba(35,34,45,0), rgba(35,34,45,.82));
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.video-frame.playing .video-controls { opacity: 1; transform: none; }
.vc-track { position: relative; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); cursor: pointer; }
.vc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--brand); border-radius: 3px; }
.vc-fill::after { content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.vc-row { display: flex; align-items: center; gap: 14px; margin-top: 11px; color: #fff; }
.vc-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 0; display: grid; place-items: center; opacity: .92; transition: opacity .16s var(--ease), color .16s var(--ease); }
.vc-btn:hover { opacity: 1; color: var(--light-turq); }
.vc-btn svg { width: 20px; height: 20px; display: block; }
.vc-time { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); letter-spacing: .02em; }
.vc-spacer { flex: 1; }
@media (prefers-reduced-motion: reduce) { .video-tag .rec { animation: none; } }

/* honest "recording coming soon" state — no playable embed yet (VIV-4628) */
.video-frame.no-recording { cursor: default; }
.video-frame.no-recording .video-play { display: none; }
.video-frame.no-recording .video-controls { display: none; }
.video-tag.is-soon .rec { display: none; }

/* ============================================================
   BODY LAYOUT — main + sticky aside
   ============================================================ */
.wb-body { padding: 56px 0 84px; }
.wb-layout { display: grid; grid-template-columns: minmax(0,1fr) 332px; gap: 56px; align-items: start; }
body.aside-left .wb-layout { grid-template-columns: 332px minmax(0,1fr); }
body.aside-left .wb-main { order: 2; }
body.aside-left .wb-aside { order: 1; }

.wb-block { margin-bottom: 48px; }
.wb-block:last-child { margin-bottom: 0; }
.wb-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 16px; display: flex; align-items: center; gap: 11px;
}
.wb-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wb-prose p { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; margin-bottom: 16px; }
.wb-prose p:last-child { margin-bottom: 0; }
.wb-prose strong { color: var(--ink); font-weight: 700; }

/* takeaways */
.takeaways { display: grid; gap: 14px; }
.tk { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.tk:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.tk .tk-n { width: 28px; height: 28px; border-radius: var(--r-sm); flex: none; background: var(--brand-tint); color: var(--brand-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; }
.tk p { font-size: 15.5px; color: var(--ink); line-height: 1.5; }
.tk p b { font-weight: 700; }

/* panelists */
.panelists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.panelist { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); padding: 22px; text-align: center; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.panelist:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.panelist .pa { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; background: var(--brand-tint); color: var(--brand-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; overflow: hidden; }
.panelist .pa image-slot { width: 72px; height: 72px; display: block; }
.panelist .pn { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.panelist .pr { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.panelist .pc { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-top: 3px; }
.panelist .plk { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink-3); margin-top: 14px; transition: all .18s var(--ease); }
.panelist .plk:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.panelist .plk svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .panelists { grid-template-columns: 1fr; } }

/* ============================================================
   ASIDE
   ============================================================ */
.wb-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); padding: 22px; }
.side-card .sc-label { font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }

/* share */
.share-row { display: flex; gap: 10px; }
.share-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); color: var(--ink-2); cursor: pointer; font-family: var(--font-body); font-size: 13px; font-weight: 600; transition: all .18s var(--ease); position: relative; }
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-tint); }
.share-btn .copied { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-sm); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.share-btn .copied::after { content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--ink); }
.share-btn.show-copied .copied { opacity: 1; }

/* resource download card */
.resource-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--light-cream); padding: 22px; }
.resource-card .rc-top { display: flex; gap: 13px; align-items: flex-start; }
.resource-card .rc-ic { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); color: var(--brand-strong); display: grid; place-items: center; flex: none; }
.resource-card .rc-ic svg { width: 21px; height: 21px; }
.resource-card .rc-ttl { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.resource-card .rc-sub { font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-top: 3px; }
.resource-card .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* side cta */
.side-cta { border-radius: var(--r-md); background: var(--dark-blue); color: var(--light-cream); padding: 24px; position: relative; overflow: hidden; }
.side-cta .sg { position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(63,193,199,.28), transparent 65%); pointer-events: none; }
.side-cta h4 { color: #fff; font-size: 18px; position: relative; }
.side-cta p { color: rgba(245,243,239,.74); font-size: 13.5px; line-height: 1.5; margin-top: 9px; position: relative; }
.side-cta .btn { width: 100%; justify-content: center; margin-top: 16px; position: relative; }

@media (max-width: 920px) {
  .wb-layout { grid-template-columns: 1fr; gap: 40px; }
  body.aside-left .wb-layout { grid-template-columns: 1fr; }
  body.aside-left .wb-main { order: 1; }
  body.aside-left .wb-aside { order: 2; }
  .wb-aside { position: static; }
}

/* ============================================================
   RELATED WEBINARS
   ============================================================ */
.related { background: var(--light-cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.rel-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.rel-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--dark-blue); display: grid; place-items: center; overflow: hidden; }
.rel-thumb image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.rel-thumb .rel-play { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: rgba(63,193,199,.92); color: var(--brand-fg); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.rel-thumb .rel-play svg { width: 20px; height: 20px; margin-left: 2px; }
.rel-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.rel-type { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-strong); }
.rel-card h3 { font-size: 17px; margin-top: 10px; line-height: 1.28; }
.rel-card p { font-size: 13.5px; color: var(--ink-2); margin-top: 9px; line-height: 1.5; flex: 1; }
.rel-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink); }
.rel-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.rel-card:hover .rel-link { color: var(--brand-strong); }
.rel-card:hover .rel-link svg { transform: translateX(3px); }
@media (max-width: 880px) { .rel-grid { grid-template-columns: 1fr; } }

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.newsletter { padding: 80px 0; }
.news-inner { display: grid; grid-template-columns: 1fr minmax(360px, 44%); gap: 48px; align-items: center; max-width: 1000px; margin: 0 auto; }
.news-copy h2 { font-size: clamp(26px, 3vw, 36px); }
.news-copy p { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; margin-top: 14px; max-width: 42ch; }
.news-form .nf-pair { display: flex; gap: 10px; }
.news-form .sbx-input { flex: 1; min-width: 0; }
.news-form .btn-brand { flex: none; }
.news-form .btn-brand.is-busy, .news-form .btn-brand:disabled { opacity: .65; cursor: progress; }
.news-success { display: none; align-items: center; gap: 13px; background: var(--brand-tint); border: 1px solid #BDEBEC; border-radius: var(--r-md); padding: 16px 18px; }
.news-success.on { display: flex; }
.news-success .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-fg); display: grid; place-items: center; flex: none; }
.news-success .ic svg { width: 18px; height: 18px; }
.news-success b { display: block; font-size: 14.5px; color: var(--ink); }
.news-success span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.news-cap { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.news-cap svg { width: 14px; height: 14px; color: var(--brand); }
@media (max-width: 760px) { .news-inner { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 460px) { .news-form .nf-pair { flex-direction: column; } .news-form .btn-brand { width: 100%; justify-content: center; } }
