/* WX Portal – the session page after the customer's reference (docs/09).
   Colours and fonts come from --wx-* custom properties set by Appearance: --wx-primary (dark card,
   headings), --wx-accent (pills, register button, highlighted title words), --wx-bg (page),
   --wx-font / --wx-font-heading. Nothing is inherited from the theme.

   Spacing system (docs/09 "Avstånd"): one scale of tokens (--wx-space-*), applied as gap on flex/grid
   columns – never as margins on our classes (the theme resets margins, it never touches gap).
   Margins exist only for running text inside .wx-prose (flow rule) and for the one deliberate
   overlap of the info card over the hero. Rhythm: eyebrow → heading xs · heading → text md ·
   paragraph → paragraph 1.1em · group → group lg · date line → its sub line xs · section → section 2xl
   (xl on phones) · card → card sm · button → what follows lg · card padding lg (md on phones). */

.wx-session {
  --wx-space-2xs: 4px;
  --wx-space-xs: 8px;
  --wx-space-sm: 12px;
  --wx-space-md: 20px;
  --wx-space-lg: 32px;
  --wx-space-xl: 48px;
  --wx-space-2xl: 72px;
  --wx-space-3xl: 104px;
  --wx-flow: 1.1em;
  --wx-max: 1120px;
  --wx-narrow: 640px;
  --wx-gutter: 24px;
  --wx-hero-overlay: rgba(20, 12, 10, .55);
  --wx-hero-fade: rgba(28, 16, 14, 1);
  --wx-card-radius: 20px;
  --wx-card-pad: var(--wx-space-lg);
  --wx-section-gap: var(--wx-space-2xl);
  --wx-hero-overlap: var(--wx-space-xl);
  --wx-accent-soft: color-mix(in srgb, var(--wx-accent) 18%, var(--wx-bg));
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: var(--wx-section-gap);
  color: var(--wx-text);
  background: var(--wx-bg);
  font-family: var(--wx-font, system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}
.wx-session *, .wx-session *::before, .wx-session *::after { box-sizing: border-box; }
.wx-session [hidden] { display: none !important; }
.wx-session :focus-visible { outline: 3px solid var(--wx-accent); outline-offset: 2px; }
/* Our own reset of the theme's typography on plain elements. */
.wx-session p, .wx-session li, .wx-session label, .wx-session input, .wx-session button, .wx-session a, .wx-session span, .wx-session time, .wx-session small { letter-spacing: 0; text-transform: none; font-style: normal; font-family: inherit; }
.wx-session p { margin: 0; }
.wx-session h1, .wx-session h2, .wx-session h3 { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-weight: 500; letter-spacing: 0; text-transform: none; font-style: normal; color: inherit; margin: 0; }
/* Dark surfaces (hero, stage, form card): text inherits the surface colour instead of the theme's p/h colours. */
.wx-session .wx-hero :where(h1, h2, p, span, small, b, li, time), .wx-session .wx-form-card :where(h2, h3, p, span, small, label, li, b, time), .wx-session .wx-stage :where(p, span, small, b) { color: inherit; }

/* Containers: every column is a grid with a gap. */
.wx-page { width: 100%; max-width: var(--wx-narrow); margin: 0 auto; padding: 0 var(--wx-gutter); display: grid; row-gap: var(--wx-section-gap); }
.wx-page--top { margin-top: calc(-1 * (var(--wx-section-gap) + var(--wx-hero-overlap))); } /* The only negative margin: the info card overlaps the hero by --wx-hero-overlap. */
.wx-hero--stage + .wx-page--top { margin-top: 0; } /* On the stage (intro/live/ended/recording) nothing overlaps the player; the crew row and cards sit a section gap below. */
.wx-group { display: grid; row-gap: var(--wx-space-lg); }
.wx-section__head { display: grid; row-gap: var(--wx-space-xs); justify-items: center; }
.wx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wx-accent { color: var(--wx-accent); font-style: italic; font-weight: 400; }
.wx-session .wx-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--wx-accent); text-align: center; }
.wx-session .wx-h2 { font-size: clamp(28px, 3vw, 34px); line-height: 1.2; text-align: center; color: var(--wx-primary); text-wrap: balance; }
.wx-rule { display: block; width: 56px; height: 1px; background: var(--wx-accent); opacity: .8; }
.wx-pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--wx-accent); animation: wx-pulse 1.4s ease-in-out infinite; }
.wx-pulse--white { background: #fff; width: 7px; height: 7px; }
@keyframes wx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- Hero (= the player) -------------------------------------------------------------- */
.wx-hero { position: relative; isolation: isolate; color: #fff; background: var(--wx-primary); overflow: hidden; }
.wx-hero__bg { position: absolute; inset: 0; z-index: -3; background-position: center; background-size: cover; background-repeat: no-repeat; transition: opacity .6s ease; }
.wx-hero--plain .wx-hero__bg { background: linear-gradient(180deg, color-mix(in srgb, var(--wx-primary) 85%, #000) 0%, color-mix(in srgb, var(--wx-primary) 60%, #000) 100%); }
.wx-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .6s ease; pointer-events: none; }
.wx-hero__video--off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .wx-hero__video { display: none; } }
.wx-hero__fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(20,12,10,.25) 0%, var(--wx-hero-overlay) 45%, var(--wx-hero-fade) 100%); transition: opacity .6s ease; }
/* Bottom padding reserves the overlap of the info card plus a section gap above it. */
.wx-hero__inner { position: relative; max-width: 760px; margin: 0 auto; padding: var(--wx-space-3xl) var(--wx-gutter) calc(var(--wx-hero-overlap) + var(--wx-section-gap)); display: grid; justify-items: center; row-gap: var(--wx-space-lg); text-align: center; }
.wx-hero__head { display: grid; justify-items: center; row-gap: var(--wx-space-md); }
.wx-hero__text { display: grid; justify-items: center; row-gap: var(--wx-space-xs); }
.wx-hero__rule { display: block; width: 56px; height: 1px; background: rgba(255,255,255,.5); }
.wx-hero__title { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.08; font-weight: 400; color: #fff; text-wrap: balance; max-width: 16ch; }
.wx-session .wx-hero__title .wx-accent { color: var(--wx-accent); }
.wx-session .wx-hero__sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 48ch; }
.wx-session .wx-hero__lead { font-size: clamp(14px, 1.3vw, 16px); line-height: 1.55; color: rgba(255,255,255,.82); max-width: 52ch; }
.wx-countdown { display: flex; gap: clamp(28px, 5vw, 52px); }
.wx-countdown__unit { display: grid; justify-items: center; row-gap: var(--wx-space-xs); }
.wx-session .wx-countdown__unit b { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-weight: 400; font-size: clamp(30px, 3.2vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.wx-session .wx-countdown__unit small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.wx-session .wx-hero__soon { display: inline-flex; align-items: center; gap: var(--wx-space-xs); font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.wx-session .wx-hero__cancelled { font-size: 18px; font-weight: 600; }
.wx-hero__pills { display: grid; justify-items: center; row-gap: var(--wx-space-sm); }
.wx-session .wx-pill { display: inline-flex; align-items: center; gap: var(--wx-space-xs); min-height: 34px; padding: 0 22px; border-radius: 999px; background: var(--wx-accent); color: var(--wx-accent-contrast); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center; }
.wx-pill--action { cursor: pointer; }
.wx-pill--action:hover { filter: brightness(1.06); }
.wx-session .wx-pill--done { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.wx-session .wx-hero__hint { font-size: 15px; color: rgba(255,255,255,.85); }

/* Stage: dark hero with the 16:9 frame (intro / live / ended / recording); phones take over the screen, see below */
.wx-hero--stage { background: var(--wx-stage-bg, #0f172a); transition: background .6s ease; }
.wx-hero--stage .wx-hero__bg, .wx-hero--stage .wx-hero__video, .wx-hero--stage .wx-hero__fade { opacity: 0; }
.wx-stage { position: relative; padding: var(--wx-space-lg) var(--wx-gutter) var(--wx-space-md); display: grid; justify-items: center; row-gap: var(--wx-space-sm); animation: wx-fade-in .6s ease; }
@keyframes wx-fade-in { from { opacity: 0; } to { opacity: 1; } }
.wx-stage__frame { position: relative; width: 100%; max-width: min(1200px, calc((100svh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; isolation: isolate; }
.wx-session .wx-stage__title { font-size: 15px; color: rgba(255,255,255,.8); text-align: center; }
.wx-stage__title .wx-accent { color: var(--wx-accent); }
.wx-stage__intro { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: var(--wx-stage-bg, #0f172a); overflow: hidden; transition: opacity .6s ease; }
.wx-stage__intro--fading { opacity: 0; pointer-events: none; }
.wx-stage__intro-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wx-stage__intro-text { position: absolute; left: 0; right: 0; bottom: var(--wx-space-md); padding: 0 var(--wx-space-md); text-align: center; font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.wx-stage__unmute { position: relative; z-index: 1; }
.wx-stage__intro--pip { inset: auto var(--wx-space-md) var(--wx-space-2xl) auto; width: min(28%, 280px); aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); pointer-events: none; z-index: 5; }
.wx-stage__intro--pip .wx-stage__intro-text { font-size: 10px; bottom: var(--wx-space-2xs); }
.wx-stage__intro--pip .wx-stage__unmute { display: none; }
.wx-stage__daily { position: absolute; inset: 0; z-index: 2; background: var(--wx-stage-bg, #0f172a); }
.wx-stage__daily iframe { display: block; width: 100%; height: 100%; border: 0; }
.wx-stage__live { position: absolute; top: 56px; left: var(--wx-space-md); z-index: 6; display: flex; align-items: center; gap: var(--wx-space-xs); pointer-events: none; font-variant-numeric: tabular-nums; }
.wx-stage__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; }
.wx-stage__timer { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.wx-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; z-index: 2; }
.wx-stage__ended { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; row-gap: var(--wx-space-xs); padding: var(--wx-space-md); background: rgba(0,0,0,.6); }
.wx-stage__ended-title { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-size: clamp(24px, 3vw, 32px); color: #fff; }
.wx-session .wx-stage__ended-sub { font-size: 15px; color: rgba(255,255,255,.8); }
.wx-session .wx-stage__waiting { position: absolute; left: 0; right: 0; bottom: var(--wx-space-md); z-index: 4; text-align: center; font-size: 15px; color: rgba(255,255,255,.85); padding: 0 var(--wx-space-md); }
.wx-stage__fs { position: absolute; right: var(--wx-space-md); bottom: var(--wx-space-md); z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
.wx-stage__fs:hover { background: rgba(0,0,0,.65); }
.wx-stage__toast { position: absolute; left: 50%; bottom: var(--wx-space-md); transform: translateX(-50%); z-index: 7; padding: var(--wx-space-xs) 14px; border-radius: 999px; background: rgba(0,0,0,.8); color: #fff; font-size: 14px; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.wx-stage__frame:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; max-width: none; }

/* Mobile live view (0.10.0): under 768 px (or 480 px high) intro / live / a playing recording take over the screen.
   The stage is fixed over the page (100dvh, no 16:9), a thin bar on top (title, LIVE + timer, full screen, close)
   and the frame below gets everything else so Prebuilt's tray fits (it needs about 360×500). live.js sets the
   classes, locks body scroll (html.wx-takeover) and, for crew, pins the production row to the bottom. */
.wx-stage__bar { display: flex; align-items: center; column-gap: var(--wx-space-2xs); min-width: 0; overflow: hidden; min-height: 48px; padding: 0 var(--wx-space-2xs) 0 var(--wx-space-sm); color: #fff; }
.wx-stage__bar[hidden] { display: none; }
.wx-session .wx-stage__bar-title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-stage__bar-title .wx-accent { color: var(--wx-accent); }
.wx-stage__bar-live { display: inline-flex; align-items: center; column-gap: var(--wx-space-2xs); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.wx-stage__bar-live[hidden] { display: none; }
.wx-session .wx-stage__bar-btn { flex: 0 0 auto; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #fff; cursor: pointer; }
.wx-session .wx-stage__bar-btn:hover { background: rgba(255,255,255,.14); }
.wx-session .wx-stage__bar-btn[hidden] { display: none; }
.wx-stage--takeover { position: fixed; inset: 0; z-index: 100000; width: auto; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; overflow: hidden; color: #fff; padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); row-gap: 0; justify-items: stretch; background: var(--wx-stage-bg, #0f172a); animation: none; }
.wx-stage--takeover.wx-stage--crew { height: auto; bottom: var(--wx-crew-bar, 60px); }
.wx-stage--takeover .wx-stage__frame { width: 100%; max-width: none; height: auto; min-width: 0; min-height: 0; align-self: stretch; aspect-ratio: auto; border-radius: 0; }
.wx-stage--takeover .wx-stage__title, .wx-stage--takeover .wx-stage__live, .wx-stage--takeover .wx-stage__fs { display: none; }
.wx-stage--takeover:fullscreen { height: 100%; }
.wx-stage--takeover::backdrop { background: transparent; } /* popover top layer: our stage is the backdrop */
html.wx-takeover { overflow: hidden !important; } /* !important: themes set html overflow with their own rules */
html.wx-takeover body { position: fixed !important; left: 0; right: 0; width: 100%; overflow: hidden !important; }

/* ---- Crew controls ----------------------------------------------------------------------- */
.wx-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wx-space-xs); }
.wx-session .wx-controls__rec { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 28px; border-radius: 6px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; }
.wx-controls__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: wx-pulse 1.4s ease-in-out infinite; }
.wx-controls__hint { font-size: 14px; color: var(--wx-muted); }
.wx-controls__hint:empty { display: none; }
.wx-hero--takeover + .wx-page--top .wx-controls { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: auto; max-width: none; max-height: none; margin: 0; border: 0; overflow: visible; color: inherit; z-index: 100001; justify-content: center; padding: var(--wx-space-xs) var(--wx-space-sm) calc(var(--wx-space-xs) + env(safe-area-inset-bottom, 0)); background: var(--wx-stage-bg, #0f172a); border-top: 1px solid rgba(255,255,255,.15); }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-controls__hint { display: none; }
.wx-hero--takeover + .wx-page--top .wx-controls::backdrop { background: transparent; }

/* ---- Register group: info card, dark form card, attendees -------------------------------- */
.wx-register-group { display: grid; row-gap: var(--wx-space-lg); }
.wx-info { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); background: #fffdf9; color: var(--wx-text); border-radius: var(--wx-card-radius); box-shadow: 0 14px 40px rgba(0,0,0,.12); overflow: hidden; }
.wx-session--intro .wx-info, .wx-session--live .wx-info, .wx-session--ended .wx-info, .wx-session--recording .wx-info { display: none; }
.wx-info__col { display: grid; align-content: start; justify-items: center; row-gap: var(--wx-space-xs); padding: var(--wx-card-pad) var(--wx-space-sm); text-align: center; border-left: 1px solid var(--wx-border); }
.wx-info__col:first-child { border-left: 0; }
.wx-info__icon { color: var(--wx-accent); }
.wx-session .wx-info__label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--wx-muted); }
.wx-info__value { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--wx-primary); }
.wx-info__sub { font-size: 13px; color: var(--wx-muted); }

/* Form card (dark, primary colour): eyebrow → heading xs, heading → fields md, field → field sm, button → terms lg. */
.wx-form-card { padding: var(--wx-card-pad); border-radius: var(--wx-card-radius); background: var(--wx-primary); color: var(--wx-primary-contrast); box-shadow: 0 14px 40px rgba(0,0,0,.14); }
.wx-register-card, .wx-register-form-wrap, .wx-session .wx-form, .wx-confirmed { display: grid; row-gap: var(--wx-space-md); }
.wx-register-card { row-gap: var(--wx-space-xs); }
.wx-session .wx-form-card__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--wx-accent); text-align: center; }
.wx-session .wx-form-card__title { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; text-align: center; color: inherit; text-wrap: balance; }
.wx-form-card__note { font-size: 14px; text-align: center; opacity: .9; }
.wx-form-card__terms { font-size: 12px; text-align: center; color: inherit; opacity: .7; }
.wx-form-card__terms a { color: inherit; text-decoration: underline; }
.wx-session .wx-form { border: 0; border-radius: 0; padding: 0; max-width: none; background: none; box-shadow: none; }
.wx-form__fields { display: grid; row-gap: var(--wx-space-sm); }
.wx-session .wx-field { margin: 0; }
.wx-session .wx-field input[type="text"], .wx-session .wx-field input[type="email"] { width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; background: #fffdf9; color: #2a2826; }
.wx-session .wx-field input::placeholder { color: #7a7470; }
.wx-session .wx-field input:focus-visible { outline: 3px solid var(--wx-accent); outline-offset: 1px; }
.wx-session .wx-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wx-form__after { display: grid; row-gap: var(--wx-space-lg); }
.wx-register-blocked { display: grid; row-gap: var(--wx-space-sm); }
.wx-form-card .wx-message { font-size: 14px; text-align: center; }
.wx-message--error { color: #ffd4cf; }
.wx-form-card .wx-message--error { color: #ffd4cf; }

/* Buttons */
.wx-session .wx-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--wx-space-xs); min-height: 44px; padding: 0 20px; border: 1px solid var(--wx-border); border-radius: 999px; background: transparent; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--wx-text); text-decoration: none; cursor: pointer; box-shadow: none; text-align: center; }
.wx-session .wx-button:hover { background: var(--wx-bg-soft); }
.wx-session .wx-button--primary { border-color: var(--wx-primary); background: var(--wx-primary); color: var(--wx-primary-contrast); }
.wx-session .wx-button--primary:hover { background: var(--wx-primary); filter: brightness(1.1); }
.wx-session .wx-button--accent { border-color: var(--wx-accent); background: var(--wx-accent); color: var(--wx-accent-contrast); min-height: 52px; font-size: 16px; }
.wx-session .wx-button--accent:hover { background: var(--wx-accent); filter: brightness(1.06); }
.wx-session .wx-button--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.wx-session .wx-button--block { display: flex; width: 100%; }
.wx-session .wx-button[disabled] { opacity: .6; cursor: not-allowed; }
.wx-session .wx-button--done[disabled] { opacity: 1; cursor: default; }
.wx-session .wx-form-card .wx-button:not(.wx-button--accent) { border-color: rgba(255,255,255,.35); color: inherit; }
.wx-session .wx-form-card .wx-button:not(.wx-button--accent):hover { background: rgba(255,255,255,.1); }
.wx-session .wx-text-link, .wx-session .wx-link-button { background: none; border: 0; padding: 0; min-height: 0; border-radius: 0; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--wx-accent); text-decoration: none; cursor: pointer; display: inline; }
.wx-session .wx-text-link:hover, .wx-session .wx-link-button:hover { text-decoration: underline; }
.wx-session .wx-link-button { font-size: 13px; font-weight: 400; opacity: .8; color: inherit; }
.wx-session .wx-form-card .wx-link-button { color: inherit; opacity: .7; }
.wx-hero .wx-button--primary { border-color: var(--wx-accent); background: var(--wx-accent); color: var(--wx-accent-contrast); }

/* Confirmed state inside the form card: head (check + title/text) → button lg → links lg → newsletter lg → cancel lg. */
.wx-confirmed { row-gap: var(--wx-space-lg); }
.wx-confirmed__head { display: flex; gap: var(--wx-space-sm); align-items: flex-start; }
.wx-confirmed__body { display: grid; row-gap: var(--wx-space-xs); }
.wx-confirmed__check { flex: none; width: 24px; height: 24px; color: var(--wx-accent); margin-top: 2px; }
.wx-confirmed__title { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-size: 24px; line-height: 1.25; }
.wx-confirmed__text { font-size: 14px; opacity: .85; }
.wx-confirmed__text:empty { display: none; }
.wx-confirmed__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--wx-space-xs); }
.wx-confirmed__dot { opacity: .6; }
.wx-confirmed__cancel { text-align: center; }
.wx-newsletter { padding-top: var(--wx-space-md); border-top: 1px solid rgba(255,255,255,.2); display: grid; row-gap: var(--wx-space-sm); justify-items: center; text-align: center; }
.wx-newsletter__text { font-size: 15px; font-weight: 600; }

/* Recording card inside the dark card */
.wx-session .wx-form-card .wx-card { background: none; border: 0; padding: 0; box-shadow: none; color: inherit; display: grid; row-gap: var(--wx-space-md); }
.wx-recording-card .wx-card__title { font-size: clamp(22px, 2.4vw, 28px); text-align: center; color: inherit; }
.wx-recording-card .wx-card__note { font-size: 14px; text-align: center; opacity: .9; }
.wx-recording-card .wx-card__footnote { font-size: 13px; text-align: center; opacity: .8; }
.wx-recording-card [data-wx-recording-pending], .wx-recording-card .wx-notify { display: grid; row-gap: var(--wx-space-sm); }

/* Social proof */
.wx-social { display: flex; align-items: center; justify-content: center; gap: var(--wx-space-sm); font-size: 14px; color: var(--wx-muted); }
.wx-social__avatars { display: flex; }
.wx-social__avatar { position: relative; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--wx-accent-soft); border: 2px solid var(--wx-bg); color: var(--wx-text); font-size: 11px; font-weight: 600; line-height: 24px; text-align: center; margin-left: -8px; }
.wx-social__avatar:first-child { margin-left: 0; }
.wx-social__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- About: heading group (md) → prose; prose is the one place with margins (flow rule) --- */
.wx-about { display: grid; row-gap: var(--wx-space-md); }
.wx-about .wx-section__head { row-gap: var(--wx-space-sm); }
.wx-prose { text-align: center; }
/* Flow rule: our own p-reset (.wx-session p) must not win over it, hence the .wx-session prefix. */
.wx-session .wx-prose > :where(*) { margin: 0; }
.wx-session .wx-prose > * + * { margin-block-start: var(--wx-flow); }
.wx-prose ul, .wx-prose ol { text-align: left; display: inline-block; padding-left: 22px; }
.wx-prose h2, .wx-prose h3 { font-size: 24px; line-height: 1.3; color: var(--wx-primary); }
.wx-session .wx-prose > h2 + *, .wx-session .wx-prose > h3 + * { margin-block-start: var(--wx-space-sm); }
.wx-prose strong { font-weight: 600; }
/* Pull-quote: the quote mark is a block of its own above the text (never overlapping), the quote is centred in the heading colour. */
.wx-session .wx-prose > blockquote, .wx-session .wx-prose > .wp-block-quote { margin-block: var(--wx-space-lg); }
.wx-prose blockquote, .wx-prose .wp-block-quote { padding: 0; border: 0; display: grid; justify-items: center; row-gap: var(--wx-space-md); font-family: var(--wx-font-heading, var(--wx-font, serif)); font-style: italic; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; color: var(--wx-primary); text-align: center; }
.wx-quote-mark { display: block; width: 36px; height: 30px; background: var(--wx-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9.5 6C7 6 5 8 5 10.5c0 2.2 1.6 4 3.7 4.4-.4 1.3-1.4 2.3-2.7 2.8v1.8c3.4-.6 6-3.5 6-7V10.5C12 8 10.9 6 9.5 6zm9 0C16 6 14 8 14 10.5c0 2.2 1.6 4 3.7 4.4-.4 1.3-1.4 2.3-2.7 2.8v1.8c3.4-.6 6-3.5 6-7V10.5C21 8 19.9 6 18.5 6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9.5 6C7 6 5 8 5 10.5c0 2.2 1.6 4 3.7 4.4-.4 1.3-1.4 2.3-2.7 2.8v1.8c3.4-.6 6-3.5 6-7V10.5C12 8 10.9 6 9.5 6zm9 0C16 6 14 8 14 10.5c0 2.2 1.6 4 3.7 4.4-.4 1.3-1.4 2.3-2.7 2.8v1.8c3.4-.6 6-3.5 6-7V10.5C21 8 19.9 6 18.5 6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wx-session .wx-prose blockquote p, .wx-session .wx-prose .wp-block-quote p { margin: 0; font-family: inherit; font-style: inherit; font-size: inherit; line-height: inherit; color: inherit; }
.wx-prose blockquote cite, .wx-prose .wp-block-quote cite { display: block; font-family: var(--wx-font); font-style: normal; font-size: 14px; color: var(--wx-muted); }

/* ---- Takeaways band: head → list lg, card → card sm, card title → text md -------------------- */
.wx-talk { padding: var(--wx-space-xl) 0; background: var(--wx-bg-soft); }
.wx-talk .wx-page { row-gap: var(--wx-space-lg); }
.wx-talk__list { list-style: none; margin: 0; padding: 0; display: grid; row-gap: var(--wx-space-sm); }
.wx-talk__item { display: flex; gap: var(--wx-space-md); align-items: flex-start; padding: var(--wx-space-md) var(--wx-space-md); border-radius: 16px; background: #fffdf9; color: var(--wx-text); box-shadow: 0 6px 20px rgba(0,0,0,.06); font-size: 16px; line-height: 1.5; }
.wx-talk__item:not(.wx-talk__item--titled) { align-items: center; }
.wx-session .wx-talk__num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wx-accent); color: var(--wx-accent-contrast); font-family: var(--wx-font-heading, var(--wx-font, serif)); font-size: 16px; }
.wx-talk__body { display: grid; row-gap: var(--wx-space-md); min-width: 0; }
.wx-session .wx-talk__title { display: block; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--wx-primary); line-height: 1.4; }

/* ---- Teaser seal (decorative, never looks clickable): seal → text lg, heading → text md ------- */
.wx-teaser { text-align: center; }
.wx-teaser .wx-page { row-gap: var(--wx-space-lg); justify-items: center; }
.wx-teaser .wx-section__head { row-gap: var(--wx-space-md); }
.wx-seal { position: relative; display: block; width: 112px; height: 112px; pointer-events: none; user-select: none; }
.wx-seal svg { display: block; width: 100%; height: 100%; }
.wx-seal__wax { fill: var(--wx-accent); }
.wx-seal__rim { stroke: var(--wx-accent); opacity: .9; }
.wx-seal__ring { stroke: #d9b36a; opacity: .9; }
.wx-seal__star { fill: rgba(255,255,255,.92); }
.wx-seal__emboss { fill: rgba(0,0,0,.18); }
.wx-seal__shimmer { position: absolute; inset: 6px; border-radius: 50%; overflow: hidden; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 65%); background-size: 300% 100%; background-position: 120% 0; mix-blend-mode: screen; animation: wx-seal-shimmer 9s ease-in-out infinite; }
@keyframes wx-seal-shimmer { 0%, 70% { background-position: 120% 0; } 85% { background-position: -20% 0; } 100% { background-position: -20% 0; } }
.wx-session .wx-teaser__title { font-size: clamp(24px, 2.6vw, 30px); }
.wx-session .wx-teaser__text { font-size: 17px; line-height: 1.65; color: var(--wx-text); max-width: 46ch; }

/* ---- Host card: avatar → text md, eyebrow → name xs, name → bio md -------------------------------- */
.wx-host { padding: var(--wx-card-pad); border-radius: var(--wx-card-radius); background: #fffdf9; box-shadow: 0 6px 24px rgba(0,0,0,.06); display: grid; justify-items: center; text-align: center; row-gap: var(--wx-space-md); }
.wx-host__avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center top; border: 4px solid var(--wx-accent-soft); box-shadow: 0 10px 30px rgba(0,0,0,.10); }
.wx-host__text { display: grid; justify-items: center; row-gap: var(--wx-space-xs); }
.wx-session .wx-host__name { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-size: 26px; line-height: 1.2; color: var(--wx-primary); }
.wx-host__bio { font-size: 14px; color: var(--wx-muted); max-width: 44ch; }

/* ---- Closing section: groups lg apart (body, date line, button, tagline) --------------------------- */
.wx-closing { text-align: center; display: grid; justify-items: center; row-gap: var(--wx-space-lg); }
.wx-closing__body { display: grid; justify-items: center; row-gap: var(--wx-space-md); }
.wx-closing__paragraphs { display: grid; justify-items: center; row-gap: var(--wx-flow); }
.wx-session .wx-closing__text { font-size: 17px; line-height: 1.65; max-width: 48ch; }
.wx-session .wx-closing__when { display: grid; row-gap: var(--wx-space-xs); font-size: 16px; line-height: 1.6; color: var(--wx-text); }
.wx-session .wx-closing__when span { display: block; color: var(--wx-muted); }
.wx-session .wx-closing__when strong { display: block; }
.wx-session .wx-closing__tagline { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--wx-muted); }
.wx-session .wx-pill--dark { background: var(--wx-primary); color: var(--wx-primary-contrast); border: 0; }
.wx-bottom-cta { text-align: center; }

/* ---- Sticky bar, notices, footer ------------------------------------------------------------------ */
.wx-session .wx-sticky { position: fixed; left: var(--wx-space-md); right: var(--wx-space-md); bottom: var(--wx-space-md); z-index: 50; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: var(--wx-primary); color: var(--wx-primary-contrast); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@media (min-width: 900px) { .wx-sticky { display: none !important; } }
.wx-session .wx-notice { font-size: 14px; }
.wx-message { font-size: 14px; }
.wx-foot { padding: 0 var(--wx-gutter) var(--wx-space-lg); text-align: center; font-size: 12px; color: var(--wx-muted); }

/* ---- Mobile ---------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) { .wx-session * { transition: none !important; animation: none !important; } }
@media (max-width: 599px) {
  .wx-session { --wx-gutter: 16px; --wx-space-2xl: 50px; --wx-space-3xl: 73px; --wx-section-gap: var(--wx-space-xl); --wx-card-pad: var(--wx-space-md); --wx-hero-overlap: 34px; padding-bottom: var(--wx-space-2xl); }
  .wx-hero:not(.wx-hero--stage) { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .wx-hero__inner { width: 100%; padding-top: var(--wx-space-3xl); row-gap: var(--wx-space-md); }
  .wx-hero__fade { background: linear-gradient(to bottom, rgba(20,12,10,.05) 0%, rgba(20,12,10,.35) 40%, var(--wx-hero-overlay) 65%, var(--wx-hero-fade) 100%); }
  .wx-hero__title { font-size: clamp(32px, 9.5vw, 40px); max-width: none; }
  .wx-hero__sub { font-size: 16px; }
  .wx-session .wx-hero__lead { font-size: 15px; }
  .wx-countdown { gap: 22px; }
  .wx-countdown__unit b { font-size: 30px; }
  .wx-info__col { padding: var(--wx-space-md) 6px; }
  .wx-info__value { font-size: 14px; }
  .wx-info__sub { font-size: 12px; }
  .wx-register-group { row-gap: var(--wx-space-md); }
  .wx-stage { padding: var(--wx-space-md) var(--wx-gutter); }
  .wx-stage__frame { border-radius: 12px; }
  .wx-stage__live { top: 10px; left: 10px; }
  .wx-stage__intro--pip { width: 40%; inset: auto var(--wx-space-xs) 60px auto; }
  /* Airy reading on phones: 17 px / 1.65, ~34 characters per line, room between the many short paragraphs. */
  .wx-session .wx-prose, .wx-session .wx-prose p, .wx-session .wx-prose li { font-size: 17px; line-height: 1.65; }
  .wx-prose { max-width: 34ch; margin-left: auto; margin-right: auto; }
  .wx-session .wx-talk__text, .wx-session .wx-closing__text, .wx-session .wx-teaser__text { font-size: 17px; line-height: 1.65; }
  .wx-talk { padding: var(--wx-space-xl) 0; }
  .wx-talk__item { padding: var(--wx-space-md); }
  .wx-talk__list { row-gap: var(--wx-space-sm); }
  .wx-host__avatar { width: 136px; height: 136px; }
  .wx-session .wx-button--lg, .wx-session .wx-closing__cta .wx-button, .wx-session .wx-bottom-cta .wx-button { width: 100%; min-height: 52px; }
  .wx-closing__cta, .wx-bottom-cta { width: 100%; }
}
@media (max-width: 1024px) and (orientation: landscape) {
  .wx-hero--stage[data-state="live"] .wx-stage__frame { max-width: calc((100svh - 60px) * 16 / 9); }
}
