/* ============================================================
 * Webinar / Tour single-post styles.
 * Loaded by inc/webinar-tour.php for any post in the webinars
 * or tours category. Markup branches between variants via the
 * .is-webinar / .is-tour classes on the .wb-page wrapper
 * (set in single-webinar-tour.php from pi_is_tour()).
 * ============================================================ */

/* ---------------- HERO ---------------- */
.wb-hero { padding: 64px 0 32px; background: var(--off-white-60); border-bottom: 1px solid var(--color-border); }
.wb-hero .inner { max-width: 1100px; margin: 0 auto; }
.wb-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; background: var(--anthracite-100); color: var(--green-100); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.wb-hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-100); animation: wbLivePulse 2s infinite; }
@keyframes wbLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
/* Tour eyebrow gets a swapped colour treatment to differentiate. */
.wb-page.is-tour .wb-hero .eyebrow { background: var(--green-100); color: var(--anthracite-100); }
.wb-page.is-tour .wb-hero .eyebrow .dot { background: var(--anthracite-100); }

.wb-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 52px; letter-spacing: -0.025em; line-height: 1.06; color: var(--anthracite-100); margin: 22px 0 20px; max-width: 880px; }
.wb-hero p.intro { font-size: 19px; color: var(--color-text-muted); line-height: 1.55; max-width: 720px; margin-bottom: 28px; }

.wb-hero .meta-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding-top: 22px; border-top: 1px dashed var(--color-border); }
.wb-hero .meta-row .item { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--color-text-subtle); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.wb-hero .meta-row .item svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.wb-hero .meta-row .item b { color: var(--anthracite-100); }
.wb-hero .meta-row .spacer { flex: 1; }

.wb-hero .share { display: flex; gap: 6px; }
.wb-hero .share button,
.wb-hero .share .share-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: #fff; border: 1px solid var(--color-border); border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.06em; font-weight: 600;
  cursor: pointer; transition: all 150ms var(--ease-standard);
  text-decoration: none;
}
.wb-hero .share button:hover,
.wb-hero .share .share-link:hover { color: var(--anthracite-100); border-color: var(--anthracite-40); background: var(--off-white-100); }
.wb-hero .share button svg,
.wb-hero .share .share-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.wb-hero .share button.copied { color: #1E7A2B; border-color: #C7E5CD; background: #E7F4E9; }

/* ---------------- MEDIA + STICKY ---------------- */
.wb-main { padding: 48px 0 96px; background: var(--off-white-60); }
.wb-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wb-grid.full { grid-template-columns: 1fr; max-width: 1100px; }

.wb-main .media-label { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-subtle); letter-spacing: 0.10em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.wb-main .media-label svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.wb-main .media-frame {
  aspect-ratio: 16 / 9; width: 100%; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #1A1F26, var(--anthracite-100));
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 60px -20px rgba(20,25,35,0.28), 0 0 0 8px rgba(255,255,255,0.6);
  position: relative; cursor: pointer;
  display: block; text-decoration: none;
}
.wb-main .media-frame .thumb {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.wb-main .media-frame .thumb:not([style]) {
  background:
    radial-gradient(circle at 30% 40%, rgba(97,206,112,0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(54,62,72,0.6), transparent 50%),
    linear-gradient(135deg, #1A1F26, #2A323D);
}
.wb-main .media-frame .thumb::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px);
  mask: radial-gradient(circle at 60% 50%, black 0%, transparent 80%);
}
/* Play badge — sits on .btn .btn-lg .btn-primary for shared button typography,
 * but the colour, shape and centring are pinned here explicitly so the
 * cascade order (and any future btn-primary tweaks) can't drift it back to
 * a light fill. var(--anthracite-90) = #4A515A. */
.wb-main .play-btn {
  position: absolute; left: 50%; top: 50%;
  /* Override btn-lg's padding + btn's radius-md so the badge stays a fixed
   * 96px circle regardless of its inner glyph. */
  width: 96px; height: 96px; padding: 0;
  border-radius: 50%;
  background: var(--anthracite-90);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
  /* Combine the centring transform with the hover-scale on .media-frame
   * — needs an override of .btn-primary:hover's translateY(-1px). */
  transform: translate(-50%, -50%);
  transition: transform 200ms var(--ease-standard);
}
.wb-main .play-btn:hover { background: var(--anthracite-90); }
.wb-main .media-frame:hover .play-btn,
.wb-main .play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.wb-main .play-btn::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); animation: wbRingPulse 2.4s ease-out infinite;
}
@keyframes wbRingPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.wb-main .play-btn svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }

.wb-main .media-overlay {
  position: absolute; left: 32px; bottom: 32px; right: 32px;
  color: #fff;
}
.wb-main .media-overlay .by { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.10em; text-transform: uppercase; }
.wb-main .media-overlay .ttl { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-top: 6px; max-width: 540px; line-height: 1.2; }
.wb-main .media-controls {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 32px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}
.wb-main .media-controls .scrub { flex: 1; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; position: relative; }
.wb-main .media-controls .scrub-fill { width: 18%; height: 100%; background: var(--green-100); border-radius: 2px; }
.wb-main .media-controls .time { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }

/* Storylane embed slot — replaces .media-frame when wb_storylane_id is set.
 * Wraps Storylane's own .sl-embed (which manages its own intrinsic aspect
 * ratio via padding-bottom) with the same outer chrome the placeholder
 * frame uses, so both variants sit consistently in the page. The iframe's
 * inner radius/border/shadow is left to Storylane's stock snippet. */
.wb-main .media-storylane {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(20,25,35,0.28), 0 0 0 8px rgba(255,255,255,0.6);
  /* Slight inset so Storylane's own border/shadow don't sit flush against
   * the page background — matches the breathing room around .media-frame. */
  padding: 0;
}
.wb-main .media-storylane .sl-embed { background: var(--off-white-100); border-radius: 12px; overflow: hidden; }

/* Sticky CTA card */
.cta-card {
  position: sticky; top: 96px;
  padding: 28px; background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgba(54,62,72,0.18);
}
.cta-card .lab { font-family: var(--font-mono); font-size: 11px; color: var(--green-100); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.cta-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; margin: 10px 0 8px; line-height: 1.2; }
.cta-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 18px; }
.cta-card .btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cta-card .btn { width: 100%; justify-content: center; }
.cta-card .trust { padding-top: 16px; border-top: 1px dashed var(--color-border); font-size: 12px; color: var(--color-text-subtle); line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.cta-card .trust .ic { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--green-20); color: #1E7A2B; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.cta-card .trust .ic svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 3; }

/* ---------------- CONTENT BLOCKS ---------------- */
.wb-section { padding: 80px 0; }
.wb-section.alt { background: #fff; }
.wb-section h2 { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -0.02em; line-height: 1.15; margin: 14px 0 38px; max-width: 720px; }

/* "What you'll learn" — checklist style */
.learn-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 1100px; }
.learn-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; background: var(--off-white-60); border: 1px solid var(--color-border); border-radius: 12px;
  transition: all 180ms var(--ease-standard);
}
.learn-item:hover { background: #fff; border-color: var(--anthracite-40); }
.learn-item .ic {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: var(--anthracite-100); color: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.learn-item .body { padding-top: 4px; }
.learn-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--anthracite-100); letter-spacing: -0.005em; }
.learn-item p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; margin-top: 4px; }

/* Key takeaways */
.takeaways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1100px; }
.takeaway {
  padding: 28px 24px 30px; background: linear-gradient(180deg, #fff, var(--off-white-60));
  border: 1px solid var(--color-border); border-radius: 14px; position: relative;
}
.takeaway .num { font-family: var(--font-mono); font-size: 11px; color: var(--green-100); letter-spacing: 0.14em; font-weight: 700; }
.takeaway p { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--anthracite-100); letter-spacing: -0.01em; line-height: 1.35; margin-top: 16px; }

/* Speaker section */
.speaker-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center;
  padding: 28px; background: var(--off-white-60); border: 1px solid var(--color-border); border-radius: 16px; max-width: 720px;
}
.speaker-avatar {
  width: 120px; height: 120px; border-radius: 16px;
  background: linear-gradient(135deg, var(--anthracite-100), #2A323D);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-100); font-family: var(--font-display); font-weight: 700; font-size: 36px;
  border: 1px solid var(--color-border);
}
.speaker-card .name { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--anthracite-100); letter-spacing: -0.01em; }
.speaker-card .role { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-subtle); letter-spacing: 0.10em; text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.speaker-card .bio { font-size: 14px; color: var(--color-text-muted); line-height: 1.55; margin-top: 12px; }

/* Transcript */
.transcript-block {
  border: 1px solid var(--color-border); border-radius: 12px; background: #fff; max-width: 1100px;
  overflow: hidden;
}
.transcript-toggle {
  width: 100%; padding: 18px 22px; background: transparent; border: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--anthracite-100);
  cursor: pointer; text-align: left;
}
.transcript-toggle .meta { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-subtle); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.transcript-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 200ms; }
.transcript-block.open .transcript-toggle svg { transform: rotate(180deg); }
.transcript-body {
  max-height: 0; overflow: hidden; transition: max-height 320ms var(--ease-standard);
  border-top: 1px solid transparent;
}
.transcript-block.open .transcript-body { max-height: 600px; overflow-y: auto; border-top-color: var(--color-border); }
.transcript-body .inner { padding: 22px; font-size: 14px; line-height: 1.65; color: var(--color-text-muted); }
.transcript-body .ts { font-family: var(--font-mono); font-size: 11px; color: var(--green-100); font-weight: 700; letter-spacing: 0.04em; margin-right: 10px; }
.transcript-body p { margin-bottom: 14px; }

/* Free-form body content rendered below the structured sections. */
.wb-body .wb-body-inner { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.65; color: var(--color-text-muted); }
.wb-body .wb-body-inner h2,
.wb-body .wb-body-inner h3 { color: var(--anthracite-100); font-family: var(--font-display); margin-top: 1.6em; }
.wb-body .wb-body-inner p { margin-bottom: 1.2em; }
.wb-body .wb-body-inner ul,
.wb-body .wb-body-inner ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.wb-body .wb-body-inner li { margin-bottom: 0.4em; }
.wb-body .wb-body-inner a { color: var(--anthracite-100); text-decoration: underline; text-underline-offset: 3px; }

/* Related */
.wb-section .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wb-section .related-card { padding: 26px; background: #fff; border: 1px solid var(--color-border); border-radius: 14px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; transition: all 180ms var(--ease-standard); }
.wb-section .related-card:hover { transform: translateY(-2px); border-color: var(--anthracite-40); box-shadow: var(--shadow-md); }
.wb-section .related-card .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--green-100); font-weight: 700; }
.wb-section .related-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.wb-section .related-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; flex: 1; }
.wb-section .related-card .go { font-size: 13px; font-weight: 600; color: var(--anthracite-100); display: inline-flex; align-items: center; gap: 6px; }
.wb-section .related-card .go svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 150ms; }
.wb-section .related-card:hover .go svg { transform: translateX(3px); }

/* Final CTA */
.wb-final-cta { background: var(--gradient-primary); color: #fff; padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.wb-final-cta::before { content: ""; position: absolute; left: 50%; top: -20%; width: 720px; height: 720px; background: radial-gradient(circle, rgba(97,206,112,0.18), transparent 60%); transform: translateX(-50%); pointer-events: none; }
.wb-final-cta .inner { position: relative; z-index: 1; }
.wb-final-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: 44px; letter-spacing: -0.02em; color: #fff; max-width: 800px; margin: 14px auto; }
.wb-final-cta p.sup { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 600px; margin: 8px auto 0; line-height: 1.55; }
.wb-final-cta .btns { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }

@media (max-width: 1100px) {
  .wb-grid { grid-template-columns: 1fr; padding: 0 24px; }
  .cta-card { position: static; }
  .learn-list, .wb-section .related-grid { grid-template-columns: 1fr 1fr; }
  .takeaways { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .wb-hero h1 { font-size: 36px; }
  .wb-section h2 { font-size: 28px; }
  .learn-list, .wb-section .related-grid, .takeaways { grid-template-columns: 1fr; }
  .speaker-card { grid-template-columns: 1fr; text-align: left; }
  .speaker-avatar { width: 96px; height: 96px; font-size: 28px; }
}
