/*
 * Public webinar pages — the landing page (/webinar/{slug}), a registrant's
 * own page (/webinar/r/{token}) and the branded dead ends.
 *
 * Namespaced `wb-`. Nothing from the admin panel loads on these pages, so this
 * file is self-contained: its own reset, type scale and colour tokens. No web
 * font, no icon font — icons are the inline sprite in webinar/layout.
 *
 * PHONE FIRST. These links are opened from an email or a text on a phone:
 * one column, 48px+ touch targets, 16px inputs (no iOS zoom on focus), nothing
 * wider than the viewport at 360px. Two columns from 960px.
 *
 * XP EATS GREEN COMES IN TIERS — they are not interchangeable:
 *   --wb-green        #5f9e32  3.27:1 on white — a SURFACE colour only.
 *   --wb-accent       #47831f  4.63:1 — button fills under white text.
 *   --wb-accent-text  #35641a  7.03:1 — links and green text on white.
 * A webinar with its own brand colour overrides the four --wb-accent* tokens
 * (layout sets them from WebinarMailer::palette(), which picks a readable
 * --wb-accent-ink and darkens --wb-accent-text until it reads on white).
 *
 * LIGHT ONLY (<html data-scheme="light">), like the AI demo pages.
 * Type: system-ui; weights 400/500/600 (700 only on tiny caps).
 */

:root {
    color-scheme: light;

    --wb-green: #5f9e32;
    --wb-accent: #47831f;
    --wb-accent-ink: #ffffff;
    --wb-accent-text: #35641a;
    --wb-accent-soft: #eef4e8;
    --wb-gold: #f5b800;
    --wb-teal: #0f4944;

    --wb-ink: #1a1d23;
    --wb-ink-soft: #3a3f4a;
    --wb-muted: #6b7280;
    --wb-bg: #f7f8fa;
    --wb-card: #ffffff;
    --wb-sunken: #eef0f3;
    --wb-line: rgba(17, 19, 23, .09);
    --wb-line-strong: rgba(17, 19, 23, .18);

    --wb-ok: #3f7a1f;
    --wb-ok-soft: #eef4e8;
    --wb-ok-ink: #2f5c17;
    --wb-warn: #8a5f00;
    --wb-warn-soft: #fff6e0;
    --wb-bad: #b02454;
    --wb-bad-soft: #fdeef4;
    --wb-bad-ink: #8f1d45;

    --wb-r-card: 22px;
    --wb-r-field: 12px;
    --wb-r-pill: 999px;

    --wb-shadow: 0 1px 2px rgba(17, 19, 23, .04), 0 14px 34px -18px rgba(15, 35, 12, .22);
    --wb-ease: cubic-bezier(.22, .61, .36, 1);
    --wb-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wb-gutter: max(16px, env(safe-area-inset-left));
    --wb-gutter-r: max(16px, env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

.wb-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--wb-bg);
    color: var(--wb-ink);
    font-family: var(--wb-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 2px; }

a { color: var(--wb-accent-text); }

.wb-ico {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.2em;
}

.wb-muted { color: var(--wb-muted); margin: 0; }
.wb-break { overflow-wrap: anywhere; }
.wb-gap-top { margin-top: 16px; }

/* ── chrome ──────────────────────────────────────────────────────────────── */

.wb-top {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(12px + env(safe-area-inset-top)) var(--wb-gutter-r) 10px var(--wb-gutter);
}

/* xpeats.com's floating pill bar. */
.wb-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px 10px 18px;
    background: var(--wb-card);
    border: 1px solid var(--wb-line);
    border-radius: var(--wb-r-pill);
    box-shadow: 0 1px 2px rgba(17, 19, 23, .04), 0 14px 34px -26px rgba(15, 35, 12, .4);
}
.wb-brandmark { display: inline-flex; align-items: center; border-radius: 10px; text-decoration: none; }
.wb-brandmark img { display: block; height: 24px; width: auto; }
.wb-top-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--wb-r-pill);
    background: var(--wb-accent-soft);
    color: var(--wb-accent-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.wb-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px var(--wb-gutter-r) 40px var(--wb-gutter);
}

.wb-foot {
    padding: 8px 16px calc(22px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 12.5px;
    color: var(--wb-muted);
}
.wb-foot p { margin: 4px 0 0; }
.wb-foot a { color: var(--wb-muted); }
.wb-foot-note { display: inline-flex; align-items: center; gap: 7px; }

/* ── shared pieces ───────────────────────────────────────────────────────── */

.wb-card {
    background: var(--wb-card);
    border: 1px solid var(--wb-line);
    border-radius: var(--wb-r-card);
    box-shadow: var(--wb-shadow);
}

.wb-h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }

.wb-section { margin-top: 36px; min-width: 0; }

.wb-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--wb-warn-soft);
    border: 1px solid rgba(138, 95, 0, .25);
    color: #6b4a00;
    font-size: 15px;
    font-weight: 600;
}

.wb-alerts:empty { display: none; }
.wb-alert {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
}
.wb-alert-good { background: var(--wb-ok-soft); color: var(--wb-ok-ink); }
.wb-alert-bad { background: var(--wb-bad-soft); color: var(--wb-bad-ink); }

.wb-note { margin: 14px 0 0; font-size: 14.5px; color: var(--wb-ink-soft); }
.wb-note-warn {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--wb-warn-soft);
    color: #6b4a00;
}

.wb-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: var(--wb-r-pill);
    background: var(--wb-bad);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.4;
}
.wb-live-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    animation: wb-blink 1.4s ease-in-out infinite;
}
@keyframes wb-blink { 50% { opacity: .25; } }

.wb-yt { color: var(--wb-muted); font-weight: 400; }

/* ── buttons ─────────────────────────────────────────────────────────────── */

.wb-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--wb-r-pill);
    background: var(--wb-card);
    color: var(--wb-ink);
    font: 600 16px/1.2 var(--wb-font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s var(--wb-ease), transform .15s var(--wb-ease), background .15s var(--wb-ease), border-color .15s var(--wb-ease);
}
.wb-btn:active { transform: translateY(1px); }

.wb-btn-primary {
    background: var(--wb-accent);
    color: var(--wb-accent-ink);
    box-shadow: 0 14px 28px -16px rgba(53, 100, 26, .7);
}
.wb-btn-primary:hover { filter: brightness(1.07); }

.wb-btn-ghost { border-color: var(--wb-line-strong); color: var(--wb-ink-soft); }
.wb-btn-ghost:hover { border-color: var(--wb-accent); color: var(--wb-accent-text); }

.wb-btn-danger { background: var(--wb-bad); color: #ffffff; }
.wb-btn-danger:hover { filter: brightness(1.08); }

.wb-btn-lg { min-height: 54px; font-size: 17px; }
.wb-btn-xl { min-height: 60px; font-size: 18px; }
.wb-btn-block { display: flex; width: 100%; }

.wb-btn[disabled],
.wb-btn.is-disabled {
    background: var(--wb-sunken);
    color: var(--wb-muted);
    border-color: transparent;
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
    transform: none;
}
.wb-btn.is-disabled { pointer-events: none; }

/* Busy: the label stays (so the button keeps its width) and a ring spins. */
.wb-btn.is-busy { pointer-events: none; filter: saturate(.85); }
.wb-btn.is-busy::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: none;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: wb-spin .7s linear infinite;
}
@keyframes wb-spin { to { transform: rotate(360deg); } }

.wb-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--wb-line-strong);
    border-radius: var(--wb-r-pill);
    background: var(--wb-card);
    color: var(--wb-ink-soft);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s var(--wb-ease), color .15s var(--wb-ease);
}
.wb-chip:hover { border-color: var(--wb-accent); color: var(--wb-accent-text); }

/* ── form ────────────────────────────────────────────────────────────────── */

.wb-fs { margin: 0; padding: 0; border: 0; min-width: 0; }

.wb-field { display: block; margin: 0 0 14px; }

.wb-label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--wb-ink-soft);
}
.wb-optional { margin-left: 4px; font-weight: 400; color: var(--wb-muted); }

.wb-field input {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    font: 400 16px/1.4 var(--wb-font);
    color: var(--wb-ink);
    background: #ffffff;
    border: 1px solid var(--wb-line-strong);
    border-radius: var(--wb-r-field);
    transition: border-color .15s var(--wb-ease), box-shadow .15s var(--wb-ease);
}
.wb-field input:focus {
    outline: 0;
    border-color: var(--wb-accent);
    box-shadow: 0 0 0 3px var(--wb-accent-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wb-accent) 24%, transparent);
}
.wb-field input:disabled { background: var(--wb-sunken); color: var(--wb-muted); }

.wb-field.is-bad input { border-color: var(--wb-bad); }
.wb-field-error {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wb-bad);
}

.wb-consent { margin: 2px 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--wb-muted); }

/* "Text me a reminder …" under the phone field: a real checkbox (ticked by
   default); the whole row is the tap target. */
.wb-check { margin: -8px 0 14px; }
.wb-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0 4px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--wb-ink-soft);
    cursor: pointer;
}
.wb-check-row input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--wb-accent);
    cursor: pointer;
}
.wb-check-note { margin: 0 0 0 30px; font-size: 13px; line-height: 1.4; color: var(--wb-muted); }

/* The honeypot. display:none, never off-screen: an off-screen input is still
   fillable, and browser autofill would fill it for real people. */
.wb-hp { display: none !important; }

/* Date picker: radio inputs painted as option cards. Works without JS. */
.wb-dates { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.wb-dates-tz { margin: -2px 0 10px; font-size: 13.5px; color: var(--wb-muted); }
.wb-opts { display: grid; gap: 10px; }

.wb-opt { position: relative; display: block; cursor: pointer; }
.wb-opt-input {
    position: absolute;
    top: 18px;
    left: 16px;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
}
.wb-opt-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-height: 64px;
    padding: 12px 14px 12px 48px;
    border: 1.5px solid var(--wb-line-strong);
    border-radius: 14px;
    background: #ffffff;
    transition: border-color .15s var(--wb-ease), background .15s var(--wb-ease);
}
.wb-opt-body::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--wb-line-strong);
    background: #ffffff;
    transition: border-color .15s var(--wb-ease), box-shadow .15s var(--wb-ease);
}
.wb-opt:hover .wb-opt-body { border-color: var(--wb-accent); }
.wb-opt-input:checked + .wb-opt-body { border-color: var(--wb-accent); background: var(--wb-accent-soft); }
.wb-opt-input:checked + .wb-opt-body::before { border-color: var(--wb-accent); box-shadow: inset 0 0 0 4px #ffffff; background: var(--wb-accent); }
.wb-opt-input:focus-visible + .wb-opt-body { outline: 2px solid var(--wb-accent); outline-offset: 2px; }

.wb-opt-date { font-size: 16px; font-weight: 600; color: var(--wb-ink); }
.wb-opt-time { font-size: 15px; color: var(--wb-ink-soft); }
.wb-opt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.wb-opt-meta:empty { display: none; }
.wb-opt-seats { font-size: 13.5px; font-weight: 600; color: var(--wb-ok); }
.wb-opt.is-full .wb-opt-seats { color: var(--wb-warn); }

.wb-opt.is-off { cursor: not-allowed; }
.wb-opt.is-off .wb-opt-body { background: var(--wb-sunken); border-color: transparent; }
.wb-opt.is-off .wb-opt-date,
.wb-opt.is-off .wb-opt-time { color: var(--wb-muted); }
.wb-opt.is-off .wb-opt-seats { color: var(--wb-muted); }
.wb-opt.is-off:hover .wb-opt-body { border-color: transparent; }

/* Automated: a date already playing. It is a recording, so no LIVE pill —
   plain words with a pulsing dot, and it stays pickable. */
.wb-opt-playing {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--wb-bad-ink);
}
.wb-opt-playing i {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wb-bad);
    animation: wb-blink 1.4s ease-in-out infinite;
}

/* Automated: the dates past the first dozen, one tap away. A details element,
   so the radios inside submit with the form and nothing needs JS. */
.wb-more-dates { margin-top: 10px; }
.wb-more-dates summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 14px;
    list-style: none;
    cursor: pointer;
    border: 1.5px dashed var(--wb-line-strong);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--wb-accent-text);
    transition: border-color .15s var(--wb-ease);
}
.wb-more-dates summary::-webkit-details-marker { display: none; }
.wb-more-dates summary:hover { border-color: var(--wb-accent); }
.wb-more-dates[open] summary { margin-bottom: 10px; }
.wb-more-dates[open] .wb-more-show,
.wb-more-dates:not([open]) .wb-more-hide { display: none; }

/* Automated: the honest line under the dates. */
.wb-auto-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--wb-sunken);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--wb-ink-soft);
}
.wb-auto-note .wb-ico { margin-top: 1px; color: var(--wb-accent-text); }

/* ── landing page ────────────────────────────────────────────────────────── */

.wb-landing { min-width: 0; }
.wb-intro { min-width: 0; }

.wb-cover {
    margin: 0 0 18px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--wb-r-card);
    background: var(--wb-sunken);
}
.wb-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: var(--wb-r-pill);
    background: var(--wb-accent-soft);
    color: var(--wb-accent-text);
    font-size: 13px;
    font-weight: 600;
}
.wb-eyebrow .wb-live-pill { margin-left: -6px; }

.wb-title {
    margin: 0;
    font-size: clamp(28px, 6.6vw, 46px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.wb-summary {
    margin: 12px 0 0;
    max-width: 62ch;
    font-size: clamp(16.5px, 4.3vw, 19px);
    line-height: 1.55;
    color: var(--wb-ink-soft);
    overflow-wrap: anywhere;
}

.wb-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.wb-facts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16.5px;
    line-height: 1.45;
    color: var(--wb-ink);
    min-width: 0;
}
.wb-facts li > span, .wb-facts li > a { min-width: 0; overflow-wrap: anywhere; }
.wb-facts .wb-ico { margin-top: 2px; color: var(--wb-accent-text); }
.wb-facts time { font-weight: 600; }
.wb-facts-count span { font-weight: 600; color: var(--wb-accent-text); font-variant-numeric: tabular-nums; }

.wb-side { margin-top: 24px; min-width: 0; }

.wb-reg { padding: 22px 18px 20px; scroll-margin-top: 16px; }
.wb-reg .wb-h2 { margin-bottom: 4px; }
.wb-reg-sub { margin: 0 0 18px; font-size: 14.5px; color: var(--wb-muted); }

.wb-resend { margin-top: 14px; }
.wb-resend details {
    background: var(--wb-card);
    border: 1px solid var(--wb-line);
    border-radius: 18px;
}
.wb-resend summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 12px 18px;
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--wb-accent-text);
    border-radius: 18px;
}
.wb-resend summary::-webkit-details-marker { display: none; }
.wb-resend form { padding: 0 18px 18px; }

/* Description (sanitised rich text) */
.wb-prose { font-size: 16.5px; line-height: 1.7; color: var(--wb-ink-soft); overflow-wrap: anywhere; }
.wb-prose > :first-child { margin-top: 0; }
.wb-prose > :last-child { margin-bottom: 0; }
.wb-prose p { margin: 0 0 14px; }
.wb-prose h3 { margin: 26px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--wb-ink); }
.wb-prose h4 { margin: 22px 0 6px; font-size: 17.5px; line-height: 1.35; font-weight: 600; color: var(--wb-ink); }
.wb-prose ul, .wb-prose ol { margin: 0 0 14px; padding-left: 1.35em; }
.wb-prose li { margin: 5px 0; }
.wb-prose li::marker { color: var(--wb-accent-text); }
.wb-prose a { color: var(--wb-accent-text); text-decoration: underline; text-underline-offset: 2px; }
.wb-prose strong, .wb-prose b { font-weight: 600; color: var(--wb-ink); }
.wb-prose blockquote {
    margin: 18px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--wb-green);
    border-radius: 0 12px 12px 0;
    background: var(--wb-card);
    color: var(--wb-ink);
}

/* Speakers */
.wb-speaker-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wb-speaker {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    background: var(--wb-card);
    border: 1px solid var(--wb-line);
    border-radius: 18px;
}
.wb-speaker-photo {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--wb-sunken);
}
.wb-speaker-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wb-teal);
    color: #ffffff;
    font-size: 21px;
    font-weight: 600;
}
.wb-speaker-text { min-width: 0; }
.wb-speaker-name { margin: 2px 0 0; font-size: 16.5px; font-weight: 600; }
.wb-speaker-title { margin: 1px 0 0; font-size: 14.5px; color: var(--wb-accent-text); font-weight: 500; }
.wb-speaker-bio { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--wb-ink-soft); white-space: pre-line; overflow-wrap: anywhere; }

/* Phone: the sticky "Save my seat" bar (hidden while the card is on screen). */
.wb-mbar, .wb-mbar-space { display: none; }

@media (max-width: 959.98px) {
    .wb-mbar-space { display: block; height: calc(74px + env(safe-area-inset-bottom)); }
    .wb-mbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px var(--wb-gutter-r) calc(10px + env(safe-area-inset-bottom)) var(--wb-gutter);
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--wb-line);
        box-shadow: 0 -12px 30px -20px rgba(17, 19, 23, .45);
        transition: transform .22s var(--wb-ease), visibility .22s;
    }
    .wb-mbar.is-hidden { transform: translateY(115%); visibility: hidden; }
    .wb-mbar-when { flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.3; color: var(--wb-ink-soft); }
    .wb-mbar-when strong,
    .wb-mbar-when span {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .wb-mbar-when strong { font-size: 14.5px; font-weight: 600; color: var(--wb-ink); }
    .wb-mbar .wb-btn { flex: none; min-height: 50px; padding: 12px 20px; }
}

@media (min-width: 480px) {
    .wb-reg { padding: 26px 24px 24px; }
}

@media (min-width: 640px) {
    .wb-speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Two columns: the story on the left, the card sticky on the right (only when
   it fits the viewport — public.js adds .is-sticky — or its bottom would be
   unreachable). */
@media (min-width: 960px) {
    .wb-main { padding-top: 16px; }
    .wb-landing {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 400px;
        grid-template-areas:
            "intro side"
            "about side"
            "speakers side";
        grid-template-rows: auto auto 1fr;
        column-gap: 48px;
        align-items: start;
    }
    .wb-intro { grid-area: intro; }
    .wb-side { grid-area: side; margin-top: 0; }
    .wb-side.is-sticky { position: sticky; top: 20px; }
    .wb-about { grid-area: about; }
    .wb-speakers { grid-area: speakers; }
}

/* ── a registrant's own page ─────────────────────────────────────────────── */

.wb-narrow { max-width: 620px; margin: 0 auto; }

.wb-mine { overflow: hidden; }
.wb-mine-cover { margin: 0; aspect-ratio: 16 / 9; background: var(--wb-sunken); }
.wb-mine-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wb-mine-body { padding: 26px 18px 22px; text-align: center; }

.wb-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    font-size: 28px;
    animation: wb-pop .34s var(--wb-ease);
}
.wb-status--ok { background: var(--wb-ok-soft); color: var(--wb-ok); }
.wb-status--live { background: var(--wb-bad-soft); color: var(--wb-bad); }
.wb-status--wait { background: var(--wb-warn-soft); color: var(--wb-warn); }
.wb-status--off { background: var(--wb-sunken); color: var(--wb-muted); animation: none; }
@keyframes wb-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }

.wb-mine-h {
    margin: 0;
    font-size: clamp(26px, 6.4vw, 32px);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.02em;
}
.wb-mine-sub { margin: 8px 0 0; font-size: 16px; color: var(--wb-ink-soft); }
.wb-mine-sub strong { font-weight: 600; color: var(--wb-ink); }
/* "We'll text you a reminder 10 minutes before it starts." — until that text has gone. */
.wb-mine-sms { margin: 6px 0 0; font-size: 14.5px; color: var(--wb-muted); }

.wb-event {
    margin: 22px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--wb-line);
    border-radius: 16px;
    background: var(--wb-bg);
    text-align: left;
}
.wb-event p { margin: 0; }
.wb-event-title { font-size: 17.5px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.wb-event-when, .wb-event-meta {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 8px !important;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--wb-ink-soft);
}
.wb-event-when time { font-weight: 600; color: var(--wb-ink); }
.wb-event-when .wb-ico, .wb-event-meta .wb-ico { margin-top: 2px; color: var(--wb-accent-text); }
.wb-event-when.is-struck time { text-decoration: line-through; color: var(--wb-muted); font-weight: 500; }

.wb-countdown {
    margin: 18px 0 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--wb-accent-text);
    font-variant-numeric: tabular-nums;
}

/* Registrant page timer: Days / Hours / Mins / Secs boxes, ticked by public.js.
   Days hides itself under 24 h; at zero the boxes give way to "Starting now". */
.wb-timer { margin: 20px 0 0; }
.wb-timer-h {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wb-muted);
}
.wb-timer-row { display: flex; justify-content: center; gap: 8px; }
.wb-timer-cell {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: 96px;
    padding: 12px 4px 10px;
    border: 1px solid var(--wb-line);
    border-radius: 16px;
    background: var(--wb-accent-soft);
}
.wb-timer-cell[hidden] { display: none; }
.wb-timer-num {
    font-size: clamp(26px, 8vw, 36px);
    line-height: 1.1;
    font-weight: 600;
    color: var(--wb-accent-text);
    font-variant-numeric: tabular-nums;
}
.wb-timer-lbl {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wb-muted);
}
.wb-timer-done { display: none; margin: 0; font-size: 20px; font-weight: 600; color: var(--wb-accent-text); }
.wb-timer.is-done .wb-timer-h,
.wb-timer.is-done .wb-timer-row { display: none; }
.wb-timer.is-done .wb-timer-done { display: block; }

.wb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.wb-join { margin-top: 18px; }
.wb-join-hint { margin: 10px 0 0; font-size: 14.5px; color: var(--wb-muted); }
/* Automated: "It starts by itself at …" under the hint. */
.wb-join-auto { display: block; margin-top: 4px; font-weight: 500; color: var(--wb-ink-soft); }
.wb-join-auto time { font-weight: 600; color: var(--wb-ink); }

.wb-addcal { margin-top: 22px; }
.wb-addcal-h {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wb-muted);
}
.wb-addcal-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.wb-other { margin: 20px 0 0; }
.wb-other a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-weight: 600;
    color: var(--wb-accent-text);
    text-decoration: none;
}
.wb-other a:hover { text-decoration: underline; }

.wb-cancel { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--wb-line); text-align: center; }
.wb-cancel summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 4px;
    list-style: none;
    cursor: pointer;
    font-size: 14.5px;
    color: var(--wb-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.wb-cancel summary::-webkit-details-marker { display: none; }
.wb-cancel[open] summary { color: var(--wb-ink-soft); text-decoration: none; font-weight: 600; }
.wb-cancel-form { margin-top: 6px; padding: 16px; border-radius: 16px; background: var(--wb-bad-soft); text-align: left; }
.wb-cancel-form p { margin: 0 0 12px; color: var(--wb-bad-ink); font-weight: 500; }
.wb-cancel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wb-cancel-actions .wb-btn { flex: 1 1 180px; }

@media (min-width: 480px) {
    .wb-mine-body { padding: 32px 30px 26px; }
}

/* ── dead end ────────────────────────────────────────────────────────────── */

.wb-dead { padding: clamp(30px, 7vw, 48px) clamp(20px, 5vw, 36px); text-align: center; }
.wb-dead-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--wb-sunken);
    color: var(--wb-muted);
    font-size: 28px;
}
.wb-dead-h { margin: 0 0 8px; font-size: clamp(24px, 6vw, 30px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.wb-dead-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

@media (min-width: 480px) {
    .wb-dead-actions { flex-direction: row; justify-content: center; }
}

/* ── motion & print ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
    .wb-top, .wb-foot, .wb-mbar, .wb-mbar-space, .wb-resend, .wb-cancel, .wb-addcal, .wb-join { display: none !important; }
    .wb-body { background: #ffffff; }
    .wb-card { box-shadow: none; border-color: #cccccc; }
}
