/* ==========================================================================
   Event pages (bis-content), single event: the WEB-121 webinar design (bis-wb-*), copied from
   bis-landing-pages/assets/webinar-ca.css, plus the upcoming/past states (bis-ev-*).
   Builds on bis-landing-pages lp.css: tokens and .bis-lp-wrap.
   ========================================================================== */


:root {
	--wb-navy: #00548f;
	--wb-tint: #f3f6fb;
	--wb-section: clamp(48px, 6vw, 88px);
}

body .bis-lp-main .bis-wb-eyebrow {
	font-family: var(--font-brand); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: var(--bis-primary-dark);
}
body .bis-lp-main .bis-wb h2 { font-weight: 700; font-size: clamp(24px, 1.4vw + 17px, 32px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
body .bis-lp-main .bis-wb h3 { font-weight: 700; font-size: 20px; line-height: 1.3; }
.bis-wb p { font-size: 17px; line-height: 1.65; color: var(--bis-neutral-700); text-wrap: pretty; }
/* !important: the child theme sets "body b, strong { font-weight: bold !important }" site-wide. */
body .bis-lp-main .bis-wb p strong { font-weight: 600 !important; color: var(--bis-neutral-900); }

/* Buttons: the site header's green "Book a demo", a little taller for the page. */
.bis-lp .bis-wb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
	border: 1.5px solid #8dc33f; border-radius: 8px; background: #8dc33f; color: #ffffff; white-space: nowrap;
	font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.bis-lp .bis-wb-btn:hover { background: #7aac31; border-color: #7aac31; color: #ffffff; }
.bis-lp .bis-wb-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.bis-wb-btn__note { font-size: 14px; color: var(--bis-neutral-500); }
.bis-wb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }

/* ---- Hero: copy left, speaker photo right -------------------------------- */

.bis-wb-hero { background: linear-gradient(180deg, var(--bis-white) 0%, var(--wb-tint) 100%); padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.bis-wb-hero__grid { display: grid; gap: 32px; align-items: center; }
.bis-wb-hero__copy { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
body .bis-wb-hero h1 { font-weight: 800; font-size: clamp(28px, 1.4vw + 18px, 40px); line-height: 1.14; letter-spacing: -0.015em; text-wrap: balance; }
body .bis-lp-main .bis-wb-lead { font-size: 17px; }
.bis-wb-when {
	display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none;
	font-family: var(--font-brand); font-weight: 700; font-size: 15px; color: var(--bis-neutral-900);
}
.bis-wb-when li { display: inline-flex; align-items: center; gap: 8px; }
.bis-wb-when svg { flex: 0 0 18px; color: var(--bis-primary-dark); }
body .bis-wb-hero__media img {
	display: block; width: 100%; height: auto; border-radius: var(--radius-lg);
	box-shadow: 0 2px 4px rgba(25, 25, 25, .05), 0 24px 56px rgba(8, 28, 46, .16);
}
@media (min-width: 900px) {
	/* Copy 42%, photo 58%, so the two columns end up about the same height. */
	.bis-wb-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); }
}

/* ---- Band: event details strip, then the speaker card beside the session copy ---- */

.bis-wb-band { background: var(--wb-tint); padding: clamp(8px, 1vw, 16px) 0 var(--wb-section); }
.bis-wb-band__inner { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }

.bis-wb-strip {
	display: grid; gap: 16px 32px; align-items: center; padding: clamp(18px, 2.4vw, 24px) clamp(20px, 3vw, 32px);
	background: var(--bis-white); border: 1px solid var(--bis-neutral-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
body .bis-lp-main .bis-wb h2.bis-wb-strip__title { font-size: 17px; white-space: nowrap; }
.bis-wb-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.bis-wb-facts div { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 0 12px; }
.bis-wb-facts dt {
	display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px;
	background: var(--bis-blue-50); color: var(--bis-primary-dark);
}
.bis-wb-facts dt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bis-wb-facts dd { margin: 0; font-family: var(--font-brand); font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--bis-neutral-900); }
@media (min-width: 900px) {
	.bis-wb-strip { grid-template-columns: auto minmax(0, 1fr); }
	.bis-wb-strip__title { padding-right: 32px; border-right: 1px solid var(--bis-neutral-200); }
	.bis-wb-facts { grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; }
}

/* "About the session": what Ashley covers, full width of the wrap. */
.bis-wb-about__copy { display: flex; flex-direction: column; gap: 16px; }
body .bis-lp-main .bis-wb-about__copy p { font-size: 18px; }

/* ---- What you'll walk away with: speaker card beside the ticks, on white --- */

.bis-wb-learn { padding: var(--wb-section) 0; }
.bis-wb-learn__grid { display: grid; gap: 32px; align-items: center; justify-items: center; }
body .bis-wb-learn__card { display: block; width: min(100%, 320px); height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-cover); }
.bis-wb-learn__inner { display: flex; flex-direction: column; gap: 28px; justify-self: stretch; }
@media (min-width: 900px) {
	.bis-wb-learn__grid { grid-template-columns: 320px minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
}
.bis-wb-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px 48px; }
.bis-wb-ticks li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.5; color: var(--bis-neutral-900); }
.bis-wb-ticks li::before {
	content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 999px;
	background: #8dc33f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (min-width: 760px) {
	.bis-wb-ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 36px; }
}
body .bis-lp-main .bis-wb-audience { max-width: 760px; padding-top: 20px; border-top: 1px solid var(--bis-neutral-200); font-size: 16px; color: var(--bis-neutral-700); }

/* ---- Why this matters: copy left, navy sign-up card right ----------------- */

.bis-wb-why { background: var(--wb-tint); padding: var(--wb-section) 0; }
.bis-wb-why__grid { display: grid; gap: 40px; align-items: start; }
.bis-wb-why__copy { display: flex; flex-direction: column; gap: 18px; max-width: 700px; }
body .bis-lp-main .bis-wb-why__lead { line-height: 1.65; }
@media (min-width: 900px) {
	.bis-wb-why__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(48px, 6vw, 96px); }
	/* 40px under the sticky site header (111px with the announcement bar). */
	.bis-wb-cta { position: sticky; top: 152px; }
}

/* The three things paragraph 1 names, as tiles. */
.bis-wb-outcomes { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 12px; }
.bis-wb-outcomes li {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px;
	background: var(--bis-white); border: 1px solid var(--bis-neutral-200); border-radius: var(--radius-lg);
	font-family: var(--font-brand); font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--bis-neutral-900);
}
.bis-wb-outcomes__icon {
	flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
	background: var(--bis-blue-50); color: var(--bis-primary-dark);
}
@media (min-width: 640px) {
	.bis-wb-outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bis-wb-outcomes li { flex-direction: column; align-items: flex-start; }
}

.bis-wb-cta {
	display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 32px);
	background: var(--wb-navy); border-radius: var(--radius-lg); color: #ffffff;
	box-shadow: 0 2px 4px rgba(8, 28, 46, .08), 0 24px 48px rgba(8, 28, 46, .18);
}
.bis-wb-cta__who { display: flex; align-items: center; gap: 14px; }
.bis-wb-cta__who img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 999px; border: 3px solid #8dc33f; object-fit: cover; }
body .bis-lp-main .bis-wb-cta__who p { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .8); }
body .bis-lp-main .bis-wb .bis-wb-cta__who strong { font-family: var(--font-brand); font-weight: 700 !important; font-size: 17px; color: #ffffff; }
.bis-wb-cta__facts { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; gap: 8px; }
.bis-wb-cta__facts li { font-family: var(--font-brand); font-weight: 500; font-size: 15px; color: #ffffff; }
.bis-wb-cta .bis-wb-btn { width: 100%; }
.bis-wb-cta .bis-wb-btn__note { margin-top: -8px; text-align: center; color: rgba(255, 255, 255, .75); }

/* ---- States: data-state on .bis-ev is upcoming | past | cancelled | postponed (event.js keeps it current) ---- */

.bis-ev[data-state="upcoming"] .bis-ev-past,
.bis-ev:not([data-state="upcoming"]) .bis-ev-upcoming { display: none; }
body .bis-lp-main .bis-ev-ended {
	margin: 0; padding: 12px 16px; border-left: 3px solid var(--bis-neutral-300); background: var(--bis-white);
	border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 16px; color: var(--bis-neutral-700);
}
body .bis-lp-main .bis-wb-cta .bis-ev-ended { border-left-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: #ffffff; }
.bis-ev:not([data-state="upcoming"]) .bis-wb-cta { position: static; }
.bis-wb-btn svg { flex: 0 0 auto; }

/* ---- Speakers grid (events with two or more speakers) ---------------------- */

/* White, after the white takeaways and before the tinted Why section, so a rule separates the two. */
.bis-ev-speakers { padding: var(--wb-section) 0; background: var(--bis-white); border-top: 1px solid var(--bis-neutral-200); }
.bis-ev-speakers__inner { display: flex; flex-direction: column; gap: 28px; }
.bis-ev-speakers__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.bis-ev-speaker { display: flex; flex-direction: column; gap: 6px; }
body .bis-ev-speaker__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: 8px; }
body .bis-lp-main .bis-ev-speaker h3 { font-size: 18px; }
body .bis-lp-main .bis-ev-speaker__role { font-size: 15px; font-weight: 600; color: var(--bis-neutral-900); }
body .bis-lp-main .bis-ev-speaker__bio { font-size: 15px; line-height: 1.6; }
.bis-lp .bis-ev-speaker__link { font-size: 14px; font-weight: 600; color: var(--bis-primary-dark); }

/* ==========================================================================
   /events/ archive and event cards (also used by [bis_upcoming_events])
   ========================================================================== */

.bis-ev-archive__hero .bis-wb-hero__copy { max-width: 760px; }
.bis-ev-section { padding: var(--wb-section) 0; }
.bis-ev-section--tint { background: var(--wb-tint); }
.bis-ev-section__inner { display: flex; flex-direction: column; gap: 28px; }
body .bis-lp-main .bis-ev-empty { padding: 20px 24px; background: var(--wb-tint); border-radius: var(--radius-lg); }

.bis-ev-list { display: grid; gap: 24px; }
.bis-ev-list--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.bis-ev-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--bis-white); border: 1px solid var(--bis-neutral-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.bis-ev-card__media { display: block; line-height: 0; }
body .bis-ev-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bis-ev-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 24px; flex-grow: 1; }
body .bis-lp-main .bis-ev-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--font-brand); font-weight: 600; font-size: 14px; color: var(--bis-neutral-700); }
.bis-ev-card__type {
	padding: 3px 10px; border-radius: 999px; background: var(--bis-blue-50); color: var(--bis-primary-dark);
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
body .bis-lp-main .bis-ev-card h3 { font-size: 20px; line-height: 1.3; }
body .bis-lp-main .bis-ev-card h3 a { color: var(--bis-neutral-900); text-decoration: none; }
body .bis-lp-main .bis-ev-card h3 a:hover { color: var(--bis-primary-dark); }
body .bis-lp-main .bis-ev-card__where { font-size: 15px; color: var(--bis-neutral-700); }
body .bis-lp-main .bis-ev-card__excerpt { font-size: 16px; }
.bis-ev-card .bis-wb-btn { margin-top: 6px; }
.bis-lp .bis-ev-card__link { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 15px; color: var(--bis-primary-dark); text-decoration: none; }
.bis-lp .bis-ev-card__link:hover { text-decoration: underline; }
.bis-ev-archive__hero .bis-ev-card__link { margin-top: 0; }

@media (min-width: 900px) {
	.bis-ev-card--feature { flex-direction: row; }
	.bis-ev-card--feature .bis-ev-card__media { flex: 0 0 46%; }
	body .bis-ev-card--feature .bis-ev-card__media img { height: 100%; min-height: 300px; aspect-ratio: auto; }
	.bis-ev-card--feature .bis-ev-card__body { justify-content: center; padding: 32px 36px; gap: 12px; }
	body .bis-lp-main .bis-ev-card--feature h3 { font-size: clamp(22px, 1vw + 14px, 28px); }
}

/* ---- Sign-up popup ("Get event updates") -------------------------------------------------------------- */

/* button.* + body prefix: beats the theme reset ([type=button]:hover / :focus pink) and the Elementor kit's button padding. */
body.bis-lp button.bis-wb-btn { font-family: var(--font-body); line-height: 1.2; text-transform: none; letter-spacing: 0; }
body.bis-lp button.bis-wb-btn:focus { background: #7aac31; border-color: #7aac31; color: #ffffff; }

/* Popup: like the on-demand demo gate (bis-landing-pages gated-video.css). Non-modal, fixed and centred, above the
   header (1000), Ask Amy and the cookie banner (99999), under reCAPTCHA's challenge (2000000000). */
body .bis-ev-modal {
	position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 1000001;
	width: min(560px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 8px;
	background: #ffffff; color: #191919; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
.bis-ev-modal__scrim { position: fixed; inset: 0; z-index: 1000000; background: rgba(6, 12, 18, .72); }
.bis-ev-modal__scrim[hidden] { display: none; }
html.bis-ev-lock { overflow: hidden; }
.bis-ev-modal__panel {
	padding: clamp(24px, 4vw, 36px);
	max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
}
@media (max-width: 480px) { .bis-ev-modal__panel { padding: 22px 18px 20px; } }
.bis-ev-modal .bis-lp-form__head { padding-right: 40px; }
body .bis-lp-main .bis-ev-modal .bis-lp-form__head p { font-size: 15px; }
body.bis-lp button.bis-ev-modal__close,
body.bis-lp button.bis-ev-lightbox__close {
	position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; min-height: 0; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(25, 25, 25, .06); color: #333;
}
body.bis-lp button.bis-ev-modal__close:hover, body.bis-lp button.bis-ev-modal__close:focus { background: rgba(25, 25, 25, .12); color: #191919; }

.bis-ev-cta__inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

/* ---- Events we host: TV-style rows (title, then a strip of photos), lightbox on click -------------------- */

/* White band. overflow-x: clip keeps the strips' bleed to the right edge from adding a page scrollbar. */
.bis-ev-tv { background: var(--bis-white); overflow-x: clip; }
.bis-ev-tv .bis-ev-section__inner { gap: clamp(36px, 4vw, 52px); }
.bis-ev-row { display: flex; flex-direction: column; gap: 16px; }
.bis-ev-row__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.bis-ev-row__title { display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
body .bis-lp-main .bis-ev-row__title h3 { font-size: 20px; }
body .bis-lp-main .bis-ev-row__title p { font-size: 15px; color: var(--bis-neutral-700); }
.bis-ev-row__nav { display: flex; gap: 8px; flex: 0 0 auto; }
.bis-ev-row.is-static .bis-ev-row__nav { display: none; }
body.bis-lp button.bis-ev-row__btn {
	width: 40px; height: 40px; min-height: 0; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--bis-neutral-300); border-radius: 999px; background: var(--bis-white); color: var(--bis-neutral-900); cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
body.bis-lp button.bis-ev-row__btn:hover, body.bis-lp button.bis-ev-row__btn:focus { background: var(--bis-blue-50); border-color: var(--bis-primary-dark); color: var(--bis-primary-dark); }
body.bis-lp button.bis-ev-row__btn:disabled { opacity: .35; cursor: default; background: var(--bis-white); border-color: var(--bis-neutral-300); color: var(--bis-neutral-900); }

/* The strip runs past the content column to the screen's right edge (margin-right pulls it out of the centred
   wrap); it snaps to tiles and has no scrollbar. The small vertical padding leaves room for the focus outline. */
.bis-ev-row__track {
	list-style: none; margin: -6px calc(50% - 50vw) -6px 0; padding: 6px 4px; display: flex; gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.bis-ev-row__track::-webkit-scrollbar { display: none; }
.bis-ev-row__track > li { flex: 0 0 clamp(240px, 26vw, 340px); scroll-snap-align: start; }
.bis-ev-row__track > li:last-child { margin-right: 16px; }
body.bis-lp button.bis-ev-row__item {
	display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 10px;
	overflow: hidden; background: var(--bis-neutral-50); cursor: pointer;
}
body.bis-lp button.bis-ev-row__item:hover, body.bis-lp button.bis-ev-row__item:focus { background: var(--bis-neutral-50); }
body.bis-lp button.bis-ev-row__item:focus-visible { outline: 3px solid var(--bis-primary-dark); outline-offset: 2px; }
body.bis-lp button.bis-ev-row__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
	.bis-ev-row__nav { display: none; }
	.bis-ev-row__track > li { flex-basis: 78%; }
}

/* Lightbox: modal dialog, photo as large as the screen allows, caption below, arrows at the sides. */
body .bis-ev-lightbox {
	width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px clamp(16px, 6vw, 88px);
	border: 0; background: rgba(6, 12, 18, .94); color: #ffffff;
}
body .bis-ev-lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 16px; }
.bis-ev-lightbox::backdrop { background: rgba(6, 12, 18, .6); }
.bis-ev-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
body .bis-ev-lightbox figure img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 8px; }
.bis-ev-lightbox figcaption { font-family: var(--font-brand); font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .8); }
body.bis-lp button.bis-ev-lightbox__close { top: 14px; right: 14px; background: rgba(255, 255, 255, .14); color: #ffffff; }
body.bis-lp button.bis-ev-lightbox__close:hover, body.bis-lp button.bis-ev-lightbox__close:focus { background: rgba(255, 255, 255, .28); color: #ffffff; }
body.bis-lp button.bis-ev-lightbox__nav {
	flex: 0 0 48px; width: 48px; height: 48px; min-height: 0; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #ffffff; cursor: pointer;
}
body.bis-lp button.bis-ev-lightbox__nav:hover, body.bis-lp button.bis-ev-lightbox__nav:focus { background: rgba(255, 255, 255, .28); color: #ffffff; }
.bis-ev-lightbox.is-single .bis-ev-lightbox__nav { visibility: hidden; }
@media (max-width: 640px) {
	body .bis-ev-lightbox { padding: 56px 8px; gap: 4px; }
	body.bis-lp button.bis-ev-lightbox__nav { flex-basis: 36px; width: 36px; height: 36px; }
}
