/* ==========================================================================
   EM3 Webinars - index + single. Markup: inc/webinar.php. With resources.css.
   ========================================================================== */

/* ---- Index cards ---- */
.em3-web-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.em3-web-card[hidden] {
	display: none;
}
.em3-web-card__link {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--em3-line-onwhite);
	border-radius: var(--em3-radius-card);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	height: 100%;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.em3-web-card__link:hover,
.em3-web-card__link:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(46, 93, 255, 0.4);
	box-shadow: 0 30px 60px -28px rgba(10, 24, 88, 0.28);
}
.em3-web-card__media {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--em3-bg-deep);
}
.em3-web-card__media .em3-web-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
}
.em3-web-card__link:hover .em3-web-card__img {
	transform: scale(1.04);
}
.em3-web-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--em3-radius);
	background: rgba(5, 13, 51, 0.82);
	backdrop-filter: blur(6px);
	color: #fff;
}
.em3-web-card__badge.is-od {
	color: var(--em3-ink-muted);
}
.em3-web-card__body {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 22px 22px 24px;
	flex: 1;
}
.em3-web-card__date {
	color: var(--em3-accent);
}
.em3-web-card__title {
	font-size: 19px;
	line-height: 1.25;
	color: var(--em3-ink-navy);
	margin: 0;
}
.em3-web-card__spk {
	font-size: 14px;
	color: var(--em3-charcoal);
	margin: 0;
}
.em3-web-card__cta {
	margin-top: auto;
	padding-top: 6px;
}

/* ---- Sticky sub-nav ---- */
.em3-web-subnav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(5, 13, 51, 0.9);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--em3-line-soft);
}
.admin-bar .em3-web-subnav {
	top: 32px;
}
.em3-web-subnav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 56px;
}
.em3-web-subnav__title {
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.em3-web-subnav__links {
	display: flex;
	align-items: center;
	gap: 22px;
}
.em3-web-subnav__links a {
	color: var(--em3-ink-dim);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: color 0.2s;
}
.em3-web-subnav__links a:hover,
.em3-web-subnav__links a.is-active {
	color: var(--em3-accent-hot);
}
.em3-web-subnav__cta {
	padding: 8px 16px;
	border-radius: var(--em3-radius);
	background: linear-gradient(135deg, var(--em3-accent), var(--em3-accent-mid));
	color: #fff !important;
}

/* ---- Hero ---- */
.em3-web-hero {
	position: relative;
	padding: var(--em3-space-4) 0;
	overflow: hidden;
}
.em3-web-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.32;
	z-index: 0;
}
.em3-web-hero.has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 13, 51, 0.72) 0%, rgba(5, 13, 51, 0.86) 60%, var(--em3-bg-deep) 100%);
	z-index: 1;
}
.em3-web-hero__inner {
	position: relative;
	z-index: 2;
}
.em3-web-series {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--em3-ink-muted);
}
.em3-web-hero__title {
	margin: 18px 0 0;
	font-size: clamp(36px, 5vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-wrap: balance;
}
.em3-web-hero__sub {
	margin: 20px 0 0;
	font-size: 19px;
	line-height: 1.5;
	color: var(--em3-ink-muted);
	max-width: 700px;
}
.em3-web-meta {
	margin-top: 44px;
}

/* ---- Registration row ---- */
.em3-web-reg__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	gap: 56px;
	align-items: start;
}
.em3-web-reg__quote {
	font-family: var(--em3-font-serif);
	font-style: italic;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.3;
	color: var(--em3-ink-navy);
	margin: 18px 0 24px;
}
.em3-web-reg__quote .accent {
	font-style: italic;
}
.em3-web-reg__lede {
	font-size: 17px;
	line-height: 1.65;
	color: var(--em3-charcoal);
	margin: 0 0 16px;
}
.em3-web-reg__panel {
	position: sticky;
	top: 80px;
}
.em3-web-panel {
	padding: 30px 28px;
}
.em3-web-panel__title {
	font-size: 26px;
	margin: 12px 0 6px;
	color: var(--em3-ink-navy);
}
.em3-web-panel__note {
	font-size: 13.5px;
	color: rgba(10, 24, 88, 0.6);
	margin: 0 0 20px;
}
.em3-web-panel__soon {
	color: var(--em3-charcoal);
	font-size: 15px;
}
#riverside-webinar-form {
	min-height: 120px;
	color: rgba(10, 24, 88, 0.6);
	font-size: 14px;
}
.em3-web-reg__done {
	text-align: center;
	padding: 20px 0;
}
.em3-web-reg__done p {
	color: var(--em3-charcoal);
	margin: 8px 0 18px;
}
.em3-web-replay {
	position: relative;
	aspect-ratio: 16 / 9;
	margin-top: 16px;
	border-radius: var(--em3-radius);
	overflow: hidden;
	background: #000;
}
.em3-web-replay :where(iframe, video, embed, object) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---- Relevant / should attend ---- */
.em3-web-fit__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
}
.em3-web-fit__h {
	position: relative;
	font-size: 24px;
	padding-top: 40px;
	margin: 0 0 22px;
}
.em3-web-fit__h::before {
	content: attr(data-num);
	position: absolute;
	top: 0;
	left: 0;
	font-family: var(--em3-font-serif);
	font-style: italic;
	font-size: 28px;
	color: var(--em3-accent-hot);
}
.em3-web-fit .em3-bullet {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.em3-web-fit .em3-bullet li {
	position: relative;
	padding-left: 26px;
	color: var(--em3-ink-muted);
	font-size: 16px;
	line-height: 1.5;
}
.em3-web-fit .em3-bullet li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 14px;
	height: 1px;
	background: var(--em3-accent-hot);
}

/* ---- What you'll learn ---- */
.em3-web-learn__head {
	max-width: 680px;
	margin-bottom: 44px;
}
.em3-web-learn__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}
.em3-web-learn__item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid var(--em3-line-onwhite);
}
.em3-web-learn__num {
	font-family: var(--em3-font-serif);
	font-style: italic;
	font-size: 28px;
	color: var(--em3-accent);
	line-height: 1;
}
.em3-web-learn__title {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: var(--em3-ink-navy);
}
.em3-web-learn__body {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--em3-charcoal);
}

/* ---- Speakers ---- */
.em3-web-speakers__head {
	max-width: 680px;
	margin-bottom: 44px;
}
.em3-web-speakers__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.em3-web-speakers__grid.is-single {
	grid-template-columns: minmax(0, 420px);
	justify-content: center;
}
.em3-web-spk {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
	border: 1px solid var(--em3-line-soft);
	border-radius: var(--em3-radius-card);
	overflow: hidden;
	transition: transform 0.3s, border-color 0.3s;
}
.em3-web-spk:hover {
	transform: translateY(-4px);
	border-color: rgba(106, 138, 255, 0.4);
}
.em3-web-spk__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--em3-bg-elev);
	display: flex;
	align-items: center;
	justify-content: center;
}
.em3-web-spk__media .em3-web-spk__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.em3-web-spk__avatar {
	font-family: var(--em3-font-sans);
	font-size: 48px;
	font-weight: 700;
	color: var(--em3-accent-hot);
	letter-spacing: 0.02em;
}
.em3-web-spk__body {
	padding: 22px 22px 24px;
}
.em3-web-spk__name {
	font-size: 20px;
	color: var(--em3-ink);
	margin: 0;
}
.em3-web-spk__role {
	font-size: 13.5px;
	color: var(--em3-accent-hot);
	font-weight: 600;
	margin: 4px 0 0;
}
.em3-web-spk__bio {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--em3-ink-dim);
	margin: 14px 0 0;
}
.em3-web-spk__li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 16px;
	color: var(--em3-accent-hot);
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 600;
}
.em3-web-spk__li svg {
	width: 16px;
	height: 16px;
}
.em3-web-spk__li:hover {
	color: #fff;
}

/* ---- Related ---- */
.em3-web-related__head {
	max-width: 680px;
	margin-bottom: 40px;
}
.em3-web-related__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.em3-web-rel__link {
	display: flex;
	align-items: center;
	gap: 20px;
	background: #fff;
	border: 1px solid var(--em3-line-onwhite);
	border-radius: var(--em3-radius-card);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.em3-web-rel__link:hover {
	transform: translateY(-3px);
	border-color: rgba(46, 93, 255, 0.4);
	box-shadow: 0 24px 50px -28px rgba(10, 24, 88, 0.26);
}
.em3-web-rel__media {
	margin: 0;
	width: 140px;
	flex: 0 0 140px;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--em3-bg-deep);
}
.em3-web-rel__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.em3-web-rel__body {
	padding: 18px 18px 18px 0;
}
.em3-web-rel__title {
	font-size: 17px;
	color: var(--em3-ink-navy);
	margin: 0 0 8px;
	line-height: 1.3;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.em3-web-cards,
	.em3-web-speakers__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.em3-web-reg__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.em3-web-reg__panel {
		position: static;
	}
	.em3-web-fit__grid {
		gap: 40px;
	}
}
@media (max-width: 760px) {
	.em3-web-subnav__links a:not(.em3-web-subnav__cta) {
		display: none;
	}
	.em3-web-fit__grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 600px) {
	.em3-web-cards,
	.em3-web-speakers__grid,
	.em3-web-related__grid {
		grid-template-columns: 1fr;
	}
	.em3-web-rel__media {
		width: 110px;
		flex-basis: 110px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.em3-web-card__link,
	.em3-web-card__img,
	.em3-web-spk,
	.em3-web-rel__link {
		transition: none;
	}
}
